diff -r 9ab948f612a8 -r 273183fd8246 src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties Wed Jun 20 11:33:43 2018 +0200 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties Wed Jun 20 11:47:07 2018 +0100 @@ -1216,17 +1216,15 @@ compiler.err.undef.label=\ undefined label: {0} -# 0: name (type) compiler.err.illegal.ref.to.var.type=\ - illegal reference to restricted type ''{0}'' - -# 0: name + illegal reference to restricted type ''var'' + compiler.err.var.not.allowed=\ - ''{0}'' not allowed here\n\ - as of release 10, ''{0}'' is a restricted local variable type and cannot be used for type declarations + ''var'' not allowed here\n\ + as of release 10, ''var'' is a restricted local variable type and cannot be used for type declarations compiler.warn.var.not.allowed=\ - as of release 10, ''var'' is a restricted local variable type and cannot be used for type declarations + as of release 10, ''var'' is a restricted local variable type and cannot be used for type declarations or as the element type of an array # 0: name (variable), 1: message segment compiler.err.cant.infer.local.var.type=\