718 compiler.err.neither.conditional.subtype=\ |
718 compiler.err.neither.conditional.subtype=\ |
719 incompatible types for ?: neither is a subtype of the other\n\ |
719 incompatible types for ?: neither is a subtype of the other\n\ |
720 second operand: {0}\n\ |
720 second operand: {0}\n\ |
721 third operand : {1} |
721 third operand : {1} |
722 |
722 |
|
723 |
723 # 0: message segment |
724 # 0: message segment |
724 compiler.misc.incompatible.type.in.conditional=\ |
725 compiler.misc.incompatible.type.in.conditional=\ |
725 bad type in conditional expression\n\ |
726 bad type in conditional expression\n\ |
726 {0} |
727 {0} |
727 |
728 |
1464 source value {0} is obsolete and will be removed in a future release |
1465 source value {0} is obsolete and will be removed in a future release |
1465 |
1466 |
1466 # 0: string |
1467 # 0: string |
1467 compiler.warn.option.obsolete.target=\ |
1468 compiler.warn.option.obsolete.target=\ |
1468 target value {0} is obsolete and will be removed in a future release |
1469 target value {0} is obsolete and will be removed in a future release |
|
1470 |
|
1471 # 0: string, 1: string |
|
1472 compiler.err.option.removed.source=\ |
|
1473 Source option {0} is no longer supported. Use {1} or later. |
|
1474 |
|
1475 # 0: string, 1: string |
|
1476 compiler.err.option.removed.target=\ |
|
1477 Target option {0} is no longer supported. Use {1} or later. |
1469 |
1478 |
1470 compiler.warn.option.obsolete.suppression=\ |
1479 compiler.warn.option.obsolete.suppression=\ |
1471 To suppress warnings about obsolete options, use -Xlint:-options. |
1480 To suppress warnings about obsolete options, use -Xlint:-options. |
1472 |
1481 |
1473 # 0: name, 1: number, 2: number, 3: number, 4: number |
1482 # 0: name, 1: number, 2: number, 3: number, 4: number |
2233 |
2242 |
2234 ######################################## |
2243 ######################################## |
2235 # Diagnostics for language feature changes |
2244 # Diagnostics for language feature changes |
2236 ######################################## |
2245 ######################################## |
2237 # 0: string |
2246 # 0: string |
2238 compiler.err.unsupported.fp.lit=\ |
|
2239 hexadecimal floating point literals are not supported in -source {0}\n\ |
|
2240 (use -source 5 or higher to enable hexadecimal floating point literals) |
|
2241 |
|
2242 # 0: string |
|
2243 compiler.err.unsupported.binary.lit=\ |
2247 compiler.err.unsupported.binary.lit=\ |
2244 binary literals are not supported in -source {0}\n\ |
2248 binary literals are not supported in -source {0}\n\ |
2245 (use -source 7 or higher to enable binary literals) |
2249 (use -source 7 or higher to enable binary literals) |
2246 |
2250 |
2247 # 0: string |
2251 # 0: string |
2252 # 0: string |
2256 # 0: string |
2253 compiler.err.try.with.resources.not.supported.in.source=\ |
2257 compiler.err.try.with.resources.not.supported.in.source=\ |
2254 try-with-resources is not supported in -source {0}\n\ |
2258 try-with-resources is not supported in -source {0}\n\ |
2255 (use -source 7 or higher to enable try-with-resources) |
2259 (use -source 7 or higher to enable try-with-resources) |
2256 |
2260 |
2257 compiler.warn.enum.as.identifier=\ |
|
2258 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ |
|
2259 (use -source 5 or higher to use ''enum'' as a keyword) |
|
2260 |
|
2261 compiler.warn.assert.as.identifier=\ |
|
2262 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
|
2263 (use -source 1.4 or higher to use ''assert'' as a keyword) |
|
2264 |
|
2265 compiler.warn.underscore.as.identifier=\ |
2261 compiler.warn.underscore.as.identifier=\ |
2266 ''_'' used as an identifier\n\ |
2262 ''_'' used as an identifier\n\ |
2267 (use of ''_'' as an identifier might not be supported in releases after Java SE 8) |
2263 (use of ''_'' as an identifier might not be supported in releases after Java SE 8) |
2268 |
2264 |
2269 compiler.err.underscore.as.identifier.in.lambda=\ |
2265 compiler.err.underscore.as.identifier.in.lambda=\ |
2270 ''_'' used as an identifier\n\ |
2266 ''_'' used as an identifier\n\ |
2271 (use of ''_'' as an identifier is forbidden for lambda parameters) |
2267 (use of ''_'' as an identifier is forbidden for lambda parameters) |
2272 |
2268 |
2273 compiler.err.enum.as.identifier=\ |
2269 compiler.err.enum.as.identifier=\ |
2274 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ |
2270 as of release 5, ''enum'' is a keyword, and may not be used as an identifier |
2275 (use -source 1.4 or lower to use ''enum'' as an identifier) |
|
2276 |
2271 |
2277 compiler.err.assert.as.identifier=\ |
2272 compiler.err.assert.as.identifier=\ |
2278 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
2273 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier |
2279 (use -source 1.3 or lower to use ''assert'' as an identifier) |
|
2280 |
2274 |
2281 # TODO 308: make a better error message |
2275 # TODO 308: make a better error message |
2282 compiler.err.this.as.identifier=\ |
2276 compiler.err.this.as.identifier=\ |
2283 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter |
2277 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter |
2284 |
2278 |
2322 |
2316 |
2323 compiler.err.no.annotations.on.dot.class=\ |
2317 compiler.err.no.annotations.on.dot.class=\ |
2324 no annotations are allowed in the type of a class literal |
2318 no annotations are allowed in the type of a class literal |
2325 |
2319 |
2326 # 0: string |
2320 # 0: string |
2327 compiler.err.generics.not.supported.in.source=\ |
|
2328 generics are not supported in -source {0}\n\ |
|
2329 (use -source 5 or higher to enable generics) |
|
2330 |
|
2331 # 0: string |
|
2332 compiler.err.varargs.not.supported.in.source=\ |
|
2333 variable-arity methods are not supported in -source {0}\n\ |
|
2334 (use -source 5 or higher to enable variable-arity methods) |
|
2335 |
|
2336 # 0: string |
|
2337 compiler.err.annotations.not.supported.in.source=\ |
|
2338 annotations are not supported in -source {0}\n\ |
|
2339 (use -source 5 or higher to enable annotations) |
|
2340 |
|
2341 # 0: string |
|
2342 compiler.err.type.annotations.not.supported.in.source=\ |
2321 compiler.err.type.annotations.not.supported.in.source=\ |
2343 type annotations are not supported in -source {0}\n\ |
2322 type annotations are not supported in -source {0}\n\ |
2344 (use -source 8 or higher to enable type annotations) |
2323 (use -source 8 or higher to enable type annotations) |
2345 |
2324 |
2346 # 0: string |
2325 # 0: string |
2350 |
2329 |
2351 # 0: string |
2330 # 0: string |
2352 compiler.err.repeatable.annotations.not.supported.in.source=\ |
2331 compiler.err.repeatable.annotations.not.supported.in.source=\ |
2353 repeated annotations are not supported in -source {0}\n\ |
2332 repeated annotations are not supported in -source {0}\n\ |
2354 (use -source 8 or higher to enable repeated annotations) |
2333 (use -source 8 or higher to enable repeated annotations) |
2355 |
|
2356 # 0: string |
|
2357 compiler.err.foreach.not.supported.in.source=\ |
|
2358 enhanced for loops are not supported in -source {0}\n\ |
|
2359 (use -source 5 or higher to enable for-each loops) |
|
2360 |
|
2361 # 0: string |
|
2362 compiler.err.static.import.not.supported.in.source=\ |
|
2363 static import declarations are not supported in -source {0}\n\ |
|
2364 (use -source 5 or higher to enable static import declarations) |
|
2365 |
|
2366 # 0: string |
|
2367 compiler.err.enums.not.supported.in.source=\ |
|
2368 enums are not supported in -source {0}\n\ |
|
2369 (use -source 5 or higher to enable enums) |
|
2370 |
2334 |
2371 # 0: string |
2335 # 0: string |
2372 compiler.err.diamond.not.supported.in.source=\ |
2336 compiler.err.diamond.not.supported.in.source=\ |
2373 diamond operator is not supported in -source {0}\n\ |
2337 diamond operator is not supported in -source {0}\n\ |
2374 (use -source 7 or higher to enable diamond operator) |
2338 (use -source 7 or higher to enable diamond operator) |