changeset 52278 | e11a53698d57 |
parent 48054 | 702043a4cdeb |
child 52777 | 7d3391e9df19 |
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Wed Oct 24 15:45:09 2018 -0700 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Mon Sep 17 11:09:43 2018 -0700 @@ -1115,7 +1115,9 @@ public void visitNewClass(JCNewClass tree) { scan(tree.encl); scan(tree.typeargs); - scan(tree.clazz); + if (tree.def == null) { + scan(tree.clazz); + } scan(tree.args); // the anonymous class instantiation if any will be visited separately. }