--- a/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Thu Oct 04 13:04:53 2012 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Fri Oct 05 14:35:24 2012 +0100
@@ -164,6 +164,54 @@
compiler.err.cant.apply.symbols=\
no suitable {0} found for {1}({2})
+# 0: type
+compiler.err.cant.access.arg.type.in.functional.desc=\
+ cannot access parameter type {0} in target functional descriptor
+
+# 0: type
+compiler.err.cant.access.return.in.functional.desc=\
+ cannot access return type {0} in target functional descriptor
+
+# 0: type
+compiler.err.cant.access.thrown.in.functional.desc=\
+ cannot access thrown type {0} in target functional descriptor
+
+# 0: symbol kind, 1: symbol
+compiler.misc.no.abstracts=\
+ no abstract method found in {0} {1}
+
+# 0: symbol kind, 1: symbol
+compiler.misc.incompatible.abstracts=\
+ multiple non-overriding abstract methods found in {0} {1}
+
+compiler.misc.not.a.functional.intf=\
+ the target type must be a functional interface
+
+# 0: message segment
+compiler.misc.not.a.functional.intf.1=\
+ the target type must be a functional interface\n\
+ {0}
+
+# 0: symbol, 1: symbol kind, 2: symbol
+compiler.misc.invalid.generic.desc.in.functional.intf=\
+ invalid functional descriptor: method {0} in {1} {2} is generic
+
+# 0: symbol kind, 1: symbol
+compiler.misc.incompatible.descs.in.functional.intf=\
+ incompatible function descriptors found in {0} {1}
+
+# 0: name, 1: list of type, 2: type, 3: list of type
+compiler.misc.descriptor=\
+ descriptor: {2} {0}({1})
+
+# 0: name, 1: list of type, 2: type, 3: list of type
+compiler.misc.descriptor.throws=\
+ descriptor: {2} {0}({1}) throws {3}
+
+# 0: type
+compiler.misc.no.suitable.functional.intf.inst=\
+ cannot infer functional interface descriptor for {0}
+
# 0: symbol
compiler.err.cant.assign.val.to.final.var=\
cannot assign a value to final variable {0}
@@ -173,6 +221,9 @@
local variables referenced from {1} must be final or effectively final
+compiler.misc.lambda=\
+ a lambda expression
+
compiler.misc.inner.cls=\
an inner class
@@ -592,6 +643,9 @@
compiler.err.missing.ret.stmt=\
missing return statement
+compiler.misc.missing.ret.val=\
+ missing return value
+
compiler.err.missing.ret.val=\
missing return value
@@ -639,6 +693,18 @@
compiler.misc.incompatible.type.in.conditional=\
bad type in conditional expression; {0}
+# 0: type
+compiler.misc.incompatible.ret.type.in.lambda=\
+ bad return type in lambda expression\n\
+ {0}
+
+# 0: list of type
+compiler.err.incompatible.thrown.types.in.lambda=\
+ incompatible thrown types {0} in lambda expression
+
+compiler.misc.incompatible.arg.types.in.lambda=\
+ incompatible parameter types in lambda expression
+
compiler.err.new.not.allowed.in.annotation=\
''new'' not allowed in an annotation
@@ -995,6 +1061,10 @@
## The following string will appear before all messages keyed as:
## "compiler.note".
+
+compiler.note.potential.lambda.found=\
+ This anonymous inner class creation can be turned into a lambda expression.
+
compiler.note.note=\
Note:\u0020
@@ -1755,6 +1825,9 @@
required: {0}\n\
found: {1}
+compiler.err.unexpected.lambda=\
+ lambda expression not expected here
+
## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
## The second argument {1} is the non-resolved symbol
## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
@@ -2094,9 +2167,6 @@
compiler.misc.type.null=\
<null>
-compiler.misc.type.conditional=\
- conditional expression
-
# X#n (where n is an int id) is disambiguated tvar name
# 0: name, 1: number
compiler.misc.type.var=\