diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java index 688294e..c8ff5ce 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java @@ -2545,7 +2545,6 @@ public T copy(T tree, JCTree p) { // prefix it to the constructor arguments // "encl" will be cleared in TransTypes if (tree.encl != null && !clazztype.tsym.isInterface()) { - tree.args = tree.args.prepend(makeNullCheck(tree.encl)); finalargtypes = argtypes.prepend(tree.encl.type); } else { finalargtypes = argtypes; diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java index 5f28663..07e409d 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java @@ -1708,7 +1708,7 @@ public List getTypeArguments() { public JCExpression getIdentifier() { return clazz; } @DefinedBy(Api.COMPILER_TREE) public List getArguments() { - return encl != null && def != null ? args.tail : args; + return args; } @DefinedBy(Api.COMPILER_TREE) public JCClassDecl getClassBody() { return def; }