--- a/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Thu Nov 24 13:38:40 2011 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Mon Nov 28 15:56:42 2011 +0000
@@ -1945,6 +1945,11 @@
strings in switch are not supported in -source {0}\n\
(use -source 7 or higher to enable strings in switch)
+# 0: string
+compiler.err.lambda.not.supported.in.source=\
+ lambda expressions are not supported in -source {0}\n\
+ (use -source 8 or higher to enable lambda expressions)
+
########################################
# Diagnostics for verbose resolution
# used by Resolve (debug only)