--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java Wed Jun 20 11:33:43 2018 +0200
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java Wed Jun 20 11:47:07 2018 +0100
@@ -3842,7 +3842,7 @@
@Override
JCDiagnostic getDiagnostic(DiagnosticType dkind, DiagnosticPosition pos, Symbol location, Type site, Name name, List<Type> argtypes, List<Type> typeargtypes) {
- return diags.create(dkind, log.currentSource(), pos, "illegal.ref.to.var.type", name);
+ return diags.create(dkind, log.currentSource(), pos, "illegal.ref.to.var.type");
}
}