< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java

Print this page
@@ -1294,11 +1294,11 @@
                          ListBuffer<Symbol> subtypes = new ListBuffer<>();
                          int numberOfPermittedSubtypes = nextChar();
                          for (int i = 0; i < numberOfPermittedSubtypes; i++) {
                              subtypes.add(poolReader.getClass(nextChar()));
                          }
-                         ((ClassSymbol)sym).permitted = subtypes.toList();
+                         ((ClassSymbol)sym).setPermittedSubclasses(subtypes.toList());
                      }
                  }
              },
          };
  

@@ -2611,11 +2611,11 @@
          for (int i = 0; i < fieldCount; i++) skipMember();
          char methodCount = nextChar();
          for (int i = 0; i < methodCount; i++) skipMember();
          readClassAttrs(c);
  
-         if (c.permitted != null && !c.permitted.isEmpty()) {
+         if (!c.getPermittedSubclasses().isEmpty()) {
              c.flags_field |= SEALED;
          }
  
          // reset and read rest of classinfo
          bp = startbp;
< prev index next >