< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java

Print this page
@@ -1641,11 +1641,11 @@
                      for (RecordComponent rc : recordComponents) {
                          List<JCAnnotation> originalAnnos = rc.getOriginalAnnos();
                          originalAnnos.forEach(a -> visitAnnotation(a));
                      }
                      // we should empty the list of permitted subclasses for next round
-                     node.sym.permitted = List.nil();
+                     node.sym.clearPermittedSubclasses();
                  }
                  node.sym = null;
              }
              public void visitMethodDef(JCMethodDecl node) {
                  // remove super constructor call that may have been added during attribution:
< prev index next >