Tue, 15 Oct 2013 15:57:13 -0700
8026564: import changes from type-annotations forest
Reviewed-by: jjg
Contributed-by: wdietl@gmail.com, steve.sides@oracle.com
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 a type with the same simple name is already defined by the single-type-import of {0}
83 # 0: string
84 compiler.err.already.defined.static.single.import=\
85 a type with the same simple name is already defined by the static single-type-import of {0}
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 a default value for the element ''{1}''
94 # 0: type, 1: list of name
95 compiler.err.annotation.missing.default.value.1=\
96 annotation @{0} is missing default values for elements {1}
98 # 0: type
99 compiler.err.annotation.not.valid.for.type=\
100 annotation not valid for an element 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 element value must be a constant expression
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 # 0: symbol
302 compiler.err.cyclic.annotation.element=\
303 type of element {0} is cyclic
305 # 0: unused
306 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
307 call to super not allowed in enum constructor
309 # 0: type
310 compiler.err.no.superclass=\
311 {0} has no superclass.
313 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
314 compiler.err.concrete.inheritance.conflict=\
315 methods {0} from {1} and {2} from {3} are inherited with the same signature
317 compiler.err.default.allowed.in.intf.annotation.member=\
318 default value only allowed in an annotation type declaration
320 # 0: symbol
321 compiler.err.doesnt.exist=\
322 package {0} does not exist
324 # 0: type
325 compiler.err.duplicate.annotation.invalid.repeated=\
326 annotation {0} is not a valid repeatable annotation
328 # 0: name, 1: type
329 compiler.err.duplicate.annotation.member.value=\
330 duplicate element ''{0}'' in annotation @{1}.
332 # 0: name, 1: unused
333 compiler.err.duplicate.annotation.missing.container=\
334 {0} is not a repeatable annotation type
336 # 0: type, 1: unused
337 compiler.err.invalid.repeatable.annotation=\
338 duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
340 # 0: symbol or type
341 compiler.err.invalid.repeatable.annotation.no.value=\
342 {0} is not a valid @Repeatable, no value element method declared
344 # 0: type, 1: number
345 compiler.err.invalid.repeatable.annotation.multiple.values=\
346 {0} is not a valid @Repeatable, {1} element methods named ''value'' declared
348 # 0: type
349 compiler.err.invalid.repeatable.annotation.invalid.value=\
350 {0} is not a valid @Repeatable: invalid value element
352 # 0: symbol type, 1: unused, 2: type
353 compiler.err.invalid.repeatable.annotation.value.return=\
354 containing annotation type ({0}) must declare an element named ''value'' of type {2}
356 # 0: symbol or type, 1: symbol
357 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
358 containing annotation type ({0}) does not have a default value for element {1}
360 # 0: symbol, 1: unused, 2: symbol, 3: unused
361 compiler.err.invalid.repeatable.annotation.retention=\
362 retention of containing annotation type ({0}) is shorter than the retention of repeatable annotation type ({2})
364 # 0: symbol, 1: symbol
365 compiler.err.invalid.repeatable.annotation.not.documented=\
366 repeatable annotation type ({1}) is @Documented while containing annotation type ({0}) is not
368 # 0: symbol, 1: symbol
369 compiler.err.invalid.repeatable.annotation.not.inherited=\
370 repeatable annotation type ({1}) is @Inherited while containing annotation type ({0}) is not
372 # 0: symbol, 1: symbol
373 compiler.err.invalid.repeatable.annotation.incompatible.target=\
374 containing annotation type ({0}) is applicable to more targets than repeatable annotation type ({1})
376 # 0: symbol
377 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
378 container {0} must not be present at the same time as the element it contains
380 # 0: name
381 compiler.err.duplicate.class=\
382 duplicate class: {0}
384 compiler.err.duplicate.case.label=\
385 duplicate case label
387 compiler.err.duplicate.default.label=\
388 duplicate default label
390 compiler.err.else.without.if=\
391 ''else'' without ''if''
393 compiler.err.empty.char.lit=\
394 empty character literal
396 # 0: symbol
397 compiler.err.encl.class.required=\
398 an enclosing instance that contains {0} is required
400 compiler.err.enum.annotation.must.be.enum.constant=\
401 an enum annotation value must be an enum constant
403 compiler.err.enum.cant.be.instantiated=\
404 enum types may not be instantiated
406 compiler.err.enum.label.must.be.unqualified.enum=\
407 an enum switch case label must be the unqualified name of an enumeration constant
409 compiler.err.enum.no.subclassing=\
410 classes cannot directly extend java.lang.Enum
412 compiler.err.enum.types.not.extensible=\
413 enum types are not extensible
415 compiler.err.enum.no.finalize=\
416 enums cannot have finalize methods
418 # 0: file name, 1: string
419 compiler.err.error.reading.file=\
420 error reading {0}; {1}
422 # 0: type
423 compiler.err.except.already.caught=\
424 exception {0} has already been caught
426 # 0: type
427 compiler.err.except.never.thrown.in.try=\
428 exception {0} is never thrown in body of corresponding try statement
430 # 0: symbol
431 compiler.err.final.parameter.may.not.be.assigned=\
432 final parameter {0} may not be assigned
434 # 0: symbol
435 compiler.err.try.resource.may.not.be.assigned=\
436 auto-closeable resource {0} may not be assigned
438 # 0: symbol
439 compiler.err.multicatch.parameter.may.not.be.assigned=\
440 multi-catch parameter {0} may not be assigned
442 # 0: type, 1: type
443 compiler.err.multicatch.types.must.be.disjoint=\
444 Alternatives in a multi-catch statement cannot be related by subclassing\n\
445 Alternative {0} is a subclass of alternative {1}
447 compiler.err.finally.without.try=\
448 ''finally'' without ''try''
450 # 0: type, 1: message segment
451 compiler.err.foreach.not.applicable.to.type=\
452 for-each not applicable to expression type\n\
453 required: {1}\n\
454 found: {0}
456 compiler.err.fp.number.too.large=\
457 floating point number too large
459 compiler.err.fp.number.too.small=\
460 floating point number too small
462 compiler.err.generic.array.creation=\
463 generic array creation
465 compiler.err.generic.throwable=\
466 a generic class may not extend java.lang.Throwable
468 # 0: symbol
469 compiler.err.icls.cant.have.static.decl=\
470 Illegal static declaration in inner class {0}\n\
471 modifier \''static\'' is only allowed in constant variable declarations
473 # 0: string
474 compiler.err.illegal.char=\
475 illegal character: ''{0}''
477 compiler.err.illegal.char.for.encoding=\
478 unmappable character for encoding {0}
480 # 0: set of modifier, 1: set of modifier
481 compiler.err.illegal.combination.of.modifiers=\
482 illegal combination of modifiers: {0} and {1}
484 compiler.err.illegal.enum.static.ref=\
485 illegal reference to static field from initializer
487 compiler.err.illegal.esc.char=\
488 illegal escape character
490 compiler.err.illegal.forward.ref=\
491 illegal forward reference
493 # 0: symbol, 1: string
494 compiler.err.not.in.profile=\
495 {0} is not available in profile ''{1}''
497 # 0: symbol
498 compiler.warn.forward.ref=\
499 reference to variable ''{0}'' before it has been initialized
501 compiler.err.illegal.self.ref=\
502 self-reference in initializer
504 # 0: symbol
505 compiler.warn.self.ref=\
506 self-reference in initializer of variable ''{0}''
508 compiler.err.illegal.generic.type.for.instof=\
509 illegal generic type for instanceof
511 # 0: type
512 compiler.err.illegal.initializer.for.type=\
513 illegal initializer for {0}
515 compiler.err.illegal.line.end.in.char.lit=\
516 illegal line end in character literal
518 compiler.err.illegal.nonascii.digit=\
519 illegal non-ASCII digit
521 compiler.err.illegal.underscore=\
522 illegal underscore
524 compiler.err.illegal.dot=\
525 illegal ''.''
527 # 0: symbol
528 compiler.err.illegal.qual.not.icls=\
529 illegal qualifier; {0} is not an inner class
531 compiler.err.illegal.start.of.expr=\
532 illegal start of expression
534 compiler.err.illegal.start.of.stmt=\
535 illegal start of statement
537 compiler.err.illegal.start.of.type=\
538 illegal start of type
540 compiler.err.illegal.unicode.esc=\
541 illegal unicode escape
543 # 0: symbol
544 compiler.err.import.requires.canonical=\
545 import requires canonical name for {0}
547 compiler.err.improperly.formed.type.param.missing=\
548 improperly formed type, some parameters are missing
550 compiler.err.improperly.formed.type.inner.raw.param=\
551 improperly formed type, type arguments given on a raw type
553 # 0: type, 1: type
554 compiler.err.incomparable.types=\
555 incomparable types: {0} and {1}
557 # 0: number
558 compiler.err.int.number.too.large=\
559 integer number too large: {0}
561 compiler.err.intf.annotation.members.cant.have.params=\
562 elements in annotation type declarations cannot declare formal parameters
564 # 0: symbol
565 compiler.err.intf.annotation.cant.have.type.params=\
566 annotation type {0} cannot be generic
568 compiler.err.intf.annotation.members.cant.have.type.params=\
569 elements in annotation type declarations cannot be generic methods
571 # 0: symbol, 1: type
572 compiler.err.intf.annotation.member.clash=\
573 annotation type {1} declares an element with the same name as method {0}
575 compiler.err.intf.expected.here=\
576 interface expected here
578 compiler.err.intf.or.array.expected.here=\
579 interface or array type expected here
581 compiler.err.intf.meth.cant.have.body=\
582 interface abstract methods cannot have body
584 # 0: symbol
585 compiler.err.invalid.annotation.member.type=\
586 invalid type for element {0} of annotation type
588 compiler.err.invalid.binary.number=\
589 binary numbers must contain at least one binary digit
591 compiler.err.invalid.hex.number=\
592 hexadecimal numbers must contain at least one hexadecimal digit
594 compiler.err.invalid.meth.decl.ret.type.req=\
595 invalid method declaration; return type required
597 compiler.err.varargs.and.old.array.syntax=\
598 legacy array notation not allowed on variable-arity parameter
600 compiler.err.varargs.and.receiver =\
601 varargs notation not allowed on receiver parameter
603 compiler.err.array.and.receiver =\
604 legacy array notation not allowed on receiver parameter
606 compiler.err.variable.not.allowed=\
607 variable declaration not allowed here
609 # 0: name
610 compiler.err.label.already.in.use=\
611 label {0} already in use
613 # 0: symbol
614 compiler.err.local.var.accessed.from.icls.needs.final=\
615 local variable {0} is accessed from within inner class; needs to be declared final
617 compiler.err.local.enum=\
618 enum types must not be local
620 compiler.err.cannot.create.array.with.type.arguments=\
621 cannot create array with type arguments
623 compiler.err.cannot.create.array.with.diamond=\
624 cannot create array with ''<>''
626 #
627 # limits. We don't give the limits in the diagnostic because we expect
628 # them to change, yet we want to use the same diagnostic. These are all
629 # detected during code generation.
630 #
631 compiler.err.limit.code=\
632 code too large
634 compiler.err.limit.code.too.large.for.try.stmt=\
635 code too large for try statement
637 compiler.err.limit.dimensions=\
638 array type has too many dimensions
640 compiler.err.limit.locals=\
641 too many local variables
643 compiler.err.limit.parameters=\
644 too many parameters
646 compiler.err.limit.pool=\
647 too many constants
649 compiler.err.limit.pool.in.class=\
650 too many constants in class {0}
652 compiler.err.limit.stack=\
653 code requires too much stack
655 compiler.err.limit.string=\
656 constant string too long
658 compiler.err.limit.string.overflow=\
659 UTF8 representation for string \"{0}...\" is too long for the constant pool
661 compiler.err.malformed.fp.lit=\
662 malformed floating point literal
664 compiler.err.method.does.not.override.superclass=\
665 method does not override or implement a method from a supertype
667 compiler.err.missing.meth.body.or.decl.abstract=\
668 missing method body, or declare abstract
670 compiler.err.missing.ret.stmt=\
671 missing return statement
673 # 0: unused
674 compiler.misc.missing.ret.val=\
675 missing return value
677 compiler.misc.unexpected.ret.val=\
678 unexpected return value
680 # 0: set of modifier
681 compiler.err.mod.not.allowed.here=\
682 modifier {0} not allowed here
684 compiler.err.intf.not.allowed.here=\
685 interface not allowed here
687 compiler.err.enums.must.be.static=\
688 enum declarations allowed only in static contexts
690 # 0: symbol, 1: symbol
691 compiler.err.name.clash.same.erasure=\
692 name clash: {0} and {1} have the same erasure
694 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
695 compiler.err.name.clash.same.erasure.no.override=\
696 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
698 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
699 compiler.err.name.clash.same.erasure.no.override.1=\
700 name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
701 first method: {2} in {3}\n\
702 second method: {4} in {5}
704 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
705 compiler.err.name.clash.same.erasure.no.hide=\
706 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
708 compiler.err.name.reserved.for.internal.use=\
709 {0} is reserved for internal use
711 compiler.err.native.meth.cant.have.body=\
712 native methods cannot have a body
714 # 0: type, 1: type
715 compiler.err.neither.conditional.subtype=\
716 incompatible types for ?: neither is a subtype of the other\n\
717 second operand: {0}\n\
718 third operand : {1}
720 # 0: message segment
721 compiler.misc.incompatible.type.in.conditional=\
722 bad type in conditional expression\n\
723 {0}
725 compiler.misc.conditional.target.cant.be.void=\
726 target-type for conditional expression cannot be void
728 # 0: type
729 compiler.misc.incompatible.ret.type.in.lambda=\
730 bad return type in lambda expression\n\
731 {0}
733 # 0: type
734 compiler.misc.incompatible.ret.type.in.mref=\
735 bad return type in method reference\n\
736 {0}
738 # 0: list of type
739 compiler.err.incompatible.thrown.types.in.mref=\
740 incompatible thrown types {0} in method reference
742 compiler.misc.incompatible.arg.types.in.lambda=\
743 incompatible parameter types in lambda expression
745 compiler.misc.incompatible.arg.types.in.mref=\
746 incompatible parameter types in method reference
748 compiler.err.new.not.allowed.in.annotation=\
749 ''new'' not allowed in an annotation
751 compiler.err.no.annotation.member=\
752 no annotation member {0} in {1}
754 compiler.err.no.encl.instance.of.type.in.scope=\
755 no enclosing instance of type {0} is in scope
757 compiler.err.no.intf.expected.here=\
758 no interface expected here
760 compiler.err.no.match.entry=\
761 {0} has no match in entry in {1}; required {2}
763 compiler.err.not.annotation.type=\
764 {0} is not an annotation type
766 # 0: symbol, 1: symbol
767 compiler.err.not.def.access.class.intf.cant.access=\
768 {0} in {1} is defined in an inaccessible class or interface
770 # 0: symbol, 1: symbol
771 compiler.misc.not.def.access.class.intf.cant.access=\
772 {0} in {1} is defined in an inaccessible class or interface
774 # 0: symbol, 1: list of type, 2: type
775 compiler.misc.cant.access.inner.cls.constr=\
776 cannot access constructor {0}({1})\n\
777 an enclosing instance of type {2} is not in scope
779 # 0: symbol, 1: symbol
780 compiler.err.not.def.public.cant.access=\
781 {0} is not public in {1}; cannot be accessed from outside package
783 # 0: symbol, 1: symbol
784 compiler.misc.not.def.public.cant.access=\
785 {0} is not public in {1}; cannot be accessed from outside package
787 # 0: name
788 compiler.err.not.loop.label=\
789 not a loop label: {0}
791 compiler.err.not.stmt=\
792 not a statement
794 # 0: symbol
795 compiler.err.not.encl.class=\
796 not an enclosing class: {0}
798 # 0: name, 1: type, 2: unused
799 compiler.err.operator.cant.be.applied=\
800 bad operand type {1} for unary operator ''{0}''
802 # 0: name, 1: type, 2: type
803 compiler.err.operator.cant.be.applied.1=\
804 bad operand types for binary operator ''{0}''\n\
805 first type: {1}\n\
806 second type: {2}
808 compiler.err.pkg.annotations.sb.in.package-info.java=\
809 package annotations should be in file package-info.java
811 # 0: symbol
812 compiler.err.pkg.clashes.with.class.of.same.name=\
813 package {0} clashes with class of same name
815 compiler.err.warnings.and.werror=\
816 warnings found and -Werror specified
818 # Errors related to annotation processing
820 # 0: symbol, 1: string, 2: stack-trace
821 compiler.err.proc.cant.access=\
822 cannot access {0}\n\
823 {1}\n\
824 Consult the following stack trace for details.\n\
825 {2}
827 # 0: symbol, 1: string
828 compiler.err.proc.cant.access.1=\
829 cannot access {0}\n\
830 {1}
832 # 0: string
833 compiler.err.proc.cant.find.class=\
834 Could not find class file for ''{0}''.
836 # Print a client-generated error message; assumed to be localized, no translation required
837 # 0: string
838 compiler.err.proc.messager=\
839 {0}
841 # 0: list of string
842 compiler.err.proc.no.explicit.annotation.processing.requested=\
843 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
845 compiler.err.proc.no.service=\
846 A ServiceLoader was not usable and is required for annotation processing.
848 compiler.err.proc.processor.bad.option.name=\
849 Bad option name ''{0}'' provided by processor ''{1}''
851 # 0: string
852 compiler.err.proc.processor.cant.instantiate=\
853 Could not instantiate an instance of processor ''{0}''
855 # 0: string
856 compiler.err.proc.processor.not.found=\
857 Annotation processor ''{0}'' not found
859 # 0: string
860 compiler.err.proc.processor.wrong.type=\
861 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
863 compiler.err.proc.service.problem=\
864 Error creating a service loader to load Processors.
866 compiler.err.proc.bad.config.file=\
867 Bad service configuration file, or exception thrown while constructing Processor object: {0}
869 compiler.err.proc.cant.create.loader=\
870 Could not create class loader for annotation processors: {0}
872 # 0: unused
873 compiler.err.qualified.new.of.static.class=\
874 qualified new of static class
876 compiler.err.recursive.ctor.invocation=\
877 recursive constructor invocation
879 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
880 compiler.err.ref.ambiguous=\
881 reference to {0} is ambiguous\n\
882 both {1} {2} in {3} and {4} {5} in {6} match
884 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
885 compiler.misc.ref.ambiguous=\
886 reference to {0} is ambiguous\n\
887 both {1} {2} in {3} and {4} {5} in {6} match
889 compiler.err.repeated.annotation.target=\
890 repeated annotation target
892 compiler.err.repeated.interface=\
893 repeated interface
895 compiler.err.repeated.modifier=\
896 repeated modifier
898 # 0: symbol, 1: set of modifier, 2: symbol
899 compiler.err.report.access=\
900 {0} has {1} access in {2}
902 # 0: symbol, 1: set of modifier, 2: symbol
903 compiler.misc.report.access=\
904 {0} has {1} access in {2}
906 compiler.err.ret.outside.meth=\
907 return outside method
909 compiler.err.signature.doesnt.match.supertype=\
910 signature does not match {0}; incompatible supertype
912 compiler.err.signature.doesnt.match.intf=\
913 signature does not match {0}; incompatible interfaces
915 # 0: number, 1: number
916 compiler.err.method.invoked.with.incorrect.number.arguments=\
917 method invoked with incorrect number of arguments; expected {0}, found {1}
919 # 0: symbol, 1: symbol, 2: symbol
920 compiler.err.does.not.override.abstract=\
921 {0} is not abstract and does not override abstract method {1} in {2}
923 compiler.err.source.cant.overwrite.input.file=\
924 error writing source; cannot overwrite input file {0}
926 compiler.err.stack.sim.error=\
927 Internal error: stack sim error on {0}
929 compiler.err.static.imp.only.classes.and.interfaces=\
930 static import only from classes and interfaces
932 compiler.err.string.const.req=\
933 constant string expression required
935 # 0: symbol, 1: symbol
936 compiler.err.synthetic.name.conflict=\
937 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
939 # 0: symbol, 1: symbol
940 compiler.warn.synthetic.name.conflict=\
941 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
943 compiler.err.throws.not.allowed.in.intf.annotation=\
944 throws clause not allowed in @interface members
946 compiler.err.try.without.catch.or.finally=\
947 ''try'' without ''catch'' or ''finally''
949 compiler.err.try.without.catch.finally.or.resource.decls=\
950 ''try'' without ''catch'', ''finally'' or resource declarations
952 # 0: symbol
953 compiler.err.type.doesnt.take.params=\
954 type {0} does not take parameters
956 compiler.err.type.var.cant.be.deref=\
957 cannot select from a type variable
959 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
960 a type variable may not be followed by other bounds
962 compiler.err.type.var.more.than.once=\
963 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
965 compiler.err.type.var.more.than.once.in.result=\
966 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
968 # 0: type, 1: type, 2: string
969 compiler.err.types.incompatible.diff.ret=\
970 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
972 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
973 compiler.err.types.incompatible.unrelated.defaults=\
974 {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
976 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
977 compiler.err.types.incompatible.abstract.default=\
978 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
980 # 0: name, 1: kind, 2: symbol
981 compiler.err.default.overrides.object.member=\
982 default method {0} in {1} {2} overrides a member of java.lang.Object
984 # 0: type
985 compiler.err.illegal.static.intf.meth.call=\
986 illegal static interface method call\n\
987 the receiver expression should be replaced with the type qualifier ''{0}''
989 # 0: type, 1: message segment
990 compiler.err.illegal.default.super.call=\
991 bad type qualifier {0} in default super call\n\
992 {1}
994 # 0: symbol, 1: type
995 compiler.misc.overridden.default=\
996 method {0} is overridden in {1}
998 # 0: symbol, 1: type or symbol
999 compiler.misc.redundant.supertype=\
1000 redundant interface {0} is extended by {1}
1002 compiler.err.unclosed.char.lit=\
1003 unclosed character literal
1005 compiler.err.unclosed.comment=\
1006 unclosed comment
1008 compiler.err.unclosed.str.lit=\
1009 unclosed string literal
1011 # 0: name
1012 compiler.err.unsupported.encoding=\
1013 unsupported encoding: {0}
1015 compiler.err.io.exception=\
1016 error reading source file: {0}
1018 # 0: name
1019 compiler.err.undef.label=\
1020 undefined label: {0}
1022 # 0: message segment, 1: unused
1023 compiler.err.cant.apply.diamond=\
1024 cannot infer type arguments for {0}
1026 # 0: message segment or type, 1: message segment
1027 compiler.err.cant.apply.diamond.1=\
1028 cannot infer type arguments for {0}\n\
1029 reason: {1}
1031 # 0: message segment or type, 1: message segment
1032 compiler.misc.cant.apply.diamond.1=\
1033 cannot infer type arguments for {0}\n\
1034 reason: {1}
1036 compiler.err.unreachable.stmt=\
1037 unreachable statement
1039 compiler.err.initializer.must.be.able.to.complete.normally=\
1040 initializer must be able to complete normally
1042 # 0: type
1043 compiler.err.unreported.exception.need.to.catch.or.throw=\
1044 unreported exception {0}; must be caught or declared to be thrown
1046 # 0: type
1047 compiler.err.unreported.exception.default.constructor=\
1048 unreported exception {0} in default constructor
1050 # 0: type, 1: name
1051 compiler.err.unreported.exception.implicit.close=\
1052 unreported exception {0}; must be caught or declared to be thrown\n\
1053 exception thrown from implicit call to close() on resource variable ''{1}''
1055 compiler.err.unsupported.cross.fp.lit=\
1056 hexadecimal floating-point literals are not supported on this VM
1058 compiler.err.void.not.allowed.here=\
1059 ''void'' type not allowed here
1061 # 0: string
1062 compiler.err.wrong.number.type.args=\
1063 wrong number of type arguments; required {0}
1065 # 0: symbol
1066 compiler.err.var.might.already.be.assigned=\
1067 variable {0} might already have been assigned
1069 # 0: symbol
1070 compiler.err.var.might.not.have.been.initialized=\
1071 variable {0} might not have been initialized
1073 # 0: symbol
1074 compiler.err.var.not.initialized.in.default.constructor=\
1075 variable {0} not initialized in the default constructor
1077 # 0: symbol
1078 compiler.err.var.might.be.assigned.in.loop=\
1079 variable {0} might be assigned in loop
1081 # 0: symbol, 1: message segment
1082 compiler.err.varargs.invalid.trustme.anno=\
1083 Invalid {0} annotation. {1}
1085 # 0: type
1086 compiler.misc.varargs.trustme.on.reifiable.varargs=\
1087 Varargs element type {0} is reifiable.
1089 # 0: symbol
1090 compiler.misc.varargs.trustme.on.non.varargs.meth=\
1091 Method {0} is not a varargs method.
1093 # 0: symbol
1094 compiler.misc.varargs.trustme.on.virtual.varargs=\
1095 Instance method {0} is not final.
1097 # 0: type, 1: symbol kind, 2: symbol
1098 compiler.misc.inaccessible.varargs.type=\
1099 formal varargs element type {0} is not accessible from {1} {2}
1101 # In the following string, {1} will always be the detail message from
1102 # java.io.IOException.
1103 # 0: symbol, 1: string
1104 compiler.err.class.cant.write=\
1105 error while writing {0}: {1}
1107 # In the following string, {0} is the name of the class in the Java source.
1108 # It really should be used two times..
1109 # 0: name
1110 compiler.err.class.public.should.be.in.file=\
1111 class {0} is public, should be declared in a file named {0}.java
1113 ## All errors which do not refer to a particular line in the source code are
1114 ## preceded by this string.
1115 compiler.err.error=\
1116 error:\u0020
1118 # The following error messages do not refer to a line in the source code.
1119 compiler.err.cant.read.file=\
1120 cannot read: {0}
1122 #####
1124 # Fatal Errors
1126 compiler.misc.fatal.err.no.java.lang=\
1127 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
1129 compiler.misc.fatal.err.cant.locate.meth=\
1130 Fatal Error: Unable to find method {0}
1132 compiler.misc.fatal.err.cant.locate.field=\
1133 Fatal Error: Unable to find field {0}
1135 compiler.misc.fatal.err.cant.locate.ctor=\
1136 Fatal Error: Unable to find constructor for {0}
1138 compiler.misc.fatal.err.cant.close=\
1139 Fatal Error: Cannot close compiler resources
1141 #####
1143 ##
1144 ## miscellaneous strings
1145 ##
1147 compiler.misc.source.unavailable=\
1148 (source unavailable)
1150 compiler.misc.base.membership=\
1151 all your base class are belong to us
1153 # 0: string, 1: string, 2: boolean
1154 compiler.misc.x.print.processor.info=\
1155 Processor {0} matches {1} and returns {2}.
1157 # 0: number, 1: string, 2: set of symbol, 3: boolean
1158 compiler.misc.x.print.rounds=\
1159 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1161 #####
1163 ## The following string will appear before all messages keyed as:
1164 ## "compiler.note".
1166 compiler.note.compressed.diags=\
1167 Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1169 compiler.note.potential.lambda.found=\
1170 This anonymous inner class creation can be turned into a lambda expression.
1172 # 0: boolean, 1: symbol
1173 compiler.note.lambda.stat=\
1174 Translating lambda expression\n\
1175 alternate metafactory = {0}\n\
1176 synthetic method = {1}
1178 # 0: boolean, 1: unused
1179 compiler.note.mref.stat=\
1180 Translating method reference\n\
1181 alternate metafactory = {0}\n\
1183 # 0: boolean, 1: symbol
1184 compiler.note.mref.stat.1=\
1185 Translating method reference\n\
1186 alternate metafactory = {0}\n\
1187 bridge method = {1}
1189 compiler.note.note=\
1190 Note:\u0020
1192 # 0: file name
1193 compiler.note.deprecated.filename=\
1194 {0} uses or overrides a deprecated API.
1196 compiler.note.deprecated.plural=\
1197 Some input files use or override a deprecated API.
1199 # The following string may appear after one of the above deprecation
1200 # messages.
1201 compiler.note.deprecated.recompile=\
1202 Recompile with -Xlint:deprecation for details.
1204 # 0: file name
1205 compiler.note.deprecated.filename.additional=\
1206 {0} has additional uses or overrides of a deprecated API.
1208 compiler.note.deprecated.plural.additional=\
1209 Some input files additionally use or override a deprecated API.
1211 # 0: file name
1212 compiler.note.unchecked.filename=\
1213 {0} uses unchecked or unsafe operations.
1215 compiler.note.unchecked.plural=\
1216 Some input files use unchecked or unsafe operations.
1218 # The following string may appear after one of the above deprecation
1219 # messages.
1220 compiler.note.unchecked.recompile=\
1221 Recompile with -Xlint:unchecked for details.
1223 # 0: file name
1224 compiler.note.unchecked.filename.additional=\
1225 {0} has additional unchecked or unsafe operations.
1227 compiler.note.unchecked.plural.additional=\
1228 Some input files additionally use unchecked or unsafe operations.
1230 # 0: file name
1231 compiler.note.sunapi.filename=\
1232 {0} uses internal proprietary API that may be removed in a future release.
1234 compiler.note.sunapi.plural=\
1235 Some input files use internal proprietary API that may be removed in a future release.
1237 # The following string may appear after one of the above sunapi messages.
1238 compiler.note.sunapi.recompile=\
1239 Recompile with -Xlint:sunapi for details.
1241 # 0: file name
1242 compiler.note.sunapi.filename.additional=\
1243 {0} uses additional internal proprietary API that may be removed in a future release.
1245 compiler.note.sunapi.plural.additional=\
1246 Some input files additionally use internal proprietary API that may be removed in a future release.
1248 # Notes related to annotation processing
1250 # Print a client-generated note; assumed to be localized, no translation required
1251 # 0: string
1252 compiler.note.proc.messager=\
1253 {0}
1255 #####
1257 # 0: number
1258 compiler.misc.count.error=\
1259 {0} error
1261 # 0: number
1262 compiler.misc.count.error.plural=\
1263 {0} errors
1265 # 0: number
1266 compiler.misc.count.warn=\
1267 {0} warning
1269 # 0: number
1270 compiler.misc.count.warn.plural=\
1271 {0} warnings
1273 compiler.misc.version.not.available=\
1274 (version info not available)
1276 ## extra output when using -verbose (JavaCompiler)
1278 # 0: symbol
1279 compiler.misc.verbose.checking.attribution=\
1280 [checking {0}]
1282 # 0: string
1283 compiler.misc.verbose.parsing.done=\
1284 [parsing completed {0}ms]
1286 # 0: file name
1287 compiler.misc.verbose.parsing.started=\
1288 [parsing started {0}]
1290 # 0: string
1291 compiler.misc.verbose.total=\
1292 [total {0}ms]
1294 # 0: file name
1295 compiler.misc.verbose.wrote.file=\
1296 [wrote {0}]
1298 ## extra output when using -verbose (Retro)
1299 compiler.misc.verbose.retro=\
1300 [retrofitting {0}]
1302 compiler.misc.verbose.retro.with=\
1303 \tretrofitting {0} with {1}
1305 compiler.misc.verbose.retro.with.list=\
1306 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1308 ## extra output when using -verbose (code/ClassReader)
1309 # 0: string
1310 compiler.misc.verbose.loading=\
1311 [loading {0}]
1313 # 0: string
1314 compiler.misc.verbose.sourcepath=\
1315 [search path for source files: {0}]
1317 # 0: string
1318 compiler.misc.verbose.classpath=\
1319 [search path for class files: {0}]
1321 ## extra output when using -checkclassfile (code/ClassReader)
1322 compiler.misc.ccf.found.later.version=\
1323 class file has later version than expected: {0}
1325 compiler.misc.ccf.unrecognized.attribute=\
1326 unrecognized attribute: {0}
1328 ## extra output when using -prompt (util/Log)
1329 compiler.misc.resume.abort=\
1330 R)esume, A)bort>
1332 #####
1334 ##
1335 ## warnings
1336 ##
1338 ## All warning messages are preceded by the following string.
1339 compiler.warn.warning=\
1340 warning:\u0020
1342 ## Warning messages may also include the following prefix to identify a
1343 ## lint option
1344 # 0: option name
1345 compiler.warn.lintOption=\
1346 [{0}]\u0020
1348 # 0: symbol
1349 compiler.warn.constant.SVUID=\
1350 serialVersionUID must be constant in class {0}
1352 # 0: file name
1353 compiler.warn.dir.path.element.not.found=\
1354 bad path element "{0}": no such directory
1356 compiler.warn.finally.cannot.complete=\
1357 finally clause cannot complete normally
1359 # 0: symbol, 1: symbol
1360 compiler.warn.has.been.deprecated=\
1361 {0} in {1} has been deprecated
1363 # 0: symbol
1364 compiler.warn.sun.proprietary=\
1365 {0} is internal proprietary API and may be removed in a future release
1367 compiler.warn.illegal.char.for.encoding=\
1368 unmappable character for encoding {0}
1370 # 0: symbol
1371 compiler.warn.improper.SVUID=\
1372 serialVersionUID must be declared static final in class {0}
1374 # 0: type, 1: type
1375 compiler.warn.inexact.non-varargs.call=\
1376 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1377 cast to {0} for a varargs call\n\
1378 cast to {1} for a non-varargs call and to suppress this warning
1380 # 0: list of type
1381 compiler.warn.unreachable.catch=\
1382 unreachable catch clause\n\
1383 thrown type {0} has already been caught
1385 # 0: list of type
1386 compiler.warn.unreachable.catch.1=\
1387 unreachable catch clause\n\
1388 thrown types {0} have already been caught
1390 # 0: symbol
1391 compiler.warn.long.SVUID=\
1392 serialVersionUID must be of type long in class {0}
1394 # 0: symbol
1395 compiler.warn.missing.SVUID=\
1396 serializable class {0} has no definition of serialVersionUID
1398 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1399 compiler.warn.potentially.ambiguous.overload=\
1400 {0} in {1} is potentially ambiguous with {2} in {3}
1402 # 0: message segment
1403 compiler.warn.override.varargs.missing=\
1404 {0}; overridden method has no ''...''
1406 # 0: message segment
1407 compiler.warn.override.varargs.extra=\
1408 {0}; overriding method is missing ''...''
1410 compiler.warn.override.bridge=\
1411 {0}; overridden method is a bridge method
1413 # 0: symbol
1414 compiler.warn.pkg-info.already.seen=\
1415 a package-info.java file has already been seen for package {0}
1417 # 0: file name
1418 compiler.warn.path.element.not.found=\
1419 bad path element "{0}": no such file or directory
1421 compiler.warn.possible.fall-through.into.case=\
1422 possible fall-through into case
1424 # 0: type
1425 compiler.warn.redundant.cast=\
1426 redundant cast to {0}
1428 # 0: number
1429 compiler.warn.position.overflow=\
1430 Position encoding overflows at line {0}
1432 # 0: file name, 1: number, 2: number
1433 compiler.warn.big.major.version=\
1434 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1435 It is recommended that the compiler be upgraded.
1437 # 0: symbol kind, 1: symbol
1438 compiler.warn.static.not.qualified.by.type=\
1439 static {0} should be qualified by type name, {1}, instead of by an expression
1441 # 0: string
1442 compiler.warn.source.no.bootclasspath=\
1443 bootstrap class path not set in conjunction with -source {0}
1445 # 0: string
1446 compiler.warn.option.obsolete.source=\
1447 source value {0} is obsolete and will be removed in a future release
1449 # 0: string
1450 compiler.warn.option.obsolete.target=\
1451 target value {0} is obsolete and will be removed in a future release
1453 compiler.warn.option.obsolete.suppression=\
1454 To suppress warnings about obsolete options, use -Xlint:-options.
1456 # 0: name, 1: number, 2: number, 3: number, 4: number
1457 compiler.warn.future.attr=\
1458 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1460 # Warnings related to annotation processing
1461 # 0: name
1462 compiler.warn.proc.package.does.not.exist=\
1463 package {0} does not exist
1465 # 0: name
1466 compiler.warn.proc.file.reopening=\
1467 Attempt to create a file for ''{0}'' multiple times
1469 # 0: name
1470 compiler.warn.proc.type.already.exists=\
1471 A file for type ''{0}'' already exists on the sourcepath or classpath
1473 # 0: name
1474 compiler.warn.proc.type.recreate=\
1475 Attempt to create a file for type ''{0}'' multiple times
1477 # 0: string
1478 compiler.warn.proc.illegal.file.name=\
1479 Cannot create file for illegal name ''{0}''.
1481 # 0: string, 1: string
1482 compiler.warn.proc.suspicious.class.name=\
1483 Creating file for a type whose name ends in {1}: ''{0}''
1485 # 0: name
1486 compiler.warn.proc.file.create.last.round=\
1487 File for type ''{0}'' created in the last round will not be subject to annotation processing.
1489 # 0: string, 1: string
1490 compiler.warn.proc.malformed.supported.string=\
1491 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1493 # 0: set of string
1494 compiler.warn.proc.annotations.without.processors=\
1495 No processor claimed any of these annotations: {0}
1497 # 0: source version, 1: string, 2: string
1498 compiler.warn.proc.processor.incompatible.source.version=\
1499 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1501 compiler.warn.proc.proc-only.requested.no.procs=\
1502 Annotation processing without compilation requested but no processors were found.
1504 compiler.warn.proc.use.implicit=\
1505 Implicitly compiled files were not subject to annotation processing.\n\
1506 Use -implicit to specify a policy for implicit compilation.
1508 compiler.warn.proc.use.proc.or.implicit=\
1509 Implicitly compiled files were not subject to annotation processing.\n\
1510 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1512 # Print a client-generated warning; assumed to be localized, no translation required
1513 # 0: string
1514 compiler.warn.proc.messager=\
1515 {0}
1517 # 0: set of name
1518 compiler.warn.proc.unclosed.type.files=\
1519 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1521 # 0: string
1522 compiler.warn.proc.unmatched.processor.options=\
1523 The following options were not recognized by any processor: ''{0}''
1525 compiler.warn.try.explicit.close.call=\
1526 explicit call to close() on an auto-closeable resource
1528 # 0: symbol
1529 compiler.warn.try.resource.not.referenced=\
1530 auto-closeable resource {0} is never referenced in body of corresponding try statement
1532 # 0: type
1533 compiler.warn.try.resource.throws.interrupted.exc=\
1534 auto-closeable resource {0} has a member method close() that could throw InterruptedException
1536 compiler.warn.unchecked.assign=\
1537 unchecked assignment: {0} to {1}
1539 # 0: symbol, 1: type
1540 compiler.warn.unchecked.assign.to.var=\
1541 unchecked assignment to variable {0} as member of raw type {1}
1543 # 0: symbol, 1: type
1544 compiler.warn.unchecked.call.mbr.of.raw.type=\
1545 unchecked call to {0} as a member of the raw type {1}
1547 compiler.warn.unchecked.cast.to.type=\
1548 unchecked cast to type {0}
1550 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1551 compiler.warn.unchecked.meth.invocation.applied=\
1552 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1553 required: {2}\n\
1554 found: {3}
1556 # 0: type
1557 compiler.warn.unchecked.generic.array.creation=\
1558 unchecked generic array creation for varargs parameter of type {0}
1560 # 0: type
1561 compiler.warn.unchecked.varargs.non.reifiable.type=\
1562 Possible heap pollution from parameterized vararg type {0}
1564 # 0: symbol
1565 compiler.warn.varargs.unsafe.use.varargs.param=\
1566 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1568 compiler.warn.missing.deprecated.annotation=\
1569 deprecated item is not annotated with @Deprecated
1571 compiler.warn.invalid.archive.file=\
1572 Unexpected file on path: {0}
1574 compiler.warn.unexpected.archive.file=\
1575 Unexpected extension for archive file: {0}
1577 compiler.warn.div.zero=\
1578 division by zero
1580 compiler.warn.empty.if=\
1581 empty statement after if
1583 compiler.warn.annotation.method.not.found=\
1584 Cannot find annotation method ''{1}()'' in type ''{0}''
1586 compiler.warn.annotation.method.not.found.reason=\
1587 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1589 # 0: symbol, 1: name
1590 compiler.warn.unknown.enum.constant=\
1591 unknown enum constant {1}.{2}
1593 # 0: symbol, 1: name, 2: message segment
1594 compiler.warn.unknown.enum.constant.reason=\
1595 unknown enum constant {1}.{2}\n\
1596 reason: {3}
1598 # 0: type, 1: type
1599 compiler.warn.raw.class.use=\
1600 found raw type: {0}\n\
1601 missing type arguments for generic class {1}
1603 # 0: unused, 1: unused
1604 compiler.warn.diamond.redundant.args=\
1605 redundant type arguments in new expression (use diamond operator instead).
1607 # 0: type, 1: type
1608 compiler.warn.diamond.redundant.args.1=\
1609 redundant type arguments in new expression (use diamond operator instead).\n\
1610 explicit: {0}\n\
1611 inferred: {1}
1613 # 0: symbol, 1: message segment
1614 compiler.warn.varargs.redundant.trustme.anno=\
1615 Redundant {0} annotation. {1}
1617 #####
1619 ## The following are tokens which are non-terminals in the language. They should
1620 ## be named as JLS3 calls them when translated to the appropriate language.
1621 compiler.misc.token.identifier=\
1622 <identifier>
1624 compiler.misc.token.character=\
1625 <character>
1627 compiler.misc.token.string=\
1628 <string>
1630 compiler.misc.token.integer=\
1631 <integer>
1633 compiler.misc.token.long-integer=\
1634 <long integer>
1636 compiler.misc.token.float=\
1637 <float>
1639 compiler.misc.token.double=\
1640 <double>
1642 compiler.misc.token.bad-symbol=\
1643 <bad symbol>
1645 compiler.misc.token.end-of-input=\
1646 <end of input>
1648 ## The argument to the following string will always be one of the following:
1649 ## 1. one of the above non-terminals
1650 ## 2. a keyword (JLS1.8)
1651 ## 3. a boolean literal (JLS3.10.3)
1652 ## 4. the null literal (JLS3.10.7)
1653 ## 5. a Java separator (JLS3.11)
1654 ## 6. an operator (JLS3.12)
1655 ##
1656 ## This is the only place these tokens will be used.
1657 # 0: token
1658 compiler.err.expected=\
1659 {0} expected
1661 # 0: token, 1: token
1662 compiler.err.expected2=\
1663 {0} or {1} expected
1665 # 0: token, 1: token, 2: token
1666 compiler.err.expected3=\
1667 {0}, {1}, or {2} expected
1669 compiler.err.premature.eof=\
1670 reached end of file while parsing
1672 ## The following are related in form, but do not easily fit the above paradigm.
1673 compiler.err.dot.class.expected=\
1674 ''.class'' expected
1676 ## The argument to this string will always be either 'case' or 'default'.
1677 # 0: token
1678 compiler.err.orphaned=\
1679 orphaned {0}
1681 # 0: name
1682 compiler.misc.anonymous.class=\
1683 <anonymous {0}>
1685 # 0: name, 1: type
1686 compiler.misc.type.captureof=\
1687 capture#{0} of {1}
1689 compiler.misc.type.captureof.1=\
1690 capture#{0}
1692 compiler.misc.type.none=\
1693 <none>
1695 compiler.misc.unnamed.package=\
1696 unnamed package
1698 #####
1700 # 0: symbol, 1: message segment
1701 compiler.err.cant.access=\
1702 cannot access {0}\n\
1703 {1}
1705 # 0: file name, 1: message segment
1706 compiler.misc.bad.class.file.header=\
1707 bad class file: {0}\n\
1708 {1}\n\
1709 Please remove or make sure it appears in the correct subdirectory of the classpath.
1711 # 0: file name, 1: message segment
1712 compiler.misc.bad.source.file.header=\
1713 bad source file: {0}\n\
1714 {1}\n\
1715 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1717 ## The following are all possible strings for the second argument ({1}) of the
1718 ## above strings.
1719 compiler.misc.bad.class.signature=\
1720 bad class signature: {0}
1722 #0: symbol, 1: symbol
1723 compiler.misc.bad.enclosing.class=\
1724 bad enclosing class for {0}: {1}
1726 # 0: symbol
1727 compiler.misc.bad.enclosing.method=\
1728 bad enclosing method attribute for class {0}
1730 compiler.misc.bad.runtime.invisible.param.annotations=\
1731 bad RuntimeInvisibleParameterAnnotations attribute: {0}
1733 compiler.misc.bad.const.pool.tag=\
1734 bad constant pool tag: {0}
1736 compiler.misc.bad.const.pool.tag.at=\
1737 bad constant pool tag: {0} at {1}
1739 compiler.misc.bad.signature=\
1740 bad signature: {0}
1742 compiler.misc.bad.type.annotation.value=\
1743 bad type annotation target type value: {0}
1745 compiler.misc.class.file.wrong.class=\
1746 class file contains wrong class: {0}
1748 compiler.misc.class.file.not.found=\
1749 class file for {0} not found
1751 # 0: classfile major version, 1: classfile minor version
1752 compiler.misc.invalid.default.interface=\
1753 default method found in version {0}.{1} classfile
1755 # 0: classfile major version, 1: classfile minor version
1756 compiler.misc.invalid.static.interface=\
1757 static method found in version {0}.{1} classfile
1759 # 0: name
1760 compiler.misc.file.doesnt.contain.class=\
1761 file does not contain class {0}
1763 compiler.misc.file.does.not.contain.package=\
1764 file does not contain package {0}
1766 compiler.misc.illegal.start.of.class.file=\
1767 illegal start of class file
1769 compiler.misc.unable.to.access.file=\
1770 unable to access file: {0}
1772 compiler.misc.unicode.str.not.supported=\
1773 unicode string in class file not supported
1775 compiler.misc.undecl.type.var=\
1776 undeclared type variable: {0}
1778 compiler.misc.wrong.version=\
1779 class file has wrong version {0}.{1}, should be {2}.{3}
1781 #####
1783 # 0: type, 1: type or symbol
1784 compiler.err.not.within.bounds=\
1785 type argument {0} is not within bounds of type-variable {1}
1787 ## The following are all possible strings for the second argument ({1}) of the
1788 ## above string.
1790 ## none yet...
1792 #####
1794 # 0: message segment
1795 compiler.err.prob.found.req=\
1796 incompatible types: {0}
1798 # 0: message segment
1799 compiler.misc.prob.found.req=\
1800 incompatible types: {0}
1802 # 0: message segment, 1: type, 2: type
1803 compiler.warn.prob.found.req=\
1804 {0}\n\
1805 required: {2}\n\
1806 found: {1}
1808 # 0: type, 1: type
1809 compiler.misc.inconvertible.types=\
1810 {0} cannot be converted to {1}
1812 # 0: type, 1: type
1813 compiler.misc.possible.loss.of.precision=\
1814 possible lossy conversion from {0} to {1}
1816 compiler.misc.unchecked.assign=\
1817 unchecked conversion
1819 # compiler.misc.storecheck=\
1820 # assignment might cause later store checks to fail
1821 # compiler.misc.unchecked=\
1822 # assigned array cannot dynamically check its stores
1823 compiler.misc.unchecked.cast.to.type=\
1824 unchecked cast
1826 # compiler.err.star.expected=\
1827 # ''*'' expected
1828 # compiler.err.no.elem.type=\
1829 # \[\*\] cannot have a type
1831 # 0: type
1832 compiler.misc.try.not.applicable.to.type=\
1833 try-with-resources not applicable to variable type\n\
1834 ({0})
1836 #####
1838 # 0: message segment or type, 1: message segment
1839 compiler.err.type.found.req=\
1840 unexpected type\n\
1841 required: {1}\n\
1842 found: {0}
1844 ## The following are all possible strings for the first argument ({0}) of the
1845 ## above string.
1846 compiler.misc.type.req.class=\
1847 class
1849 compiler.misc.type.req.class.array=\
1850 class or array
1852 compiler.misc.type.req.array.or.iterable=\
1853 array or java.lang.Iterable
1855 compiler.misc.type.req.ref=\
1856 reference
1858 compiler.misc.type.req.exact=\
1859 class or interface without bounds
1861 # 0: type
1862 compiler.misc.type.parameter=\
1863 type parameter {0}
1865 #####
1867 ## The following are all possible strings for the last argument of all those
1868 ## diagnostics whose key ends in ".1"
1870 # 0: type, 1: list of type
1871 compiler.misc.no.unique.maximal.instance.exists=\
1872 no unique maximal instance exists for type variable {0} with upper bounds {1}
1874 compiler.misc.no.unique.minimal.instance.exists=\
1875 no unique minimal instance exists for type variable {0} with lower bounds {1}
1877 # 0: type, 1: list of type
1878 compiler.misc.incompatible.upper.bounds=\
1879 inference variable {0} has incompatible upper bounds {1}
1881 # 0: type, 1: list of type, 2: list of type
1882 compiler.misc.incompatible.eq.upper.bounds=\
1883 inference variable {0} has incompatible bounds\n\
1884 equality constraints: {1}\n\
1885 upper bounds: {2}
1887 # 0: type, 1: list of type, 2: list of type
1888 compiler.misc.incompatible.eq.lower.bounds=\
1889 inference variable {0} has incompatible bounds\n\
1890 equality constraints: {1}\n\
1891 lower bounds: {2}
1893 # 0: list of type, 1: type, 2: type
1894 compiler.misc.infer.no.conforming.instance.exists=\
1895 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1897 # 0: list of type, 1: message segment
1898 compiler.misc.infer.no.conforming.assignment.exists=\
1899 cannot infer type-variable(s) {0}\n\
1900 (argument mismatch; {1})
1902 # 0: list of type
1903 compiler.misc.infer.arg.length.mismatch=\
1904 cannot infer type-variable(s) {0}\n\
1905 (actual and formal argument lists differ in length)
1907 # 0: list of type, 1: message segment
1908 compiler.misc.infer.varargs.argument.mismatch=\
1909 cannot infer type-variable(s) {0}\n\
1910 (varargs mismatch; {1})
1912 # 0: type, 1: list of type
1913 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
1914 inferred type does not conform to upper bound(s)\n\
1915 inferred: {0}\n\
1916 upper bound(s): {1}
1918 # 0: type, 1: list of type
1919 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
1920 inferred type does not conform to lower bound(s)\n\
1921 inferred: {0}\n\
1922 lower bound(s): {1}
1924 # 0: type, 1: list of type
1925 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
1926 inferred type does not conform to equality constraint(s)\n\
1927 inferred: {0}\n\
1928 equality constraints(s): {1}
1930 # 0: symbol
1931 compiler.misc.diamond=\
1932 {0}<>
1934 # 0: type
1935 compiler.misc.diamond.non.generic=\
1936 cannot use ''<>'' with non-generic class {0}
1938 # 0: unused
1939 compiler.misc.diamond.and.explicit.params=\
1940 cannot use ''<>'' with explicit type parameters for constructor
1942 # 0: unused
1943 compiler.misc.mref.infer.and.explicit.params=\
1944 cannot use raw constructor reference with explicit type parameters for constructor
1946 # 0: type, 1: list of type
1947 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1948 explicit type argument {0} does not conform to declared bound(s) {1}
1950 compiler.misc.arg.length.mismatch=\
1951 actual and formal argument lists differ in length
1953 # 0: message segment
1954 compiler.misc.no.conforming.assignment.exists=\
1955 argument mismatch; {0}
1957 # 0: message segment
1958 compiler.misc.varargs.argument.mismatch=\
1959 varargs mismatch; {0}
1961 #####
1963 # 0: symbol or type, 1: file name
1964 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
1965 auxiliary class {0} in {1} should not be accessed from outside its own source file
1967 ## The first argument ({0}) is a "kindname".
1968 # 0: symbol kind, 1: symbol, 2: symbol
1969 compiler.err.abstract.cant.be.accessed.directly=\
1970 abstract {0} {1} in {2} cannot be accessed directly
1972 ## The first argument ({0}) is a "kindname".
1973 # 0: symbol kind, 1: symbol
1974 compiler.err.non-static.cant.be.ref=\
1975 non-static {0} {1} cannot be referenced from a static context
1977 # 0: symbol kind, 1: symbol
1978 compiler.misc.non-static.cant.be.ref=\
1979 non-static {0} {1} cannot be referenced from a static context
1981 # 0: symbol kind, 1: symbol
1982 compiler.misc.static.method.in.unbound.lookup=\
1983 static {0} {1} found in unbound lookup
1985 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1986 ## of kindnames (the list should be identical to that provided in source.
1987 compiler.err.unexpected.type=\
1988 unexpected type\n\
1989 required: {0}\n\
1990 found: {1}
1992 compiler.err.unexpected.lambda=\
1993 lambda expression not expected here
1995 compiler.err.unexpected.mref=\
1996 method reference not expected here
1998 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1999 ## The second argument {1} is the non-resolved symbol
2000 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
2001 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
2002 # 0: symbol kind, 1: name, 2: unused, 3: unused
2003 compiler.err.cant.resolve=\
2004 cannot find symbol\n\
2005 symbol: {0} {1}
2007 # 0: symbol kind, 1: name, 2: unused, 3: list of type
2008 compiler.err.cant.resolve.args=\
2009 cannot find symbol\n\
2010 symbol: {0} {1}({3})
2012 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
2013 compiler.err.cant.resolve.args.params=\
2014 cannot find symbol\n\
2015 symbol: {0} <{2}>{1}({3})
2017 ## arguments from {0} to {3} have the same meaning as above
2018 ## The fifth argument {4} is a location subdiagnostic (see below)
2019 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
2020 compiler.err.cant.resolve.location=\
2021 cannot find symbol\n\
2022 symbol: {0} {1}\n\
2023 location: {4}
2025 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2026 compiler.err.cant.resolve.location.args=\
2027 cannot find symbol\n\
2028 symbol: {0} {1}({3})\n\
2029 location: {4}
2031 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2032 compiler.err.cant.resolve.location.args.params=\
2033 cannot find symbol\n\
2034 symbol: {0} <{2}>{1}({3})\n\
2035 location: {4}
2037 ### Following are replicated/used for method reference diagnostics
2039 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2040 compiler.misc.cant.resolve.location.args=\
2041 cannot find symbol\n\
2042 symbol: {0} {1}({3})\n\
2043 location: {4}
2045 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2046 compiler.misc.cant.resolve.location.args.params=\
2047 cannot find symbol\n\
2048 symbol: {0} <{2}>{1}({3})\n\
2049 location: {4}
2051 ##a location subdiagnostic is composed as follows:
2052 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
2053 ## The second argument {1} is the location name
2054 ## The third argument {2} is the location type (only when {1} is a variable name)
2056 # 0: symbol kind, 1: type or symbol, 2: unused
2057 compiler.misc.location=\
2058 {0} {1}
2060 # 0: symbol kind, 1: symbol, 2: type
2061 compiler.misc.location.1=\
2062 {0} {1} of type {2}
2064 ## The following are all possible string for "kindname".
2065 ## They should be called whatever the JLS calls them after it been translated
2066 ## to the appropriate language.
2067 # compiler.misc.kindname.constructor=\
2068 # static member
2069 compiler.misc.kindname.annotation=\
2070 @interface
2072 compiler.misc.kindname.constructor=\
2073 constructor
2075 compiler.misc.kindname.enum=\
2076 enum
2078 compiler.misc.kindname.interface=\
2079 interface
2081 compiler.misc.kindname.static=\
2082 static
2084 compiler.misc.kindname.type.variable=\
2085 type variable
2087 compiler.misc.kindname.type.variable.bound=\
2088 bound of type variable
2090 compiler.misc.kindname.variable=\
2091 variable
2093 compiler.misc.kindname.value=\
2094 value
2096 compiler.misc.kindname.method=\
2097 method
2099 compiler.misc.kindname.class=\
2100 class
2102 compiler.misc.kindname.package=\
2103 package
2105 compiler.misc.kindname.static.init=\
2106 static initializer
2108 compiler.misc.kindname.instance.init=\
2109 instance initializer
2111 #####
2113 compiler.misc.no.args=\
2114 no arguments
2116 # 0: message segment
2117 compiler.err.override.static=\
2118 {0}\n\
2119 overriding method is static
2121 # 0: message segment, 1: set of modifier
2122 compiler.err.override.meth=\
2123 {0}\n\
2124 overridden method is {1}
2126 # 0: message segment, 1: type
2127 compiler.err.override.meth.doesnt.throw=\
2128 {0}\n\
2129 overridden method does not throw {1}
2131 # In the following string {1} is a space separated list of Java Keywords, as
2132 # they would have been declared in the source code
2133 # 0: message segment, 1: set of modifier
2134 compiler.err.override.weaker.access=\
2135 {0}\n\
2136 attempting to assign weaker access privileges; was {1}
2138 # 0: message segment, 1: type, 2: type
2139 compiler.err.override.incompatible.ret=\
2140 {0}\n\
2141 return type {1} is not compatible with {2}
2143 # 0: message segment, 1: type, 2: type
2144 compiler.warn.override.unchecked.ret=\
2145 {0}\n\
2146 return type requires unchecked conversion from {1} to {2}
2148 # 0: message segment, 1: type
2149 compiler.warn.override.unchecked.thrown=\
2150 {0}\n\
2151 overridden method does not throw {1}
2153 # 0: symbol
2154 compiler.warn.override.equals.but.not.hashcode=\
2155 Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
2157 ## The following are all possible strings for the first argument ({0}) of the
2158 ## above strings.
2159 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2160 compiler.misc.cant.override=\
2161 {0} in {1} cannot override {2} in {3}
2163 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2164 compiler.misc.cant.implement=\
2165 {0} in {1} cannot implement {2} in {3}
2167 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2168 compiler.misc.clashes.with=\
2169 {0} in {1} clashes with {2} in {3}
2171 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2172 compiler.misc.unchecked.override=\
2173 {0} in {1} overrides {2} in {3}
2175 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2176 compiler.misc.unchecked.implement=\
2177 {0} in {1} implements {2} in {3}
2179 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2180 compiler.misc.unchecked.clash.with=\
2181 {0} in {1} overrides {2} in {3}
2183 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2184 compiler.misc.varargs.override=\
2185 {0} in {1} overrides {2} in {3}
2187 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2188 compiler.misc.varargs.implement=\
2189 {0} in {1} implements {2} in {3}
2191 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2192 compiler.misc.varargs.clash.with=\
2193 {0} in {1} overrides {2} in {3}
2195 # 0: unused
2196 compiler.misc.diamond.and.anon.class=\
2197 cannot use ''<>'' with anonymous inner classes
2199 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
2200 compiler.misc.inapplicable.method=\
2201 {0} {1}.{2} is not applicable\n\
2202 ({3})
2204 ########################################
2205 # Diagnostics for language feature changes
2206 ########################################
2207 # 0: string
2208 compiler.err.unsupported.fp.lit=\
2209 hexadecimal floating point literals are not supported in -source {0}\n\
2210 (use -source 5 or higher to enable hexadecimal floating point literals)
2212 # 0: string
2213 compiler.err.unsupported.binary.lit=\
2214 binary literals are not supported in -source {0}\n\
2215 (use -source 7 or higher to enable binary literals)
2217 # 0: string
2218 compiler.err.unsupported.underscore.lit=\
2219 underscores in literals are not supported in -source {0}\n\
2220 (use -source 7 or higher to enable underscores in literals)
2222 # 0: string
2223 compiler.err.try.with.resources.not.supported.in.source=\
2224 try-with-resources is not supported in -source {0}\n\
2225 (use -source 7 or higher to enable try-with-resources)
2227 compiler.warn.enum.as.identifier=\
2228 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2229 (use -source 5 or higher to use ''enum'' as a keyword)
2231 compiler.warn.assert.as.identifier=\
2232 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2233 (use -source 1.4 or higher to use ''assert'' as a keyword)
2235 compiler.warn.underscore.as.identifier=\
2236 ''_'' used as an identifier\n\
2237 (use of ''_'' as an identifier might not be supported in releases after Java SE 8)
2239 compiler.err.underscore.as.identifier.in.lambda=\
2240 ''_'' used as an identifier\n\
2241 (use of ''_'' as an identifier is forbidden for lambda parameters)
2243 compiler.err.enum.as.identifier=\
2244 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2245 (use -source 1.4 or lower to use ''enum'' as an identifier)
2247 compiler.err.assert.as.identifier=\
2248 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2249 (use -source 1.3 or lower to use ''assert'' as an identifier)
2251 # TODO 308: make a better error message
2252 compiler.err.this.as.identifier=\
2253 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
2255 # 0: symbol
2256 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
2257 receiver parameter not applicable for constructor of top-level class
2259 # TODO 308: make a better error message
2260 # 0: symbol
2261 compiler.err.cant.type.annotate.scoping.1=\
2262 scoping construct cannot be annotated with type-use annotation: {0}
2264 # TODO 308: make a better error message
2265 # 0: list of symbol
2266 compiler.err.cant.type.annotate.scoping=\
2267 scoping construct cannot be annotated with type-use annotations: {0}
2269 # 0: type, 1: type
2270 compiler.err.incorrect.receiver.name=\
2271 the receiver name does not match the enclosing class type\n\
2272 required: {0}\n\
2273 found: {1}
2275 # 0: type, 1: type
2276 compiler.err.incorrect.receiver.type=\
2277 the receiver type does not match the enclosing class type\n\
2278 required: {0}\n\
2279 found: {1}
2281 # 0: type, 1: type
2282 compiler.err.incorrect.constructor.receiver.type=\
2283 the receiver type does not match the enclosing outer class type\n\
2284 required: {0}\n\
2285 found: {1}
2287 # 0: type, 1: type
2288 compiler.err.incorrect.constructor.receiver.name=\
2289 the receiver name does not match the enclosing outer class type\n\
2290 required: {0}\n\
2291 found: {1}
2293 compiler.err.no.annotations.on.dot.class=\
2294 no annotations are allowed in the type of a class literal
2296 # 0: string
2297 compiler.err.generics.not.supported.in.source=\
2298 generics are not supported in -source {0}\n\
2299 (use -source 5 or higher to enable generics)
2301 # 0: string
2302 compiler.err.varargs.not.supported.in.source=\
2303 variable-arity methods are not supported in -source {0}\n\
2304 (use -source 5 or higher to enable variable-arity methods)
2306 # 0: string
2307 compiler.err.annotations.not.supported.in.source=\
2308 annotations are not supported in -source {0}\n\
2309 (use -source 5 or higher to enable annotations)
2311 # 0: string
2312 compiler.err.type.annotations.not.supported.in.source=\
2313 type annotations are not supported in -source {0}\n\
2314 (use -source 8 or higher to enable type annotations)
2316 # 0: string
2317 compiler.err.repeatable.annotations.not.supported.in.source=\
2318 repeated annotations are not supported in -source {0}\n\
2319 (use -source 8 or higher to enable repeated annotations)
2321 # 0: string
2322 compiler.err.foreach.not.supported.in.source=\
2323 enhanced for loops are not supported in -source {0}\n\
2324 (use -source 5 or higher to enable for-each loops)
2326 # 0: string
2327 compiler.err.static.import.not.supported.in.source=\
2328 static import declarations are not supported in -source {0}\n\
2329 (use -source 5 or higher to enable static import declarations)
2331 # 0: string
2332 compiler.err.enums.not.supported.in.source=\
2333 enums are not supported in -source {0}\n\
2334 (use -source 5 or higher to enable enums)
2336 # 0: string
2337 compiler.err.diamond.not.supported.in.source=\
2338 diamond operator is not supported in -source {0}\n\
2339 (use -source 7 or higher to enable diamond operator)
2341 # 0: string
2342 compiler.err.multicatch.not.supported.in.source=\
2343 multi-catch statement is not supported in -source {0}\n\
2344 (use -source 7 or higher to enable multi-catch statement)
2346 # 0: string
2347 compiler.err.string.switch.not.supported.in.source=\
2348 strings in switch are not supported in -source {0}\n\
2349 (use -source 7 or higher to enable strings in switch)
2351 # 0: string
2352 compiler.err.lambda.not.supported.in.source=\
2353 lambda expressions are not supported in -source {0}\n\
2354 (use -source 8 or higher to enable lambda expressions)
2356 # 0: string
2357 compiler.err.method.references.not.supported.in.source=\
2358 method references are not supported in -source {0}\n\
2359 (use -source 8 or higher to enable method references)
2361 # 0: string
2362 compiler.err.default.methods.not.supported.in.source=\
2363 default methods are not supported in -source {0}\n\
2364 (use -source 8 or higher to enable default methods)
2366 # 0: string
2367 compiler.err.intersection.types.in.cast.not.supported.in.source=\
2368 intersection types in cast are not supported in -source {0}\n\
2369 (use -source 8 or higher to enable default methods)
2371 # 0: string
2372 compiler.err.static.intf.methods.not.supported.in.source=\
2373 static interface methods are not supported in -source {0}\n\
2374 (use -source 8 or higher to enable static interface methods)
2376 ########################################
2377 # Diagnostics for verbose resolution
2378 # used by Resolve (debug only)
2379 ########################################
2381 # 0: number, 1: symbol, 2: unused
2382 compiler.misc.applicable.method.found=\
2383 #{0} applicable method found: {1}
2385 # 0: number, 1: symbol, 2: message segment
2386 compiler.misc.applicable.method.found.1=\
2387 #{0} applicable method found: {1}\n\
2388 ({2})
2390 # 0: number, 1: symbol, 2: message segment
2391 compiler.misc.not.applicable.method.found=\
2392 #{0} not applicable method found: {1}\n\
2393 ({2})
2395 # 0: type
2396 compiler.misc.partial.inst.sig=\
2397 partially instantiated to: {0}
2399 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2400 compiler.note.verbose.resolve.multi=\
2401 resolving method {0} in type {1} to candidate {2}\n\
2402 phase: {3}\n\
2403 with actuals: {4}\n\
2404 with type-args: {5}\n\
2405 candidates:
2407 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2408 compiler.note.verbose.resolve.multi.1=\
2409 erroneous resolution for method {0} in type {1}\n\
2410 phase: {3}\n\
2411 with actuals: {4}\n\
2412 with type-args: {5}\n\
2413 candidates:
2415 # 0: symbol, 1: type, 2: type
2416 compiler.note.deferred.method.inst=\
2417 Deferred instantiation of method {0}\n\
2418 instantiated signature: {1}\n\
2419 target-type: {2}
2421 ########################################
2422 # Diagnostics for where clause implementation
2423 # used by the RichDiagnosticFormatter.
2424 ########################################
2426 compiler.misc.type.null=\
2427 <null>
2429 # X#n (where n is an int id) is disambiguated tvar name
2430 # 0: name, 1: number
2431 compiler.misc.type.var=\
2432 {0}#{1}
2434 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
2435 # 0: number
2436 compiler.misc.captured.type=\
2437 CAP#{0}
2439 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2440 # 0: number
2441 compiler.misc.intersection.type=\
2442 INT#{0}
2444 # where clause for captured type: contains upper ('extends {1}') and lower
2445 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
2446 # 0: type, 1: type, 2: type, 3: type
2447 compiler.misc.where.captured=\
2448 {0} extends {1} super: {2} from capture of {3}
2450 # compact where clause for captured type: contains upper ('extends {1}') along
2451 # with the wildcard that generated this captured type ({3})
2452 # 0: type, 1: type, 2: unused, 3: type
2453 compiler.misc.where.captured.1=\
2454 {0} extends {1} from capture of {3}
2456 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
2457 # the kindname ({2}) and location ({3}) in which the typevar has been declared
2458 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2459 compiler.misc.where.typevar=\
2460 {0} extends {1} declared in {2} {3}
2462 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
2463 # in which the typevar has been declared
2464 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2465 compiler.misc.where.typevar.1=\
2466 {0} declared in {2} {3}
2468 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2469 # Since a fresh type-variable is synthetic - there's no location/kindname here.
2470 # 0: type, 1: list of type
2471 compiler.misc.where.fresh.typevar=\
2472 {0} extends {1}
2474 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
2475 # of this intersection type
2476 # 0: type, 1: list of type
2477 compiler.misc.where.intersection=\
2478 {0} extends {1}
2480 ### Where clause headers ###
2481 compiler.misc.where.description.captured=\
2482 where {0} is a fresh type-variable:
2484 # 0: set of type
2485 compiler.misc.where.description.typevar=\
2486 where {0} is a type-variable:
2488 # 0: set of type
2489 compiler.misc.where.description.intersection=\
2490 where {0} is an intersection type:
2492 # 0: set of type
2493 compiler.misc.where.description.captured.1=\
2494 where {0} are fresh type-variables:
2496 # 0: set of type
2497 compiler.misc.where.description.typevar.1=\
2498 where {0} are type-variables:
2500 compiler.misc.where.description.intersection.1=\
2501 where {0} are intersection types:
2503 ###
2504 # errors related to doc comments
2506 compiler.err.dc.bad.entity=\
2507 bad HTML entity
2509 compiler.err.dc.bad.gt=\
2510 bad use of ''>''
2512 compiler.err.dc.bad.inline.tag=\
2513 incorrect use of inline tag
2515 compiler.err.dc.identifier.expected=\
2516 identifier expected
2518 compiler.err.dc.malformed.html=\
2519 malformed HTML
2521 compiler.err.dc.missing.semicolon=\
2522 semicolon missing
2524 compiler.err.dc.no.content=\
2525 no content
2527 compiler.err.dc.no.tag.name=\
2528 no tag name after '@'
2530 compiler.err.dc.gt.expected=\
2531 ''>'' expected
2533 compiler.err.dc.ref.bad.parens=\
2534 '')'' missing in reference
2536 compiler.err.dc.ref.syntax.error=\
2537 syntax error in reference
2539 compiler.err.dc.ref.unexpected.input=\
2540 unexpected text
2542 compiler.err.dc.unexpected.content=\
2543 unexpected content
2545 compiler.err.dc.unterminated.inline.tag=\
2546 unterminated inline tag
2548 compiler.err.dc.unterminated.signature=\
2549 unterminated signature
2551 compiler.err.dc.unterminated.string=\
2552 unterminated string