changeset 2210:5912fbbeb6b9

Use a separate error message for using a receiver parameter when none is allowed.
author wmdietl
date Sun, 17 Feb 2013 20:27:03 -0800
parents b690b50ddc8c
children a1d43face262
files src/share/classes/com/sun/tools/javac/resources/compiler.properties
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/resources/compiler.properties	Sun Feb 17 20:26:38 2013 -0800
+++ b/src/share/classes/com/sun/tools/javac/resources/compiler.properties	Sun Feb 17 20:27:03 2013 -0800
@@ -2157,6 +2157,10 @@
     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
 
 # TODO 308: make a better error message
+compiler.err.receiver.parameter.not.applicable=\
+    receiver parameter not applicable
+
+# TODO 308: make a better error message
 compiler.err.cant.annotate.static.class=\
     enclosing static nested class cannot be annotated
 # TODO 308: make a better error message