Tue, 25 Jan 2011 17:02:56 -0800
7013420: Project Coin: remove general expression support from try-with-resources statement
Reviewed-by: mcimadamore, jjg
1 #
2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
26 ##
27 ## errors
28 ##
30 compiler.err.abstract.cant.be.instantiated=\
31 {0} is abstract; cannot be instantiated
32 compiler.err.abstract.meth.cant.have.body=\
33 abstract methods cannot have a body
34 compiler.err.already.annotated=\
35 {0} {1} has already been annotated
36 compiler.err.already.defined=\
37 {0} is already defined in {1}
38 compiler.err.already.defined.single.import=\
39 {0} is already defined in a single-type import
40 compiler.err.already.defined.static.single.import=\
41 {0} is already defined in a static single-type import
42 compiler.err.already.defined.this.unit=\
43 {0} is already defined in this compilation unit
44 compiler.err.annotation.missing.default.value=\
45 annotation {0} is missing value for the attribute {1}
46 compiler.err.annotation.missing.default.value.1=\
47 annotation {0} is missing values for attributes {1}
48 compiler.err.annotation.not.valid.for.type=\
49 annotation not valid for a value of type {0}
50 compiler.err.annotation.type.not.applicable=\
51 annotation type not applicable to this kind of declaration
52 compiler.err.annotation.value.must.be.annotation=\
53 annotation value must be an annotation
54 compiler.err.annotation.value.must.be.class.literal=\
55 annotation value must be a class literal
56 compiler.err.annotation.value.must.be.name.value=\
57 annotation values must be of the form ''name=value''
58 compiler.err.annotation.value.not.allowable.type=\
59 annotation value not of an allowable type
60 compiler.err.anon.class.impl.intf.no.args=\
61 anonymous class implements interface; cannot have arguments
62 compiler.err.anon.class.impl.intf.no.typeargs=\
63 anonymous class implements interface; cannot have type arguments
64 compiler.err.anon.class.impl.intf.no.qual.for.new=\
65 anonymous class implements interface; cannot have qualifier for new
66 compiler.err.array.and.varargs=\
67 cannot declare both {0} and {1} in {2}
68 compiler.err.array.dimension.missing=\
69 array dimension missing
70 compiler.err.array.req.but.found=\
71 array required, but {0} found
73 compiler.err.assignment.from.super-bound=\
74 assigning from wildcard {0}
75 compiler.err.assignment.to.extends-bound=\
76 assigning to wildcard {0}
77 compiler.err.attribute.value.must.be.constant=\
78 attribute value must be constant
80 compiler.err.break.outside.switch.loop=\
81 break outside switch or loop
83 compiler.err.call.must.be.first.stmt.in.ctor=\
84 call to {0} must be first statement in constructor
85 compiler.err.cant.apply.symbol=\
86 {0} {1} in {4} {5} cannot be applied to given types\n\
87 required: {2}\n\
88 found: {3}
89 compiler.err.cant.apply.symbol.1=\
90 {0} {1} in {4} {5} cannot be applied to given types;\n\
91 required: {2}\n\
92 found: {3}\n\
93 reason: {6}
94 compiler.err.cant.apply.symbols=\
95 no suitable {0} found for {1}({2})
96 compiler.err.cant.assign.val.to.final.var=\
97 cannot assign a value to final variable {0}
98 compiler.err.cant.deref=\
99 {0} cannot be dereferenced
100 compiler.err.cant.extend.intf.annotation=\
101 ''extends'' not allowed for @interfaces
102 compiler.err.cant.inherit.from.final=\
103 cannot inherit from final {0}
104 compiler.err.cant.ref.before.ctor.called=\
105 cannot reference {0} before supertype constructor has been called
106 compiler.err.cant.ret.val.from.meth.decl.void=\
107 cannot return a value from method whose result type is void
108 compiler.err.cant.select.static.class.from.param.type=\
109 cannot select a static class from a parameterized type
110 compiler.err.cant.inherit.diff.arg=\
111 {0} cannot be inherited with different arguments: <{1}> and <{2}>
112 compiler.err.catch.without.try=\
113 ''catch'' without ''try''
114 compiler.err.clash.with.pkg.of.same.name=\
115 {0} {1} clashes with package of same name
116 compiler.err.const.expr.req=\
117 constant expression required
118 compiler.err.cont.outside.loop=\
119 continue outside of loop
120 compiler.err.cyclic.inheritance=\
121 cyclic inheritance involving {0}
122 compiler.err.cyclic.annotation.element=\
123 cyclic annotation element type
124 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
125 call to super not allowed in enum constructor
126 compiler.err.no.superclass=\
127 {0} has no superclass
129 compiler.err.wrong.target.for.polymorphic.signature.definition=\
130 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
132 compiler.err.concrete.inheritance.conflict=\
133 methods {0} from {1} and {2} from {3} are inherited with the same signature
135 compiler.err.default.allowed.in.intf.annotation.member=\
136 default value only allowed in an @interface member
137 compiler.err.doesnt.exist=\
138 package {0} does not exist
139 compiler.err.duplicate.annotation=\
140 duplicate annotation
141 compiler.err.duplicate.annotation.member.value=\
142 duplicate annotation member value {0} in {1}
143 compiler.err.duplicate.class=\
144 duplicate class: {0}
145 compiler.err.duplicate.case.label=\
146 duplicate case label
147 compiler.err.duplicate.default.label=\
148 duplicate default label
150 compiler.err.else.without.if=\
151 ''else'' without ''if''
152 compiler.err.empty.char.lit=\
153 empty character literal
154 compiler.err.encl.class.required=\
155 an enclosing instance that contains {0} is required
156 compiler.err.enum.annotation.must.be.enum.constant=\
157 an enum annotation value must be an enum constant
159 compiler.err.enum.cant.be.instantiated=\
160 enum types may not be instantiated
161 compiler.err.enum.label.must.be.unqualified.enum=\
162 an enum switch case label must be the unqualified name of an enumeration constant
163 compiler.err.enum.no.subclassing=\
164 classes cannot directly extend java.lang.Enum
165 compiler.err.enum.types.not.extensible=\
166 enum types are not extensible
167 compiler.err.enum.no.finalize=\
168 enums cannot have finalize methods
169 compiler.err.error.reading.file=\
170 error reading {0}; {1}
171 compiler.err.except.already.caught=\
172 exception {0} has already been caught
173 compiler.err.except.never.thrown.in.try=\
174 exception {0} is never thrown in body of corresponding try statement
176 compiler.err.final.parameter.may.not.be.assigned=\
177 final parameter {0} may not be assigned
178 compiler.err.try.resource.may.not.be.assigned=\
179 auto-closeable resource {0} may not be assigned
180 compiler.err.try.resource.trailing.semi=\
181 illegal trailing semicolon in resources declaration
182 compiler.err.multicatch.parameter.may.not.be.assigned=\
183 multi-catch parameter {0} may not be assigned
184 compiler.err.finally.without.try=\
185 ''finally'' without ''try''
186 compiler.err.foreach.not.applicable.to.type=\
187 for-each not applicable to expression type\n\
188 required: {1}\n\
189 found: {0}
190 compiler.err.fp.number.too.large=\
191 floating point number too large
192 compiler.err.fp.number.too.small=\
193 floating point number too small
195 compiler.err.generic.array.creation=\
196 generic array creation
197 compiler.err.generic.throwable=\
198 a generic class may not extend java.lang.Throwable
200 compiler.err.icls.cant.have.static.decl=\
201 Illegal static declaration in inner class {0}\n\
202 modifier \''static\'' is only allowed in constant variable declarations
203 compiler.err.illegal.char=\
204 illegal character: \\{0}
205 compiler.err.illegal.char.for.encoding=\
206 unmappable character for encoding {0}
207 compiler.err.illegal.combination.of.modifiers=\
208 illegal combination of modifiers: {0} and {1}
209 compiler.err.illegal.enum.static.ref=\
210 illegal reference to static field from initializer
211 compiler.err.illegal.esc.char=\
212 illegal escape character
213 compiler.err.illegal.forward.ref=\
214 illegal forward reference
215 compiler.warn.forward.ref=\
216 reference to variable ''{0}'' before it has been initialized
217 compiler.err.illegal.self.ref=\
218 self-reference in initializer
219 compiler.warn.self.ref=\
220 self-reference in initializer of variable ''{0}''
221 compiler.err.illegal.generic.type.for.instof=\
222 illegal generic type for instanceof
223 compiler.err.illegal.initializer.for.type=\
224 illegal initializer for {0}
225 compiler.err.illegal.line.end.in.char.lit=\
226 illegal line end in character literal
227 compiler.err.illegal.nonascii.digit=\
228 illegal non-ASCII digit
229 compiler.err.illegal.underscore=\
230 illegal underscore
231 compiler.err.illegal.qual.not.icls=\
232 illegal qualifier; {0} is not an inner class
233 compiler.err.illegal.start.of.expr=\
234 illegal start of expression
235 compiler.err.illegal.start.of.type=\
236 illegal start of type
237 compiler.err.illegal.unicode.esc=\
238 illegal unicode escape
239 compiler.err.import.requires.canonical=\
240 import requires canonical name for {0}
241 compiler.err.improperly.formed.type.param.missing=\
242 improperly formed type, some parameters are missing
243 compiler.err.improperly.formed.type.inner.raw.param=\
244 improperly formed type, type arguments given on a raw type
245 compiler.err.incomparable.types=\
246 incomparable types: {0} and {1}
247 compiler.err.int.number.too.large=\
248 integer number too large: {0}
249 compiler.err.internal.error.cant.instantiate=\
250 internal error; cannot instantiate {0} at {1} to ({2})
251 compiler.err.intf.annotation.members.cant.have.params=\
252 @interface members may not have parameters
253 compiler.err.intf.annotation.cant.have.type.params=\
254 @interface may not have type parameters
255 compiler.err.intf.annotation.members.cant.have.type.params=\
256 @interface members may not have type parameters
257 compiler.err.intf.annotation.member.clash=\
258 @interface member clashes with method ''{0}'' in {1}
259 compiler.err.intf.expected.here=\
260 interface expected here
261 compiler.err.intf.meth.cant.have.body=\
262 interface methods cannot have body
263 compiler.err.invalid.annotation.member.type=\
264 invalid type for annotation member
265 compiler.err.invalid.binary.number=\
266 binary numbers must contain at least one binary digit
267 compiler.err.invalid.hex.number=\
268 hexadecimal numbers must contain at least one hexadecimal digit
269 compiler.err.invalid.meth.decl.ret.type.req=\
270 invalid method declaration; return type required
271 compiler.err.varargs.and.old.array.syntax=\
272 legacy array notation not allowed on variable-arity parameter
274 compiler.err.label.already.in.use=\
275 label {0} already in use
276 compiler.err.local.var.accessed.from.icls.needs.final=\
277 local variable {0} is accessed from within inner class; needs to be declared final
278 compiler.err.local.enum=\
279 enum types must not be local
280 compiler.err.cannot.create.array.with.type.arguments=\
281 cannot create array with type arguments
283 #
284 # limits. We don't give the limits in the diagnostic because we expect
285 # them to change, yet we want to use the same diagnostic. These are all
286 # detected during code generation.
287 #
288 compiler.err.limit.code=\
289 code too large
290 compiler.err.limit.code.too.large.for.try.stmt=\
291 code too large for try statement
292 compiler.err.limit.dimensions=\
293 array type has too many dimensions
294 compiler.err.limit.locals=\
295 too many local variables
296 compiler.err.limit.parameters=\
297 too many parameters
298 compiler.err.limit.pool=\
299 too many constants
300 compiler.err.limit.pool.in.class=\
301 too many constants in class {0}
302 compiler.err.limit.stack=\
303 code requires too much stack
304 compiler.err.limit.string=\
305 constant string too long
306 compiler.err.limit.string.overflow=\
307 UTF8 representation for string \"{0}...\" is too long for the constant pool
309 compiler.err.malformed.fp.lit=\
310 malformed floating point literal
311 compiler.err.method.does.not.override.superclass=\
312 method does not override or implement a method from a supertype
313 compiler.err.missing.meth.body.or.decl.abstract=\
314 missing method body, or declare abstract
315 compiler.err.missing.ret.stmt=\
316 missing return statement
317 compiler.err.missing.ret.val=\
318 missing return value
319 compiler.err.mod.not.allowed.here=\
320 modifier {0} not allowed here
321 compiler.err.intf.not.allowed.here=\
322 interface not allowed here
323 compiler.err.enums.must.be.static=\
324 enum declarations allowed only in static contexts
326 compiler.err.name.clash.same.erasure=\
327 name clash: {0} and {1} have the same erasure
328 compiler.err.name.clash.same.erasure.no.override=\
329 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
330 compiler.err.name.reserved.for.internal.use=\
331 {0} is reserved for internal use
332 compiler.err.native.meth.cant.have.body=\
333 native methods cannot have a body
334 compiler.err.neither.conditional.subtype=\
335 incompatible types for ?: neither is a subtype of the other\n\
336 second operand: {0}\n\
337 third operand : {1}
338 compiler.err.new.not.allowed.in.annotation=\
339 ''new'' not allowed in an annotation
340 compiler.err.no.annotation.member=\
341 no annotation member {0} in {1}
342 compiler.err.no.encl.instance.of.type.in.scope=\
343 no enclosing instance of type {0} is in scope
344 compiler.err.no.intf.expected.here=\
345 no interface expected here
346 compiler.err.no.match.entry=\
347 {0} has no match in entry in {1}; required {2}
348 compiler.err.not.annotation.type=\
349 {0} is not an annotation type
350 compiler.err.not.def.access.class.intf.cant.access=\
351 {0} in {1} is defined in an inaccessible class or interface
352 compiler.err.not.def.public.cant.access=\
353 {0} is not public in {1}; cannot be accessed from outside package
354 compiler.err.not.loop.label=\
355 not a loop label: {0}
356 compiler.err.not.stmt=\
357 not a statement
358 compiler.err.not.encl.class=\
359 not an enclosing class: {0}
361 compiler.err.operator.cant.be.applied=\
362 bad operand type {1} for unary operator ''{0}''
363 compiler.err.operator.cant.be.applied.1=\
364 bad operand types for binary operator ''{0}''\n\
365 first type: {1}\n\
366 second type: {2}
368 compiler.err.pkg.annotations.sb.in.package-info.java=\
369 package annotations should be in file package-info.java
370 compiler.err.pkg.clashes.with.class.of.same.name=\
371 package {0} clashes with class of same name
373 compiler.err.warnings.and.werror=\
374 warnings found and -Werror specified
376 # Errors related to annotation processing
378 compiler.err.proc.cant.access=\
379 cannot access {0}\n\
380 {1}\n\
381 Consult the following stack trace for details.\n\
382 {2}
384 compiler.err.proc.cant.find.class=\
385 Could not find class file for ''{0}''.
387 # Print a client-generated error message; assumed to be localized, no translation required
388 compiler.err.proc.messager=\
389 {0}
391 compiler.err.proc.no.explicit.annotation.processing.requested=\
392 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
394 compiler.err.proc.no.service=\
395 A service loader class could not be found.\n\
396 Either java.util.ServiceLoader or sun.misc.Service must be available.
398 compiler.err.proc.processor.bad.option.name=\
399 Bad option name ''{0}'' provided by processor ''{1}''
401 compiler.err.proc.processor.cant.instantiate=\
402 Could not instantiate an instance of processor ''{0}''
404 compiler.err.proc.processor.constructor.error=\
405 Exception thrown while constructing Processor object: {0}
407 compiler.err.proc.processor.not.found=\
408 Annotation processor ''{0}'' not found
410 compiler.err.proc.processor.wrong.type=\
411 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
413 compiler.err.proc.service.problem=\
414 Error creating a service loader to load Processors.
416 compiler.err.proc.bad.config.file=\
417 Bad service configuration file, or exception thrown while constructing Processor object: {0}
419 compiler.err.proc.cant.create.loader=\
420 Could not create class loader for annotation processors: {0}
422 compiler.err.qualified.new.of.static.class=\
423 qualified new of static class
425 compiler.err.recursive.ctor.invocation=\
426 recursive constructor invocation
427 compiler.err.ref.ambiguous=\
428 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
429 compiler.err.repeated.annotation.target=\
430 repeated annotation target
431 compiler.err.repeated.interface=\
432 repeated interface
433 compiler.err.repeated.modifier=\
434 repeated modifier
435 compiler.err.report.access=\
436 {0} has {1} access in {2}
437 compiler.err.ret.outside.meth=\
438 return outside method
440 compiler.err.signature.doesnt.match.supertype=\
441 signature does not match {0}; incompatible supertype
442 compiler.err.signature.doesnt.match.intf=\
443 signature does not match {0}; incompatible interfaces
444 compiler.err.does.not.override.abstract=\
445 {0} is not abstract and does not override abstract method {1} in {2}
446 compiler.err.source.cant.overwrite.input.file=\
447 error writing source; cannot overwrite input file {0}
448 compiler.err.stack.sim.error=\
449 Internal error: stack sim error on {0}
450 compiler.err.static.imp.only.classes.and.interfaces=\
451 static import only from classes and interfaces
452 compiler.err.string.const.req=\
453 constant string expression required
454 compiler.err.synthetic.name.conflict=\
455 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
456 compiler.warn.synthetic.name.conflict=\
457 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
459 compiler.err.throws.not.allowed.in.intf.annotation=\
460 throws clause not allowed in @interface members
461 compiler.err.try.without.catch.or.finally=\
462 ''try'' without ''catch'' or ''finally''
463 compiler.err.try.without.catch.finally.or.resource.decls=\
464 ''try'' without ''catch'', ''finally'' or resource declarations
465 compiler.err.type.doesnt.take.params=\
466 type {0} does not take parameters
467 compiler.err.type.var.cant.be.deref=\
468 cannot select from a type variable
469 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
470 a type variable may not be followed by other bounds
471 compiler.err.type.var.more.than.once=\
472 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
473 compiler.err.type.var.more.than.once.in.result=\
474 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
475 compiler.err.types.incompatible.diff.ret=\
476 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
478 compiler.err.unclosed.char.lit=\
479 unclosed character literal
480 compiler.err.unclosed.comment=\
481 unclosed comment
482 compiler.err.unclosed.str.lit=\
483 unclosed string literal
484 compiler.err.unknown.enum.constant=\
485 in class file {0}: unknown enum constant {1}.{2}
486 compiler.err.unsupported.encoding=\
487 unsupported encoding: {0}
488 compiler.err.io.exception=\
489 error reading source file: {0}
490 compiler.err.undef.label=\
491 undefined label: {0}
492 compiler.err.undetermined.type=\
493 cannot infer type arguments for {0}
494 compiler.err.undetermined.type.1=\
495 cannot infer type arguments for {0};\n\
496 reason: {1}
497 compiler.err.invalid.inferred.types=\
498 invalid inferred types for {0}; {1}
499 compiler.err.cant.apply.diamond=\
500 cannot infer type arguments for {0}
501 compiler.err.cant.apply.diamond.1=\
502 cannot infer type arguments for {0};\n\
503 reason: {1}
504 compiler.err.unreachable.stmt=\
505 unreachable statement
506 compiler.err.initializer.must.be.able.to.complete.normally=\
507 initializer must be able to complete normally
508 compiler.err.unreported.exception.need.to.catch.or.throw=\
509 unreported exception {0}; must be caught or declared to be thrown
510 compiler.err.unreported.exception.default.constructor=\
511 unreported exception {0} in default constructor
512 compiler.err.unsupported.cross.fp.lit=\
513 hexadecimal floating-point literals are not supported on this VM
514 compiler.err.void.not.allowed.here=\
515 ''void'' type not allowed here
517 compiler.err.wrong.number.type.args=\
518 wrong number of type arguments; required {0}
520 compiler.err.var.might.already.be.assigned=\
521 variable {0} might already have been assigned
522 compiler.err.var.might.not.have.been.initialized=\
523 variable {0} might not have been initialized
524 compiler.err.var.might.be.assigned.in.loop=\
525 variable {0} might be assigned in loop
527 compiler.err.varargs.invalid.trustme.anno=\
528 Invalid {0} annotation. {1}
529 compiler.misc.varargs.trustme.on.reifiable.varargs=\
530 Varargs element type {0} is reifiable.
531 compiler.misc.varargs.trustme.on.non.varargs.meth=\
532 Method {0} is not a varargs method.
533 compiler.misc.varargs.trustme.on.virtual.varargs=\
534 Instance method {0} is not final.
536 # In the following string, {1} will always be the detail message from
537 # java.io.IOException.
538 compiler.err.class.cant.write=\
539 error while writing {0}: {1}
541 # In the following string, {0} is the name of the class in the Java source.
542 # It really should be used two times..
543 compiler.err.class.public.should.be.in.file=\
544 class {0} is public, should be declared in a file named {0}.java
546 ## All errors which do not refer to a particular line in the source code are
547 ## preceded by this string.
548 compiler.err.error=\
549 error:\u0020
551 # The following error messages do not refer to a line in the source code.
552 compiler.err.cant.read.file=\
553 cannot read: {0}
555 #####
557 # Fatal Errors
559 compiler.misc.fatal.err.no.java.lang=\
560 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
561 compiler.misc.fatal.err.cant.locate.meth=\
562 Fatal Error: Unable to find method {0}
563 compiler.misc.fatal.err.cant.locate.field=\
564 Fatal Error: Unable to find field {0}
565 compiler.misc.fatal.err.cant.locate.ctor=\
566 Fatal Error: Unable to find constructor for {0}
567 compiler.misc.fatal.err.cant.close.loader=\
568 Fatal Error: Cannot close class loader for annotation processors
570 #####
572 ##
573 ## miscellaneous strings
574 ##
576 compiler.misc.source.unavailable=\
577 (source unavailable)
578 compiler.misc.base.membership=\
579 all your base class are belong to us
580 compiler.misc.x.print.processor.info=\
581 Processor {0} matches {1} and returns {2}.
582 compiler.misc.x.print.rounds=\
583 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
585 #####
587 ## The following string will appear before all messages keyed as:
588 ## "compiler.note".
589 compiler.note.note=\
590 Note:\u0020
592 compiler.note.deprecated.filename=\
593 {0} uses or overrides a deprecated API.
594 compiler.note.deprecated.plural=\
595 Some input files use or override a deprecated API.
596 # The following string may appear after one of the above deprecation
597 # messages.
598 compiler.note.deprecated.recompile=\
599 Recompile with -Xlint:deprecation for details.
601 compiler.note.deprecated.filename.additional=\
602 {0} has additional uses or overrides of a deprecated API.
603 compiler.note.deprecated.plural.additional=\
604 Some input files additionally use or override a deprecated API.
606 compiler.note.unchecked.filename=\
607 {0} uses unchecked or unsafe operations.
608 compiler.note.unchecked.plural=\
609 Some input files use unchecked or unsafe operations.
610 # The following string may appear after one of the above deprecation
611 # messages.
612 compiler.note.unchecked.recompile=\
613 Recompile with -Xlint:unchecked for details.
615 compiler.note.unchecked.filename.additional=\
616 {0} has additional unchecked or unsafe operations.
617 compiler.note.unchecked.plural.additional=\
618 Some input files additionally use unchecked or unsafe operations.
620 compiler.note.sunapi.filename=\
621 {0} uses internal proprietary API that may be removed in a future release.
622 compiler.note.sunapi.plural=\
623 Some input files use internal proprietary API that may be removed in a future release.
624 # The following string may appear after one of the above sunapi messages.
625 compiler.note.sunapi.recompile=\
626 Recompile with -Xlint:sunapi for details.
628 compiler.note.sunapi.filename.additional=\
629 {0} uses additional internal proprietary API that may be removed in a future release.
630 compiler.note.sunapi.plural.additional=\
631 Some input files additionally use internal proprietary API that may be removed in a future release.
633 # Notes related to annotation processing
635 # Print a client-generated note; assumed to be localized, no translation required
636 compiler.note.proc.messager=\
637 {0}
639 #####
641 compiler.misc.count.error=\
642 {0} error
643 compiler.misc.count.error.plural=\
644 {0} errors
645 compiler.misc.count.warn=\
646 {0} warning
647 compiler.misc.count.warn.plural=\
648 {0} warnings
650 compiler.misc.version.not.available=\
651 (version info not available)
653 ## extra output when using -verbose (JavaCompiler)
655 compiler.misc.verbose.checking.attribution=\
656 [checking {0}]
657 compiler.misc.verbose.parsing.done=\
658 [parsing completed {0}ms]
659 compiler.misc.verbose.parsing.started=\
660 [parsing started {0}]
661 compiler.misc.verbose.total=\
662 [total {0}ms]
663 compiler.misc.verbose.wrote.file=\
664 [wrote {0}]
666 ## extra output when using -verbose (Retro)
667 compiler.misc.verbose.retro=\
668 [retrofitting {0}]
669 compiler.misc.verbose.retro.with=\
670 \tretrofitting {0} with {1}
671 compiler.misc.verbose.retro.with.list=\
672 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
674 ## extra output when using -verbose (code/ClassReader)
675 compiler.misc.verbose.loading=\
676 [loading {0}]
678 compiler.misc.verbose.sourcepath=\
679 [search path for source files: {0}]
681 compiler.misc.verbose.classpath=\
682 [search path for class files: {0}]
684 ## extra output when using -checkclassfile (code/ClassReader)
685 compiler.misc.ccf.found.later.version=\
686 class file has later version than expected: {0}
687 compiler.misc.ccf.unrecognized.attribute=\
688 unrecognized attribute: {0}
690 ## extra output when using -prompt (util/Log)
691 compiler.misc.resume.abort=\
692 R)esume, A)bort>
694 #####
696 ##
697 ## warnings
698 ##
700 ## All warning messages are preceded by the following string.
701 compiler.warn.warning=\
702 warning:\u0020
704 ## Warning messages may also include the following prefix to identify a
705 ## lint option
706 compiler.warn.lintOption=\
707 [{0}]\u0020
709 compiler.warn.constant.SVUID=\
710 serialVersionUID must be constant in class {0}
712 compiler.warn.dir.path.element.not.found=\
713 bad path element "{0}": no such directory
715 compiler.warn.finally.cannot.complete=\
716 finally clause cannot complete normally
718 compiler.warn.has.been.deprecated=\
719 {0} in {1} has been deprecated
721 compiler.warn.sun.proprietary=\
722 {0} is internal proprietary API and may be removed in a future release
724 compiler.warn.illegal.char.for.encoding=\
725 unmappable character for encoding {0}
727 compiler.warn.improper.SVUID=\
728 serialVersionUID must be declared static final in class {0}
730 compiler.warn.inexact.non-varargs.call=\
731 non-varargs call of varargs method with inexact argument type for last parameter;\n\
732 cast to {0} for a varargs call\n\
733 cast to {1} for a non-varargs call and to suppress this warning
735 compiler.warn.long.SVUID=\
736 serialVersionUID must be of type long in class {0}
738 compiler.warn.missing.SVUID=\
739 serializable class {0} has no definition of serialVersionUID
741 compiler.warn.override.varargs.missing=\
742 {0}; overridden method has no ''...''
743 compiler.warn.override.varargs.extra=\
744 {0}; overriding method is missing ''...''
745 compiler.warn.override.bridge=\
746 {0}; overridden method is a bridge method
748 compiler.warn.pkg-info.already.seen=\
749 a package-info.java file has already been seen for package {0}
751 compiler.warn.path.element.not.found=\
752 bad path element "{0}": no such file or directory
754 compiler.warn.possible.fall-through.into.case=\
755 possible fall-through into case
757 compiler.warn.redundant.cast=\
758 redundant cast to {0}
760 compiler.warn.position.overflow=\
761 Position encoding overflows at line {0}
763 compiler.warn.big.major.version=\
764 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
765 It is recommended that the compiler be upgraded.
767 compiler.warn.static.not.qualified.by.type=\
768 static {0} should be qualified by type name, {1}, instead of by an expression
770 compiler.warn.source.no.bootclasspath=\
771 bootstrap class path not set in conjunction with -source {0}
773 compiler.warn.future.attr=\
774 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
776 # Warnings related to annotation processing
777 compiler.warn.proc.package.does.not.exist=\
778 package {0} does not exist
779 compiler.warn.proc.file.reopening=\
780 Attempt to create a file for ''{0}'' multiple times
782 compiler.warn.proc.type.already.exists=\
783 A file for type ''{0}'' already exists on the sourcepath or classpath
785 compiler.warn.proc.type.recreate=\
786 Attempt to create a file for type ''{0}'' multiple times
788 compiler.warn.proc.illegal.file.name=\
789 Cannot create file for illegal name ''{0}''.
791 compiler.warn.proc.suspicious.class.name=\
792 Creating file for a type whose name ends in {1}: ''{0}''
794 compiler.warn.proc.file.create.last.round=\
795 File for type ''{0}'' created in the last round will not be subject to annotation processing.
797 compiler.warn.proc.malformed.supported.string=\
798 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
800 compiler.warn.proc.annotations.without.processors=\
801 No processor claimed any of these annotations: {0}
803 compiler.warn.proc.processor.incompatible.source.version=\
804 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
806 compiler.warn.proc.proc-only.requested.no.procs=\
807 Annotation processing without compilation requested but no processors were found.
809 compiler.warn.proc.use.implicit=\
810 Implicitly compiled files were not subject to annotation processing.\n\
811 Use -implicit to specify a policy for implicit compilation.
813 compiler.warn.proc.use.proc.or.implicit=\
814 Implicitly compiled files were not subject to annotation processing.\n\
815 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
817 # Print a client-generated warning; assumed to be localized, no translation required
818 compiler.warn.proc.messager=\
819 {0}
821 compiler.warn.proc.unclosed.type.files=\
822 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
824 compiler.warn.proc.unmatched.processor.options=\
825 The following options were not recognized by any processor: ''{0}''
827 compiler.warn.try.explicit.close.call=\
828 explicit call to close() on an auto-closeable resource
829 compiler.warn.try.resource.not.referenced=\
830 auto-closeable resource {0} is never referenced in body of corresponding try statement
831 compiler.warn.unchecked.assign=\
832 unchecked assignment: {0} to {1}
833 compiler.warn.unchecked.assign.to.var=\
834 unchecked assignment to variable {0} as member of raw type {1}
835 compiler.warn.unchecked.call.mbr.of.raw.type=\
836 unchecked call to {0} as a member of the raw type {1}
837 compiler.warn.unchecked.cast.to.type=\
838 unchecked cast to type {0}
839 compiler.warn.unchecked.meth.invocation.applied=\
840 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
841 required: {2}\n\
842 found: {3}
844 compiler.warn.unchecked.generic.array.creation=\
845 unchecked generic array creation for varargs parameter of type {0}
847 compiler.warn.unchecked.varargs.non.reifiable.type=\
848 Possible heap pollution from parameterized vararg type {0}
850 compiler.warn.varargs.unsafe.use.varargs.param=\
851 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
853 compiler.warn.missing.deprecated.annotation=\
854 deprecated item is not annotated with @Deprecated
856 compiler.warn.invalid.archive.file=\
857 Unexpected file on path: {0}
859 compiler.warn.unexpected.archive.file=\
860 Unexpected extension for archive file: {0}
862 compiler.warn.div.zero=\
863 division by zero
865 compiler.warn.empty.if=\
866 empty statement after if
868 compiler.warn.annotation.method.not.found=\
869 Cannot find annotation method ''{1}()'' in type ''{0}''
871 compiler.warn.annotation.method.not.found.reason=\
872 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
874 compiler.warn.raw.class.use=\
875 found raw type: {0}\n\
876 missing type arguments for generic class {1}
878 compiler.warn.diamond.redundant.args=\
879 redundant type arguments in new expression (use diamond operator instead).
880 compiler.warn.diamond.redundant.args.1=\
881 redundant type arguments in new expression (use diamond operator instead).\n\
882 explicit: {0}\n\
883 inferred: {1}
885 compiler.warn.varargs.redundant.trustme.anno=\
886 Redundant {0} annotation. {1}
888 #####
890 ## The following are tokens which are non-terminals in the language. They should
891 ## be named as JLS3 calls them when translated to the appropriate language.
892 compiler.misc.token.identifier=\
893 <identifier>
894 compiler.misc.token.character=\
895 <character>
896 compiler.misc.token.string=\
897 <string>
898 compiler.misc.token.integer=\
899 <integer>
900 compiler.misc.token.long-integer=\
901 <long integer>
902 compiler.misc.token.float=\
903 <float>
904 compiler.misc.token.double=\
905 <double>
906 compiler.misc.token.bad-symbol=\
907 <bad symbol>
908 compiler.misc.token.end-of-input=\
909 <end of input>
911 ## The argument to the following string will always be one of the following:
912 ## 1. one of the above non-terminals
913 ## 2. a keyword (JLS1.8)
914 ## 3. a boolean literal (JLS3.10.3)
915 ## 4. the null literal (JLS3.10.7)
916 ## 5. a Java separator (JLS3.11)
917 ## 6. an operator (JLS3.12)
918 ##
919 ## This is the only place these tokens will be used.
920 compiler.err.expected=\
921 {0} expected
922 compiler.err.expected2=\
923 {0} or {1} expected
924 compiler.err.expected3=\
925 {0}, {1}, or {2} expected
927 compiler.err.premature.eof=\
928 reached end of file while parsing
930 ## The following are related in form, but do not easily fit the above paradigm.
931 compiler.err.dot.class.expected=\
932 ''.class'' expected
934 ## The argument to this string will always be either 'case' or 'default'.
935 compiler.err.orphaned=\
936 orphaned {0}
938 compiler.misc.anonymous.class=\
939 <anonymous {0}>
941 compiler.misc.type.captureof=\
942 capture#{0} of {1}
944 compiler.misc.type.captureof.1=\
945 capture#{0}
947 compiler.misc.type.none=\
948 <none>
950 compiler.misc.unnamed.package=\
951 unnamed package
953 #####
955 compiler.err.cant.access=\
956 cannot access {0}\n\
957 {1}
959 compiler.misc.bad.class.file.header=\
960 bad class file: {0}\n\
961 {1}\n\
962 Please remove or make sure it appears in the correct subdirectory of the classpath.
963 compiler.misc.bad.source.file.header=\
964 bad source file: {0}\n\
965 {1}\n\
966 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
968 ## The following are all possible strings for the second argument ({1}) of the
969 ## above strings.
970 compiler.misc.bad.class.signature=\
971 bad class signature: {0}
972 compiler.misc.bad.enclosing.method=\
973 bad enclosing method attribute: {0}
974 compiler.misc.bad.runtime.invisible.param.annotations=\
975 bad RuntimeInvisibleParameterAnnotations attribute: {0}
976 compiler.misc.bad.const.pool.tag=\
977 bad constant pool tag: {0}
978 compiler.misc.bad.const.pool.tag.at=\
979 bad constant pool tag: {0} at {1}
980 compiler.misc.bad.signature=\
981 bad signature: {0}
982 compiler.misc.class.file.wrong.class=\
983 class file contains wrong class: {0}
984 compiler.misc.class.file.not.found=\
985 class file for {0} not found
986 compiler.misc.file.doesnt.contain.class=\
987 file does not contain class {0}
988 compiler.misc.file.does.not.contain.package=\
989 file does not contain package {0}
990 compiler.misc.illegal.start.of.class.file=\
991 illegal start of class file
992 compiler.misc.unable.to.access.file=\
993 unable to access file: {0}
994 compiler.misc.unicode.str.not.supported=\
995 unicode string in class file not supported
996 compiler.misc.undecl.type.var=\
997 undeclared type variable: {0}
998 compiler.misc.wrong.version=\
999 class file has wrong version {0}.{1}, should be {2}.{3}
1001 #####
1003 compiler.err.not.within.bounds=\
1004 type argument {0} is not within bounds of type-variable {1}
1006 ## The following are all possible strings for the second argument ({1}) of the
1007 ## above string.
1009 ## none yet...
1011 #####
1013 compiler.err.prob.found.req=\
1014 {0}\n\
1015 required: {2}\n\
1016 found: {1}
1017 compiler.warn.prob.found.req=\
1018 {0}\n\
1019 required: {2}\n\
1020 found: {1}
1021 compiler.err.prob.found.req.1=\
1022 {0} {3}\n\
1023 required: {2}\n\
1024 found: {1}
1026 ## The following are all possible strings for the first argument ({0}) of the
1027 ## above strings.
1028 compiler.misc.incompatible.types=\
1029 incompatible types
1030 compiler.misc.incompatible.types.1=\
1031 incompatible types; {0}
1032 compiler.misc.inconvertible.types=\
1033 inconvertible types
1034 compiler.misc.possible.loss.of.precision=\
1035 possible loss of precision
1037 compiler.misc.unchecked.assign=\
1038 unchecked conversion
1039 # compiler.misc.storecheck=\
1040 # assignment might cause later store checks to fail
1041 # compiler.misc.unchecked=\
1042 # assigned array cannot dynamically check its stores
1043 compiler.misc.unchecked.cast.to.type=\
1044 unchecked cast
1046 compiler.misc.assignment.from.super-bound=\
1047 assignment from super-bound type {0}
1048 compiler.misc.assignment.to.extends-bound=\
1049 assignment to extends-bound type {0}
1050 # compiler.err.star.expected=\
1051 # ''*'' expected
1052 # compiler.err.no.elem.type=\
1053 # \[\*\] cannot have a type
1055 compiler.misc.try.not.applicable.to.type=\
1056 try-with-resources not applicable to variable type
1058 #####
1060 compiler.err.type.found.req=\
1061 unexpected type\n\
1062 required: {1}\n\
1063 found: {0}
1065 ## The following are all possible strings for the first argument ({0}) of the
1066 ## above string.
1067 compiler.misc.type.req.class=\
1068 class
1069 compiler.misc.type.req.class.array=\
1070 class or array
1071 compiler.misc.type.req.array.or.iterable=\
1072 array or java.lang.Iterable
1073 compiler.misc.type.req.ref=\
1074 reference
1075 compiler.misc.type.req.exact=\
1076 class or interface without bounds
1077 compiler.misc.type.parameter=\
1078 type parameter {0}
1080 #####
1082 ## The following are all possible strings for the last argument of all those
1083 ## diagnostics whose key ends in ".1"
1084 compiler.misc.undetermined.type=\
1085 undetermined type
1086 compiler.misc.type.variable.has.undetermined.type=\
1087 type variable {0} has undetermined type
1088 compiler.misc.no.unique.maximal.instance.exists=\
1089 no unique maximal instance exists for type variable {0} with upper bounds {1}
1090 compiler.misc.no.unique.minimal.instance.exists=\
1091 no unique minimal instance exists for type variable {0} with lower bounds {1}
1092 compiler.misc.infer.no.conforming.instance.exists=\
1093 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1094 compiler.misc.infer.no.conforming.assignment.exists=\
1095 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1096 compiler.misc.infer.arg.length.mismatch=\
1097 cannot instantiate from arguments because actual and formal argument lists differ in length
1098 compiler.misc.inferred.do.not.conform.to.bounds=\
1099 inferred type does not conform to declared bound(s)\n\
1100 inferred: {0}\n\
1101 bound(s): {1}
1102 compiler.misc.inferred.do.not.conform.to.params=\
1103 actual arguments do not conform to inferred formal arguments\n\
1104 required: {0}\n\
1105 found: {1}
1106 compiler.misc.diamond=\
1107 {0}<>
1108 compiler.misc.diamond.invalid.arg=\
1109 type argument {0} inferred for {1} is not allowed in this context
1110 compiler.misc.diamond.invalid.args=\
1111 type arguments {0} inferred for {1} are not allowed in this context
1113 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1114 explicit type argument {0} does not conform to declared bound(s) {1}
1116 compiler.misc.arg.length.mismatch=\
1117 actual and formal argument lists differ in length
1118 compiler.misc.no.conforming.assignment.exists=\
1119 actual argument {0} cannot be converted to {1} by method invocation conversion
1120 compiler.misc.varargs.argument.mismatch=\
1121 argument type {0} does not conform to vararg element type {1}
1122 #####
1124 ## The first argument ({0}) is a "kindname".
1125 compiler.err.abstract.cant.be.accessed.directly=\
1126 abstract {0} {1} in {2} cannot be accessed directly
1128 ## The first argument ({0}) is a "kindname".
1129 compiler.err.non-static.cant.be.ref=\
1130 non-static {0} {1} cannot be referenced from a static context
1132 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1133 ## of kindnames (the list should be identical to that provided in source.
1134 compiler.err.unexpected.type=\
1135 unexpected type\n\
1136 required: {0}\n\
1137 found: {1}
1139 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1140 ## The second argument {1} is the non-resolved symbol
1141 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1142 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1143 compiler.err.cant.resolve=\
1144 cannot find symbol\n\
1145 symbol: {0} {1}
1147 compiler.err.cant.resolve.args=\
1148 cannot find symbol\n\
1149 symbol: {0} {1}({3})
1151 compiler.err.cant.resolve.args.params=\
1152 cannot find symbol\n\
1153 symbol: {0} <{2}>{1}({3})
1155 ## arguments from {0} to {3} have the same meaning as above
1156 ## The fifth argument {4} is a location subdiagnostic (see below)
1157 compiler.err.cant.resolve.location=\
1158 cannot find symbol\n\
1159 symbol: {0} {1}\n\
1160 location: {4}
1162 compiler.err.cant.resolve.location.args=\
1163 cannot find symbol\n\
1164 symbol: {0} {1}({3})\n\
1165 location: {4}
1167 compiler.err.cant.resolve.location.args.params=\
1168 cannot find symbol\n\
1169 symbol: {0} <{2}>{1}({3})\n\
1170 location: {4}
1172 ##a location subdiagnostic is composed as follows:
1173 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1174 ## The second argument {1} is the location name
1175 ## The third argument {2} is the location type (only when {1} is a variable name)
1177 compiler.misc.location=\
1178 {0} {1}
1179 compiler.misc.location.1=\
1180 {0} {1} of type {2}
1182 ## The following are all possible string for "kindname".
1183 ## They should be called whatever the JLS calls them after it been translated
1184 ## to the appropriate language.
1185 # compiler.misc.kindname.constructor=\
1186 # static member
1187 compiler.misc.kindname.annotation=\
1188 @interface
1189 compiler.misc.kindname.constructor=\
1190 constructor
1191 compiler.misc.kindname.enum=\
1192 enum
1193 compiler.misc.kindname.interface=\
1194 interface
1195 compiler.misc.kindname.static=\
1196 static
1197 compiler.misc.kindname.type.variable=\
1198 type variable
1199 compiler.misc.kindname.type.variable.bound=\
1200 bound of type variable
1201 compiler.misc.kindname.variable=\
1202 variable
1203 compiler.misc.kindname.value=\
1204 value
1205 compiler.misc.kindname.method=\
1206 method
1207 compiler.misc.kindname.class=\
1208 class
1209 compiler.misc.kindname.package=\
1210 package
1211 #####
1213 compiler.misc.no.args=\
1214 no arguments
1216 compiler.err.override.static=\
1217 {0}\n\
1218 overriding method is static
1219 compiler.err.override.meth=\
1220 {0}\n\
1221 overridden method is {1}
1223 compiler.err.override.meth.doesnt.throw=\
1224 {0}\n\
1225 overridden method does not throw {1}
1227 # In the following string {1} is a space separated list of Java Keywords, as
1228 # they would have been declared in the source code
1229 compiler.err.override.weaker.access=\
1230 {0}\n\
1231 attempting to assign weaker access privileges; was {1}
1233 compiler.err.override.incompatible.ret=\
1234 {0}\n\
1235 return type {1} is not compatible with {2}
1237 compiler.warn.override.unchecked.ret=\
1238 {0}\n\
1239 return type requires unchecked conversion from {1} to {2}
1241 compiler.warn.override.unchecked.thrown=\
1242 {0}\n\
1243 overridden method does not throw {1}
1245 ## The following are all possible strings for the first argument ({0}) of the
1246 ## above strings.
1247 compiler.misc.cant.override=\
1248 {0} in {1} cannot override {2} in {3}
1249 compiler.misc.cant.implement=\
1250 {0} in {1} cannot implement {2} in {3}
1251 compiler.misc.clashes.with=\
1252 {0} in {1} clashes with {2} in {3}
1253 compiler.misc.unchecked.override=\
1254 {0} in {1} overrides {2} in {3}
1255 compiler.misc.unchecked.implement=\
1256 {0} in {1} implements {2} in {3}
1257 compiler.misc.unchecked.clash.with=\
1258 {0} in {1} overrides {2} in {3}
1259 compiler.misc.varargs.override=\
1260 {0} in {1} overrides {2} in {3}
1261 compiler.misc.varargs.implement=\
1262 {0} in {1} implements {2} in {3}
1263 compiler.misc.varargs.clash.with=\
1264 {0} in {1} overrides {2} in {3}
1265 compiler.misc.non.denotable.type=\
1266 Non-denotable type {0} not allowed here
1268 compiler.misc.inapplicable.method=\
1269 {0} {1}.{2} is not applicable\n\
1270 ({3})
1272 ########################################
1273 # Diagnostics for language feature changes
1274 ########################################
1275 compiler.err.unsupported.fp.lit=\
1276 hexadecimal floating point literals are not supported in -source {0}\n\
1277 (use -source 5 or higher to enable hexadecimal floating point literals)
1279 compiler.err.unsupported.binary.lit=\
1280 binary literals are not supported in -source {0}\n\
1281 (use -source 7 or higher to enable binary literals)
1283 compiler.err.unsupported.underscore.lit=\
1284 underscores in literals are not supported in -source {0}\n\
1285 (use -source 7 or higher to enable underscores in literals)
1287 compiler.err.try.with.resources.not.supported.in.source=\
1288 try-with-resources is not supported in -source {0}\n\
1289 (use -source 7 or higher to enable try-with-resources)
1291 compiler.warn.enum.as.identifier=\
1292 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1293 (use -source 5 or higher to use ''enum'' as a keyword)
1295 compiler.warn.assert.as.identifier=\
1296 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1297 (use -source 1.4 or higher to use ''assert'' as a keyword)
1299 compiler.err.enum.as.identifier=\
1300 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1301 (use -source 1.4 or lower to use ''enum'' as an identifier)
1303 compiler.err.assert.as.identifier=\
1304 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1305 (use -source 1.3 or lower to use ''assert'' as an identifier)
1307 compiler.err.generics.not.supported.in.source=\
1308 generics are not supported in -source {0}\n\
1309 (use -source 5 or higher to enable generics)
1311 compiler.err.varargs.not.supported.in.source=\
1312 variable-arity methods are not supported in -source {0}\n\
1313 (use -source 5 or higher to enable variable-arity methods)
1315 compiler.err.annotations.not.supported.in.source=\
1316 annotations are not supported in -source {0}\n\
1317 (use -source 5 or higher to enable annotations)
1319 #308 compiler.err.type.annotations.not.supported.in.source=\
1320 #308 type annotations are not supported in -source {0}\n\
1321 #308 (use -source 7 or higher to enable type annotations)
1323 compiler.err.foreach.not.supported.in.source=\
1324 for-each loops are not supported in -source {0}\n\
1325 (use -source 5 or higher to enable for-each loops)
1327 compiler.err.static.import.not.supported.in.source=\
1328 static import declarations are not supported in -source {0}\n\
1329 (use -source 5 or higher to enable static import declarations)
1331 compiler.err.enums.not.supported.in.source=\
1332 enums are not supported in -source {0}\n\
1333 (use -source 5 or higher to enable enums)
1335 compiler.err.diamond.not.supported.in.source=\
1336 diamond operator is not supported in -source {0}\n\
1337 (use -source 7 or higher to enable diamond operator)
1339 compiler.err.multicatch.not.supported.in.source=\
1340 multi-catch statement is not supported in -source {0}\n\
1341 (use -source 7 or higher to enable multi-catch statement)
1343 compiler.err.string.switch.not.supported.in.source=\
1344 strings in switch are not supported in -source {0}\n\
1345 (use -source 7 or higher to enable strings in switch)
1347 ########################################
1348 # Diagnostics for where clause implementation
1349 # used by the RichDiagnosticFormatter.
1350 ########################################
1352 compiler.misc.type.null=\
1353 <null>
1355 # X#n (where n is an int id) is disambiguated tvar name
1356 compiler.misc.type.var=\
1357 {0}#{1}
1359 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1360 compiler.misc.captured.type=\
1361 CAP#{0}
1363 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1364 compiler.misc.intersection.type=\
1365 INT#{0}
1367 # where clause for captured type: contains upper ('extends {1}') and lower
1368 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1369 compiler.misc.where.captured=\
1370 {0} extends {1} super: {2} from capture of {3}
1372 # compact where clause for captured type: contains upper ('extends {1}') along
1373 # with the wildcard that generated this captured type ({3})
1374 compiler.misc.where.captured.1=\
1375 {0} extends {1} from capture of {3}
1377 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1378 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1379 compiler.misc.where.typevar=\
1380 {0} extends {1} declared in {2} {3}
1382 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1383 # in which the typevar has been declared
1384 compiler.misc.where.typevar.1=\
1385 {0} declared in {2} {3}
1387 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1388 # of this intersection type
1389 compiler.misc.where.intersection=\
1390 {0} extends {1}
1392 ### Where clause headers ###
1393 compiler.misc.where.description.captured=\
1394 where {0} is a fresh type-variable:
1395 compiler.misc.where.description.typevar=\
1396 where {0} is a type-variable:
1397 compiler.misc.where.description.intersection=\
1398 where {0} is an intersection type:
1399 compiler.misc.where.description.captured.1=\
1400 where {0} are fresh type-variables:
1401 compiler.misc.where.description.typevar.1=\
1402 where {0} are type-variables:
1403 compiler.misc.where.description.intersection.1=\
1404 where {0} are intersection types: