--- 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;
}