--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java Fri Sep 22 12:00:41 2017 +0200
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java Fri Sep 22 14:06:11 2017 +0200
@@ -965,6 +965,10 @@
formals = formals.tail.tail;
nonInferred = nonInferred.tail.tail;
}
+ if ((sym.flags() & ANONCONSTR_BASED) != 0) {
+ formals = formals.tail;
+ nonInferred = nonInferred.tail;
+ }
List<JCExpression> args = argtrees;
if (args != null) {
//this is null when type-checking a method reference