< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java

Print this page
@@ -918,12 +918,12 @@
                  permittedSubtypesClosure = permittedSubtypesClosure.tail;
  
                  current.complete();
  
                  if (current.isSealed() && current.isAbstract()) {
-                     for (Symbol sym : current.permitted) {
-                         ClassSymbol csym = (ClassSymbol) sym;
+                     for (Type t : current.getPermittedSubclasses()) {
+                         ClassSymbol csym = (ClassSymbol) t.tsym;
  
                          if (accept.test(csym)) {
                              permittedSubtypesClosure = permittedSubtypesClosure.prepend(csym);
                              permitted.add(csym);
                          }
< prev index next >