Wed, 21 Sep 2011 21:56:53 -0700
7092965: javac should not close processorClassLoader before end of compilation
Reviewed-by: darcy
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 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
27 # are preceded by a stylized comment describing the type of the corresponding
28 # values.
29 # The types currently in use are
30 #
31 # boolean true or false
32 # file name the name of an input file; e.g. MyFile.java
33 # message segment a sub-message; see compiler.misc.*
34 # modifier a Java modifier; e.g. public, private, protected
35 # name a name, typically a Java identifier
36 # number an integer
37 # option name the name of a command line option
38 # source version a source version number, such as 1.5, 1.6, 1.7
39 # string a general string
40 # symbol the name of a declared type
41 # symbol kind a description of the kind of a declaration; see compiler.misc.kindname.*
42 # token the name of a non-terminal in source code; see compiler.misc.token.*
43 # type a Java type; e.g. int, X, X<T>
44 # unused the value is not used in this message
45 #
46 # list of X a comma-separated list of items; e.g. list of type
47 # X or Y alternation; e.g. message segment or type
48 # set of X a comma-separated collection of items; e.g. set of modifier
49 #
50 # These may be composed: e.g. list of type or message segment
51 #
52 # These comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
53 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
54 # MessageInfo can also be run as a standalone utility providing more facilities
55 # for manipulating this file. For more details, see MessageInfo.java.
57 ##
58 ## errors
59 ##
61 # 0: symbol
62 compiler.err.abstract.cant.be.instantiated=\
63 {0} is abstract; cannot be instantiated
65 compiler.err.abstract.meth.cant.have.body=\
66 abstract methods cannot have a body
68 compiler.err.already.annotated=\
69 {0} {1} has already been annotated
71 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol
72 compiler.err.already.defined=\
73 {0} {1} is already defined in {2} {3}
75 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol
76 compiler.err.already.defined.in.clinit=\
77 {0} {1} is already defined in {2} of {3} {4}
79 # 0: string
80 compiler.err.already.defined.single.import=\
81 {0} is already defined in a single-type import
83 # 0: string
84 compiler.err.already.defined.static.single.import=\
85 {0} is already defined in a static single-type import
87 compiler.err.already.defined.this.unit=\
88 {0} is already defined in this compilation unit
90 # 0: type, 1: list of name
91 compiler.err.annotation.missing.default.value=\
92 annotation {0} is missing value for the attribute {1}
94 # 0: type, 1: list of name
95 compiler.err.annotation.missing.default.value.1=\
96 annotation {0} is missing values for attributes {1}
98 # 0: type
99 compiler.err.annotation.not.valid.for.type=\
100 annotation not valid for a value of type {0}
102 compiler.err.annotation.type.not.applicable=\
103 annotation type not applicable to this kind of declaration
105 compiler.err.annotation.value.must.be.annotation=\
106 annotation value must be an annotation
108 compiler.err.annotation.value.must.be.class.literal=\
109 annotation value must be a class literal
111 compiler.err.annotation.value.must.be.name.value=\
112 annotation values must be of the form ''name=value''
114 compiler.err.annotation.value.not.allowable.type=\
115 annotation value not of an allowable type
117 compiler.err.anon.class.impl.intf.no.args=\
118 anonymous class implements interface; cannot have arguments
120 compiler.err.anon.class.impl.intf.no.typeargs=\
121 anonymous class implements interface; cannot have type arguments
123 compiler.err.anon.class.impl.intf.no.qual.for.new=\
124 anonymous class implements interface; cannot have qualifier for new
126 # 0: symbol, 1: symbol, 2: symbol
127 compiler.err.array.and.varargs=\
128 cannot declare both {0} and {1} in {2}
130 compiler.err.array.dimension.missing=\
131 array dimension missing
133 # 0: type
134 compiler.err.array.req.but.found=\
135 array required, but {0} found
137 compiler.err.assignment.from.super-bound=\
138 assigning from wildcard {0}
140 compiler.err.assignment.to.extends-bound=\
141 assigning to wildcard {0}
143 compiler.err.attribute.value.must.be.constant=\
144 attribute value must be constant
146 compiler.err.break.outside.switch.loop=\
147 break outside switch or loop
149 # 0: name
150 compiler.err.call.must.be.first.stmt.in.ctor=\
151 call to {0} must be first statement in constructor
153 compiler.err.cant.apply.symbol=\
154 {0} {1} in {4} {5} cannot be applied to given types\n\
155 required: {2}\n\
156 found: {3}
158 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
159 compiler.err.cant.apply.symbol.1=\
160 {0} {1} in {4} {5} cannot be applied to given types;\n\
161 required: {2}\n\
162 found: {3}\n\
163 reason: {6}
165 # 0: symbol kind, 1: name, 2: list of type
166 compiler.err.cant.apply.symbols=\
167 no suitable {0} found for {1}({2})
169 # 0: symbol
170 compiler.err.cant.assign.val.to.final.var=\
171 cannot assign a value to final variable {0}
173 # 0: type
174 compiler.err.cant.deref=\
175 {0} cannot be dereferenced
177 compiler.err.cant.extend.intf.annotation=\
178 ''extends'' not allowed for @interfaces
180 # 0: symbol
181 compiler.err.cant.inherit.from.final=\
182 cannot inherit from final {0}
184 # 0: symbol
185 compiler.err.cant.ref.before.ctor.called=\
186 cannot reference {0} before supertype constructor has been called
188 compiler.err.cant.ret.val.from.meth.decl.void=\
189 cannot return a value from method whose result type is void
191 compiler.err.cant.select.static.class.from.param.type=\
192 cannot select a static class from a parameterized type
194 # 0: symbol, 1: string, 2: string
195 compiler.err.cant.inherit.diff.arg=\
196 {0} cannot be inherited with different arguments: <{1}> and <{2}>
198 compiler.err.catch.without.try=\
199 ''catch'' without ''try''
201 # 0: symbol kind, 1: symbol
202 compiler.err.clash.with.pkg.of.same.name=\
203 {0} {1} clashes with package of same name
205 compiler.err.const.expr.req=\
206 constant expression required
208 compiler.err.cont.outside.loop=\
209 continue outside of loop
211 # 0: symbol
212 compiler.err.cyclic.inheritance=\
213 cyclic inheritance involving {0}
215 compiler.err.cyclic.annotation.element=\
216 cyclic annotation element type
218 # 0: unused
219 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
220 call to super not allowed in enum constructor
222 # 0: type
223 compiler.err.no.superclass=\
224 {0} has no superclass
226 compiler.err.wrong.target.for.polymorphic.signature.definition=\
227 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
229 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
230 compiler.err.concrete.inheritance.conflict=\
231 methods {0} from {1} and {2} from {3} are inherited with the same signature
233 compiler.err.default.allowed.in.intf.annotation.member=\
234 default value only allowed in an @interface member
236 # 0: symbol
237 compiler.err.doesnt.exist=\
238 package {0} does not exist
240 compiler.err.duplicate.annotation=\
241 duplicate annotation
243 # 0: name, 1: type
244 compiler.err.duplicate.annotation.member.value=\
245 duplicate annotation member value {0} in {1}
247 # 0: name
248 compiler.err.duplicate.class=\
249 duplicate class: {0}
251 compiler.err.duplicate.case.label=\
252 duplicate case label
254 compiler.err.duplicate.default.label=\
255 duplicate default label
257 compiler.err.else.without.if=\
258 ''else'' without ''if''
260 compiler.err.empty.char.lit=\
261 empty character literal
263 # 0: symbol
264 compiler.err.encl.class.required=\
265 an enclosing instance that contains {0} is required
267 compiler.err.enum.annotation.must.be.enum.constant=\
268 an enum annotation value must be an enum constant
270 compiler.err.enum.cant.be.instantiated=\
271 enum types may not be instantiated
273 compiler.err.enum.label.must.be.unqualified.enum=\
274 an enum switch case label must be the unqualified name of an enumeration constant
276 compiler.err.enum.no.subclassing=\
277 classes cannot directly extend java.lang.Enum
279 compiler.err.enum.types.not.extensible=\
280 enum types are not extensible
282 compiler.err.enum.no.finalize=\
283 enums cannot have finalize methods
285 # 0: file name, 1: string
286 compiler.err.error.reading.file=\
287 error reading {0}; {1}
289 # 0: type
290 compiler.err.except.already.caught=\
291 exception {0} has already been caught
293 # 0: type
294 compiler.err.except.never.thrown.in.try=\
295 exception {0} is never thrown in body of corresponding try statement
297 # 0: symbol
298 compiler.err.final.parameter.may.not.be.assigned=\
299 final parameter {0} may not be assigned
301 # 0: symbol
302 compiler.err.try.resource.may.not.be.assigned=\
303 auto-closeable resource {0} may not be assigned
305 # 0: symbol
306 compiler.err.multicatch.parameter.may.not.be.assigned=\
307 multi-catch parameter {0} may not be assigned
309 # 0: type, 1: type
310 compiler.err.multicatch.types.must.be.disjoint=\
311 Alternatives in a multi-catch statement cannot be related by subclassing\n\
312 Alternative {0} is a subclass of alternative {1}
314 compiler.err.finally.without.try=\
315 ''finally'' without ''try''
317 # 0: type, 1: message segment
318 compiler.err.foreach.not.applicable.to.type=\
319 for-each not applicable to expression type\n\
320 required: {1}\n\
321 found: {0}
323 compiler.err.fp.number.too.large=\
324 floating point number too large
326 compiler.err.fp.number.too.small=\
327 floating point number too small
329 compiler.err.generic.array.creation=\
330 generic array creation
332 compiler.err.generic.throwable=\
333 a generic class may not extend java.lang.Throwable
335 # 0: symbol
336 compiler.err.icls.cant.have.static.decl=\
337 Illegal static declaration in inner class {0}\n\
338 modifier \''static\'' is only allowed in constant variable declarations
340 # 0: string
341 compiler.err.illegal.char=\
342 illegal character: \\{0}
344 compiler.err.illegal.char.for.encoding=\
345 unmappable character for encoding {0}
347 # 0: set of modifier, 1: set of modifier
348 compiler.err.illegal.combination.of.modifiers=\
349 illegal combination of modifiers: {0} and {1}
351 compiler.err.illegal.enum.static.ref=\
352 illegal reference to static field from initializer
354 compiler.err.illegal.esc.char=\
355 illegal escape character
357 compiler.err.illegal.forward.ref=\
358 illegal forward reference
360 # 0: symbol
361 compiler.warn.forward.ref=\
362 reference to variable ''{0}'' before it has been initialized
364 compiler.err.illegal.self.ref=\
365 self-reference in initializer
367 # 0: symbol
368 compiler.warn.self.ref=\
369 self-reference in initializer of variable ''{0}''
371 compiler.err.illegal.generic.type.for.instof=\
372 illegal generic type for instanceof
374 # 0: type
375 compiler.err.illegal.initializer.for.type=\
376 illegal initializer for {0}
378 compiler.err.illegal.line.end.in.char.lit=\
379 illegal line end in character literal
381 compiler.err.illegal.nonascii.digit=\
382 illegal non-ASCII digit
384 compiler.err.illegal.underscore=\
385 illegal underscore
387 # 0: symbol
388 compiler.err.illegal.qual.not.icls=\
389 illegal qualifier; {0} is not an inner class
391 compiler.err.illegal.start.of.expr=\
392 illegal start of expression
394 compiler.err.illegal.start.of.type=\
395 illegal start of type
397 compiler.err.illegal.unicode.esc=\
398 illegal unicode escape
400 # 0: symbol
401 compiler.err.import.requires.canonical=\
402 import requires canonical name for {0}
404 compiler.err.improperly.formed.type.param.missing=\
405 improperly formed type, some parameters are missing
407 compiler.err.improperly.formed.type.inner.raw.param=\
408 improperly formed type, type arguments given on a raw type
410 # 0: type, 1: type
411 compiler.err.incomparable.types=\
412 incomparable types: {0} and {1}
414 # 0: number
415 compiler.err.int.number.too.large=\
416 integer number too large: {0}
418 compiler.err.internal.error.cant.instantiate=\
419 internal error; cannot instantiate {0} at {1} to ({2})
421 compiler.err.intf.annotation.members.cant.have.params=\
422 @interface members may not have parameters
424 compiler.err.intf.annotation.cant.have.type.params=\
425 @interface may not have type parameters
427 compiler.err.intf.annotation.members.cant.have.type.params=\
428 @interface members may not have type parameters
430 # 0: symbol, 1: type
431 compiler.err.intf.annotation.member.clash=\
432 @interface member clashes with method ''{0}'' in {1}
434 compiler.err.intf.expected.here=\
435 interface expected here
437 compiler.err.intf.meth.cant.have.body=\
438 interface methods cannot have body
440 compiler.err.invalid.annotation.member.type=\
441 invalid type for annotation member
443 compiler.err.invalid.binary.number=\
444 binary numbers must contain at least one binary digit
446 compiler.err.invalid.hex.number=\
447 hexadecimal numbers must contain at least one hexadecimal digit
449 compiler.err.invalid.meth.decl.ret.type.req=\
450 invalid method declaration; return type required
452 compiler.err.varargs.and.old.array.syntax=\
453 legacy array notation not allowed on variable-arity parameter
455 # 0: name
456 compiler.err.label.already.in.use=\
457 label {0} already in use
459 # 0: symbol
460 compiler.err.local.var.accessed.from.icls.needs.final=\
461 local variable {0} is accessed from within inner class; needs to be declared final
463 compiler.err.local.enum=\
464 enum types must not be local
466 compiler.err.cannot.create.array.with.type.arguments=\
467 cannot create array with type arguments
469 compiler.err.cannot.create.array.with.diamond=\
470 cannot create array with ''<>''
472 #
473 # limits. We don't give the limits in the diagnostic because we expect
474 # them to change, yet we want to use the same diagnostic. These are all
475 # detected during code generation.
476 #
477 compiler.err.limit.code=\
478 code too large
480 compiler.err.limit.code.too.large.for.try.stmt=\
481 code too large for try statement
483 compiler.err.limit.dimensions=\
484 array type has too many dimensions
486 compiler.err.limit.locals=\
487 too many local variables
489 compiler.err.limit.parameters=\
490 too many parameters
492 compiler.err.limit.pool=\
493 too many constants
495 compiler.err.limit.pool.in.class=\
496 too many constants in class {0}
498 compiler.err.limit.stack=\
499 code requires too much stack
501 compiler.err.limit.string=\
502 constant string too long
504 compiler.err.limit.string.overflow=\
505 UTF8 representation for string \"{0}...\" is too long for the constant pool
507 compiler.err.malformed.fp.lit=\
508 malformed floating point literal
510 compiler.err.method.does.not.override.superclass=\
511 method does not override or implement a method from a supertype
513 compiler.err.missing.meth.body.or.decl.abstract=\
514 missing method body, or declare abstract
516 compiler.err.missing.ret.stmt=\
517 missing return statement
519 compiler.err.missing.ret.val=\
520 missing return value
522 # 0: set of modifier
523 compiler.err.mod.not.allowed.here=\
524 modifier {0} not allowed here
526 compiler.err.intf.not.allowed.here=\
527 interface not allowed here
529 compiler.err.enums.must.be.static=\
530 enum declarations allowed only in static contexts
532 # 0: symbol, 1: symbol
533 compiler.err.name.clash.same.erasure=\
534 name clash: {0} and {1} have the same erasure
536 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
537 compiler.err.name.clash.same.erasure.no.override=\
538 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
540 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
541 compiler.err.name.clash.same.erasure.no.override.1=\
542 name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
543 first method: {2} in {3}\n\
544 second method: {4} in {5}
546 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
547 compiler.err.name.clash.same.erasure.no.hide=\
548 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
550 compiler.err.name.reserved.for.internal.use=\
551 {0} is reserved for internal use
553 compiler.err.native.meth.cant.have.body=\
554 native methods cannot have a body
556 # 0: type, 1: type
557 compiler.err.neither.conditional.subtype=\
558 incompatible types for ?: neither is a subtype of the other\n\
559 second operand: {0}\n\
560 third operand : {1}
562 compiler.err.new.not.allowed.in.annotation=\
563 ''new'' not allowed in an annotation
565 compiler.err.no.annotation.member=\
566 no annotation member {0} in {1}
568 compiler.err.no.encl.instance.of.type.in.scope=\
569 no enclosing instance of type {0} is in scope
571 compiler.err.no.intf.expected.here=\
572 no interface expected here
574 compiler.err.no.match.entry=\
575 {0} has no match in entry in {1}; required {2}
577 compiler.err.not.annotation.type=\
578 {0} is not an annotation type
580 # 0: symbol, 1: symbol
581 compiler.err.not.def.access.class.intf.cant.access=\
582 {0} in {1} is defined in an inaccessible class or interface
584 # 0: symbol, 1: symbol
585 compiler.err.not.def.public.cant.access=\
586 {0} is not public in {1}; cannot be accessed from outside package
588 # 0: name
589 compiler.err.not.loop.label=\
590 not a loop label: {0}
592 compiler.err.not.stmt=\
593 not a statement
595 # 0: symbol
596 compiler.err.not.encl.class=\
597 not an enclosing class: {0}
599 # 0: name, 1: type, 2: unused
600 compiler.err.operator.cant.be.applied=\
601 bad operand type {1} for unary operator ''{0}''
603 # 0: name, 1: type, 2: type
604 compiler.err.operator.cant.be.applied.1=\
605 bad operand types for binary operator ''{0}''\n\
606 first type: {1}\n\
607 second type: {2}
609 compiler.err.pkg.annotations.sb.in.package-info.java=\
610 package annotations should be in file package-info.java
612 # 0: symbol
613 compiler.err.pkg.clashes.with.class.of.same.name=\
614 package {0} clashes with class of same name
616 compiler.err.warnings.and.werror=\
617 warnings found and -Werror specified
619 # Errors related to annotation processing
621 # 0: symbol, 1: string, 2: stack-trace
622 compiler.err.proc.cant.access=\
623 cannot access {0}\n\
624 {1}\n\
625 Consult the following stack trace for details.\n\
626 {2}
628 # 0: symbol, 1: string
629 compiler.err.proc.cant.access.1=\
630 cannot access {0}\n\
631 {1}
633 # 0: string
634 compiler.err.proc.cant.find.class=\
635 Could not find class file for ''{0}''.
637 # Print a client-generated error message; assumed to be localized, no translation required
638 # 0: string
639 compiler.err.proc.messager=\
640 {0}
642 # 0: list of string
643 compiler.err.proc.no.explicit.annotation.processing.requested=\
644 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
646 compiler.err.proc.no.service=\
647 A ServiceLoader was not usable and is required for annotation processing.
649 compiler.err.proc.processor.bad.option.name=\
650 Bad option name ''{0}'' provided by processor ''{1}''
652 # 0: string
653 compiler.err.proc.processor.cant.instantiate=\
654 Could not instantiate an instance of processor ''{0}''
656 # 0: string
657 compiler.err.proc.processor.not.found=\
658 Annotation processor ''{0}'' not found
660 # 0: string
661 compiler.err.proc.processor.wrong.type=\
662 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
664 compiler.err.proc.service.problem=\
665 Error creating a service loader to load Processors.
667 compiler.err.proc.bad.config.file=\
668 Bad service configuration file, or exception thrown while constructing Processor object: {0}
670 compiler.err.proc.cant.create.loader=\
671 Could not create class loader for annotation processors: {0}
673 # 0: unused
674 compiler.err.qualified.new.of.static.class=\
675 qualified new of static class
677 compiler.err.recursive.ctor.invocation=\
678 recursive constructor invocation
680 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
681 compiler.err.ref.ambiguous=\
682 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
684 compiler.err.repeated.annotation.target=\
685 repeated annotation target
687 compiler.err.repeated.interface=\
688 repeated interface
690 compiler.err.repeated.modifier=\
691 repeated modifier
693 # 0: symbol, 1: set of modifier, 2: symbol
694 compiler.err.report.access=\
695 {0} has {1} access in {2}
697 compiler.err.ret.outside.meth=\
698 return outside method
700 compiler.err.signature.doesnt.match.supertype=\
701 signature does not match {0}; incompatible supertype
703 compiler.err.signature.doesnt.match.intf=\
704 signature does not match {0}; incompatible interfaces
706 # 0: symbol, 1: symbol, 2: symbol
707 compiler.err.does.not.override.abstract=\
708 {0} is not abstract and does not override abstract method {1} in {2}
710 compiler.err.source.cant.overwrite.input.file=\
711 error writing source; cannot overwrite input file {0}
713 compiler.err.stack.sim.error=\
714 Internal error: stack sim error on {0}
716 compiler.err.static.imp.only.classes.and.interfaces=\
717 static import only from classes and interfaces
719 compiler.err.string.const.req=\
720 constant string expression required
722 # 0: symbol, 1: symbol
723 compiler.err.synthetic.name.conflict=\
724 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
726 # 0: symbol, 1: symbol
727 compiler.warn.synthetic.name.conflict=\
728 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
730 compiler.err.throws.not.allowed.in.intf.annotation=\
731 throws clause not allowed in @interface members
733 compiler.err.try.without.catch.or.finally=\
734 ''try'' without ''catch'' or ''finally''
736 compiler.err.try.without.catch.finally.or.resource.decls=\
737 ''try'' without ''catch'', ''finally'' or resource declarations
739 # 0: symbol
740 compiler.err.type.doesnt.take.params=\
741 type {0} does not take parameters
743 compiler.err.type.var.cant.be.deref=\
744 cannot select from a type variable
746 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
747 a type variable may not be followed by other bounds
749 compiler.err.type.var.more.than.once=\
750 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
752 compiler.err.type.var.more.than.once.in.result=\
753 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
755 # 0: type, 1: type, 2: string
756 compiler.err.types.incompatible.diff.ret=\
757 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
759 compiler.err.unclosed.char.lit=\
760 unclosed character literal
762 compiler.err.unclosed.comment=\
763 unclosed comment
765 compiler.err.unclosed.str.lit=\
766 unclosed string literal
768 # 0: name
769 compiler.err.unsupported.encoding=\
770 unsupported encoding: {0}
772 compiler.err.io.exception=\
773 error reading source file: {0}
775 # 0: name
776 compiler.err.undef.label=\
777 undefined label: {0}
779 compiler.err.undetermined.type=\
780 cannot infer type arguments for {0}
782 # 0: type, 1: message segment
783 compiler.err.undetermined.type.1=\
784 cannot infer type arguments for {0};\n\
785 reason: {1}
787 # 0: list of type, 1: message segment
788 compiler.err.invalid.inferred.types=\
789 invalid inferred types for {0}; {1}
791 # 0: message segment, 1: unused
792 compiler.err.cant.apply.diamond=\
793 cannot infer type arguments for {0}
795 # 0: message segment, 1: message segment
796 compiler.err.cant.apply.diamond.1=\
797 cannot infer type arguments for {0};\n\
798 reason: {1}
800 compiler.err.unreachable.stmt=\
801 unreachable statement
803 compiler.err.initializer.must.be.able.to.complete.normally=\
804 initializer must be able to complete normally
806 # 0: type
807 compiler.err.unreported.exception.need.to.catch.or.throw=\
808 unreported exception {0}; must be caught or declared to be thrown
810 # 0: type
811 compiler.err.unreported.exception.default.constructor=\
812 unreported exception {0} in default constructor
814 # 0: type, 1: name
815 compiler.err.unreported.exception.implicit.close=\
816 unreported exception {0}; must be caught or declared to be thrown\n\
817 exception thrown from implicit call to close() on resource variable ''{1}''
819 compiler.err.unsupported.cross.fp.lit=\
820 hexadecimal floating-point literals are not supported on this VM
822 compiler.err.void.not.allowed.here=\
823 ''void'' type not allowed here
825 # 0: string
826 compiler.err.wrong.number.type.args=\
827 wrong number of type arguments; required {0}
829 # 0: symbol
830 compiler.err.var.might.already.be.assigned=\
831 variable {0} might already have been assigned
833 # 0: symbol
834 compiler.err.var.might.not.have.been.initialized=\
835 variable {0} might not have been initialized
837 # 0: symbol
838 compiler.err.var.might.be.assigned.in.loop=\
839 variable {0} might be assigned in loop
841 # 0: symbol, 1: message segment
842 compiler.err.varargs.invalid.trustme.anno=\
843 Invalid {0} annotation. {1}
845 # 0: type
846 compiler.misc.varargs.trustme.on.reifiable.varargs=\
847 Varargs element type {0} is reifiable.
849 # 0: symbol
850 compiler.misc.varargs.trustme.on.non.varargs.meth=\
851 Method {0} is not a varargs method.
853 # 0: symbol
854 compiler.misc.varargs.trustme.on.virtual.varargs=\
855 Instance method {0} is not final.
857 # 0: type, 1: kind, 2: symbol
858 compiler.misc.inaccessible.varargs.type=\
859 formal varargs element type {0} is not accessible from {1} {2}
861 # In the following string, {1} will always be the detail message from
862 # java.io.IOException.
863 # 0: symbol, 1: string
864 compiler.err.class.cant.write=\
865 error while writing {0}: {1}
867 # In the following string, {0} is the name of the class in the Java source.
868 # It really should be used two times..
869 # 0: name
870 compiler.err.class.public.should.be.in.file=\
871 class {0} is public, should be declared in a file named {0}.java
873 ## All errors which do not refer to a particular line in the source code are
874 ## preceded by this string.
875 compiler.err.error=\
876 error:\u0020
878 # The following error messages do not refer to a line in the source code.
879 compiler.err.cant.read.file=\
880 cannot read: {0}
882 #####
884 # Fatal Errors
886 compiler.misc.fatal.err.no.java.lang=\
887 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
889 compiler.misc.fatal.err.cant.locate.meth=\
890 Fatal Error: Unable to find method {0}
892 compiler.misc.fatal.err.cant.locate.field=\
893 Fatal Error: Unable to find field {0}
895 compiler.misc.fatal.err.cant.locate.ctor=\
896 Fatal Error: Unable to find constructor for {0}
898 compiler.misc.fatal.err.cant.close=\
899 Fatal Error: Cannot close compiler resources
901 #####
903 ##
904 ## miscellaneous strings
905 ##
907 compiler.misc.source.unavailable=\
908 (source unavailable)
910 compiler.misc.base.membership=\
911 all your base class are belong to us
913 # 0: string, 1: string, 2: boolean
914 compiler.misc.x.print.processor.info=\
915 Processor {0} matches {1} and returns {2}.
917 # 0: number, 1: string, 2: set of symbol, 3: boolean
918 compiler.misc.x.print.rounds=\
919 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
921 #####
923 ## The following string will appear before all messages keyed as:
924 ## "compiler.note".
925 compiler.note.note=\
926 Note:\u0020
928 # 0: file name
929 compiler.note.deprecated.filename=\
930 {0} uses or overrides a deprecated API.
932 compiler.note.deprecated.plural=\
933 Some input files use or override a deprecated API.
935 # The following string may appear after one of the above deprecation
936 # messages.
937 compiler.note.deprecated.recompile=\
938 Recompile with -Xlint:deprecation for details.
940 # 0: file name
941 compiler.note.deprecated.filename.additional=\
942 {0} has additional uses or overrides of a deprecated API.
944 compiler.note.deprecated.plural.additional=\
945 Some input files additionally use or override a deprecated API.
947 # 0: file name
948 compiler.note.unchecked.filename=\
949 {0} uses unchecked or unsafe operations.
951 compiler.note.unchecked.plural=\
952 Some input files use unchecked or unsafe operations.
954 # The following string may appear after one of the above deprecation
955 # messages.
956 compiler.note.unchecked.recompile=\
957 Recompile with -Xlint:unchecked for details.
959 # 0: file name
960 compiler.note.unchecked.filename.additional=\
961 {0} has additional unchecked or unsafe operations.
963 compiler.note.unchecked.plural.additional=\
964 Some input files additionally use unchecked or unsafe operations.
966 # 0: file name
967 compiler.note.sunapi.filename=\
968 {0} uses internal proprietary API that may be removed in a future release.
970 compiler.note.sunapi.plural=\
971 Some input files use internal proprietary API that may be removed in a future release.
973 # The following string may appear after one of the above sunapi messages.
974 compiler.note.sunapi.recompile=\
975 Recompile with -Xlint:sunapi for details.
977 # 0: file name
978 compiler.note.sunapi.filename.additional=\
979 {0} uses additional internal proprietary API that may be removed in a future release.
981 compiler.note.sunapi.plural.additional=\
982 Some input files additionally use internal proprietary API that may be removed in a future release.
984 # Notes related to annotation processing
986 # Print a client-generated note; assumed to be localized, no translation required
987 # 0: string
988 compiler.note.proc.messager=\
989 {0}
991 #####
993 # 0: number
994 compiler.misc.count.error=\
995 {0} error
997 # 0: number
998 compiler.misc.count.error.plural=\
999 {0} errors
1001 # 0: number
1002 compiler.misc.count.warn=\
1003 {0} warning
1005 # 0: number
1006 compiler.misc.count.warn.plural=\
1007 {0} warnings
1009 compiler.misc.version.not.available=\
1010 (version info not available)
1012 ## extra output when using -verbose (JavaCompiler)
1014 # 0: symbol
1015 compiler.misc.verbose.checking.attribution=\
1016 [checking {0}]
1018 # 0: string
1019 compiler.misc.verbose.parsing.done=\
1020 [parsing completed {0}ms]
1022 # 0: file name
1023 compiler.misc.verbose.parsing.started=\
1024 [parsing started {0}]
1026 # 0: string
1027 compiler.misc.verbose.total=\
1028 [total {0}ms]
1030 # 0: file name
1031 compiler.misc.verbose.wrote.file=\
1032 [wrote {0}]
1034 ## extra output when using -verbose (Retro)
1035 compiler.misc.verbose.retro=\
1036 [retrofitting {0}]
1038 compiler.misc.verbose.retro.with=\
1039 \tretrofitting {0} with {1}
1041 compiler.misc.verbose.retro.with.list=\
1042 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1044 ## extra output when using -verbose (code/ClassReader)
1045 # 0: string
1046 compiler.misc.verbose.loading=\
1047 [loading {0}]
1049 # 0: string
1050 compiler.misc.verbose.sourcepath=\
1051 [search path for source files: {0}]
1053 # 0: string
1054 compiler.misc.verbose.classpath=\
1055 [search path for class files: {0}]
1057 ## extra output when using -checkclassfile (code/ClassReader)
1058 compiler.misc.ccf.found.later.version=\
1059 class file has later version than expected: {0}
1061 compiler.misc.ccf.unrecognized.attribute=\
1062 unrecognized attribute: {0}
1064 ## extra output when using -prompt (util/Log)
1065 compiler.misc.resume.abort=\
1066 R)esume, A)bort>
1068 #####
1070 ##
1071 ## warnings
1072 ##
1074 ## All warning messages are preceded by the following string.
1075 compiler.warn.warning=\
1076 warning:\u0020
1078 ## Warning messages may also include the following prefix to identify a
1079 ## lint option
1080 # 0: option name
1081 compiler.warn.lintOption=\
1082 [{0}]\u0020
1084 # 0: symbol
1085 compiler.warn.constant.SVUID=\
1086 serialVersionUID must be constant in class {0}
1088 # 0: file name
1089 compiler.warn.dir.path.element.not.found=\
1090 bad path element "{0}": no such directory
1092 compiler.warn.finally.cannot.complete=\
1093 finally clause cannot complete normally
1095 # 0: symbol, 1: symbol
1096 compiler.warn.has.been.deprecated=\
1097 {0} in {1} has been deprecated
1099 # 0: symbol
1100 compiler.warn.sun.proprietary=\
1101 {0} is internal proprietary API and may be removed in a future release
1103 compiler.warn.illegal.char.for.encoding=\
1104 unmappable character for encoding {0}
1106 # 0: symbol
1107 compiler.warn.improper.SVUID=\
1108 serialVersionUID must be declared static final in class {0}
1110 # 0: type, 1: type
1111 compiler.warn.inexact.non-varargs.call=\
1112 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1113 cast to {0} for a varargs call\n\
1114 cast to {1} for a non-varargs call and to suppress this warning
1116 # 0: list of type
1117 compiler.warn.unreachable.catch=\
1118 unreachable catch clause\n\
1119 thrown type {0} has already been caught
1121 # 0: list of type
1122 compiler.warn.unreachable.catch.1=\
1123 unreachable catch clause\n\
1124 thrown types {0} have already been caught
1126 # 0: symbol
1127 compiler.warn.long.SVUID=\
1128 serialVersionUID must be of type long in class {0}
1130 # 0: symbol
1131 compiler.warn.missing.SVUID=\
1132 serializable class {0} has no definition of serialVersionUID
1134 # 0: message segment
1135 compiler.warn.override.varargs.missing=\
1136 {0}; overridden method has no ''...''
1138 # 0: message segment
1139 compiler.warn.override.varargs.extra=\
1140 {0}; overriding method is missing ''...''
1142 compiler.warn.override.bridge=\
1143 {0}; overridden method is a bridge method
1145 # 0: symbol
1146 compiler.warn.pkg-info.already.seen=\
1147 a package-info.java file has already been seen for package {0}
1149 # 0: file name
1150 compiler.warn.path.element.not.found=\
1151 bad path element "{0}": no such file or directory
1153 compiler.warn.possible.fall-through.into.case=\
1154 possible fall-through into case
1156 # 0: type
1157 compiler.warn.redundant.cast=\
1158 redundant cast to {0}
1160 # 0: number
1161 compiler.warn.position.overflow=\
1162 Position encoding overflows at line {0}
1164 # 0: file name, 1: number, 2: number
1165 compiler.warn.big.major.version=\
1166 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1167 It is recommended that the compiler be upgraded.
1169 # 0: symbol kind, 1: symbol
1170 compiler.warn.static.not.qualified.by.type=\
1171 static {0} should be qualified by type name, {1}, instead of by an expression
1173 # 0: string
1174 compiler.warn.source.no.bootclasspath=\
1175 bootstrap class path not set in conjunction with -source {0}
1177 # 0: name, 1: number, 2: number, 3: number, 4: number
1178 compiler.warn.future.attr=\
1179 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1181 # Warnings related to annotation processing
1182 # 0: name
1183 compiler.warn.proc.package.does.not.exist=\
1184 package {0} does not exist
1186 # 0: name
1187 compiler.warn.proc.file.reopening=\
1188 Attempt to create a file for ''{0}'' multiple times
1190 # 0: name
1191 compiler.warn.proc.type.already.exists=\
1192 A file for type ''{0}'' already exists on the sourcepath or classpath
1194 # 0: name
1195 compiler.warn.proc.type.recreate=\
1196 Attempt to create a file for type ''{0}'' multiple times
1198 # 0: string
1199 compiler.warn.proc.illegal.file.name=\
1200 Cannot create file for illegal name ''{0}''.
1202 # 0: string, 1: string
1203 compiler.warn.proc.suspicious.class.name=\
1204 Creating file for a type whose name ends in {1}: ''{0}''
1206 # 0: name
1207 compiler.warn.proc.file.create.last.round=\
1208 File for type ''{0}'' created in the last round will not be subject to annotation processing.
1210 # 0: string, 1: string
1211 compiler.warn.proc.malformed.supported.string=\
1212 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1214 # 0: set of string
1215 compiler.warn.proc.annotations.without.processors=\
1216 No processor claimed any of these annotations: {0}
1218 # 0: source version, 1: string, 2: string
1219 compiler.warn.proc.processor.incompatible.source.version=\
1220 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1222 compiler.warn.proc.proc-only.requested.no.procs=\
1223 Annotation processing without compilation requested but no processors were found.
1225 compiler.warn.proc.use.implicit=\
1226 Implicitly compiled files were not subject to annotation processing.\n\
1227 Use -implicit to specify a policy for implicit compilation.
1229 compiler.warn.proc.use.proc.or.implicit=\
1230 Implicitly compiled files were not subject to annotation processing.\n\
1231 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1233 # Print a client-generated warning; assumed to be localized, no translation required
1234 # 0: string
1235 compiler.warn.proc.messager=\
1236 {0}
1238 # 0: set of name
1239 compiler.warn.proc.unclosed.type.files=\
1240 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1242 # 0: string
1243 compiler.warn.proc.unmatched.processor.options=\
1244 The following options were not recognized by any processor: ''{0}''
1246 compiler.warn.try.explicit.close.call=\
1247 explicit call to close() on an auto-closeable resource
1249 # 0: symbol
1250 compiler.warn.try.resource.not.referenced=\
1251 auto-closeable resource {0} is never referenced in body of corresponding try statement
1253 # 0: type
1254 compiler.warn.try.resource.throws.interrupted.exc=\
1255 auto-closeable resource {0} has a member method close() that could throw InterruptedException
1257 compiler.warn.unchecked.assign=\
1258 unchecked assignment: {0} to {1}
1260 # 0: symbol, 1: type
1261 compiler.warn.unchecked.assign.to.var=\
1262 unchecked assignment to variable {0} as member of raw type {1}
1264 # 0: symbol, 1: type
1265 compiler.warn.unchecked.call.mbr.of.raw.type=\
1266 unchecked call to {0} as a member of the raw type {1}
1268 compiler.warn.unchecked.cast.to.type=\
1269 unchecked cast to type {0}
1271 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1272 compiler.warn.unchecked.meth.invocation.applied=\
1273 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1274 required: {2}\n\
1275 found: {3}
1277 # 0: type
1278 compiler.warn.unchecked.generic.array.creation=\
1279 unchecked generic array creation for varargs parameter of type {0}
1281 # 0: type
1282 compiler.warn.unchecked.varargs.non.reifiable.type=\
1283 Possible heap pollution from parameterized vararg type {0}
1285 # 0: symbol
1286 compiler.warn.varargs.unsafe.use.varargs.param=\
1287 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1289 compiler.warn.missing.deprecated.annotation=\
1290 deprecated item is not annotated with @Deprecated
1292 compiler.warn.invalid.archive.file=\
1293 Unexpected file on path: {0}
1295 compiler.warn.unexpected.archive.file=\
1296 Unexpected extension for archive file: {0}
1298 compiler.warn.div.zero=\
1299 division by zero
1301 compiler.warn.empty.if=\
1302 empty statement after if
1304 compiler.warn.annotation.method.not.found=\
1305 Cannot find annotation method ''{1}()'' in type ''{0}''
1307 compiler.warn.annotation.method.not.found.reason=\
1308 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1310 # 0: symbol, 1: name
1311 compiler.warn.unknown.enum.constant=\
1312 unknown enum constant {1}.{2}
1314 # 0: symbol, 1: name, 2: message segment
1315 compiler.warn.unknown.enum.constant.reason=\
1316 unknown enum constant {1}.{2}\n\
1317 reason: {3}
1319 # 0: type, 1: type
1320 compiler.warn.raw.class.use=\
1321 found raw type: {0}\n\
1322 missing type arguments for generic class {1}
1324 # 0: unused, 1: unused
1325 compiler.warn.diamond.redundant.args=\
1326 redundant type arguments in new expression (use diamond operator instead).
1328 # 0: type, 1: type
1329 compiler.warn.diamond.redundant.args.1=\
1330 redundant type arguments in new expression (use diamond operator instead).\n\
1331 explicit: {0}\n\
1332 inferred: {1}
1334 # 0: symbol, 1: message segment
1335 compiler.warn.varargs.redundant.trustme.anno=\
1336 Redundant {0} annotation. {1}
1338 #####
1340 ## The following are tokens which are non-terminals in the language. They should
1341 ## be named as JLS3 calls them when translated to the appropriate language.
1342 compiler.misc.token.identifier=\
1343 <identifier>
1345 compiler.misc.token.character=\
1346 <character>
1348 compiler.misc.token.string=\
1349 <string>
1351 compiler.misc.token.integer=\
1352 <integer>
1354 compiler.misc.token.long-integer=\
1355 <long integer>
1357 compiler.misc.token.float=\
1358 <float>
1360 compiler.misc.token.double=\
1361 <double>
1363 compiler.misc.token.bad-symbol=\
1364 <bad symbol>
1366 compiler.misc.token.end-of-input=\
1367 <end of input>
1369 ## The argument to the following string will always be one of the following:
1370 ## 1. one of the above non-terminals
1371 ## 2. a keyword (JLS1.8)
1372 ## 3. a boolean literal (JLS3.10.3)
1373 ## 4. the null literal (JLS3.10.7)
1374 ## 5. a Java separator (JLS3.11)
1375 ## 6. an operator (JLS3.12)
1376 ##
1377 ## This is the only place these tokens will be used.
1378 # 0: token
1379 compiler.err.expected=\
1380 {0} expected
1382 # 0: token, 1: token
1383 compiler.err.expected2=\
1384 {0} or {1} expected
1386 # 0: token, 1: token, 2: token
1387 compiler.err.expected3=\
1388 {0}, {1}, or {2} expected
1390 compiler.err.premature.eof=\
1391 reached end of file while parsing
1393 ## The following are related in form, but do not easily fit the above paradigm.
1394 compiler.err.dot.class.expected=\
1395 ''.class'' expected
1397 ## The argument to this string will always be either 'case' or 'default'.
1398 # 0: token
1399 compiler.err.orphaned=\
1400 orphaned {0}
1402 # 0: name
1403 compiler.misc.anonymous.class=\
1404 <anonymous {0}>
1406 # 0: name, 1: type
1407 compiler.misc.type.captureof=\
1408 capture#{0} of {1}
1410 compiler.misc.type.captureof.1=\
1411 capture#{0}
1413 compiler.misc.type.none=\
1414 <none>
1416 compiler.misc.unnamed.package=\
1417 unnamed package
1419 #####
1421 # 0: symbol, 1: message segment
1422 compiler.err.cant.access=\
1423 cannot access {0}\n\
1424 {1}
1426 compiler.misc.bad.class.file.header=\
1427 bad class file: {0}\n\
1428 {1}\n\
1429 Please remove or make sure it appears in the correct subdirectory of the classpath.
1431 # 0: file name, 1: message segment
1432 compiler.misc.bad.source.file.header=\
1433 bad source file: {0}\n\
1434 {1}\n\
1435 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1437 ## The following are all possible strings for the second argument ({1}) of the
1438 ## above strings.
1439 compiler.misc.bad.class.signature=\
1440 bad class signature: {0}
1442 #0: symbol, 1: symbol
1443 compiler.misc.bad.enclosing.class=\
1444 bad enclosing class for {0}: {1}
1446 # 0: symbol
1447 compiler.misc.bad.enclosing.method=\
1448 bad enclosing method attribute for class {0}
1450 compiler.misc.bad.runtime.invisible.param.annotations=\
1451 bad RuntimeInvisibleParameterAnnotations attribute: {0}
1453 compiler.misc.bad.const.pool.tag=\
1454 bad constant pool tag: {0}
1456 compiler.misc.bad.const.pool.tag.at=\
1457 bad constant pool tag: {0} at {1}
1459 compiler.misc.bad.signature=\
1460 bad signature: {0}
1462 compiler.misc.class.file.wrong.class=\
1463 class file contains wrong class: {0}
1465 compiler.misc.class.file.not.found=\
1466 class file for {0} not found
1468 # 0: name
1469 compiler.misc.file.doesnt.contain.class=\
1470 file does not contain class {0}
1472 compiler.misc.file.does.not.contain.package=\
1473 file does not contain package {0}
1475 compiler.misc.illegal.start.of.class.file=\
1476 illegal start of class file
1478 compiler.misc.unable.to.access.file=\
1479 unable to access file: {0}
1481 compiler.misc.unicode.str.not.supported=\
1482 unicode string in class file not supported
1484 compiler.misc.undecl.type.var=\
1485 undeclared type variable: {0}
1487 compiler.misc.wrong.version=\
1488 class file has wrong version {0}.{1}, should be {2}.{3}
1490 #####
1492 # 0: type, 1: type or symbol
1493 compiler.err.not.within.bounds=\
1494 type argument {0} is not within bounds of type-variable {1}
1496 ## The following are all possible strings for the second argument ({1}) of the
1497 ## above string.
1499 ## none yet...
1501 #####
1503 # 0: message segment, 1: type, 2: type
1504 compiler.err.prob.found.req=\
1505 {0}\n\
1506 required: {2}\n\
1507 found: {1}
1509 # 0: message segment, 1: type, 2: type
1510 compiler.warn.prob.found.req=\
1511 {0}\n\
1512 required: {2}\n\
1513 found: {1}
1515 compiler.err.prob.found.req.1=\
1516 {0} {3}\n\
1517 required: {2}\n\
1518 found: {1}
1520 ## The following are all possible strings for the first argument ({0}) of the
1521 ## above strings.
1522 compiler.misc.incompatible.types=\
1523 incompatible types
1525 # 0: message segment
1526 compiler.misc.incompatible.types.1=\
1527 incompatible types; {0}
1529 compiler.misc.inconvertible.types=\
1530 inconvertible types
1532 compiler.misc.possible.loss.of.precision=\
1533 possible loss of precision
1535 compiler.misc.unchecked.assign=\
1536 unchecked conversion
1538 # compiler.misc.storecheck=\
1539 # assignment might cause later store checks to fail
1540 # compiler.misc.unchecked=\
1541 # assigned array cannot dynamically check its stores
1542 compiler.misc.unchecked.cast.to.type=\
1543 unchecked cast
1545 compiler.misc.assignment.from.super-bound=\
1546 assignment from super-bound type {0}
1548 compiler.misc.assignment.to.extends-bound=\
1549 assignment to extends-bound type {0}
1551 # compiler.err.star.expected=\
1552 # ''*'' expected
1553 # compiler.err.no.elem.type=\
1554 # \[\*\] cannot have a type
1556 compiler.misc.try.not.applicable.to.type=\
1557 try-with-resources not applicable to variable type
1559 #####
1561 # 0: message segment or type, 1: message segment
1562 compiler.err.type.found.req=\
1563 unexpected type\n\
1564 required: {1}\n\
1565 found: {0}
1567 ## The following are all possible strings for the first argument ({0}) of the
1568 ## above string.
1569 compiler.misc.type.req.class=\
1570 class
1572 compiler.misc.type.req.class.array=\
1573 class or array
1575 compiler.misc.type.req.array.or.iterable=\
1576 array or java.lang.Iterable
1578 compiler.misc.type.req.ref=\
1579 reference
1581 compiler.misc.type.req.exact=\
1582 class or interface without bounds
1584 # 0: type
1585 compiler.misc.type.parameter=\
1586 type parameter {0}
1588 #####
1590 ## The following are all possible strings for the last argument of all those
1591 ## diagnostics whose key ends in ".1"
1592 compiler.misc.undetermined.type=\
1593 undetermined type
1595 compiler.misc.type.variable.has.undetermined.type=\
1596 type variable {0} has undetermined type
1598 # 0: type, 1: list of type
1599 compiler.misc.no.unique.maximal.instance.exists=\
1600 no unique maximal instance exists for type variable {0} with upper bounds {1}
1602 compiler.misc.no.unique.minimal.instance.exists=\
1603 no unique minimal instance exists for type variable {0} with lower bounds {1}
1605 # 0: type, 1: list of type
1606 compiler.misc.incompatible.upper.bounds=\
1607 inference variable {0} has incompatible upper bounds {1}
1609 # 0: list of type, 1: type, 2: type
1610 compiler.misc.infer.no.conforming.instance.exists=\
1611 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1613 # 0: list of type, 1: type, 2: type
1614 compiler.misc.infer.no.conforming.assignment.exists=\
1615 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1617 compiler.misc.infer.arg.length.mismatch=\
1618 cannot instantiate from arguments because actual and formal argument lists differ in length
1620 # 0: type, 1: list of type
1621 compiler.misc.inferred.do.not.conform.to.bounds=\
1622 inferred type does not conform to declared bound(s)\n\
1623 inferred: {0}\n\
1624 bound(s): {1}
1626 # 0: symbol
1627 compiler.misc.diamond=\
1628 {0}<>
1630 # 0: type
1631 compiler.misc.diamond.non.generic=\
1632 cannot use ''<>'' with non-generic class {0}
1634 compiler.misc.diamond.and.explicit.params=\
1635 cannot use ''<>'' with explicit type parameters for constructor
1637 # 0: type, 1: list of type
1638 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1639 explicit type argument {0} does not conform to declared bound(s) {1}
1641 compiler.misc.arg.length.mismatch=\
1642 actual and formal argument lists differ in length
1644 # 0: type, 1: type
1645 compiler.misc.no.conforming.assignment.exists=\
1646 actual argument {0} cannot be converted to {1} by method invocation conversion
1648 # 0: type, 1: type
1649 compiler.misc.varargs.argument.mismatch=\
1650 argument type {0} does not conform to vararg element type {1}
1652 #####
1654 ## The first argument ({0}) is a "kindname".
1655 # 0: symbol kind, 1: symbol, 2: symbol
1656 compiler.err.abstract.cant.be.accessed.directly=\
1657 abstract {0} {1} in {2} cannot be accessed directly
1659 ## The first argument ({0}) is a "kindname".
1660 # 0: symbol kind, 1: symbol
1661 compiler.err.non-static.cant.be.ref=\
1662 non-static {0} {1} cannot be referenced from a static context
1664 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1665 ## of kindnames (the list should be identical to that provided in source.
1666 compiler.err.unexpected.type=\
1667 unexpected type\n\
1668 required: {0}\n\
1669 found: {1}
1671 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1672 ## The second argument {1} is the non-resolved symbol
1673 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1674 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1675 # 0: symbol kind, 1: name, 2: unused, 3: unused
1676 compiler.err.cant.resolve=\
1677 cannot find symbol\n\
1678 symbol: {0} {1}
1680 # 0: symbol kind, 1: name, 2: unused, 3: list of type
1681 compiler.err.cant.resolve.args=\
1682 cannot find symbol\n\
1683 symbol: {0} {1}({3})
1685 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
1686 compiler.err.cant.resolve.args.params=\
1687 cannot find symbol\n\
1688 symbol: {0} <{2}>{1}({3})
1690 ## arguments from {0} to {3} have the same meaning as above
1691 ## The fifth argument {4} is a location subdiagnostic (see below)
1692 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
1693 compiler.err.cant.resolve.location=\
1694 cannot find symbol\n\
1695 symbol: {0} {1}\n\
1696 location: {4}
1698 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1699 compiler.err.cant.resolve.location.args=\
1700 cannot find symbol\n\
1701 symbol: {0} {1}({3})\n\
1702 location: {4}
1704 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1705 compiler.err.cant.resolve.location.args.params=\
1706 cannot find symbol\n\
1707 symbol: {0} <{2}>{1}({3})\n\
1708 location: {4}
1710 ##a location subdiagnostic is composed as follows:
1711 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1712 ## The second argument {1} is the location name
1713 ## The third argument {2} is the location type (only when {1} is a variable name)
1715 # 0: symbol kind, 1: symbol, 2: unused
1716 compiler.misc.location=\
1717 {0} {1}
1719 # 0: symbol kind, 1: symbol, 2: type
1720 compiler.misc.location.1=\
1721 {0} {1} of type {2}
1723 ## The following are all possible string for "kindname".
1724 ## They should be called whatever the JLS calls them after it been translated
1725 ## to the appropriate language.
1726 # compiler.misc.kindname.constructor=\
1727 # static member
1728 compiler.misc.kindname.annotation=\
1729 @interface
1731 compiler.misc.kindname.constructor=\
1732 constructor
1734 compiler.misc.kindname.enum=\
1735 enum
1737 compiler.misc.kindname.interface=\
1738 interface
1740 compiler.misc.kindname.static=\
1741 static
1743 compiler.misc.kindname.type.variable=\
1744 type variable
1746 compiler.misc.kindname.type.variable.bound=\
1747 bound of type variable
1749 compiler.misc.kindname.variable=\
1750 variable
1752 compiler.misc.kindname.value=\
1753 value
1755 compiler.misc.kindname.method=\
1756 method
1758 compiler.misc.kindname.class=\
1759 class
1761 compiler.misc.kindname.package=\
1762 package
1764 compiler.misc.kindname.static.init=\
1765 static initializer
1767 compiler.misc.kindname.instance.init=\
1768 instance initializer
1770 #####
1772 compiler.misc.no.args=\
1773 no arguments
1775 # 0: message segment
1776 compiler.err.override.static=\
1777 {0}\n\
1778 overriding method is static
1780 # 0: message segment, 1: set of modifier
1781 compiler.err.override.meth=\
1782 {0}\n\
1783 overridden method is {1}
1785 # 0: message segment, 1: type
1786 compiler.err.override.meth.doesnt.throw=\
1787 {0}\n\
1788 overridden method does not throw {1}
1790 # In the following string {1} is a space separated list of Java Keywords, as
1791 # they would have been declared in the source code
1792 # 0: message segment, 1: set of modifier
1793 compiler.err.override.weaker.access=\
1794 {0}\n\
1795 attempting to assign weaker access privileges; was {1}
1797 # 0: message segment, 1: type, 2: type
1798 compiler.err.override.incompatible.ret=\
1799 {0}\n\
1800 return type {1} is not compatible with {2}
1802 # 0: message segment, 1: type, 2: type
1803 compiler.warn.override.unchecked.ret=\
1804 {0}\n\
1805 return type requires unchecked conversion from {1} to {2}
1807 # 0: message segment, 1: type
1808 compiler.warn.override.unchecked.thrown=\
1809 {0}\n\
1810 overridden method does not throw {1}
1812 ## The following are all possible strings for the first argument ({0}) of the
1813 ## above strings.
1814 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1815 compiler.misc.cant.override=\
1816 {0} in {1} cannot override {2} in {3}
1818 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1819 compiler.misc.cant.implement=\
1820 {0} in {1} cannot implement {2} in {3}
1822 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1823 compiler.misc.clashes.with=\
1824 {0} in {1} clashes with {2} in {3}
1826 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1827 compiler.misc.unchecked.override=\
1828 {0} in {1} overrides {2} in {3}
1830 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1831 compiler.misc.unchecked.implement=\
1832 {0} in {1} implements {2} in {3}
1834 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1835 compiler.misc.unchecked.clash.with=\
1836 {0} in {1} overrides {2} in {3}
1838 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1839 compiler.misc.varargs.override=\
1840 {0} in {1} overrides {2} in {3}
1842 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1843 compiler.misc.varargs.implement=\
1844 {0} in {1} implements {2} in {3}
1846 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1847 compiler.misc.varargs.clash.with=\
1848 {0} in {1} overrides {2} in {3}
1850 compiler.misc.diamond.and.anon.class=\
1851 cannot use ''<>'' with anonymous inner classes
1853 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
1854 compiler.misc.inapplicable.method=\
1855 {0} {1}.{2} is not applicable\n\
1856 ({3})
1858 ########################################
1859 # Diagnostics for language feature changes
1860 ########################################
1861 # 0: string
1862 compiler.err.unsupported.fp.lit=\
1863 hexadecimal floating point literals are not supported in -source {0}\n\
1864 (use -source 5 or higher to enable hexadecimal floating point literals)
1866 # 0: string
1867 compiler.err.unsupported.binary.lit=\
1868 binary literals are not supported in -source {0}\n\
1869 (use -source 7 or higher to enable binary literals)
1871 # 0: string
1872 compiler.err.unsupported.underscore.lit=\
1873 underscores in literals are not supported in -source {0}\n\
1874 (use -source 7 or higher to enable underscores in literals)
1876 # 0: string
1877 compiler.err.try.with.resources.not.supported.in.source=\
1878 try-with-resources is not supported in -source {0}\n\
1879 (use -source 7 or higher to enable try-with-resources)
1881 compiler.warn.enum.as.identifier=\
1882 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1883 (use -source 5 or higher to use ''enum'' as a keyword)
1885 compiler.warn.assert.as.identifier=\
1886 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1887 (use -source 1.4 or higher to use ''assert'' as a keyword)
1889 compiler.err.enum.as.identifier=\
1890 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1891 (use -source 1.4 or lower to use ''enum'' as an identifier)
1893 compiler.err.assert.as.identifier=\
1894 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1895 (use -source 1.3 or lower to use ''assert'' as an identifier)
1897 # 0: string
1898 compiler.err.generics.not.supported.in.source=\
1899 generics are not supported in -source {0}\n\
1900 (use -source 5 or higher to enable generics)
1902 # 0: string
1903 compiler.err.varargs.not.supported.in.source=\
1904 variable-arity methods are not supported in -source {0}\n\
1905 (use -source 5 or higher to enable variable-arity methods)
1907 # 0: string
1908 compiler.err.annotations.not.supported.in.source=\
1909 annotations are not supported in -source {0}\n\
1910 (use -source 5 or higher to enable annotations)
1912 #308 compiler.err.type.annotations.not.supported.in.source=\
1913 #308 type annotations are not supported in -source {0}\n\
1914 #308 (use -source 7 or higher to enable type annotations)
1916 # 0: string
1917 compiler.err.foreach.not.supported.in.source=\
1918 for-each loops are not supported in -source {0}\n\
1919 (use -source 5 or higher to enable for-each loops)
1921 # 0: string
1922 compiler.err.static.import.not.supported.in.source=\
1923 static import declarations are not supported in -source {0}\n\
1924 (use -source 5 or higher to enable static import declarations)
1926 # 0: string
1927 compiler.err.enums.not.supported.in.source=\
1928 enums are not supported in -source {0}\n\
1929 (use -source 5 or higher to enable enums)
1931 # 0: string
1932 compiler.err.diamond.not.supported.in.source=\
1933 diamond operator is not supported in -source {0}\n\
1934 (use -source 7 or higher to enable diamond operator)
1936 # 0: string
1937 compiler.err.multicatch.not.supported.in.source=\
1938 multi-catch statement is not supported in -source {0}\n\
1939 (use -source 7 or higher to enable multi-catch statement)
1941 # 0: string
1942 compiler.err.string.switch.not.supported.in.source=\
1943 strings in switch are not supported in -source {0}\n\
1944 (use -source 7 or higher to enable strings in switch)
1946 ########################################
1947 # Diagnostics for where clause implementation
1948 # used by the RichDiagnosticFormatter.
1949 ########################################
1951 compiler.misc.type.null=\
1952 <null>
1954 # X#n (where n is an int id) is disambiguated tvar name
1955 # 0: name, 1: number
1956 compiler.misc.type.var=\
1957 {0}#{1}
1959 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1960 # 0: number
1961 compiler.misc.captured.type=\
1962 CAP#{0}
1964 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1965 # 0: number
1966 compiler.misc.intersection.type=\
1967 INT#{0}
1969 # where clause for captured type: contains upper ('extends {1}') and lower
1970 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1971 # 0: type, 1: type, 2: type, 3: type
1972 compiler.misc.where.captured=\
1973 {0} extends {1} super: {2} from capture of {3}
1975 # compact where clause for captured type: contains upper ('extends {1}') along
1976 # with the wildcard that generated this captured type ({3})
1977 # 0: type, 1: type, 2: unused, 3: type
1978 compiler.misc.where.captured.1=\
1979 {0} extends {1} from capture of {3}
1981 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1982 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1983 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
1984 compiler.misc.where.typevar=\
1985 {0} extends {1} declared in {2} {3}
1987 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1988 # in which the typevar has been declared
1989 compiler.misc.where.typevar.1=\
1990 {0} declared in {2} {3}
1992 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1993 # of this intersection type
1994 # 0: type, 1: list of type
1995 compiler.misc.where.intersection=\
1996 {0} extends {1}
1998 ### Where clause headers ###
1999 compiler.misc.where.description.captured=\
2000 where {0} is a fresh type-variable:
2002 # 0: set of type
2003 compiler.misc.where.description.typevar=\
2004 where {0} is a type-variable:
2006 # 0: set of type
2007 compiler.misc.where.description.intersection=\
2008 where {0} is an intersection type:
2010 # 0: set of type
2011 compiler.misc.where.description.captured.1=\
2012 where {0} are fresh type-variables:
2014 # 0: set of type
2015 compiler.misc.where.description.typevar.1=\
2016 where {0} are type-variables:
2018 compiler.misc.where.description.intersection.1=\
2019 where {0} are intersection types: