changeset 47248 | 22d665f53a4a |
parent 47216 | 71c04702a3d5 |
child 47350 | d65c3b21081c |
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TypeEnter.java Fri Sep 22 12:00:41 2017 +0200 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TypeEnter.java Fri Sep 22 14:06:11 2017 +0200 @@ -1030,6 +1030,9 @@ if (c.name.isEmpty()) { flags |= ANONCONSTR; } + if (based) { + flags |= ANONCONSTR_BASED; + } Type mType = new MethodType(argtypes, null, thrown, c); Type initType = typarams.nonEmpty() ? new ForAll(typarams, mType) :