src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 47248 22d665f53a4a
parent 47216 71c04702a3d5
child 47268 48ec75306997
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java	Fri Sep 22 12:00:41 2017 +0200
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java	Fri Sep 22 14:06:11 2017 +0200
@@ -2305,9 +2305,7 @@
                 // prefix it to the constructor arguments
                 // and delete it from the new expression
                 if (tree.encl != null && !clazztype.tsym.isInterface()) {
-                    tree.args = tree.args.prepend(makeNullCheck(tree.encl));
                     finalargtypes = argtypes.prepend(tree.encl.type);
-                    tree.encl = null;
                 } else {
                     finalargtypes = argtypes;
                 }