diff -r 27045478cf23 -r 603f0c93d5c9 langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties --- a/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Wed Jul 09 10:49:32 2014 -0400 +++ b/langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties Thu Jul 10 13:57:27 2014 -0700 @@ -720,6 +720,7 @@ second operand: {0}\n\ third operand : {1} + # 0: message segment compiler.misc.incompatible.type.in.conditional=\ bad type in conditional expression\n\ @@ -1467,6 +1468,14 @@ compiler.warn.option.obsolete.target=\ target value {0} is obsolete and will be removed in a future release +# 0: string, 1: string +compiler.err.option.removed.source=\ + Source option {0} is no longer supported. Use {1} or later. + +# 0: string, 1: string +compiler.err.option.removed.target=\ + Target option {0} is no longer supported. Use {1} or later. + compiler.warn.option.obsolete.suppression=\ To suppress warnings about obsolete options, use -Xlint:-options. @@ -2235,11 +2244,6 @@ # Diagnostics for language feature changes ######################################## # 0: string -compiler.err.unsupported.fp.lit=\ - hexadecimal floating point literals are not supported in -source {0}\n\ - (use -source 5 or higher to enable hexadecimal floating point literals) - -# 0: string compiler.err.unsupported.binary.lit=\ binary literals are not supported in -source {0}\n\ (use -source 7 or higher to enable binary literals) @@ -2254,14 +2258,6 @@ try-with-resources is not supported in -source {0}\n\ (use -source 7 or higher to enable try-with-resources) -compiler.warn.enum.as.identifier=\ - as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ - (use -source 5 or higher to use ''enum'' as a keyword) - -compiler.warn.assert.as.identifier=\ - as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ - (use -source 1.4 or higher to use ''assert'' as a keyword) - compiler.warn.underscore.as.identifier=\ ''_'' used as an identifier\n\ (use of ''_'' as an identifier might not be supported in releases after Java SE 8) @@ -2271,12 +2267,10 @@ (use of ''_'' as an identifier is forbidden for lambda parameters) compiler.err.enum.as.identifier=\ - as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ - (use -source 1.4 or lower to use ''enum'' as an identifier) + as of release 5, ''enum'' is a keyword, and may not be used as an identifier compiler.err.assert.as.identifier=\ - as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ - (use -source 1.3 or lower to use ''assert'' as an identifier) + as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier # TODO 308: make a better error message compiler.err.this.as.identifier=\ @@ -2324,21 +2318,6 @@ no annotations are allowed in the type of a class literal # 0: string -compiler.err.generics.not.supported.in.source=\ - generics are not supported in -source {0}\n\ - (use -source 5 or higher to enable generics) - -# 0: string -compiler.err.varargs.not.supported.in.source=\ - variable-arity methods are not supported in -source {0}\n\ - (use -source 5 or higher to enable variable-arity methods) - -# 0: string -compiler.err.annotations.not.supported.in.source=\ - annotations are not supported in -source {0}\n\ - (use -source 5 or higher to enable annotations) - -# 0: string compiler.err.type.annotations.not.supported.in.source=\ type annotations are not supported in -source {0}\n\ (use -source 8 or higher to enable type annotations) @@ -2354,21 +2333,6 @@ (use -source 8 or higher to enable repeated annotations) # 0: string -compiler.err.foreach.not.supported.in.source=\ - enhanced for loops are not supported in -source {0}\n\ - (use -source 5 or higher to enable for-each loops) - -# 0: string -compiler.err.static.import.not.supported.in.source=\ - static import declarations are not supported in -source {0}\n\ - (use -source 5 or higher to enable static import declarations) - -# 0: string -compiler.err.enums.not.supported.in.source=\ - enums are not supported in -source {0}\n\ - (use -source 5 or higher to enable enums) - -# 0: string compiler.err.diamond.not.supported.in.source=\ diamond operator is not supported in -source {0}\n\ (use -source 7 or higher to enable diamond operator)