Wed, 31 Jul 2013 10:52:01 +0100
8013179: assertion failure in javac when compiling with -source 1.6 -target 1.6
Reviewed-by: jjg
1 #
2 # Copyright (c) 1999, 2013, 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.attribute.value.must.be.constant=\
138 attribute value must be constant
140 # 0: statement type
141 compiler.err.bad.initializer=\
142 bad initializer for {0}
144 compiler.err.break.outside.switch.loop=\
145 break outside switch or loop
147 # 0: name
148 compiler.err.call.must.be.first.stmt.in.ctor=\
149 call to {0} must be first statement in constructor
151 # 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
152 compiler.err.cant.apply.symbol=\
153 {0} {1} in {4} {5} cannot be applied to given types;\n\
154 required: {2}\n\
155 found: {3}\n\
156 reason: {6}
158 # 0: symbol kind, 1: name, 2: list of type
159 compiler.err.cant.apply.symbols=\
160 no suitable {0} found for {1}({2})
162 # 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
163 compiler.misc.cant.apply.symbol=\
164 {0} {1} in {4} {5} cannot be applied to given types\n\
165 required: {2}\n\
166 found: {3}\n\
167 reason: {6}
169 # 0: symbol kind, 1: name, 2: list of type
170 compiler.misc.cant.apply.symbols=\
171 no suitable {0} found for {1}({2})
173 # 0: symbol kind, 1: symbol
174 compiler.misc.no.abstracts=\
175 no abstract method found in {0} {1}
177 # 0: symbol kind, 1: symbol
178 compiler.misc.incompatible.abstracts=\
179 multiple non-overriding abstract methods found in {0} {1}
181 compiler.err.bad.functional.intf.anno=\
182 Unexpected @FunctionalInterface annotation
184 # 0: message segment
185 compiler.err.bad.functional.intf.anno.1=\
186 Unexpected @FunctionalInterface annotation\n\
187 {0}
189 # 0: symbol
190 compiler.misc.not.a.functional.intf=\
191 {0} is not a functional interface
193 # 0: symbol, 1: message segment
194 compiler.misc.not.a.functional.intf.1=\
195 {0} is not a functional interface\n\
196 {1}
198 # 0: symbol, 1: symbol kind, 2: symbol
199 compiler.misc.invalid.generic.lambda.target=\
200 invalid functional descriptor for lambda expression\n\
201 method {0} in {1} {2} is generic
203 # 0: symbol kind, 1: symbol
204 compiler.misc.incompatible.descs.in.functional.intf=\
205 incompatible function descriptors found in {0} {1}
207 # 0: name, 1: list of type, 2: type, 3: list of type
208 compiler.misc.descriptor=\
209 descriptor: {2} {0}({1})
211 # 0: name, 1: list of type, 2: type, 3: list of type
212 compiler.misc.descriptor.throws=\
213 descriptor: {2} {0}({1}) throws {3}
215 # 0: type
216 compiler.misc.no.suitable.functional.intf.inst=\
217 cannot infer functional interface descriptor for {0}
219 # 0: message segment
220 compiler.misc.bad.intersection.target.for.functional.expr=\
221 bad intersection type target for lambda or method reference\n\
222 {0}
224 # 0: symbol or type
225 compiler.misc.not.an.intf.component=\
226 component type {0} is not an interface
228 # 0: symbol kind, 1: message segment
229 compiler.err.invalid.mref=\
230 invalid {0} reference\n\
231 {1}
233 # 0: symbol kind, 1: message segment
234 compiler.misc.invalid.mref=\
235 invalid {0} reference\n\
236 {1}
238 compiler.misc.static.mref.with.targs=\
239 parameterized qualifier on static method reference
241 compiler.misc.static.bound.mref=\
242 static bound method reference
244 # 0: symbol
245 compiler.err.cant.assign.val.to.final.var=\
246 cannot assign a value to final variable {0}
248 # 0: symbol, 1: message segment
249 compiler.err.cant.ref.non.effectively.final.var=\
250 local variables referenced from {1} must be final or effectively final
253 compiler.misc.lambda=\
254 a lambda expression
256 compiler.misc.inner.cls=\
257 an inner class
259 # 0: type
260 compiler.err.cant.deref=\
261 {0} cannot be dereferenced
263 compiler.err.cant.extend.intf.annotation=\
264 ''extends'' not allowed for @interfaces
266 # 0: symbol
267 compiler.err.cant.inherit.from.final=\
268 cannot inherit from final {0}
270 # 0: symbol
271 compiler.err.cant.ref.before.ctor.called=\
272 cannot reference {0} before supertype constructor has been called
274 compiler.err.cant.select.static.class.from.param.type=\
275 cannot select a static class from a parameterized type
277 # 0: symbol, 1: string, 2: string
278 compiler.err.cant.inherit.diff.arg=\
279 {0} cannot be inherited with different arguments: <{1}> and <{2}>
281 compiler.err.catch.without.try=\
282 ''catch'' without ''try''
284 # 0: symbol kind, 1: symbol
285 compiler.err.clash.with.pkg.of.same.name=\
286 {0} {1} clashes with package of same name
288 compiler.err.class.not.allowed=\
289 class, interface or enum declaration not allowed here
291 compiler.err.const.expr.req=\
292 constant expression required
294 compiler.err.cont.outside.loop=\
295 continue outside of loop
297 # 0: symbol
298 compiler.err.cyclic.inheritance=\
299 cyclic inheritance involving {0}
301 compiler.err.cyclic.annotation.element=\
302 cyclic annotation element type
304 # 0: unused
305 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
306 call to super not allowed in enum constructor
308 # 0: type
309 compiler.err.no.superclass=\
310 {0} has no superclass
312 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
313 compiler.err.concrete.inheritance.conflict=\
314 methods {0} from {1} and {2} from {3} are inherited with the same signature
316 compiler.err.default.allowed.in.intf.annotation.member=\
317 default value only allowed in an @interface member
319 # 0: symbol
320 compiler.err.doesnt.exist=\
321 package {0} does not exist
323 compiler.err.duplicate.annotation=\
324 duplicate annotation
326 # 0: type
327 compiler.err.duplicate.annotation.invalid.repeated=\
328 annotation {0} cannot be repeated\nIt does not define a valid containing annotation.
330 # 0: name, 1: type
331 compiler.err.duplicate.annotation.member.value=\
332 duplicate annotation member value {0} in {1}
334 # 0: type, 1: type
335 compiler.err.duplicate.annotation.missing.container=\
336 duplicate annotation: the declaration of {0} does not have a valid {1} annotation
338 # 0: type
339 compiler.err.invalid.repeatable.annotation=\
340 duplicate annotation: {0} is annotated with an invalid Repeatable annotation
342 # 0: symbol or type
343 compiler.err.invalid.repeatable.annotation.no.value=\
344 duplicate annotation: {0} is not a valid Repeatable, no value element method declared
346 # 0: type, 1: number
347 compiler.err.invalid.repeatable.annotation.multiple.values=\
348 duplicate annotation: {0} is not a valid Repeatable, {1} value element methods declared
350 # 0: type
351 compiler.err.invalid.repeatable.annotation.invalid.value=\
352 duplicate annotation: {0} is not a valid Repeatable: invalid value element
354 # 0: symbol type, 1: type, 2: type
355 compiler.err.invalid.repeatable.annotation.value.return=\
356 duplicate annotation: value element of containing annotation {0} should have type {2}, found {1}
358 # 0: symbol or type, 1: symbol
359 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
360 containing annotation {0} does not have a default value for element {1}
362 # 0: symbol, 1: type, 2: symbol, 3: type
363 compiler.err.invalid.repeatable.annotation.retention=\
364 containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3}
366 # 0: symbol, 1: symbol
367 compiler.err.invalid.repeatable.annotation.not.documented=\
368 containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is
370 # 0: symbol, 1: symbol
371 compiler.err.invalid.repeatable.annotation.not.inherited=\
372 containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is
374 # 0: symbol, 1: symbol
375 compiler.err.invalid.repeatable.annotation.incompatible.target=\
376 target of container annotation {0} is not a subset of target of repeated annotation {1}
378 # 0: symbol
379 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
380 container {0} must not be present at the same time as the element it contains
382 # 0: name
383 compiler.err.duplicate.class=\
384 duplicate class: {0}
386 compiler.err.duplicate.case.label=\
387 duplicate case label
389 compiler.err.duplicate.default.label=\
390 duplicate default label
392 compiler.err.else.without.if=\
393 ''else'' without ''if''
395 compiler.err.empty.char.lit=\
396 empty character literal
398 # 0: symbol
399 compiler.err.encl.class.required=\
400 an enclosing instance that contains {0} is required
402 compiler.err.enum.annotation.must.be.enum.constant=\
403 an enum annotation value must be an enum constant
405 compiler.err.enum.cant.be.instantiated=\
406 enum types may not be instantiated
408 compiler.err.enum.label.must.be.unqualified.enum=\
409 an enum switch case label must be the unqualified name of an enumeration constant
411 compiler.err.enum.no.subclassing=\
412 classes cannot directly extend java.lang.Enum
414 compiler.err.enum.types.not.extensible=\
415 enum types are not extensible
417 compiler.err.enum.no.finalize=\
418 enums cannot have finalize methods
420 # 0: file name, 1: string
421 compiler.err.error.reading.file=\
422 error reading {0}; {1}
424 # 0: type
425 compiler.err.except.already.caught=\
426 exception {0} has already been caught
428 # 0: type
429 compiler.err.except.never.thrown.in.try=\
430 exception {0} is never thrown in body of corresponding try statement
432 # 0: symbol
433 compiler.err.final.parameter.may.not.be.assigned=\
434 final parameter {0} may not be assigned
436 # 0: symbol
437 compiler.err.try.resource.may.not.be.assigned=\
438 auto-closeable resource {0} may not be assigned
440 # 0: symbol
441 compiler.err.multicatch.parameter.may.not.be.assigned=\
442 multi-catch parameter {0} may not be assigned
444 # 0: type, 1: type
445 compiler.err.multicatch.types.must.be.disjoint=\
446 Alternatives in a multi-catch statement cannot be related by subclassing\n\
447 Alternative {0} is a subclass of alternative {1}
449 compiler.err.finally.without.try=\
450 ''finally'' without ''try''
452 # 0: type, 1: message segment
453 compiler.err.foreach.not.applicable.to.type=\
454 for-each not applicable to expression type\n\
455 required: {1}\n\
456 found: {0}
458 compiler.err.fp.number.too.large=\
459 floating point number too large
461 compiler.err.fp.number.too.small=\
462 floating point number too small
464 compiler.err.generic.array.creation=\
465 generic array creation
467 compiler.err.generic.throwable=\
468 a generic class may not extend java.lang.Throwable
470 # 0: symbol
471 compiler.err.icls.cant.have.static.decl=\
472 Illegal static declaration in inner class {0}\n\
473 modifier \''static\'' is only allowed in constant variable declarations
475 # 0: string
476 compiler.err.illegal.char=\
477 illegal character: ''{0}''
479 compiler.err.illegal.char.for.encoding=\
480 unmappable character for encoding {0}
482 # 0: set of modifier, 1: set of modifier
483 compiler.err.illegal.combination.of.modifiers=\
484 illegal combination of modifiers: {0} and {1}
486 compiler.err.illegal.enum.static.ref=\
487 illegal reference to static field from initializer
489 compiler.err.illegal.esc.char=\
490 illegal escape character
492 compiler.err.illegal.forward.ref=\
493 illegal forward reference
495 # 0: symbol, 1: string
496 compiler.err.not.in.profile=\
497 {0} is not available in profile ''{1}''
499 # 0: symbol
500 compiler.warn.forward.ref=\
501 reference to variable ''{0}'' before it has been initialized
503 compiler.err.illegal.self.ref=\
504 self-reference in initializer
506 # 0: symbol
507 compiler.warn.self.ref=\
508 self-reference in initializer of variable ''{0}''
510 compiler.err.illegal.generic.type.for.instof=\
511 illegal generic type for instanceof
513 # 0: type
514 compiler.err.illegal.initializer.for.type=\
515 illegal initializer for {0}
517 compiler.err.illegal.line.end.in.char.lit=\
518 illegal line end in character literal
520 compiler.err.illegal.nonascii.digit=\
521 illegal non-ASCII digit
523 compiler.err.illegal.underscore=\
524 illegal underscore
526 compiler.err.illegal.dot=\
527 illegal ''.''
529 # 0: symbol
530 compiler.err.illegal.qual.not.icls=\
531 illegal qualifier; {0} is not an inner class
533 compiler.err.illegal.start.of.expr=\
534 illegal start of expression
536 compiler.err.illegal.start.of.stmt=\
537 illegal start of statement
539 compiler.err.illegal.start.of.type=\
540 illegal start of type
542 compiler.err.illegal.unicode.esc=\
543 illegal unicode escape
545 # 0: symbol
546 compiler.err.import.requires.canonical=\
547 import requires canonical name for {0}
549 compiler.err.improperly.formed.type.param.missing=\
550 improperly formed type, some parameters are missing
552 compiler.err.improperly.formed.type.inner.raw.param=\
553 improperly formed type, type arguments given on a raw type
555 # 0: type, 1: type
556 compiler.err.incomparable.types=\
557 incomparable types: {0} and {1}
559 # 0: number
560 compiler.err.int.number.too.large=\
561 integer number too large: {0}
563 compiler.err.intf.annotation.members.cant.have.params=\
564 @interface members may not have parameters
566 compiler.err.intf.annotation.cant.have.type.params=\
567 @interface may not have type parameters
569 compiler.err.intf.annotation.members.cant.have.type.params=\
570 @interface members may not have type parameters
572 # 0: symbol, 1: type
573 compiler.err.intf.annotation.member.clash=\
574 @interface member clashes with method ''{0}'' in {1}
576 compiler.err.intf.expected.here=\
577 interface expected here
579 compiler.err.intf.meth.cant.have.body=\
580 interface abstract methods cannot have body
582 compiler.err.invalid.annotation.member.type=\
583 invalid type for annotation member
585 compiler.err.invalid.binary.number=\
586 binary numbers must contain at least one binary digit
588 compiler.err.invalid.hex.number=\
589 hexadecimal numbers must contain at least one hexadecimal digit
591 compiler.err.invalid.meth.decl.ret.type.req=\
592 invalid method declaration; return type required
594 compiler.err.varargs.and.old.array.syntax=\
595 legacy array notation not allowed on variable-arity parameter
597 compiler.err.varargs.and.receiver =\
598 varargs notation not allowed on receiver parameter
600 compiler.err.array.and.receiver =\
601 legacy array notation not allowed on receiver parameter
603 compiler.err.variable.not.allowed=\
604 variable declaration not allowed here
606 # 0: name
607 compiler.err.label.already.in.use=\
608 label {0} already in use
610 # 0: symbol
611 compiler.err.local.var.accessed.from.icls.needs.final=\
612 local variable {0} is accessed from within inner class; needs to be declared final
614 compiler.err.local.enum=\
615 enum types must not be local
617 compiler.err.cannot.create.array.with.type.arguments=\
618 cannot create array with type arguments
620 compiler.err.cannot.create.array.with.diamond=\
621 cannot create array with ''<>''
623 #
624 # limits. We don't give the limits in the diagnostic because we expect
625 # them to change, yet we want to use the same diagnostic. These are all
626 # detected during code generation.
627 #
628 compiler.err.limit.code=\
629 code too large
631 compiler.err.limit.code.too.large.for.try.stmt=\
632 code too large for try statement
634 compiler.err.limit.dimensions=\
635 array type has too many dimensions
637 compiler.err.limit.locals=\
638 too many local variables
640 compiler.err.limit.parameters=\
641 too many parameters
643 compiler.err.limit.pool=\
644 too many constants
646 compiler.err.limit.pool.in.class=\
647 too many constants in class {0}
649 compiler.err.limit.stack=\
650 code requires too much stack
652 compiler.err.limit.string=\
653 constant string too long
655 compiler.err.limit.string.overflow=\
656 UTF8 representation for string \"{0}...\" is too long for the constant pool
658 compiler.err.malformed.fp.lit=\
659 malformed floating point literal
661 compiler.err.method.does.not.override.superclass=\
662 method does not override or implement a method from a supertype
664 compiler.err.missing.meth.body.or.decl.abstract=\
665 missing method body, or declare abstract
667 compiler.err.missing.ret.stmt=\
668 missing return statement
670 # 0: unused
671 compiler.misc.missing.ret.val=\
672 missing return value
674 compiler.misc.unexpected.ret.val=\
675 unexpected return value
677 # 0: set of modifier
678 compiler.err.mod.not.allowed.here=\
679 modifier {0} not allowed here
681 compiler.err.intf.not.allowed.here=\
682 interface not allowed here
684 compiler.err.enums.must.be.static=\
685 enum declarations allowed only in static contexts
687 # 0: symbol, 1: symbol
688 compiler.err.name.clash.same.erasure=\
689 name clash: {0} and {1} have the same erasure
691 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
692 compiler.err.name.clash.same.erasure.no.override=\
693 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
695 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
696 compiler.err.name.clash.same.erasure.no.override.1=\
697 name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
698 first method: {2} in {3}\n\
699 second method: {4} in {5}
701 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
702 compiler.err.name.clash.same.erasure.no.hide=\
703 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
705 compiler.err.name.reserved.for.internal.use=\
706 {0} is reserved for internal use
708 compiler.err.native.meth.cant.have.body=\
709 native methods cannot have a body
711 # 0: type, 1: type
712 compiler.err.neither.conditional.subtype=\
713 incompatible types for ?: neither is a subtype of the other\n\
714 second operand: {0}\n\
715 third operand : {1}
717 # 0: message segment
718 compiler.misc.incompatible.type.in.conditional=\
719 bad type in conditional expression\n\
720 {0}
722 compiler.misc.conditional.target.cant.be.void=\
723 target-type for conditional expression cannot be void
725 # 0: type
726 compiler.misc.incompatible.ret.type.in.lambda=\
727 bad return type in lambda expression\n\
728 {0}
730 # 0: type
731 compiler.misc.incompatible.ret.type.in.mref=\
732 bad return type in method reference\n\
733 {0}
735 # 0: list of type
736 compiler.err.incompatible.thrown.types.in.lambda=\
737 incompatible thrown types {0} in lambda expression
739 # 0: list of type
740 compiler.err.incompatible.thrown.types.in.mref=\
741 incompatible thrown types {0} in method reference
743 compiler.misc.incompatible.arg.types.in.lambda=\
744 incompatible parameter types in lambda expression
746 compiler.misc.incompatible.arg.types.in.mref=\
747 incompatible parameter types in method reference
749 # 0: list of type, 1: message segment
750 compiler.misc.bad.arg.types.in.lambda=\
751 cannot type-check lambda expression with inferred parameter types\n\
752 inferred types: {0}
754 compiler.err.new.not.allowed.in.annotation=\
755 ''new'' not allowed in an annotation
757 compiler.err.no.annotation.member=\
758 no annotation member {0} in {1}
760 compiler.err.no.encl.instance.of.type.in.scope=\
761 no enclosing instance of type {0} is in scope
763 compiler.err.no.intf.expected.here=\
764 no interface expected here
766 compiler.err.no.match.entry=\
767 {0} has no match in entry in {1}; required {2}
769 compiler.err.not.annotation.type=\
770 {0} is not an annotation type
772 # 0: symbol, 1: symbol
773 compiler.err.not.def.access.class.intf.cant.access=\
774 {0} in {1} is defined in an inaccessible class or interface
776 # 0: symbol, 1: symbol
777 compiler.misc.not.def.access.class.intf.cant.access=\
778 {0} in {1} is defined in an inaccessible class or interface
780 # 0: symbol, 1: list of type, 2: type
781 compiler.misc.cant.access.inner.cls.constr=\
782 cannot access constructor {0}({1})\n\
783 an enclosing instance of type {2} is not in scope
785 # 0: symbol, 1: symbol
786 compiler.err.not.def.public.cant.access=\
787 {0} is not public in {1}; cannot be accessed from outside package
789 # 0: symbol, 1: symbol
790 compiler.misc.not.def.public.cant.access=\
791 {0} is not public in {1}; cannot be accessed from outside package
793 # 0: name
794 compiler.err.not.loop.label=\
795 not a loop label: {0}
797 compiler.err.not.stmt=\
798 not a statement
800 # 0: symbol
801 compiler.err.not.encl.class=\
802 not an enclosing class: {0}
804 # 0: name, 1: type, 2: unused
805 compiler.err.operator.cant.be.applied=\
806 bad operand type {1} for unary operator ''{0}''
808 # 0: name, 1: type, 2: type
809 compiler.err.operator.cant.be.applied.1=\
810 bad operand types for binary operator ''{0}''\n\
811 first type: {1}\n\
812 second type: {2}
814 compiler.err.pkg.annotations.sb.in.package-info.java=\
815 package annotations should be in file package-info.java
817 # 0: symbol
818 compiler.err.pkg.clashes.with.class.of.same.name=\
819 package {0} clashes with class of same name
821 compiler.err.warnings.and.werror=\
822 warnings found and -Werror specified
824 # Errors related to annotation processing
826 # 0: symbol, 1: string, 2: stack-trace
827 compiler.err.proc.cant.access=\
828 cannot access {0}\n\
829 {1}\n\
830 Consult the following stack trace for details.\n\
831 {2}
833 # 0: symbol, 1: string
834 compiler.err.proc.cant.access.1=\
835 cannot access {0}\n\
836 {1}
838 # 0: string
839 compiler.err.proc.cant.find.class=\
840 Could not find class file for ''{0}''.
842 # Print a client-generated error message; assumed to be localized, no translation required
843 # 0: string
844 compiler.err.proc.messager=\
845 {0}
847 # 0: list of string
848 compiler.err.proc.no.explicit.annotation.processing.requested=\
849 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
851 compiler.err.proc.no.service=\
852 A ServiceLoader was not usable and is required for annotation processing.
854 compiler.err.proc.processor.bad.option.name=\
855 Bad option name ''{0}'' provided by processor ''{1}''
857 # 0: string
858 compiler.err.proc.processor.cant.instantiate=\
859 Could not instantiate an instance of processor ''{0}''
861 # 0: string
862 compiler.err.proc.processor.not.found=\
863 Annotation processor ''{0}'' not found
865 # 0: string
866 compiler.err.proc.processor.wrong.type=\
867 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
869 compiler.err.proc.service.problem=\
870 Error creating a service loader to load Processors.
872 compiler.err.proc.bad.config.file=\
873 Bad service configuration file, or exception thrown while constructing Processor object: {0}
875 compiler.err.proc.cant.create.loader=\
876 Could not create class loader for annotation processors: {0}
878 # 0: unused
879 compiler.err.qualified.new.of.static.class=\
880 qualified new of static class
882 compiler.err.recursive.ctor.invocation=\
883 recursive constructor invocation
885 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
886 compiler.err.ref.ambiguous=\
887 reference to {0} is ambiguous\n\
888 both {1} {2} in {3} and {4} {5} in {6} match
890 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
891 compiler.misc.ref.ambiguous=\
892 reference to {0} is ambiguous\n\
893 both {1} {2} in {3} and {4} {5} in {6} match
895 compiler.err.repeated.annotation.target=\
896 repeated annotation target
898 compiler.err.repeated.interface=\
899 repeated interface
901 compiler.err.repeated.modifier=\
902 repeated modifier
904 # 0: symbol, 1: set of modifier, 2: symbol
905 compiler.err.report.access=\
906 {0} has {1} access in {2}
908 # 0: symbol, 1: set of modifier, 2: symbol
909 compiler.misc.report.access=\
910 {0} has {1} access in {2}
912 compiler.err.ret.outside.meth=\
913 return outside method
915 compiler.err.signature.doesnt.match.supertype=\
916 signature does not match {0}; incompatible supertype
918 compiler.err.signature.doesnt.match.intf=\
919 signature does not match {0}; incompatible interfaces
921 # 0: number, 1: number
922 compiler.err.method.invoked.with.incorrect.number.arguments=\
923 method invoked with incorrect number of arguments; expected {0}, found {1}
925 # 0: symbol, 1: symbol, 2: symbol
926 compiler.err.does.not.override.abstract=\
927 {0} is not abstract and does not override abstract method {1} in {2}
929 compiler.err.source.cant.overwrite.input.file=\
930 error writing source; cannot overwrite input file {0}
932 compiler.err.stack.sim.error=\
933 Internal error: stack sim error on {0}
935 compiler.err.static.imp.only.classes.and.interfaces=\
936 static import only from classes and interfaces
938 compiler.err.string.const.req=\
939 constant string expression required
941 # 0: symbol, 1: symbol
942 compiler.err.synthetic.name.conflict=\
943 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
945 # 0: symbol, 1: symbol
946 compiler.warn.synthetic.name.conflict=\
947 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
949 compiler.err.throws.not.allowed.in.intf.annotation=\
950 throws clause not allowed in @interface members
952 compiler.err.try.without.catch.or.finally=\
953 ''try'' without ''catch'' or ''finally''
955 compiler.err.try.without.catch.finally.or.resource.decls=\
956 ''try'' without ''catch'', ''finally'' or resource declarations
958 # 0: symbol
959 compiler.err.type.doesnt.take.params=\
960 type {0} does not take parameters
962 compiler.err.type.var.cant.be.deref=\
963 cannot select from a type variable
965 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
966 a type variable may not be followed by other bounds
968 compiler.err.type.var.more.than.once=\
969 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
971 compiler.err.type.var.more.than.once.in.result=\
972 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
974 # 0: type, 1: type, 2: string
975 compiler.err.types.incompatible.diff.ret=\
976 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
978 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
979 compiler.err.types.incompatible.unrelated.defaults=\
980 {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
982 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
983 compiler.err.types.incompatible.abstract.default=\
984 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
986 # 0: name, 1: kind, 2: symbol
987 compiler.err.default.overrides.object.member=\
988 default method {0} in {1} {2} overrides a member of java.lang.Object
990 # 0: type
991 compiler.err.illegal.static.intf.meth.call=\
992 illegal static interface method call\n\
993 the receiver expression should be replaced with the type qualifier ''{0}''
995 # 0: type, 1: message segment
996 compiler.err.illegal.default.super.call=\
997 bad type qualifier {0} in default super call\n\
998 {1}
1000 # 0: symbol, 1: type
1001 compiler.misc.overridden.default=\
1002 method {0} is overridden in {1}
1004 # 0: symbol, 1: type or symbol
1005 compiler.misc.redundant.supertype=\
1006 redundant interface {0} is extended by {1}
1008 compiler.err.unclosed.char.lit=\
1009 unclosed character literal
1011 compiler.err.unclosed.comment=\
1012 unclosed comment
1014 compiler.err.unclosed.str.lit=\
1015 unclosed string literal
1017 # 0: name
1018 compiler.err.unsupported.encoding=\
1019 unsupported encoding: {0}
1021 compiler.err.io.exception=\
1022 error reading source file: {0}
1024 # 0: name
1025 compiler.err.undef.label=\
1026 undefined label: {0}
1028 # 0: message segment, 1: unused
1029 compiler.err.cant.apply.diamond=\
1030 cannot infer type arguments for {0}
1032 # 0: message segment or type, 1: message segment
1033 compiler.err.cant.apply.diamond.1=\
1034 cannot infer type arguments for {0}\n\
1035 reason: {1}
1037 # 0: message segment or type, 1: message segment
1038 compiler.misc.cant.apply.diamond.1=\
1039 cannot infer type arguments for {0}\n\
1040 reason: {1}
1042 compiler.err.unreachable.stmt=\
1043 unreachable statement
1045 compiler.err.initializer.must.be.able.to.complete.normally=\
1046 initializer must be able to complete normally
1048 # 0: type
1049 compiler.err.unreported.exception.need.to.catch.or.throw=\
1050 unreported exception {0}; must be caught or declared to be thrown
1052 # 0: type
1053 compiler.err.unreported.exception.default.constructor=\
1054 unreported exception {0} in default constructor
1056 # 0: type, 1: name
1057 compiler.err.unreported.exception.implicit.close=\
1058 unreported exception {0}; must be caught or declared to be thrown\n\
1059 exception thrown from implicit call to close() on resource variable ''{1}''
1061 compiler.err.unsupported.cross.fp.lit=\
1062 hexadecimal floating-point literals are not supported on this VM
1064 compiler.err.void.not.allowed.here=\
1065 ''void'' type not allowed here
1067 # 0: string
1068 compiler.err.wrong.number.type.args=\
1069 wrong number of type arguments; required {0}
1071 # 0: symbol
1072 compiler.err.var.might.already.be.assigned=\
1073 variable {0} might already have been assigned
1075 # 0: symbol
1076 compiler.err.var.might.not.have.been.initialized=\
1077 variable {0} might not have been initialized
1079 # 0: symbol
1080 compiler.err.var.not.initialized.in.default.constructor=\
1081 variable {0} not initialized in the default constructor
1083 # 0: symbol
1084 compiler.err.var.might.be.assigned.in.loop=\
1085 variable {0} might be assigned in loop
1087 # 0: symbol, 1: message segment
1088 compiler.err.varargs.invalid.trustme.anno=\
1089 Invalid {0} annotation. {1}
1091 # 0: type
1092 compiler.misc.varargs.trustme.on.reifiable.varargs=\
1093 Varargs element type {0} is reifiable.
1095 # 0: symbol
1096 compiler.misc.varargs.trustme.on.non.varargs.meth=\
1097 Method {0} is not a varargs method.
1099 # 0: symbol
1100 compiler.misc.varargs.trustme.on.virtual.varargs=\
1101 Instance method {0} is not final.
1103 # 0: type, 1: symbol kind, 2: symbol
1104 compiler.misc.inaccessible.varargs.type=\
1105 formal varargs element type {0} is not accessible from {1} {2}
1107 # In the following string, {1} will always be the detail message from
1108 # java.io.IOException.
1109 # 0: symbol, 1: string
1110 compiler.err.class.cant.write=\
1111 error while writing {0}: {1}
1113 # In the following string, {0} is the name of the class in the Java source.
1114 # It really should be used two times..
1115 # 0: name
1116 compiler.err.class.public.should.be.in.file=\
1117 class {0} is public, should be declared in a file named {0}.java
1119 ## All errors which do not refer to a particular line in the source code are
1120 ## preceded by this string.
1121 compiler.err.error=\
1122 error:\u0020
1124 # The following error messages do not refer to a line in the source code.
1125 compiler.err.cant.read.file=\
1126 cannot read: {0}
1128 #####
1130 # Fatal Errors
1132 compiler.misc.fatal.err.no.java.lang=\
1133 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
1135 compiler.misc.fatal.err.cant.locate.meth=\
1136 Fatal Error: Unable to find method {0}
1138 compiler.misc.fatal.err.cant.locate.field=\
1139 Fatal Error: Unable to find field {0}
1141 compiler.misc.fatal.err.cant.locate.ctor=\
1142 Fatal Error: Unable to find constructor for {0}
1144 compiler.misc.fatal.err.cant.close=\
1145 Fatal Error: Cannot close compiler resources
1147 #####
1149 ##
1150 ## miscellaneous strings
1151 ##
1153 compiler.misc.source.unavailable=\
1154 (source unavailable)
1156 compiler.misc.base.membership=\
1157 all your base class are belong to us
1159 # 0: string, 1: string, 2: boolean
1160 compiler.misc.x.print.processor.info=\
1161 Processor {0} matches {1} and returns {2}.
1163 # 0: number, 1: string, 2: set of symbol, 3: boolean
1164 compiler.misc.x.print.rounds=\
1165 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1167 #####
1169 ## The following string will appear before all messages keyed as:
1170 ## "compiler.note".
1172 compiler.note.compressed.diags=\
1173 Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1175 compiler.note.potential.lambda.found=\
1176 This anonymous inner class creation can be turned into a lambda expression.
1178 # 0: boolean, 1: symbol
1179 compiler.note.lambda.stat=\
1180 Translating lambda expression\n\
1181 alternate metafactory = {0}\n\
1182 synthetic method = {1}
1184 # 0: boolean, 1: unused
1185 compiler.note.mref.stat=\
1186 Translating method reference\n\
1187 alternate metafactory = {0}\n\
1189 # 0: boolean, 1: symbol
1190 compiler.note.mref.stat.1=\
1191 Translating method reference\n\
1192 alternate metafactory = {0}\n\
1193 bridge method = {1}
1195 compiler.note.note=\
1196 Note:\u0020
1198 # 0: file name
1199 compiler.note.deprecated.filename=\
1200 {0} uses or overrides a deprecated API.
1202 compiler.note.deprecated.plural=\
1203 Some input files use or override a deprecated API.
1205 # The following string may appear after one of the above deprecation
1206 # messages.
1207 compiler.note.deprecated.recompile=\
1208 Recompile with -Xlint:deprecation for details.
1210 # 0: file name
1211 compiler.note.deprecated.filename.additional=\
1212 {0} has additional uses or overrides of a deprecated API.
1214 compiler.note.deprecated.plural.additional=\
1215 Some input files additionally use or override a deprecated API.
1217 # 0: file name
1218 compiler.note.unchecked.filename=\
1219 {0} uses unchecked or unsafe operations.
1221 compiler.note.unchecked.plural=\
1222 Some input files use unchecked or unsafe operations.
1224 # The following string may appear after one of the above deprecation
1225 # messages.
1226 compiler.note.unchecked.recompile=\
1227 Recompile with -Xlint:unchecked for details.
1229 # 0: file name
1230 compiler.note.unchecked.filename.additional=\
1231 {0} has additional unchecked or unsafe operations.
1233 compiler.note.unchecked.plural.additional=\
1234 Some input files additionally use unchecked or unsafe operations.
1236 # 0: file name
1237 compiler.note.sunapi.filename=\
1238 {0} uses internal proprietary API that may be removed in a future release.
1240 compiler.note.sunapi.plural=\
1241 Some input files use internal proprietary API that may be removed in a future release.
1243 # The following string may appear after one of the above sunapi messages.
1244 compiler.note.sunapi.recompile=\
1245 Recompile with -Xlint:sunapi for details.
1247 # 0: file name
1248 compiler.note.sunapi.filename.additional=\
1249 {0} uses additional internal proprietary API that may be removed in a future release.
1251 compiler.note.sunapi.plural.additional=\
1252 Some input files additionally use internal proprietary API that may be removed in a future release.
1254 # Notes related to annotation processing
1256 # Print a client-generated note; assumed to be localized, no translation required
1257 # 0: string
1258 compiler.note.proc.messager=\
1259 {0}
1261 #####
1263 # 0: number
1264 compiler.misc.count.error=\
1265 {0} error
1267 # 0: number
1268 compiler.misc.count.error.plural=\
1269 {0} errors
1271 # 0: number
1272 compiler.misc.count.warn=\
1273 {0} warning
1275 # 0: number
1276 compiler.misc.count.warn.plural=\
1277 {0} warnings
1279 compiler.misc.version.not.available=\
1280 (version info not available)
1282 ## extra output when using -verbose (JavaCompiler)
1284 # 0: symbol
1285 compiler.misc.verbose.checking.attribution=\
1286 [checking {0}]
1288 # 0: string
1289 compiler.misc.verbose.parsing.done=\
1290 [parsing completed {0}ms]
1292 # 0: file name
1293 compiler.misc.verbose.parsing.started=\
1294 [parsing started {0}]
1296 # 0: string
1297 compiler.misc.verbose.total=\
1298 [total {0}ms]
1300 # 0: file name
1301 compiler.misc.verbose.wrote.file=\
1302 [wrote {0}]
1304 ## extra output when using -verbose (Retro)
1305 compiler.misc.verbose.retro=\
1306 [retrofitting {0}]
1308 compiler.misc.verbose.retro.with=\
1309 \tretrofitting {0} with {1}
1311 compiler.misc.verbose.retro.with.list=\
1312 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1314 ## extra output when using -verbose (code/ClassReader)
1315 # 0: string
1316 compiler.misc.verbose.loading=\
1317 [loading {0}]
1319 # 0: string
1320 compiler.misc.verbose.sourcepath=\
1321 [search path for source files: {0}]
1323 # 0: string
1324 compiler.misc.verbose.classpath=\
1325 [search path for class files: {0}]
1327 ## extra output when using -checkclassfile (code/ClassReader)
1328 compiler.misc.ccf.found.later.version=\
1329 class file has later version than expected: {0}
1331 compiler.misc.ccf.unrecognized.attribute=\
1332 unrecognized attribute: {0}
1334 ## extra output when using -prompt (util/Log)
1335 compiler.misc.resume.abort=\
1336 R)esume, A)bort>
1338 #####
1340 ##
1341 ## warnings
1342 ##
1344 ## All warning messages are preceded by the following string.
1345 compiler.warn.warning=\
1346 warning:\u0020
1348 ## Warning messages may also include the following prefix to identify a
1349 ## lint option
1350 # 0: option name
1351 compiler.warn.lintOption=\
1352 [{0}]\u0020
1354 # 0: symbol
1355 compiler.warn.constant.SVUID=\
1356 serialVersionUID must be constant in class {0}
1358 # 0: file name
1359 compiler.warn.dir.path.element.not.found=\
1360 bad path element "{0}": no such directory
1362 compiler.warn.finally.cannot.complete=\
1363 finally clause cannot complete normally
1365 # 0: symbol, 1: symbol
1366 compiler.warn.has.been.deprecated=\
1367 {0} in {1} has been deprecated
1369 # 0: symbol
1370 compiler.warn.sun.proprietary=\
1371 {0} is internal proprietary API and may be removed in a future release
1373 compiler.warn.illegal.char.for.encoding=\
1374 unmappable character for encoding {0}
1376 # 0: symbol
1377 compiler.warn.improper.SVUID=\
1378 serialVersionUID must be declared static final in class {0}
1380 # 0: type, 1: type
1381 compiler.warn.inexact.non-varargs.call=\
1382 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1383 cast to {0} for a varargs call\n\
1384 cast to {1} for a non-varargs call and to suppress this warning
1386 # 0: list of type
1387 compiler.warn.unreachable.catch=\
1388 unreachable catch clause\n\
1389 thrown type {0} has already been caught
1391 # 0: list of type
1392 compiler.warn.unreachable.catch.1=\
1393 unreachable catch clause\n\
1394 thrown types {0} have already been caught
1396 # 0: symbol
1397 compiler.warn.long.SVUID=\
1398 serialVersionUID must be of type long in class {0}
1400 # 0: symbol
1401 compiler.warn.missing.SVUID=\
1402 serializable class {0} has no definition of serialVersionUID
1404 # 0: message segment
1405 compiler.warn.override.varargs.missing=\
1406 {0}; overridden method has no ''...''
1408 # 0: message segment
1409 compiler.warn.override.varargs.extra=\
1410 {0}; overriding method is missing ''...''
1412 compiler.warn.override.bridge=\
1413 {0}; overridden method is a bridge method
1415 # 0: symbol
1416 compiler.warn.pkg-info.already.seen=\
1417 a package-info.java file has already been seen for package {0}
1419 # 0: file name
1420 compiler.warn.path.element.not.found=\
1421 bad path element "{0}": no such file or directory
1423 compiler.warn.possible.fall-through.into.case=\
1424 possible fall-through into case
1426 # 0: type
1427 compiler.warn.redundant.cast=\
1428 redundant cast to {0}
1430 # 0: number
1431 compiler.warn.position.overflow=\
1432 Position encoding overflows at line {0}
1434 # 0: file name, 1: number, 2: number
1435 compiler.warn.big.major.version=\
1436 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1437 It is recommended that the compiler be upgraded.
1439 # 0: symbol kind, 1: symbol
1440 compiler.warn.static.not.qualified.by.type=\
1441 static {0} should be qualified by type name, {1}, instead of by an expression
1443 # 0: string
1444 compiler.warn.source.no.bootclasspath=\
1445 bootstrap class path not set in conjunction with -source {0}
1447 # 0: name, 1: number, 2: number, 3: number, 4: number
1448 compiler.warn.future.attr=\
1449 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1451 # Warnings related to annotation processing
1452 # 0: name
1453 compiler.warn.proc.package.does.not.exist=\
1454 package {0} does not exist
1456 # 0: name
1457 compiler.warn.proc.file.reopening=\
1458 Attempt to create a file for ''{0}'' multiple times
1460 # 0: name
1461 compiler.warn.proc.type.already.exists=\
1462 A file for type ''{0}'' already exists on the sourcepath or classpath
1464 # 0: name
1465 compiler.warn.proc.type.recreate=\
1466 Attempt to create a file for type ''{0}'' multiple times
1468 # 0: string
1469 compiler.warn.proc.illegal.file.name=\
1470 Cannot create file for illegal name ''{0}''.
1472 # 0: string, 1: string
1473 compiler.warn.proc.suspicious.class.name=\
1474 Creating file for a type whose name ends in {1}: ''{0}''
1476 # 0: name
1477 compiler.warn.proc.file.create.last.round=\
1478 File for type ''{0}'' created in the last round will not be subject to annotation processing.
1480 # 0: string, 1: string
1481 compiler.warn.proc.malformed.supported.string=\
1482 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1484 # 0: set of string
1485 compiler.warn.proc.annotations.without.processors=\
1486 No processor claimed any of these annotations: {0}
1488 # 0: source version, 1: string, 2: string
1489 compiler.warn.proc.processor.incompatible.source.version=\
1490 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1492 compiler.warn.proc.proc-only.requested.no.procs=\
1493 Annotation processing without compilation requested but no processors were found.
1495 compiler.warn.proc.use.implicit=\
1496 Implicitly compiled files were not subject to annotation processing.\n\
1497 Use -implicit to specify a policy for implicit compilation.
1499 compiler.warn.proc.use.proc.or.implicit=\
1500 Implicitly compiled files were not subject to annotation processing.\n\
1501 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1503 # Print a client-generated warning; assumed to be localized, no translation required
1504 # 0: string
1505 compiler.warn.proc.messager=\
1506 {0}
1508 # 0: set of name
1509 compiler.warn.proc.unclosed.type.files=\
1510 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1512 # 0: string
1513 compiler.warn.proc.unmatched.processor.options=\
1514 The following options were not recognized by any processor: ''{0}''
1516 compiler.warn.try.explicit.close.call=\
1517 explicit call to close() on an auto-closeable resource
1519 # 0: symbol
1520 compiler.warn.try.resource.not.referenced=\
1521 auto-closeable resource {0} is never referenced in body of corresponding try statement
1523 # 0: type
1524 compiler.warn.try.resource.throws.interrupted.exc=\
1525 auto-closeable resource {0} has a member method close() that could throw InterruptedException
1527 compiler.warn.unchecked.assign=\
1528 unchecked assignment: {0} to {1}
1530 # 0: symbol, 1: type
1531 compiler.warn.unchecked.assign.to.var=\
1532 unchecked assignment to variable {0} as member of raw type {1}
1534 # 0: symbol, 1: type
1535 compiler.warn.unchecked.call.mbr.of.raw.type=\
1536 unchecked call to {0} as a member of the raw type {1}
1538 compiler.warn.unchecked.cast.to.type=\
1539 unchecked cast to type {0}
1541 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1542 compiler.warn.unchecked.meth.invocation.applied=\
1543 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1544 required: {2}\n\
1545 found: {3}
1547 # 0: type
1548 compiler.warn.unchecked.generic.array.creation=\
1549 unchecked generic array creation for varargs parameter of type {0}
1551 # 0: type
1552 compiler.warn.unchecked.varargs.non.reifiable.type=\
1553 Possible heap pollution from parameterized vararg type {0}
1555 # 0: symbol
1556 compiler.warn.varargs.unsafe.use.varargs.param=\
1557 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1559 compiler.warn.missing.deprecated.annotation=\
1560 deprecated item is not annotated with @Deprecated
1562 compiler.warn.invalid.archive.file=\
1563 Unexpected file on path: {0}
1565 compiler.warn.unexpected.archive.file=\
1566 Unexpected extension for archive file: {0}
1568 compiler.warn.div.zero=\
1569 division by zero
1571 compiler.warn.empty.if=\
1572 empty statement after if
1574 compiler.warn.annotation.method.not.found=\
1575 Cannot find annotation method ''{1}()'' in type ''{0}''
1577 compiler.warn.annotation.method.not.found.reason=\
1578 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1580 # 0: symbol, 1: name
1581 compiler.warn.unknown.enum.constant=\
1582 unknown enum constant {1}.{2}
1584 # 0: symbol, 1: name, 2: message segment
1585 compiler.warn.unknown.enum.constant.reason=\
1586 unknown enum constant {1}.{2}\n\
1587 reason: {3}
1589 # 0: type, 1: type
1590 compiler.warn.raw.class.use=\
1591 found raw type: {0}\n\
1592 missing type arguments for generic class {1}
1594 # 0: unused, 1: unused
1595 compiler.warn.diamond.redundant.args=\
1596 redundant type arguments in new expression (use diamond operator instead).
1598 # 0: type, 1: type
1599 compiler.warn.diamond.redundant.args.1=\
1600 redundant type arguments in new expression (use diamond operator instead).\n\
1601 explicit: {0}\n\
1602 inferred: {1}
1604 # 0: symbol, 1: message segment
1605 compiler.warn.varargs.redundant.trustme.anno=\
1606 Redundant {0} annotation. {1}
1608 #####
1610 ## The following are tokens which are non-terminals in the language. They should
1611 ## be named as JLS3 calls them when translated to the appropriate language.
1612 compiler.misc.token.identifier=\
1613 <identifier>
1615 compiler.misc.token.character=\
1616 <character>
1618 compiler.misc.token.string=\
1619 <string>
1621 compiler.misc.token.integer=\
1622 <integer>
1624 compiler.misc.token.long-integer=\
1625 <long integer>
1627 compiler.misc.token.float=\
1628 <float>
1630 compiler.misc.token.double=\
1631 <double>
1633 compiler.misc.token.bad-symbol=\
1634 <bad symbol>
1636 compiler.misc.token.end-of-input=\
1637 <end of input>
1639 ## The argument to the following string will always be one of the following:
1640 ## 1. one of the above non-terminals
1641 ## 2. a keyword (JLS1.8)
1642 ## 3. a boolean literal (JLS3.10.3)
1643 ## 4. the null literal (JLS3.10.7)
1644 ## 5. a Java separator (JLS3.11)
1645 ## 6. an operator (JLS3.12)
1646 ##
1647 ## This is the only place these tokens will be used.
1648 # 0: token
1649 compiler.err.expected=\
1650 {0} expected
1652 # 0: token, 1: token
1653 compiler.err.expected2=\
1654 {0} or {1} expected
1656 # 0: token, 1: token, 2: token
1657 compiler.err.expected3=\
1658 {0}, {1}, or {2} expected
1660 compiler.err.premature.eof=\
1661 reached end of file while parsing
1663 ## The following are related in form, but do not easily fit the above paradigm.
1664 compiler.err.dot.class.expected=\
1665 ''.class'' expected
1667 ## The argument to this string will always be either 'case' or 'default'.
1668 # 0: token
1669 compiler.err.orphaned=\
1670 orphaned {0}
1672 # 0: name
1673 compiler.misc.anonymous.class=\
1674 <anonymous {0}>
1676 # 0: name, 1: type
1677 compiler.misc.type.captureof=\
1678 capture#{0} of {1}
1680 compiler.misc.type.captureof.1=\
1681 capture#{0}
1683 compiler.misc.type.none=\
1684 <none>
1686 compiler.misc.unnamed.package=\
1687 unnamed package
1689 #####
1691 # 0: symbol, 1: message segment
1692 compiler.err.cant.access=\
1693 cannot access {0}\n\
1694 {1}
1696 compiler.misc.bad.class.file.header=\
1697 bad class file: {0}\n\
1698 {1}\n\
1699 Please remove or make sure it appears in the correct subdirectory of the classpath.
1701 # 0: file name, 1: message segment
1702 compiler.misc.bad.source.file.header=\
1703 bad source file: {0}\n\
1704 {1}\n\
1705 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1707 ## The following are all possible strings for the second argument ({1}) of the
1708 ## above strings.
1709 compiler.misc.bad.class.signature=\
1710 bad class signature: {0}
1712 #0: symbol, 1: symbol
1713 compiler.misc.bad.enclosing.class=\
1714 bad enclosing class for {0}: {1}
1716 # 0: symbol
1717 compiler.misc.bad.enclosing.method=\
1718 bad enclosing method attribute for class {0}
1720 compiler.misc.bad.runtime.invisible.param.annotations=\
1721 bad RuntimeInvisibleParameterAnnotations attribute: {0}
1723 compiler.misc.bad.const.pool.tag=\
1724 bad constant pool tag: {0}
1726 compiler.misc.bad.const.pool.tag.at=\
1727 bad constant pool tag: {0} at {1}
1729 compiler.misc.bad.signature=\
1730 bad signature: {0}
1732 compiler.misc.bad.type.annotation.value=\
1733 bad type annotation target type value: {0}
1735 compiler.misc.class.file.wrong.class=\
1736 class file contains wrong class: {0}
1738 compiler.misc.class.file.not.found=\
1739 class file for {0} not found
1741 # 0: name
1742 compiler.misc.file.doesnt.contain.class=\
1743 file does not contain class {0}
1745 compiler.misc.file.does.not.contain.package=\
1746 file does not contain package {0}
1748 compiler.misc.illegal.start.of.class.file=\
1749 illegal start of class file
1751 compiler.misc.unable.to.access.file=\
1752 unable to access file: {0}
1754 compiler.misc.unicode.str.not.supported=\
1755 unicode string in class file not supported
1757 compiler.misc.undecl.type.var=\
1758 undeclared type variable: {0}
1760 compiler.misc.wrong.version=\
1761 class file has wrong version {0}.{1}, should be {2}.{3}
1763 #####
1765 # 0: type, 1: type or symbol
1766 compiler.err.not.within.bounds=\
1767 type argument {0} is not within bounds of type-variable {1}
1769 ## The following are all possible strings for the second argument ({1}) of the
1770 ## above string.
1772 ## none yet...
1774 #####
1776 # 0: message segment
1777 compiler.err.prob.found.req=\
1778 incompatible types: {0}
1780 # 0: message segment
1781 compiler.misc.prob.found.req=\
1782 incompatible types: {0}
1784 # 0: message segment, 1: type, 2: type
1785 compiler.warn.prob.found.req=\
1786 {0}\n\
1787 required: {2}\n\
1788 found: {1}
1790 # 0: type, 1: type
1791 compiler.misc.inconvertible.types=\
1792 {0} cannot be converted to {1}
1794 # 0: type, 1: type
1795 compiler.misc.possible.loss.of.precision=\
1796 possible lossy conversion from {0} to {1}
1798 compiler.misc.unchecked.assign=\
1799 unchecked conversion
1801 # compiler.misc.storecheck=\
1802 # assignment might cause later store checks to fail
1803 # compiler.misc.unchecked=\
1804 # assigned array cannot dynamically check its stores
1805 compiler.misc.unchecked.cast.to.type=\
1806 unchecked cast
1808 # compiler.err.star.expected=\
1809 # ''*'' expected
1810 # compiler.err.no.elem.type=\
1811 # \[\*\] cannot have a type
1813 # 0: type
1814 compiler.misc.try.not.applicable.to.type=\
1815 try-with-resources not applicable to variable type\n\
1816 ({0})
1818 #####
1820 # 0: message segment or type, 1: message segment
1821 compiler.err.type.found.req=\
1822 unexpected type\n\
1823 required: {1}\n\
1824 found: {0}
1826 ## The following are all possible strings for the first argument ({0}) of the
1827 ## above string.
1828 compiler.misc.type.req.class=\
1829 class
1831 compiler.misc.type.req.class.array=\
1832 class or array
1834 compiler.misc.type.req.array.or.iterable=\
1835 array or java.lang.Iterable
1837 compiler.misc.type.req.ref=\
1838 reference
1840 compiler.misc.type.req.exact=\
1841 class or interface without bounds
1843 # 0: type
1844 compiler.misc.type.parameter=\
1845 type parameter {0}
1847 #####
1849 ## The following are all possible strings for the last argument of all those
1850 ## diagnostics whose key ends in ".1"
1852 # 0: type, 1: list of type
1853 compiler.misc.no.unique.maximal.instance.exists=\
1854 no unique maximal instance exists for type variable {0} with upper bounds {1}
1856 compiler.misc.no.unique.minimal.instance.exists=\
1857 no unique minimal instance exists for type variable {0} with lower bounds {1}
1859 # 0: type, 1: list of type
1860 compiler.misc.incompatible.upper.bounds=\
1861 inference variable {0} has incompatible upper bounds {1}
1863 # 0: type, 1: list of type, 2: list of type
1864 compiler.misc.incompatible.eq.upper.bounds=\
1865 inference variable {0} has incompatible bounds\n\
1866 equality constraints: {1}\n\
1867 upper bounds: {2}
1869 # 0: type, 1: list of type, 2: list of type
1870 compiler.misc.incompatible.eq.lower.bounds=\
1871 inference variable {0} has incompatible bounds\n\
1872 equality constraints: {1}\n\
1873 lower bounds: {2}
1875 # 0: list of type, 1: type, 2: type
1876 compiler.misc.infer.no.conforming.instance.exists=\
1877 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1879 # 0: list of type, 1: message segment
1880 compiler.misc.infer.no.conforming.assignment.exists=\
1881 cannot infer type-variable(s) {0}\n\
1882 (argument mismatch; {1})
1884 # 0: list of type
1885 compiler.misc.infer.arg.length.mismatch=\
1886 cannot infer type-variable(s) {0}\n\
1887 (actual and formal argument lists differ in length)
1889 # 0: list of type, 1: message segment
1890 compiler.misc.infer.varargs.argument.mismatch=\
1891 cannot infer type-variable(s) {0}\n\
1892 (varargs mismatch; {1})
1894 # 0: type, 1: list of type
1895 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
1896 inferred type does not conform to upper bound(s)\n\
1897 inferred: {0}\n\
1898 upper bound(s): {1}
1900 # 0: type, 1: list of type
1901 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
1902 inferred type does not conform to lower bound(s)\n\
1903 inferred: {0}\n\
1904 lower bound(s): {1}
1906 # 0: type, 1: list of type
1907 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
1908 inferred type does not conform to equality constraint(s)\n\
1909 inferred: {0}\n\
1910 equality constraints(s): {1}
1912 # 0: list of type
1913 compiler.misc.cyclic.inference=\
1914 Cannot instantiate inference variables {0} because of an inference loop
1916 # 0: symbol
1917 compiler.misc.diamond=\
1918 {0}<>
1920 # 0: type
1921 compiler.misc.diamond.non.generic=\
1922 cannot use ''<>'' with non-generic class {0}
1924 # 0: unused
1925 compiler.misc.diamond.and.explicit.params=\
1926 cannot use ''<>'' with explicit type parameters for constructor
1928 # 0: type, 1: list of type
1929 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1930 explicit type argument {0} does not conform to declared bound(s) {1}
1932 compiler.misc.arg.length.mismatch=\
1933 actual and formal argument lists differ in length
1935 # 0: message segment
1936 compiler.misc.no.conforming.assignment.exists=\
1937 argument mismatch; {0}
1939 # 0: message segment
1940 compiler.misc.varargs.argument.mismatch=\
1941 varargs mismatch; {0}
1943 #####
1945 # 0: symbol or type, 1: file name
1946 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
1947 auxiliary class {0} in {1} should not be accessed from outside its own source file
1949 ## The first argument ({0}) is a "kindname".
1950 # 0: symbol kind, 1: symbol, 2: symbol
1951 compiler.err.abstract.cant.be.accessed.directly=\
1952 abstract {0} {1} in {2} cannot be accessed directly
1954 ## The first argument ({0}) is a "kindname".
1955 # 0: symbol kind, 1: symbol
1956 compiler.err.non-static.cant.be.ref=\
1957 non-static {0} {1} cannot be referenced from a static context
1959 # 0: symbol kind, 1: symbol
1960 compiler.misc.non-static.cant.be.ref=\
1961 non-static {0} {1} cannot be referenced from a static context
1963 # 0: symbol kind, 1: symbol
1964 compiler.misc.static.method.in.unbound.lookup=\
1965 static {0} {1} found in unbound lookup
1967 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1968 ## of kindnames (the list should be identical to that provided in source.
1969 compiler.err.unexpected.type=\
1970 unexpected type\n\
1971 required: {0}\n\
1972 found: {1}
1974 compiler.err.unexpected.lambda=\
1975 lambda expression not expected here
1977 compiler.err.unexpected.mref=\
1978 method reference not expected here
1980 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1981 ## The second argument {1} is the non-resolved symbol
1982 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1983 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1984 # 0: symbol kind, 1: name, 2: unused, 3: unused
1985 compiler.err.cant.resolve=\
1986 cannot find symbol\n\
1987 symbol: {0} {1}
1989 # 0: symbol kind, 1: name, 2: unused, 3: list of type
1990 compiler.err.cant.resolve.args=\
1991 cannot find symbol\n\
1992 symbol: {0} {1}({3})
1994 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
1995 compiler.err.cant.resolve.args.params=\
1996 cannot find symbol\n\
1997 symbol: {0} <{2}>{1}({3})
1999 ## arguments from {0} to {3} have the same meaning as above
2000 ## The fifth argument {4} is a location subdiagnostic (see below)
2001 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
2002 compiler.err.cant.resolve.location=\
2003 cannot find symbol\n\
2004 symbol: {0} {1}\n\
2005 location: {4}
2007 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2008 compiler.err.cant.resolve.location.args=\
2009 cannot find symbol\n\
2010 symbol: {0} {1}({3})\n\
2011 location: {4}
2013 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2014 compiler.err.cant.resolve.location.args.params=\
2015 cannot find symbol\n\
2016 symbol: {0} <{2}>{1}({3})\n\
2017 location: {4}
2019 ### Following are replicated/used for method reference diagnostics
2021 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2022 compiler.misc.cant.resolve.location.args=\
2023 cannot find symbol\n\
2024 symbol: {0} {1}({3})\n\
2025 location: {4}
2027 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2028 compiler.misc.cant.resolve.location.args.params=\
2029 cannot find symbol\n\
2030 symbol: {0} <{2}>{1}({3})\n\
2031 location: {4}
2033 ##a location subdiagnostic is composed as follows:
2034 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
2035 ## The second argument {1} is the location name
2036 ## The third argument {2} is the location type (only when {1} is a variable name)
2038 # 0: symbol kind, 1: type or symbol, 2: unused
2039 compiler.misc.location=\
2040 {0} {1}
2042 # 0: symbol kind, 1: symbol, 2: type
2043 compiler.misc.location.1=\
2044 {0} {1} of type {2}
2046 ## The following are all possible string for "kindname".
2047 ## They should be called whatever the JLS calls them after it been translated
2048 ## to the appropriate language.
2049 # compiler.misc.kindname.constructor=\
2050 # static member
2051 compiler.misc.kindname.annotation=\
2052 @interface
2054 compiler.misc.kindname.constructor=\
2055 constructor
2057 compiler.misc.kindname.enum=\
2058 enum
2060 compiler.misc.kindname.interface=\
2061 interface
2063 compiler.misc.kindname.static=\
2064 static
2066 compiler.misc.kindname.type.variable=\
2067 type variable
2069 compiler.misc.kindname.type.variable.bound=\
2070 bound of type variable
2072 compiler.misc.kindname.variable=\
2073 variable
2075 compiler.misc.kindname.value=\
2076 value
2078 compiler.misc.kindname.method=\
2079 method
2081 compiler.misc.kindname.class=\
2082 class
2084 compiler.misc.kindname.package=\
2085 package
2087 compiler.misc.kindname.static.init=\
2088 static initializer
2090 compiler.misc.kindname.instance.init=\
2091 instance initializer
2093 #####
2095 compiler.misc.no.args=\
2096 no arguments
2098 # 0: message segment
2099 compiler.err.override.static=\
2100 {0}\n\
2101 overriding method is static
2103 # 0: message segment, 1: set of modifier
2104 compiler.err.override.meth=\
2105 {0}\n\
2106 overridden method is {1}
2108 # 0: message segment, 1: type
2109 compiler.err.override.meth.doesnt.throw=\
2110 {0}\n\
2111 overridden method does not throw {1}
2113 # In the following string {1} is a space separated list of Java Keywords, as
2114 # they would have been declared in the source code
2115 # 0: message segment, 1: set of modifier
2116 compiler.err.override.weaker.access=\
2117 {0}\n\
2118 attempting to assign weaker access privileges; was {1}
2120 # 0: message segment, 1: type, 2: type
2121 compiler.err.override.incompatible.ret=\
2122 {0}\n\
2123 return type {1} is not compatible with {2}
2125 # 0: message segment, 1: type, 2: type
2126 compiler.warn.override.unchecked.ret=\
2127 {0}\n\
2128 return type requires unchecked conversion from {1} to {2}
2130 # 0: message segment, 1: type
2131 compiler.warn.override.unchecked.thrown=\
2132 {0}\n\
2133 overridden method does not throw {1}
2135 # 0: symbol
2136 compiler.warn.override.equals.but.not.hashcode=\
2137 Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
2139 ## The following are all possible strings for the first argument ({0}) of the
2140 ## above strings.
2141 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2142 compiler.misc.cant.override=\
2143 {0} in {1} cannot override {2} in {3}
2145 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2146 compiler.misc.cant.implement=\
2147 {0} in {1} cannot implement {2} in {3}
2149 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2150 compiler.misc.clashes.with=\
2151 {0} in {1} clashes with {2} in {3}
2153 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2154 compiler.misc.unchecked.override=\
2155 {0} in {1} overrides {2} in {3}
2157 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2158 compiler.misc.unchecked.implement=\
2159 {0} in {1} implements {2} in {3}
2161 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2162 compiler.misc.unchecked.clash.with=\
2163 {0} in {1} overrides {2} in {3}
2165 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2166 compiler.misc.varargs.override=\
2167 {0} in {1} overrides {2} in {3}
2169 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2170 compiler.misc.varargs.implement=\
2171 {0} in {1} implements {2} in {3}
2173 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2174 compiler.misc.varargs.clash.with=\
2175 {0} in {1} overrides {2} in {3}
2177 # 0: unused
2178 compiler.misc.diamond.and.anon.class=\
2179 cannot use ''<>'' with anonymous inner classes
2181 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
2182 compiler.misc.inapplicable.method=\
2183 {0} {1}.{2} is not applicable\n\
2184 ({3})
2186 ########################################
2187 # Diagnostics for language feature changes
2188 ########################################
2189 # 0: string
2190 compiler.err.unsupported.fp.lit=\
2191 hexadecimal floating point literals are not supported in -source {0}\n\
2192 (use -source 5 or higher to enable hexadecimal floating point literals)
2194 # 0: string
2195 compiler.err.unsupported.binary.lit=\
2196 binary literals are not supported in -source {0}\n\
2197 (use -source 7 or higher to enable binary literals)
2199 # 0: string
2200 compiler.err.unsupported.underscore.lit=\
2201 underscores in literals are not supported in -source {0}\n\
2202 (use -source 7 or higher to enable underscores in literals)
2204 # 0: string
2205 compiler.err.try.with.resources.not.supported.in.source=\
2206 try-with-resources is not supported in -source {0}\n\
2207 (use -source 7 or higher to enable try-with-resources)
2209 compiler.warn.enum.as.identifier=\
2210 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2211 (use -source 5 or higher to use ''enum'' as a keyword)
2213 compiler.warn.assert.as.identifier=\
2214 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2215 (use -source 1.4 or higher to use ''assert'' as a keyword)
2217 compiler.warn.underscore.as.identifier=\
2218 ''_'' used as an identifier\n\
2219 (use of ''_'' as an identifier might not be supported in releases after Java SE 8)
2221 compiler.err.enum.as.identifier=\
2222 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2223 (use -source 1.4 or lower to use ''enum'' as an identifier)
2225 compiler.err.assert.as.identifier=\
2226 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2227 (use -source 1.3 or lower to use ''assert'' as an identifier)
2229 # TODO 308: make a better error message
2230 compiler.err.this.as.identifier=\
2231 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
2233 # 0: symbol
2234 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
2235 receiver parameter not applicable for constructor of top-level class
2237 # TODO 308: make a better error message
2238 compiler.err.cant.annotate.static.class=\
2239 enclosing static nested class cannot be annotated
2241 # TODO 308: make a better error message
2242 # 0: unused
2243 compiler.err.cant.annotate.nested.type=\
2244 nested type cannot be annotated
2246 # 0: type, 1: type
2247 compiler.err.incorrect.receiver.name=\
2248 the receiver name does not match the enclosing class type\n\
2249 required: {0}\n\
2250 found: {1}
2252 # 0: type, 1: type
2253 compiler.err.incorrect.receiver.type=\
2254 the receiver type does not match the enclosing class type\n\
2255 required: {0}\n\
2256 found: {1}
2258 # 0: type, 1: type
2259 compiler.err.incorrect.constructor.receiver.type=\
2260 the receiver type does not match the enclosing outer class type\n\
2261 required: {0}\n\
2262 found: {1}
2264 # 0: type, 1: type
2265 compiler.err.incorrect.constructor.receiver.name=\
2266 the receiver name does not match the enclosing outer class type\n\
2267 required: {0}\n\
2268 found: {1}
2270 compiler.err.no.annotations.on.dot.class=\
2271 no annotations are allowed in the type of a class literal
2273 # 0: string
2274 compiler.err.generics.not.supported.in.source=\
2275 generics are not supported in -source {0}\n\
2276 (use -source 5 or higher to enable generics)
2278 # 0: string
2279 compiler.err.varargs.not.supported.in.source=\
2280 variable-arity methods are not supported in -source {0}\n\
2281 (use -source 5 or higher to enable variable-arity methods)
2283 # 0: string
2284 compiler.err.annotations.not.supported.in.source=\
2285 annotations are not supported in -source {0}\n\
2286 (use -source 5 or higher to enable annotations)
2288 # 0: string
2289 compiler.err.type.annotations.not.supported.in.source=\
2290 type annotations are not supported in -source {0}\n\
2291 (use -source 8 or higher to enable type annotations)
2293 # 0: string
2294 compiler.err.foreach.not.supported.in.source=\
2295 for-each loops are not supported in -source {0}\n\
2296 (use -source 5 or higher to enable for-each loops)
2298 # 0: string
2299 compiler.err.static.import.not.supported.in.source=\
2300 static import declarations are not supported in -source {0}\n\
2301 (use -source 5 or higher to enable static import declarations)
2303 # 0: string
2304 compiler.err.enums.not.supported.in.source=\
2305 enums are not supported in -source {0}\n\
2306 (use -source 5 or higher to enable enums)
2308 # 0: string
2309 compiler.err.diamond.not.supported.in.source=\
2310 diamond operator is not supported in -source {0}\n\
2311 (use -source 7 or higher to enable diamond operator)
2313 # 0: string
2314 compiler.err.multicatch.not.supported.in.source=\
2315 multi-catch statement is not supported in -source {0}\n\
2316 (use -source 7 or higher to enable multi-catch statement)
2318 # 0: string
2319 compiler.err.string.switch.not.supported.in.source=\
2320 strings in switch are not supported in -source {0}\n\
2321 (use -source 7 or higher to enable strings in switch)
2323 # 0: string
2324 compiler.err.lambda.not.supported.in.source=\
2325 lambda expressions are not supported in -source {0}\n\
2326 (use -source 8 or higher to enable lambda expressions)
2328 # 0: string
2329 compiler.err.method.references.not.supported.in.source=\
2330 method references are not supported in -source {0}\n\
2331 (use -source 8 or higher to enable method references)
2333 # 0: string
2334 compiler.err.default.methods.not.supported.in.source=\
2335 default methods are not supported in -source {0}\n\
2336 (use -source 8 or higher to enable default methods)
2338 # 0: string
2339 compiler.err.intersection.types.in.cast.not.supported.in.source=\
2340 intersection types in cast are not supported in -source {0}\n\
2341 (use -source 8 or higher to enable default methods)
2343 # 0: string
2344 compiler.err.static.intf.methods.not.supported.in.source=\
2345 static interface methods are not supported in -source {0}\n\
2346 (use -source 8 or higher to enable static interface methods)
2348 ########################################
2349 # Diagnostics for verbose resolution
2350 # used by Resolve (debug only)
2351 ########################################
2353 # 0: number, 1: symbol, 2: unused
2354 compiler.misc.applicable.method.found=\
2355 #{0} applicable method found: {1}
2357 # 0: number, 1: symbol, 2: message segment
2358 compiler.misc.applicable.method.found.1=\
2359 #{0} applicable method found: {1}\n\
2360 ({2})
2362 # 0: number, 1: symbol, 2: message segment
2363 compiler.misc.not.applicable.method.found=\
2364 #{0} not applicable method found: {1}\n\
2365 ({2})
2367 # 0: type
2368 compiler.misc.partial.inst.sig=\
2369 partially instantiated to: {0}
2371 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2372 compiler.note.verbose.resolve.multi=\
2373 resolving method {0} in type {1} to candidate {2}\n\
2374 phase: {3}\n\
2375 with actuals: {4}\n\
2376 with type-args: {5}\n\
2377 candidates:
2379 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2380 compiler.note.verbose.resolve.multi.1=\
2381 erroneous resolution for method {0} in type {1}\n\
2382 phase: {3}\n\
2383 with actuals: {4}\n\
2384 with type-args: {5}\n\
2385 candidates:
2387 # 0: symbol, 1: type, 2: type
2388 compiler.note.deferred.method.inst=\
2389 Deferred instantiation of method {0}\n\
2390 instantiated signature: {1}\n\
2391 target-type: {2}
2393 ########################################
2394 # Diagnostics for where clause implementation
2395 # used by the RichDiagnosticFormatter.
2396 ########################################
2398 compiler.misc.type.null=\
2399 <null>
2401 # X#n (where n is an int id) is disambiguated tvar name
2402 # 0: name, 1: number
2403 compiler.misc.type.var=\
2404 {0}#{1}
2406 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
2407 # 0: number
2408 compiler.misc.captured.type=\
2409 CAP#{0}
2411 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2412 # 0: number
2413 compiler.misc.intersection.type=\
2414 INT#{0}
2416 # where clause for captured type: contains upper ('extends {1}') and lower
2417 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
2418 # 0: type, 1: type, 2: type, 3: type
2419 compiler.misc.where.captured=\
2420 {0} extends {1} super: {2} from capture of {3}
2422 # compact where clause for captured type: contains upper ('extends {1}') along
2423 # with the wildcard that generated this captured type ({3})
2424 # 0: type, 1: type, 2: unused, 3: type
2425 compiler.misc.where.captured.1=\
2426 {0} extends {1} from capture of {3}
2428 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
2429 # the kindname ({2}) and location ({3}) in which the typevar has been declared
2430 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2431 compiler.misc.where.typevar=\
2432 {0} extends {1} declared in {2} {3}
2434 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
2435 # in which the typevar has been declared
2436 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2437 compiler.misc.where.typevar.1=\
2438 {0} declared in {2} {3}
2440 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2441 # Since a fresh type-variable is synthetic - there's no location/kindname here.
2442 # 0: type, 1: list of type
2443 compiler.misc.where.fresh.typevar=\
2444 {0} extends {1}
2446 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
2447 # of this intersection type
2448 # 0: type, 1: list of type
2449 compiler.misc.where.intersection=\
2450 {0} extends {1}
2452 ### Where clause headers ###
2453 compiler.misc.where.description.captured=\
2454 where {0} is a fresh type-variable:
2456 # 0: set of type
2457 compiler.misc.where.description.typevar=\
2458 where {0} is a type-variable:
2460 # 0: set of type
2461 compiler.misc.where.description.intersection=\
2462 where {0} is an intersection type:
2464 # 0: set of type
2465 compiler.misc.where.description.captured.1=\
2466 where {0} are fresh type-variables:
2468 # 0: set of type
2469 compiler.misc.where.description.typevar.1=\
2470 where {0} are type-variables:
2472 compiler.misc.where.description.intersection.1=\
2473 where {0} are intersection types:
2475 ###
2476 # errors related to doc comments
2478 compiler.err.dc.bad.entity=\
2479 bad HTML entity
2481 compiler.err.dc.bad.gt=\
2482 bad use of ''>''
2484 compiler.err.dc.bad.inline.tag=\
2485 incorrect use of inline tag
2487 compiler.err.dc.identifier.expected=\
2488 identifier expected
2490 compiler.err.dc.malformed.html=\
2491 malformed HTML
2493 compiler.err.dc.missing.semicolon=\
2494 semicolon missing
2496 compiler.err.dc.no.content=\
2497 no content
2499 compiler.err.dc.no.tag.name=\
2500 no tag name after '@'
2502 compiler.err.dc.gt.expected=\
2503 ''>'' expected
2505 compiler.err.dc.ref.bad.parens=\
2506 '')'' missing in reference
2508 compiler.err.dc.ref.syntax.error=\
2509 syntax error in reference
2511 compiler.err.dc.ref.unexpected.input=\
2512 unexpected text
2514 compiler.err.dc.unexpected.content=\
2515 unexpected content
2517 compiler.err.dc.unterminated.inline.tag=\
2518 unterminated inline tag
2520 compiler.err.dc.unterminated.signature=\
2521 unterminated signature
2523 compiler.err.dc.unterminated.string=\
2524 unterminated string