Thu, 21 Feb 2013 17:49:56 -0800
Merge
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: type
220 compiler.misc.secondary.bound.must.be.marker.intf=\
221 secondary bound {0} must be a marker interface
223 # 0: symbol kind, 1: message segment
224 compiler.err.invalid.mref=\
225 invalid {0} reference; {1}
227 # 0: symbol kind, 1: message segment
228 compiler.misc.invalid.mref=\
229 invalid {0} reference; {1}
231 compiler.misc.static.mref.with.targs=\
232 parameterized qualifier on static method reference
234 compiler.misc.static.bound.mref=\
235 static bound method reference
237 # 0: symbol
238 compiler.err.cant.assign.val.to.final.var=\
239 cannot assign a value to final variable {0}
241 # 0: symbol, 1: message segment
242 compiler.err.cant.ref.non.effectively.final.var=\
243 local variables referenced from {1} must be final or effectively final
246 compiler.misc.lambda=\
247 a lambda expression
249 compiler.misc.inner.cls=\
250 an inner class
252 # 0: type
253 compiler.err.cant.deref=\
254 {0} cannot be dereferenced
256 compiler.err.cant.extend.intf.annotation=\
257 ''extends'' not allowed for @interfaces
259 # 0: symbol
260 compiler.err.cant.inherit.from.final=\
261 cannot inherit from final {0}
263 # 0: symbol
264 compiler.err.cant.ref.before.ctor.called=\
265 cannot reference {0} before supertype constructor has been called
267 compiler.err.cant.select.static.class.from.param.type=\
268 cannot select a static class from a parameterized type
270 # 0: symbol, 1: string, 2: string
271 compiler.err.cant.inherit.diff.arg=\
272 {0} cannot be inherited with different arguments: <{1}> and <{2}>
274 compiler.err.catch.without.try=\
275 ''catch'' without ''try''
277 # 0: symbol kind, 1: symbol
278 compiler.err.clash.with.pkg.of.same.name=\
279 {0} {1} clashes with package of same name
281 compiler.err.class.not.allowed=\
282 class, interface or enum declaration not allowed here
284 compiler.err.const.expr.req=\
285 constant expression required
287 compiler.err.cont.outside.loop=\
288 continue outside of loop
290 # 0: symbol
291 compiler.err.cyclic.inheritance=\
292 cyclic inheritance involving {0}
294 compiler.err.cyclic.annotation.element=\
295 cyclic annotation element type
297 # 0: unused
298 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
299 call to super not allowed in enum constructor
301 # 0: type
302 compiler.err.no.superclass=\
303 {0} has no superclass
305 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
306 compiler.err.concrete.inheritance.conflict=\
307 methods {0} from {1} and {2} from {3} are inherited with the same signature
309 compiler.err.default.allowed.in.intf.annotation.member=\
310 default value only allowed in an @interface member
312 # 0: symbol
313 compiler.err.doesnt.exist=\
314 package {0} does not exist
316 compiler.err.duplicate.annotation=\
317 duplicate annotation
319 # 0: type
320 compiler.err.duplicate.annotation.invalid.repeated=\
321 annotation {0} cannot be repeated\nIt does not define a valid containing annotation.
323 # 0: name, 1: type
324 compiler.err.duplicate.annotation.member.value=\
325 duplicate annotation member value {0} in {1}
327 # 0: type, 1: type
328 compiler.err.duplicate.annotation.missing.container=\
329 duplicate annotation, the declaration of {0} does not have a valid {1} annotation
331 # 0: type
332 compiler.err.invalid.repeatable.annotation=\
333 duplicate annotation, {0} is annotated with an invalid Repeatable annotation
335 # 0: type
336 compiler.err.invalid.repeatable.annotation.no.value=\
337 duplicate annotation, {0} is not a valid Repeatable, no value element method declared
339 # 0: type, 1: number
340 compiler.err.invalid.repeatable.annotation.multiple.values=\
341 duplicate annotation, {0} is not a valid Repeatable, {1} value element methods declared
343 # 0: type
344 compiler.err.invalid.repeatable.annotation.invalid.value=\
345 duplicate annotation, {0} is not a valid Repeatable, invalid value element, need a method
347 # 0: type, 1: type, 2: type
348 compiler.err.invalid.repeatable.annotation.value.return=\
349 duplicate annotation, value element of containing annotation {0} should have type {2}, found {1}
351 # 0: type, 1: symbol
352 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
353 containing annotation {0} does not have a default value for element {1}
355 # 0: symbol, 1: type, 2: symbol, 3: type
356 compiler.err.invalid.repeatable.annotation.retention=\
357 containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3}
359 # 0: symbol, 1: symbol
360 compiler.err.invalid.repeatable.annotation.not.documented=\
361 containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is
363 # 0: symbol, 1: symbol
364 compiler.err.invalid.repeatable.annotation.not.inherited=\
365 containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is
367 # 0: symbol, 1: symbol
368 compiler.err.invalid.repeatable.annotation.incompatible.target=\
369 target of container annotation {0} is not a subset of target of repeated annotation {1}
371 # 0: symbol
372 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
373 container {0} must not be present at the same time as the element it contains
375 # 0: name
376 compiler.err.duplicate.class=\
377 duplicate class: {0}
379 compiler.err.duplicate.case.label=\
380 duplicate case label
382 compiler.err.duplicate.default.label=\
383 duplicate default label
385 compiler.err.else.without.if=\
386 ''else'' without ''if''
388 compiler.err.empty.char.lit=\
389 empty character literal
391 # 0: symbol
392 compiler.err.encl.class.required=\
393 an enclosing instance that contains {0} is required
395 compiler.err.enum.annotation.must.be.enum.constant=\
396 an enum annotation value must be an enum constant
398 compiler.err.enum.cant.be.instantiated=\
399 enum types may not be instantiated
401 compiler.err.enum.label.must.be.unqualified.enum=\
402 an enum switch case label must be the unqualified name of an enumeration constant
404 compiler.err.enum.no.subclassing=\
405 classes cannot directly extend java.lang.Enum
407 compiler.err.enum.types.not.extensible=\
408 enum types are not extensible
410 compiler.err.enum.no.finalize=\
411 enums cannot have finalize methods
413 # 0: file name, 1: string
414 compiler.err.error.reading.file=\
415 error reading {0}; {1}
417 # 0: type
418 compiler.err.except.already.caught=\
419 exception {0} has already been caught
421 # 0: type
422 compiler.err.except.never.thrown.in.try=\
423 exception {0} is never thrown in body of corresponding try statement
425 # 0: symbol
426 compiler.err.final.parameter.may.not.be.assigned=\
427 final parameter {0} may not be assigned
429 # 0: symbol
430 compiler.err.try.resource.may.not.be.assigned=\
431 auto-closeable resource {0} may not be assigned
433 # 0: symbol
434 compiler.err.multicatch.parameter.may.not.be.assigned=\
435 multi-catch parameter {0} may not be assigned
437 # 0: type, 1: type
438 compiler.err.multicatch.types.must.be.disjoint=\
439 Alternatives in a multi-catch statement cannot be related by subclassing\n\
440 Alternative {0} is a subclass of alternative {1}
442 compiler.err.finally.without.try=\
443 ''finally'' without ''try''
445 # 0: type, 1: message segment
446 compiler.err.foreach.not.applicable.to.type=\
447 for-each not applicable to expression type\n\
448 required: {1}\n\
449 found: {0}
451 compiler.err.fp.number.too.large=\
452 floating point number too large
454 compiler.err.fp.number.too.small=\
455 floating point number too small
457 compiler.err.generic.array.creation=\
458 generic array creation
460 compiler.err.generic.throwable=\
461 a generic class may not extend java.lang.Throwable
463 # 0: symbol
464 compiler.err.icls.cant.have.static.decl=\
465 Illegal static declaration in inner class {0}\n\
466 modifier \''static\'' is only allowed in constant variable declarations
468 # 0: string
469 compiler.err.illegal.char=\
470 illegal character: ''{0}''
472 compiler.err.illegal.char.for.encoding=\
473 unmappable character for encoding {0}
475 # 0: set of modifier, 1: set of modifier
476 compiler.err.illegal.combination.of.modifiers=\
477 illegal combination of modifiers: {0} and {1}
479 compiler.err.illegal.enum.static.ref=\
480 illegal reference to static field from initializer
482 compiler.err.illegal.esc.char=\
483 illegal escape character
485 compiler.err.illegal.forward.ref=\
486 illegal forward reference
488 # 0: symbol, 1: string
489 compiler.err.not.in.profile=\
490 {0} is not available in profile ''{1}''
492 # 0: symbol
493 compiler.warn.forward.ref=\
494 reference to variable ''{0}'' before it has been initialized
496 compiler.err.illegal.self.ref=\
497 self-reference in initializer
499 # 0: symbol
500 compiler.warn.self.ref=\
501 self-reference in initializer of variable ''{0}''
503 compiler.err.illegal.generic.type.for.instof=\
504 illegal generic type for instanceof
506 # 0: type
507 compiler.err.illegal.initializer.for.type=\
508 illegal initializer for {0}
510 compiler.err.illegal.line.end.in.char.lit=\
511 illegal line end in character literal
513 compiler.err.illegal.nonascii.digit=\
514 illegal non-ASCII digit
516 compiler.err.illegal.underscore=\
517 illegal underscore
519 compiler.err.illegal.dot=\
520 illegal ''.''
522 # 0: symbol
523 compiler.err.illegal.qual.not.icls=\
524 illegal qualifier; {0} is not an inner class
526 compiler.err.illegal.start.of.expr=\
527 illegal start of expression
529 compiler.err.illegal.start.of.stmt=\
530 illegal start of statement
532 compiler.err.illegal.start.of.type=\
533 illegal start of type
535 compiler.err.illegal.unicode.esc=\
536 illegal unicode escape
538 # 0: symbol
539 compiler.err.import.requires.canonical=\
540 import requires canonical name for {0}
542 compiler.err.improperly.formed.type.param.missing=\
543 improperly formed type, some parameters are missing
545 compiler.err.improperly.formed.type.inner.raw.param=\
546 improperly formed type, type arguments given on a raw type
548 # 0: type, 1: type
549 compiler.err.incomparable.types=\
550 incomparable types: {0} and {1}
552 # 0: number
553 compiler.err.int.number.too.large=\
554 integer number too large: {0}
556 compiler.err.intf.annotation.members.cant.have.params=\
557 @interface members may not have parameters
559 compiler.err.intf.annotation.cant.have.type.params=\
560 @interface may not have type parameters
562 compiler.err.intf.annotation.members.cant.have.type.params=\
563 @interface members may not have type parameters
565 # 0: symbol, 1: type
566 compiler.err.intf.annotation.member.clash=\
567 @interface member clashes with method ''{0}'' in {1}
569 compiler.err.intf.expected.here=\
570 interface expected here
572 compiler.err.intf.meth.cant.have.body=\
573 interface abstract methods cannot have body
575 compiler.err.invalid.annotation.member.type=\
576 invalid type for annotation member
578 compiler.err.invalid.binary.number=\
579 binary numbers must contain at least one binary digit
581 compiler.err.invalid.hex.number=\
582 hexadecimal numbers must contain at least one hexadecimal digit
584 compiler.err.invalid.meth.decl.ret.type.req=\
585 invalid method declaration; return type required
587 compiler.err.varargs.and.old.array.syntax=\
588 legacy array notation not allowed on variable-arity parameter
590 compiler.err.variable.not.allowed=\
591 variable declaration not allowed here
593 # 0: name
594 compiler.err.label.already.in.use=\
595 label {0} already in use
597 # 0: symbol
598 compiler.err.local.var.accessed.from.icls.needs.final=\
599 local variable {0} is accessed from within inner class; needs to be declared final
601 compiler.err.local.enum=\
602 enum types must not be local
604 compiler.err.cannot.create.array.with.type.arguments=\
605 cannot create array with type arguments
607 compiler.err.cannot.create.array.with.diamond=\
608 cannot create array with ''<>''
610 #
611 # limits. We don't give the limits in the diagnostic because we expect
612 # them to change, yet we want to use the same diagnostic. These are all
613 # detected during code generation.
614 #
615 compiler.err.limit.code=\
616 code too large
618 compiler.err.limit.code.too.large.for.try.stmt=\
619 code too large for try statement
621 compiler.err.limit.dimensions=\
622 array type has too many dimensions
624 compiler.err.limit.locals=\
625 too many local variables
627 compiler.err.limit.parameters=\
628 too many parameters
630 compiler.err.limit.pool=\
631 too many constants
633 compiler.err.limit.pool.in.class=\
634 too many constants in class {0}
636 compiler.err.limit.stack=\
637 code requires too much stack
639 compiler.err.limit.string=\
640 constant string too long
642 compiler.err.limit.string.overflow=\
643 UTF8 representation for string \"{0}...\" is too long for the constant pool
645 compiler.err.malformed.fp.lit=\
646 malformed floating point literal
648 compiler.err.method.does.not.override.superclass=\
649 method does not override or implement a method from a supertype
651 compiler.err.missing.meth.body.or.decl.abstract=\
652 missing method body, or declare abstract
654 compiler.err.missing.ret.stmt=\
655 missing return statement
657 compiler.misc.missing.ret.val=\
658 missing return value
660 compiler.misc.unexpected.ret.val=\
661 unexpected return value
663 # 0: set of modifier
664 compiler.err.mod.not.allowed.here=\
665 modifier {0} not allowed here
667 compiler.err.intf.not.allowed.here=\
668 interface not allowed here
670 compiler.err.enums.must.be.static=\
671 enum declarations allowed only in static contexts
673 # 0: symbol, 1: symbol
674 compiler.err.name.clash.same.erasure=\
675 name clash: {0} and {1} have the same erasure
677 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
678 compiler.err.name.clash.same.erasure.no.override=\
679 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
681 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
682 compiler.err.name.clash.same.erasure.no.override.1=\
683 name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
684 first method: {2} in {3}\n\
685 second method: {4} in {5}
687 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
688 compiler.err.name.clash.same.erasure.no.hide=\
689 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
691 compiler.err.name.reserved.for.internal.use=\
692 {0} is reserved for internal use
694 compiler.err.native.meth.cant.have.body=\
695 native methods cannot have a body
697 # 0: type, 1: type
698 compiler.err.neither.conditional.subtype=\
699 incompatible types for ?: neither is a subtype of the other\n\
700 second operand: {0}\n\
701 third operand : {1}
703 # 0: message segment
704 compiler.misc.incompatible.type.in.conditional=\
705 bad type in conditional expression; {0}
707 compiler.misc.conditional.target.cant.be.void=\
708 target-type for conditional expression cannot be void
710 # 0: type
711 compiler.misc.incompatible.ret.type.in.lambda=\
712 bad return type in lambda expression\n\
713 {0}
715 # 0: type
716 compiler.misc.incompatible.ret.type.in.mref=\
717 bad return type in method reference\n\
718 {0}
720 # 0: list of type
721 compiler.err.incompatible.thrown.types.in.lambda=\
722 incompatible thrown types {0} in lambda expression
724 # 0: list of type
725 compiler.err.incompatible.thrown.types.in.mref=\
726 incompatible thrown types {0} in method reference
728 compiler.misc.incompatible.arg.types.in.lambda=\
729 incompatible parameter types in lambda expression
731 compiler.misc.incompatible.arg.types.in.mref=\
732 incompatible parameter types in method reference
734 compiler.err.new.not.allowed.in.annotation=\
735 ''new'' not allowed in an annotation
737 compiler.err.no.annotation.member=\
738 no annotation member {0} in {1}
740 compiler.err.no.encl.instance.of.type.in.scope=\
741 no enclosing instance of type {0} is in scope
743 compiler.err.no.intf.expected.here=\
744 no interface expected here
746 compiler.err.no.match.entry=\
747 {0} has no match in entry in {1}; required {2}
749 compiler.err.not.annotation.type=\
750 {0} is not an annotation type
752 # 0: symbol, 1: symbol
753 compiler.err.not.def.access.class.intf.cant.access=\
754 {0} in {1} is defined in an inaccessible class or interface
756 # 0: symbol, 1: symbol
757 compiler.misc.not.def.access.class.intf.cant.access=\
758 {0} in {1} is defined in an inaccessible class or interface
760 # 0: symbol, 1: list of type, 2: type
761 compiler.misc.cant.access.inner.cls.constr=\
762 cannot access constructor {0}({1})\n\
763 an enclosing instance of type {2} is not in scope
765 # 0: symbol, 1: symbol
766 compiler.err.not.def.public.cant.access=\
767 {0} is not public in {1}; cannot be accessed from outside package
769 # 0: name
770 compiler.err.not.loop.label=\
771 not a loop label: {0}
773 compiler.err.not.stmt=\
774 not a statement
776 # 0: symbol
777 compiler.err.not.encl.class=\
778 not an enclosing class: {0}
780 # 0: name, 1: type, 2: unused
781 compiler.err.operator.cant.be.applied=\
782 bad operand type {1} for unary operator ''{0}''
784 # 0: name, 1: type, 2: type
785 compiler.err.operator.cant.be.applied.1=\
786 bad operand types for binary operator ''{0}''\n\
787 first type: {1}\n\
788 second type: {2}
790 compiler.err.pkg.annotations.sb.in.package-info.java=\
791 package annotations should be in file package-info.java
793 # 0: symbol
794 compiler.err.pkg.clashes.with.class.of.same.name=\
795 package {0} clashes with class of same name
797 compiler.err.warnings.and.werror=\
798 warnings found and -Werror specified
800 # Errors related to annotation processing
802 # 0: symbol, 1: string, 2: stack-trace
803 compiler.err.proc.cant.access=\
804 cannot access {0}\n\
805 {1}\n\
806 Consult the following stack trace for details.\n\
807 {2}
809 # 0: symbol, 1: string
810 compiler.err.proc.cant.access.1=\
811 cannot access {0}\n\
812 {1}
814 # 0: string
815 compiler.err.proc.cant.find.class=\
816 Could not find class file for ''{0}''.
818 # Print a client-generated error message; assumed to be localized, no translation required
819 # 0: string
820 compiler.err.proc.messager=\
821 {0}
823 # 0: list of string
824 compiler.err.proc.no.explicit.annotation.processing.requested=\
825 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
827 compiler.err.proc.no.service=\
828 A ServiceLoader was not usable and is required for annotation processing.
830 compiler.err.proc.processor.bad.option.name=\
831 Bad option name ''{0}'' provided by processor ''{1}''
833 # 0: string
834 compiler.err.proc.processor.cant.instantiate=\
835 Could not instantiate an instance of processor ''{0}''
837 # 0: string
838 compiler.err.proc.processor.not.found=\
839 Annotation processor ''{0}'' not found
841 # 0: string
842 compiler.err.proc.processor.wrong.type=\
843 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
845 compiler.err.proc.service.problem=\
846 Error creating a service loader to load Processors.
848 compiler.err.proc.bad.config.file=\
849 Bad service configuration file, or exception thrown while constructing Processor object: {0}
851 compiler.err.proc.cant.create.loader=\
852 Could not create class loader for annotation processors: {0}
854 # 0: unused
855 compiler.err.qualified.new.of.static.class=\
856 qualified new of static class
858 compiler.err.recursive.ctor.invocation=\
859 recursive constructor invocation
861 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
862 compiler.err.ref.ambiguous=\
863 reference to {0} is ambiguous\n\
864 both {1} {2} in {3} and {4} {5} in {6} match
866 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
867 compiler.misc.ref.ambiguous=\
868 reference to {0} is ambiguous\n\
869 both {1} {2} in {3} and {4} {5} in {6} match
871 compiler.err.repeated.annotation.target=\
872 repeated annotation target
874 compiler.err.repeated.interface=\
875 repeated interface
877 compiler.err.repeated.modifier=\
878 repeated modifier
880 # 0: symbol, 1: set of modifier, 2: symbol
881 compiler.err.report.access=\
882 {0} has {1} access in {2}
884 compiler.err.ret.outside.meth=\
885 return outside method
887 compiler.err.signature.doesnt.match.supertype=\
888 signature does not match {0}; incompatible supertype
890 compiler.err.signature.doesnt.match.intf=\
891 signature does not match {0}; incompatible interfaces
893 # 0: symbol, 1: symbol, 2: symbol
894 compiler.err.does.not.override.abstract=\
895 {0} is not abstract and does not override abstract method {1} in {2}
897 compiler.err.source.cant.overwrite.input.file=\
898 error writing source; cannot overwrite input file {0}
900 compiler.err.stack.sim.error=\
901 Internal error: stack sim error on {0}
903 compiler.err.static.imp.only.classes.and.interfaces=\
904 static import only from classes and interfaces
906 compiler.err.string.const.req=\
907 constant string expression required
909 # 0: symbol, 1: symbol
910 compiler.err.synthetic.name.conflict=\
911 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
913 # 0: symbol, 1: symbol
914 compiler.warn.synthetic.name.conflict=\
915 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
917 compiler.err.throws.not.allowed.in.intf.annotation=\
918 throws clause not allowed in @interface members
920 compiler.err.try.without.catch.or.finally=\
921 ''try'' without ''catch'' or ''finally''
923 compiler.err.try.without.catch.finally.or.resource.decls=\
924 ''try'' without ''catch'', ''finally'' or resource declarations
926 # 0: symbol
927 compiler.err.type.doesnt.take.params=\
928 type {0} does not take parameters
930 compiler.err.type.var.cant.be.deref=\
931 cannot select from a type variable
933 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
934 a type variable may not be followed by other bounds
936 compiler.err.type.var.more.than.once=\
937 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
939 compiler.err.type.var.more.than.once.in.result=\
940 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
942 # 0: type, 1: type, 2: string
943 compiler.err.types.incompatible.diff.ret=\
944 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
946 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
947 compiler.err.types.incompatible.unrelated.defaults=\
948 {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
950 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
951 compiler.err.types.incompatible.abstract.default=\
952 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
954 # 0: name, 1: kind, 2: symbol
955 compiler.err.default.overrides.object.member=\
956 default method {0} in {1} {2} overrides a member of java.lang.Object
958 # 0: type
959 compiler.err.illegal.static.intf.meth.call=\
960 illegal static interface method call\n\
961 the receiver expression should be replaced with the type qualifier ''{0}''
963 # 0: type, 1: message segment
964 compiler.err.illegal.default.super.call=\
965 bad type qualifier {0} in default super call\n\
966 {1}
968 # 0: symbol, 1: type
969 compiler.misc.overridden.default=\
970 method {0} is overridden in {1}
972 # 0: symbol, 1: symbol
973 compiler.misc.redundant.supertype=\
974 redundant interface {0} is extended by {1}
976 compiler.err.unclosed.char.lit=\
977 unclosed character literal
979 compiler.err.unclosed.comment=\
980 unclosed comment
982 compiler.err.unclosed.str.lit=\
983 unclosed string literal
985 # 0: name
986 compiler.err.unsupported.encoding=\
987 unsupported encoding: {0}
989 compiler.err.io.exception=\
990 error reading source file: {0}
992 # 0: name
993 compiler.err.undef.label=\
994 undefined label: {0}
996 # 0: message segment, 1: unused
997 compiler.err.cant.apply.diamond=\
998 cannot infer type arguments for {0}
1000 # 0: message segment or type, 1: message segment
1001 compiler.err.cant.apply.diamond.1=\
1002 cannot infer type arguments for {0}\n\
1003 reason: {1}
1005 # 0: message segment or type, 1: message segment
1006 compiler.misc.cant.apply.diamond.1=\
1007 cannot infer type arguments for {0}\n\
1008 reason: {1}
1010 compiler.err.unreachable.stmt=\
1011 unreachable statement
1013 compiler.err.initializer.must.be.able.to.complete.normally=\
1014 initializer must be able to complete normally
1016 # 0: type
1017 compiler.err.unreported.exception.need.to.catch.or.throw=\
1018 unreported exception {0}; must be caught or declared to be thrown
1020 # 0: type
1021 compiler.err.unreported.exception.default.constructor=\
1022 unreported exception {0} in default constructor
1024 # 0: type, 1: name
1025 compiler.err.unreported.exception.implicit.close=\
1026 unreported exception {0}; must be caught or declared to be thrown\n\
1027 exception thrown from implicit call to close() on resource variable ''{1}''
1029 compiler.err.unsupported.cross.fp.lit=\
1030 hexadecimal floating-point literals are not supported on this VM
1032 compiler.err.void.not.allowed.here=\
1033 ''void'' type not allowed here
1035 # 0: string
1036 compiler.err.wrong.number.type.args=\
1037 wrong number of type arguments; required {0}
1039 # 0: symbol
1040 compiler.err.var.might.already.be.assigned=\
1041 variable {0} might already have been assigned
1043 # 0: symbol
1044 compiler.err.var.might.not.have.been.initialized=\
1045 variable {0} might not have been initialized
1047 # 0: symbol
1048 compiler.err.var.might.be.assigned.in.loop=\
1049 variable {0} might be assigned in loop
1051 # 0: symbol, 1: message segment
1052 compiler.err.varargs.invalid.trustme.anno=\
1053 Invalid {0} annotation. {1}
1055 # 0: type
1056 compiler.misc.varargs.trustme.on.reifiable.varargs=\
1057 Varargs element type {0} is reifiable.
1059 # 0: symbol
1060 compiler.misc.varargs.trustme.on.non.varargs.meth=\
1061 Method {0} is not a varargs method.
1063 # 0: symbol
1064 compiler.misc.varargs.trustme.on.virtual.varargs=\
1065 Instance method {0} is not final.
1067 # 0: type, 1: symbol kind, 2: symbol
1068 compiler.misc.inaccessible.varargs.type=\
1069 formal varargs element type {0} is not accessible from {1} {2}
1071 # In the following string, {1} will always be the detail message from
1072 # java.io.IOException.
1073 # 0: symbol, 1: string
1074 compiler.err.class.cant.write=\
1075 error while writing {0}: {1}
1077 # In the following string, {0} is the name of the class in the Java source.
1078 # It really should be used two times..
1079 # 0: name
1080 compiler.err.class.public.should.be.in.file=\
1081 class {0} is public, should be declared in a file named {0}.java
1083 ## All errors which do not refer to a particular line in the source code are
1084 ## preceded by this string.
1085 compiler.err.error=\
1086 error:\u0020
1088 # The following error messages do not refer to a line in the source code.
1089 compiler.err.cant.read.file=\
1090 cannot read: {0}
1092 #####
1094 # Fatal Errors
1096 compiler.misc.fatal.err.no.java.lang=\
1097 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
1099 compiler.misc.fatal.err.cant.locate.meth=\
1100 Fatal Error: Unable to find method {0}
1102 compiler.misc.fatal.err.cant.locate.field=\
1103 Fatal Error: Unable to find field {0}
1105 compiler.misc.fatal.err.cant.locate.ctor=\
1106 Fatal Error: Unable to find constructor for {0}
1108 compiler.misc.fatal.err.cant.close=\
1109 Fatal Error: Cannot close compiler resources
1111 #####
1113 ##
1114 ## miscellaneous strings
1115 ##
1117 compiler.misc.source.unavailable=\
1118 (source unavailable)
1120 compiler.misc.base.membership=\
1121 all your base class are belong to us
1123 # 0: string, 1: string, 2: boolean
1124 compiler.misc.x.print.processor.info=\
1125 Processor {0} matches {1} and returns {2}.
1127 # 0: number, 1: string, 2: set of symbol, 3: boolean
1128 compiler.misc.x.print.rounds=\
1129 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1131 #####
1133 ## The following string will appear before all messages keyed as:
1134 ## "compiler.note".
1136 compiler.note.potential.lambda.found=\
1137 This anonymous inner class creation can be turned into a lambda expression.
1139 compiler.note.note=\
1140 Note:\u0020
1142 # 0: file name
1143 compiler.note.deprecated.filename=\
1144 {0} uses or overrides a deprecated API.
1146 compiler.note.deprecated.plural=\
1147 Some input files use or override a deprecated API.
1149 # The following string may appear after one of the above deprecation
1150 # messages.
1151 compiler.note.deprecated.recompile=\
1152 Recompile with -Xlint:deprecation for details.
1154 # 0: file name
1155 compiler.note.deprecated.filename.additional=\
1156 {0} has additional uses or overrides of a deprecated API.
1158 compiler.note.deprecated.plural.additional=\
1159 Some input files additionally use or override a deprecated API.
1161 # 0: file name
1162 compiler.note.unchecked.filename=\
1163 {0} uses unchecked or unsafe operations.
1165 compiler.note.unchecked.plural=\
1166 Some input files use unchecked or unsafe operations.
1168 # The following string may appear after one of the above deprecation
1169 # messages.
1170 compiler.note.unchecked.recompile=\
1171 Recompile with -Xlint:unchecked for details.
1173 # 0: file name
1174 compiler.note.unchecked.filename.additional=\
1175 {0} has additional unchecked or unsafe operations.
1177 compiler.note.unchecked.plural.additional=\
1178 Some input files additionally use unchecked or unsafe operations.
1180 # 0: file name
1181 compiler.note.sunapi.filename=\
1182 {0} uses internal proprietary API that may be removed in a future release.
1184 compiler.note.sunapi.plural=\
1185 Some input files use internal proprietary API that may be removed in a future release.
1187 # The following string may appear after one of the above sunapi messages.
1188 compiler.note.sunapi.recompile=\
1189 Recompile with -Xlint:sunapi for details.
1191 # 0: file name
1192 compiler.note.sunapi.filename.additional=\
1193 {0} uses additional internal proprietary API that may be removed in a future release.
1195 compiler.note.sunapi.plural.additional=\
1196 Some input files additionally use internal proprietary API that may be removed in a future release.
1198 # Notes related to annotation processing
1200 # Print a client-generated note; assumed to be localized, no translation required
1201 # 0: string
1202 compiler.note.proc.messager=\
1203 {0}
1205 #####
1207 # 0: number
1208 compiler.misc.count.error=\
1209 {0} error
1211 # 0: number
1212 compiler.misc.count.error.plural=\
1213 {0} errors
1215 # 0: number
1216 compiler.misc.count.warn=\
1217 {0} warning
1219 # 0: number
1220 compiler.misc.count.warn.plural=\
1221 {0} warnings
1223 compiler.misc.version.not.available=\
1224 (version info not available)
1226 ## extra output when using -verbose (JavaCompiler)
1228 # 0: symbol
1229 compiler.misc.verbose.checking.attribution=\
1230 [checking {0}]
1232 # 0: string
1233 compiler.misc.verbose.parsing.done=\
1234 [parsing completed {0}ms]
1236 # 0: file name
1237 compiler.misc.verbose.parsing.started=\
1238 [parsing started {0}]
1240 # 0: string
1241 compiler.misc.verbose.total=\
1242 [total {0}ms]
1244 # 0: file name
1245 compiler.misc.verbose.wrote.file=\
1246 [wrote {0}]
1248 ## extra output when using -verbose (Retro)
1249 compiler.misc.verbose.retro=\
1250 [retrofitting {0}]
1252 compiler.misc.verbose.retro.with=\
1253 \tretrofitting {0} with {1}
1255 compiler.misc.verbose.retro.with.list=\
1256 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1258 ## extra output when using -verbose (code/ClassReader)
1259 # 0: string
1260 compiler.misc.verbose.loading=\
1261 [loading {0}]
1263 # 0: string
1264 compiler.misc.verbose.sourcepath=\
1265 [search path for source files: {0}]
1267 # 0: string
1268 compiler.misc.verbose.classpath=\
1269 [search path for class files: {0}]
1271 ## extra output when using -checkclassfile (code/ClassReader)
1272 compiler.misc.ccf.found.later.version=\
1273 class file has later version than expected: {0}
1275 compiler.misc.ccf.unrecognized.attribute=\
1276 unrecognized attribute: {0}
1278 ## extra output when using -prompt (util/Log)
1279 compiler.misc.resume.abort=\
1280 R)esume, A)bort>
1282 #####
1284 ##
1285 ## warnings
1286 ##
1288 ## All warning messages are preceded by the following string.
1289 compiler.warn.warning=\
1290 warning:\u0020
1292 ## Warning messages may also include the following prefix to identify a
1293 ## lint option
1294 # 0: option name
1295 compiler.warn.lintOption=\
1296 [{0}]\u0020
1298 # 0: symbol
1299 compiler.warn.constant.SVUID=\
1300 serialVersionUID must be constant in class {0}
1302 # 0: file name
1303 compiler.warn.dir.path.element.not.found=\
1304 bad path element "{0}": no such directory
1306 compiler.warn.finally.cannot.complete=\
1307 finally clause cannot complete normally
1309 # 0: symbol, 1: symbol
1310 compiler.warn.has.been.deprecated=\
1311 {0} in {1} has been deprecated
1313 # 0: symbol
1314 compiler.warn.sun.proprietary=\
1315 {0} is internal proprietary API and may be removed in a future release
1317 compiler.warn.illegal.char.for.encoding=\
1318 unmappable character for encoding {0}
1320 # 0: symbol
1321 compiler.warn.improper.SVUID=\
1322 serialVersionUID must be declared static final in class {0}
1324 # 0: type, 1: type
1325 compiler.warn.inexact.non-varargs.call=\
1326 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1327 cast to {0} for a varargs call\n\
1328 cast to {1} for a non-varargs call and to suppress this warning
1330 # 0: list of type
1331 compiler.warn.unreachable.catch=\
1332 unreachable catch clause\n\
1333 thrown type {0} has already been caught
1335 # 0: list of type
1336 compiler.warn.unreachable.catch.1=\
1337 unreachable catch clause\n\
1338 thrown types {0} have already been caught
1340 # 0: symbol
1341 compiler.warn.long.SVUID=\
1342 serialVersionUID must be of type long in class {0}
1344 # 0: symbol
1345 compiler.warn.missing.SVUID=\
1346 serializable class {0} has no definition of serialVersionUID
1348 # 0: message segment
1349 compiler.warn.override.varargs.missing=\
1350 {0}; overridden method has no ''...''
1352 # 0: message segment
1353 compiler.warn.override.varargs.extra=\
1354 {0}; overriding method is missing ''...''
1356 compiler.warn.override.bridge=\
1357 {0}; overridden method is a bridge method
1359 # 0: symbol
1360 compiler.warn.pkg-info.already.seen=\
1361 a package-info.java file has already been seen for package {0}
1363 # 0: file name
1364 compiler.warn.path.element.not.found=\
1365 bad path element "{0}": no such file or directory
1367 compiler.warn.possible.fall-through.into.case=\
1368 possible fall-through into case
1370 # 0: type
1371 compiler.warn.redundant.cast=\
1372 redundant cast to {0}
1374 # 0: number
1375 compiler.warn.position.overflow=\
1376 Position encoding overflows at line {0}
1378 # 0: file name, 1: number, 2: number
1379 compiler.warn.big.major.version=\
1380 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1381 It is recommended that the compiler be upgraded.
1383 # 0: symbol kind, 1: symbol
1384 compiler.warn.static.not.qualified.by.type=\
1385 static {0} should be qualified by type name, {1}, instead of by an expression
1387 # 0: string
1388 compiler.warn.source.no.bootclasspath=\
1389 bootstrap class path not set in conjunction with -source {0}
1391 # 0: name, 1: number, 2: number, 3: number, 4: number
1392 compiler.warn.future.attr=\
1393 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1395 # Warnings related to annotation processing
1396 # 0: name
1397 compiler.warn.proc.package.does.not.exist=\
1398 package {0} does not exist
1400 # 0: name
1401 compiler.warn.proc.file.reopening=\
1402 Attempt to create a file for ''{0}'' multiple times
1404 # 0: name
1405 compiler.warn.proc.type.already.exists=\
1406 A file for type ''{0}'' already exists on the sourcepath or classpath
1408 # 0: name
1409 compiler.warn.proc.type.recreate=\
1410 Attempt to create a file for type ''{0}'' multiple times
1412 # 0: string
1413 compiler.warn.proc.illegal.file.name=\
1414 Cannot create file for illegal name ''{0}''.
1416 # 0: string, 1: string
1417 compiler.warn.proc.suspicious.class.name=\
1418 Creating file for a type whose name ends in {1}: ''{0}''
1420 # 0: name
1421 compiler.warn.proc.file.create.last.round=\
1422 File for type ''{0}'' created in the last round will not be subject to annotation processing.
1424 # 0: string, 1: string
1425 compiler.warn.proc.malformed.supported.string=\
1426 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1428 # 0: set of string
1429 compiler.warn.proc.annotations.without.processors=\
1430 No processor claimed any of these annotations: {0}
1432 # 0: source version, 1: string, 2: string
1433 compiler.warn.proc.processor.incompatible.source.version=\
1434 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1436 compiler.warn.proc.proc-only.requested.no.procs=\
1437 Annotation processing without compilation requested but no processors were found.
1439 compiler.warn.proc.use.implicit=\
1440 Implicitly compiled files were not subject to annotation processing.\n\
1441 Use -implicit to specify a policy for implicit compilation.
1443 compiler.warn.proc.use.proc.or.implicit=\
1444 Implicitly compiled files were not subject to annotation processing.\n\
1445 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1447 # Print a client-generated warning; assumed to be localized, no translation required
1448 # 0: string
1449 compiler.warn.proc.messager=\
1450 {0}
1452 # 0: set of name
1453 compiler.warn.proc.unclosed.type.files=\
1454 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1456 # 0: string
1457 compiler.warn.proc.unmatched.processor.options=\
1458 The following options were not recognized by any processor: ''{0}''
1460 compiler.warn.try.explicit.close.call=\
1461 explicit call to close() on an auto-closeable resource
1463 # 0: symbol
1464 compiler.warn.try.resource.not.referenced=\
1465 auto-closeable resource {0} is never referenced in body of corresponding try statement
1467 # 0: type
1468 compiler.warn.try.resource.throws.interrupted.exc=\
1469 auto-closeable resource {0} has a member method close() that could throw InterruptedException
1471 compiler.warn.unchecked.assign=\
1472 unchecked assignment: {0} to {1}
1474 # 0: symbol, 1: type
1475 compiler.warn.unchecked.assign.to.var=\
1476 unchecked assignment to variable {0} as member of raw type {1}
1478 # 0: symbol, 1: type
1479 compiler.warn.unchecked.call.mbr.of.raw.type=\
1480 unchecked call to {0} as a member of the raw type {1}
1482 compiler.warn.unchecked.cast.to.type=\
1483 unchecked cast to type {0}
1485 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1486 compiler.warn.unchecked.meth.invocation.applied=\
1487 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1488 required: {2}\n\
1489 found: {3}
1491 # 0: type
1492 compiler.warn.unchecked.generic.array.creation=\
1493 unchecked generic array creation for varargs parameter of type {0}
1495 # 0: type
1496 compiler.warn.unchecked.varargs.non.reifiable.type=\
1497 Possible heap pollution from parameterized vararg type {0}
1499 # 0: symbol
1500 compiler.warn.varargs.unsafe.use.varargs.param=\
1501 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1503 compiler.warn.missing.deprecated.annotation=\
1504 deprecated item is not annotated with @Deprecated
1506 compiler.warn.invalid.archive.file=\
1507 Unexpected file on path: {0}
1509 compiler.warn.unexpected.archive.file=\
1510 Unexpected extension for archive file: {0}
1512 compiler.warn.div.zero=\
1513 division by zero
1515 compiler.warn.empty.if=\
1516 empty statement after if
1518 compiler.warn.annotation.method.not.found=\
1519 Cannot find annotation method ''{1}()'' in type ''{0}''
1521 compiler.warn.annotation.method.not.found.reason=\
1522 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1524 # 0: symbol, 1: name
1525 compiler.warn.unknown.enum.constant=\
1526 unknown enum constant {1}.{2}
1528 # 0: symbol, 1: name, 2: message segment
1529 compiler.warn.unknown.enum.constant.reason=\
1530 unknown enum constant {1}.{2}\n\
1531 reason: {3}
1533 # 0: type, 1: type
1534 compiler.warn.raw.class.use=\
1535 found raw type: {0}\n\
1536 missing type arguments for generic class {1}
1538 # 0: unused, 1: unused
1539 compiler.warn.diamond.redundant.args=\
1540 redundant type arguments in new expression (use diamond operator instead).
1542 # 0: type, 1: type
1543 compiler.warn.diamond.redundant.args.1=\
1544 redundant type arguments in new expression (use diamond operator instead).\n\
1545 explicit: {0}\n\
1546 inferred: {1}
1548 # 0: symbol, 1: message segment
1549 compiler.warn.varargs.redundant.trustme.anno=\
1550 Redundant {0} annotation. {1}
1552 #####
1554 ## The following are tokens which are non-terminals in the language. They should
1555 ## be named as JLS3 calls them when translated to the appropriate language.
1556 compiler.misc.token.identifier=\
1557 <identifier>
1559 compiler.misc.token.character=\
1560 <character>
1562 compiler.misc.token.string=\
1563 <string>
1565 compiler.misc.token.integer=\
1566 <integer>
1568 compiler.misc.token.long-integer=\
1569 <long integer>
1571 compiler.misc.token.float=\
1572 <float>
1574 compiler.misc.token.double=\
1575 <double>
1577 compiler.misc.token.bad-symbol=\
1578 <bad symbol>
1580 compiler.misc.token.end-of-input=\
1581 <end of input>
1583 ## The argument to the following string will always be one of the following:
1584 ## 1. one of the above non-terminals
1585 ## 2. a keyword (JLS1.8)
1586 ## 3. a boolean literal (JLS3.10.3)
1587 ## 4. the null literal (JLS3.10.7)
1588 ## 5. a Java separator (JLS3.11)
1589 ## 6. an operator (JLS3.12)
1590 ##
1591 ## This is the only place these tokens will be used.
1592 # 0: token
1593 compiler.err.expected=\
1594 {0} expected
1596 # 0: token, 1: token
1597 compiler.err.expected2=\
1598 {0} or {1} expected
1600 # 0: token, 1: token, 2: token
1601 compiler.err.expected3=\
1602 {0}, {1}, or {2} expected
1604 compiler.err.premature.eof=\
1605 reached end of file while parsing
1607 ## The following are related in form, but do not easily fit the above paradigm.
1608 compiler.err.dot.class.expected=\
1609 ''.class'' expected
1611 ## The argument to this string will always be either 'case' or 'default'.
1612 # 0: token
1613 compiler.err.orphaned=\
1614 orphaned {0}
1616 # 0: name
1617 compiler.misc.anonymous.class=\
1618 <anonymous {0}>
1620 # 0: name, 1: type
1621 compiler.misc.type.captureof=\
1622 capture#{0} of {1}
1624 compiler.misc.type.captureof.1=\
1625 capture#{0}
1627 compiler.misc.type.none=\
1628 <none>
1630 compiler.misc.unnamed.package=\
1631 unnamed package
1633 #####
1635 # 0: symbol, 1: message segment
1636 compiler.err.cant.access=\
1637 cannot access {0}\n\
1638 {1}
1640 compiler.misc.bad.class.file.header=\
1641 bad class file: {0}\n\
1642 {1}\n\
1643 Please remove or make sure it appears in the correct subdirectory of the classpath.
1645 # 0: file name, 1: message segment
1646 compiler.misc.bad.source.file.header=\
1647 bad source file: {0}\n\
1648 {1}\n\
1649 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1651 ## The following are all possible strings for the second argument ({1}) of the
1652 ## above strings.
1653 compiler.misc.bad.class.signature=\
1654 bad class signature: {0}
1656 #0: symbol, 1: symbol
1657 compiler.misc.bad.enclosing.class=\
1658 bad enclosing class for {0}: {1}
1660 # 0: symbol
1661 compiler.misc.bad.enclosing.method=\
1662 bad enclosing method attribute for class {0}
1664 compiler.misc.bad.runtime.invisible.param.annotations=\
1665 bad RuntimeInvisibleParameterAnnotations attribute: {0}
1667 compiler.misc.bad.const.pool.tag=\
1668 bad constant pool tag: {0}
1670 compiler.misc.bad.const.pool.tag.at=\
1671 bad constant pool tag: {0} at {1}
1673 compiler.misc.bad.signature=\
1674 bad signature: {0}
1676 compiler.misc.bad.type.annotation.value=\
1677 bad type annotation target type value: {0}
1679 compiler.misc.class.file.wrong.class=\
1680 class file contains wrong class: {0}
1682 compiler.misc.class.file.not.found=\
1683 class file for {0} not found
1685 # 0: name
1686 compiler.misc.file.doesnt.contain.class=\
1687 file does not contain class {0}
1689 compiler.misc.file.does.not.contain.package=\
1690 file does not contain package {0}
1692 compiler.misc.illegal.start.of.class.file=\
1693 illegal start of class file
1695 compiler.misc.unable.to.access.file=\
1696 unable to access file: {0}
1698 compiler.misc.unicode.str.not.supported=\
1699 unicode string in class file not supported
1701 compiler.misc.undecl.type.var=\
1702 undeclared type variable: {0}
1704 compiler.misc.wrong.version=\
1705 class file has wrong version {0}.{1}, should be {2}.{3}
1707 #####
1709 # 0: type, 1: type or symbol
1710 compiler.err.not.within.bounds=\
1711 type argument {0} is not within bounds of type-variable {1}
1713 ## The following are all possible strings for the second argument ({1}) of the
1714 ## above string.
1716 ## none yet...
1718 #####
1720 # 0: message segment
1721 compiler.err.prob.found.req=\
1722 incompatible types: {0}
1724 # 0: message segment, 1: type, 2: type
1725 compiler.warn.prob.found.req=\
1726 {0}\n\
1727 required: {2}\n\
1728 found: {1}
1730 # 0: type, 1: type
1731 compiler.misc.inconvertible.types=\
1732 {0} cannot be converted to {1}
1734 # 0: type, 1: type
1735 compiler.misc.possible.loss.of.precision=\
1736 possible lossy conversion from {0} to {1}
1738 compiler.misc.unchecked.assign=\
1739 unchecked conversion
1741 # compiler.misc.storecheck=\
1742 # assignment might cause later store checks to fail
1743 # compiler.misc.unchecked=\
1744 # assigned array cannot dynamically check its stores
1745 compiler.misc.unchecked.cast.to.type=\
1746 unchecked cast
1748 # compiler.err.star.expected=\
1749 # ''*'' expected
1750 # compiler.err.no.elem.type=\
1751 # \[\*\] cannot have a type
1753 # 0: type
1754 compiler.misc.try.not.applicable.to.type=\
1755 try-with-resources not applicable to variable type\n\
1756 ({0})
1758 #####
1760 # 0: message segment or type, 1: message segment
1761 compiler.err.type.found.req=\
1762 unexpected type\n\
1763 required: {1}\n\
1764 found: {0}
1766 ## The following are all possible strings for the first argument ({0}) of the
1767 ## above string.
1768 compiler.misc.type.req.class=\
1769 class
1771 compiler.misc.type.req.class.array=\
1772 class or array
1774 compiler.misc.type.req.array.or.iterable=\
1775 array or java.lang.Iterable
1777 compiler.misc.type.req.ref=\
1778 reference
1780 compiler.misc.type.req.exact=\
1781 class or interface without bounds
1783 # 0: type
1784 compiler.misc.type.parameter=\
1785 type parameter {0}
1787 #####
1789 ## The following are all possible strings for the last argument of all those
1790 ## diagnostics whose key ends in ".1"
1792 # 0: type, 1: list of type
1793 compiler.misc.no.unique.maximal.instance.exists=\
1794 no unique maximal instance exists for type variable {0} with upper bounds {1}
1796 compiler.misc.no.unique.minimal.instance.exists=\
1797 no unique minimal instance exists for type variable {0} with lower bounds {1}
1799 # 0: type, 1: list of type
1800 compiler.misc.incompatible.upper.bounds=\
1801 inference variable {0} has incompatible upper bounds {1}
1803 # 0: type, 1: list of type, 2: list of type
1804 compiler.misc.incompatible.eq.upper.bounds=\
1805 inference variable {0} has incompatible bounds\n\
1806 equality constraints: {1}\n\
1807 upper bounds: {2}
1809 # 0: type, 1: list of type, 2: list of type
1810 compiler.misc.incompatible.eq.lower.bounds=\
1811 inference variable {0} has incompatible bounds\n\
1812 equality constraints: {1}\n\
1813 lower bounds: {2}
1815 # 0: list of type, 1: type, 2: type
1816 compiler.misc.infer.no.conforming.instance.exists=\
1817 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1819 # 0: list of type, 1: message segment
1820 compiler.misc.infer.no.conforming.assignment.exists=\
1821 cannot infer type-variable(s) {0}\n\
1822 (argument mismatch; {1})
1824 # 0: list of type
1825 compiler.misc.infer.arg.length.mismatch=\
1826 cannot infer type-variable(s) {0}\n\
1827 (actual and formal argument lists differ in length)
1829 # 0: list of type, 1: message segment
1830 compiler.misc.infer.varargs.argument.mismatch=\
1831 cannot infer type-variable(s) {0}\n\
1832 (varargs mismatch; {1})
1834 # 0: type, 1: list of type
1835 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
1836 inferred type does not conform to upper bound(s)\n\
1837 inferred: {0}\n\
1838 upper bound(s): {1}
1840 # 0: type, 1: list of type
1841 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
1842 inferred type does not conform to lower bound(s)\n\
1843 inferred: {0}\n\
1844 lower bound(s): {1}
1846 # 0: type, 1: list of type
1847 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
1848 inferred type does not conform to equality constraint(s)\n\
1849 inferred: {0}\n\
1850 equality constraints(s): {1}
1852 # 0: list of type
1853 compiler.misc.cyclic.inference=\
1854 Cannot instantiate inference variables {0} because of an inference loop
1856 # 0: symbol
1857 compiler.misc.diamond=\
1858 {0}<>
1860 # 0: type
1861 compiler.misc.diamond.non.generic=\
1862 cannot use ''<>'' with non-generic class {0}
1864 # 0: unused
1865 compiler.misc.diamond.and.explicit.params=\
1866 cannot use ''<>'' with explicit type parameters for constructor
1868 # 0: type, 1: list of type
1869 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1870 explicit type argument {0} does not conform to declared bound(s) {1}
1872 compiler.misc.arg.length.mismatch=\
1873 actual and formal argument lists differ in length
1875 # 0: message segment
1876 compiler.misc.no.conforming.assignment.exists=\
1877 argument mismatch; {0}
1879 # 0: message segment
1880 compiler.misc.varargs.argument.mismatch=\
1881 varargs mismatch; {0}
1883 #####
1885 # 0: type, 1: file name
1886 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
1887 auxiliary class {0} in {1} should not be accessed from outside its own source file
1890 ## The first argument ({0}) is a "kindname".
1891 # 0: symbol kind, 1: symbol, 2: symbol
1892 compiler.err.abstract.cant.be.accessed.directly=\
1893 abstract {0} {1} in {2} cannot be accessed directly
1895 ## The first argument ({0}) is a "kindname".
1896 # 0: symbol kind, 1: symbol
1897 compiler.err.non-static.cant.be.ref=\
1898 non-static {0} {1} cannot be referenced from a static context
1900 # 0: symbol kind, 1: symbol
1901 compiler.misc.non-static.cant.be.ref=\
1902 non-static {0} {1} cannot be referenced from a static context
1904 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1905 ## of kindnames (the list should be identical to that provided in source.
1906 compiler.err.unexpected.type=\
1907 unexpected type\n\
1908 required: {0}\n\
1909 found: {1}
1911 compiler.err.unexpected.lambda=\
1912 lambda expression not expected here
1914 compiler.err.unexpected.mref=\
1915 method reference not expected here
1917 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1918 ## The second argument {1} is the non-resolved symbol
1919 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1920 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1921 # 0: symbol kind, 1: name, 2: unused, 3: unused
1922 compiler.err.cant.resolve=\
1923 cannot find symbol\n\
1924 symbol: {0} {1}
1926 # 0: symbol kind, 1: name, 2: unused, 3: list of type
1927 compiler.err.cant.resolve.args=\
1928 cannot find symbol\n\
1929 symbol: {0} {1}({3})
1931 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
1932 compiler.err.cant.resolve.args.params=\
1933 cannot find symbol\n\
1934 symbol: {0} <{2}>{1}({3})
1936 ## arguments from {0} to {3} have the same meaning as above
1937 ## The fifth argument {4} is a location subdiagnostic (see below)
1938 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
1939 compiler.err.cant.resolve.location=\
1940 cannot find symbol\n\
1941 symbol: {0} {1}\n\
1942 location: {4}
1944 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1945 compiler.err.cant.resolve.location.args=\
1946 cannot find symbol\n\
1947 symbol: {0} {1}({3})\n\
1948 location: {4}
1950 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1951 compiler.err.cant.resolve.location.args.params=\
1952 cannot find symbol\n\
1953 symbol: {0} <{2}>{1}({3})\n\
1954 location: {4}
1956 ### Following are replicated/used for method reference diagnostics
1958 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1959 compiler.misc.cant.resolve.location.args=\
1960 cannot find symbol\n\
1961 symbol: {0} {1}({3})\n\
1962 location: {4}
1964 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1965 compiler.misc.cant.resolve.location.args.params=\
1966 cannot find symbol\n\
1967 symbol: {0} <{2}>{1}({3})\n\
1968 location: {4}
1970 ##a location subdiagnostic is composed as follows:
1971 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1972 ## The second argument {1} is the location name
1973 ## The third argument {2} is the location type (only when {1} is a variable name)
1975 # 0: symbol kind, 1: type or symbol, 2: unused
1976 compiler.misc.location=\
1977 {0} {1}
1979 # 0: symbol kind, 1: symbol, 2: type
1980 compiler.misc.location.1=\
1981 {0} {1} of type {2}
1983 ## The following are all possible string for "kindname".
1984 ## They should be called whatever the JLS calls them after it been translated
1985 ## to the appropriate language.
1986 # compiler.misc.kindname.constructor=\
1987 # static member
1988 compiler.misc.kindname.annotation=\
1989 @interface
1991 compiler.misc.kindname.constructor=\
1992 constructor
1994 compiler.misc.kindname.enum=\
1995 enum
1997 compiler.misc.kindname.interface=\
1998 interface
2000 compiler.misc.kindname.static=\
2001 static
2003 compiler.misc.kindname.type.variable=\
2004 type variable
2006 compiler.misc.kindname.type.variable.bound=\
2007 bound of type variable
2009 compiler.misc.kindname.variable=\
2010 variable
2012 compiler.misc.kindname.value=\
2013 value
2015 compiler.misc.kindname.method=\
2016 method
2018 compiler.misc.kindname.class=\
2019 class
2021 compiler.misc.kindname.package=\
2022 package
2024 compiler.misc.kindname.static.init=\
2025 static initializer
2027 compiler.misc.kindname.instance.init=\
2028 instance initializer
2030 #####
2032 compiler.misc.no.args=\
2033 no arguments
2035 # 0: message segment
2036 compiler.err.override.static=\
2037 {0}\n\
2038 overriding method is static
2040 # 0: message segment, 1: set of modifier
2041 compiler.err.override.meth=\
2042 {0}\n\
2043 overridden method is {1}
2045 # 0: message segment, 1: type
2046 compiler.err.override.meth.doesnt.throw=\
2047 {0}\n\
2048 overridden method does not throw {1}
2050 # In the following string {1} is a space separated list of Java Keywords, as
2051 # they would have been declared in the source code
2052 # 0: message segment, 1: set of modifier
2053 compiler.err.override.weaker.access=\
2054 {0}\n\
2055 attempting to assign weaker access privileges; was {1}
2057 # 0: message segment, 1: type, 2: type
2058 compiler.err.override.incompatible.ret=\
2059 {0}\n\
2060 return type {1} is not compatible with {2}
2062 # 0: message segment, 1: type, 2: type
2063 compiler.warn.override.unchecked.ret=\
2064 {0}\n\
2065 return type requires unchecked conversion from {1} to {2}
2067 # 0: message segment, 1: type
2068 compiler.warn.override.unchecked.thrown=\
2069 {0}\n\
2070 overridden method does not throw {1}
2072 # 0: class name
2073 compiler.warn.override.equals.but.not.hashcode=\
2074 Class {0}\n\
2075 overrides method equals but does not overrides method hashCode from Object
2077 ## The following are all possible strings for the first argument ({0}) of the
2078 ## above strings.
2079 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2080 compiler.misc.cant.override=\
2081 {0} in {1} cannot override {2} in {3}
2083 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2084 compiler.misc.cant.implement=\
2085 {0} in {1} cannot implement {2} in {3}
2087 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2088 compiler.misc.clashes.with=\
2089 {0} in {1} clashes with {2} in {3}
2091 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2092 compiler.misc.unchecked.override=\
2093 {0} in {1} overrides {2} in {3}
2095 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2096 compiler.misc.unchecked.implement=\
2097 {0} in {1} implements {2} in {3}
2099 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2100 compiler.misc.unchecked.clash.with=\
2101 {0} in {1} overrides {2} in {3}
2103 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2104 compiler.misc.varargs.override=\
2105 {0} in {1} overrides {2} in {3}
2107 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2108 compiler.misc.varargs.implement=\
2109 {0} in {1} implements {2} in {3}
2111 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2112 compiler.misc.varargs.clash.with=\
2113 {0} in {1} overrides {2} in {3}
2115 # 0: unused
2116 compiler.misc.diamond.and.anon.class=\
2117 cannot use ''<>'' with anonymous inner classes
2119 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
2120 compiler.misc.inapplicable.method=\
2121 {0} {1}.{2} is not applicable\n\
2122 ({3})
2124 ########################################
2125 # Diagnostics for language feature changes
2126 ########################################
2127 # 0: string
2128 compiler.err.unsupported.fp.lit=\
2129 hexadecimal floating point literals are not supported in -source {0}\n\
2130 (use -source 5 or higher to enable hexadecimal floating point literals)
2132 # 0: string
2133 compiler.err.unsupported.binary.lit=\
2134 binary literals are not supported in -source {0}\n\
2135 (use -source 7 or higher to enable binary literals)
2137 # 0: string
2138 compiler.err.unsupported.underscore.lit=\
2139 underscores in literals are not supported in -source {0}\n\
2140 (use -source 7 or higher to enable underscores in literals)
2142 # 0: string
2143 compiler.err.try.with.resources.not.supported.in.source=\
2144 try-with-resources is not supported in -source {0}\n\
2145 (use -source 7 or higher to enable try-with-resources)
2147 compiler.warn.enum.as.identifier=\
2148 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2149 (use -source 5 or higher to use ''enum'' as a keyword)
2151 compiler.warn.assert.as.identifier=\
2152 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2153 (use -source 1.4 or higher to use ''assert'' as a keyword)
2155 compiler.warn.underscore.as.identifier=\
2156 ''_'' used as an identifier\n\
2157 (use of ''_'' as an identifier might not be supported in future releases)
2159 compiler.err.enum.as.identifier=\
2160 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2161 (use -source 1.4 or lower to use ''enum'' as an identifier)
2163 compiler.err.assert.as.identifier=\
2164 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2165 (use -source 1.3 or lower to use ''assert'' as an identifier)
2167 # TODO 308: make a better error message
2168 compiler.err.this.as.identifier=\
2169 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
2171 # TODO 308: make a better error message
2172 compiler.err.cant.annotate.static.class=\
2173 enclosing static nested class cannot be annotated
2174 # TODO 308: make a better error message
2175 compiler.err.cant.annotate.nested.type=\
2176 nested type cannot be annotated
2178 compiler.err.incorrect.receiver.type=\
2179 the receiver type does not match the enclosing class type
2181 compiler.err.no.annotations.on.dot.class=\
2182 no annotations are allowed in the type of a class literal
2184 # 0: string
2185 compiler.err.generics.not.supported.in.source=\
2186 generics are not supported in -source {0}\n\
2187 (use -source 5 or higher to enable generics)
2189 # 0: string
2190 compiler.err.varargs.not.supported.in.source=\
2191 variable-arity methods are not supported in -source {0}\n\
2192 (use -source 5 or higher to enable variable-arity methods)
2194 # 0: string
2195 compiler.err.annotations.not.supported.in.source=\
2196 annotations are not supported in -source {0}\n\
2197 (use -source 5 or higher to enable annotations)
2199 # 0: string
2200 compiler.err.type.annotations.not.supported.in.source=\
2201 type annotations are not supported in -source {0}\n\
2202 (use -source 8 or higher to enable type annotations)
2204 # 0: string
2205 compiler.err.foreach.not.supported.in.source=\
2206 for-each loops are not supported in -source {0}\n\
2207 (use -source 5 or higher to enable for-each loops)
2209 # 0: string
2210 compiler.err.static.import.not.supported.in.source=\
2211 static import declarations are not supported in -source {0}\n\
2212 (use -source 5 or higher to enable static import declarations)
2214 # 0: string
2215 compiler.err.enums.not.supported.in.source=\
2216 enums are not supported in -source {0}\n\
2217 (use -source 5 or higher to enable enums)
2219 # 0: string
2220 compiler.err.diamond.not.supported.in.source=\
2221 diamond operator is not supported in -source {0}\n\
2222 (use -source 7 or higher to enable diamond operator)
2224 # 0: string
2225 compiler.err.multicatch.not.supported.in.source=\
2226 multi-catch statement is not supported in -source {0}\n\
2227 (use -source 7 or higher to enable multi-catch statement)
2229 # 0: string
2230 compiler.err.string.switch.not.supported.in.source=\
2231 strings in switch are not supported in -source {0}\n\
2232 (use -source 7 or higher to enable strings in switch)
2234 # 0: string
2235 compiler.err.lambda.not.supported.in.source=\
2236 lambda expressions are not supported in -source {0}\n\
2237 (use -source 8 or higher to enable lambda expressions)
2239 # 0: string
2240 compiler.err.method.references.not.supported.in.source=\
2241 method references are not supported in -source {0}\n\
2242 (use -source 8 or higher to enable method references)
2244 # 0: string
2245 compiler.err.default.methods.not.supported.in.source=\
2246 default methods are not supported in -source {0}\n\
2247 (use -source 8 or higher to enable default methods)
2249 # 0: string
2250 compiler.err.intersection.types.in.cast.not.supported.in.source=\
2251 intersection types in cast are not supported in -source {0}\n\
2252 (use -source 8 or higher to enable default methods)
2254 # 0: string
2255 compiler.err.static.intf.methods.not.supported.in.source=\
2256 static interface methods are not supported in -source {0}\n\
2257 (use -source 8 or higher to enable static interface methods)
2259 ########################################
2260 # Diagnostics for verbose resolution
2261 # used by Resolve (debug only)
2262 ########################################
2264 # 0: number, 1: symbol, 2: unused
2265 compiler.misc.applicable.method.found=\
2266 #{0} applicable method found: {1}
2268 # 0: number, 1: symbol, 2: message segment
2269 compiler.misc.applicable.method.found.1=\
2270 #{0} applicable method found: {1}\n\
2271 ({2})
2273 # 0: number, 1: symbol, 2: message segment
2274 compiler.misc.not.applicable.method.found=\
2275 #{0} not applicable method found: {1}\n\
2276 ({2})
2278 # 0: type
2279 compiler.misc.partial.inst.sig=\
2280 partially instantiated to: {0}
2282 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2283 compiler.note.verbose.resolve.multi=\
2284 resolving method {0} in type {1} to candidate {2}\n\
2285 phase: {3}\n\
2286 with actuals: {4}\n\
2287 with type-args: {5}\n\
2288 candidates:
2290 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2291 compiler.note.verbose.resolve.multi.1=\
2292 erroneous resolution for method {0} in type {1}\n\
2293 phase: {3}\n\
2294 with actuals: {4}\n\
2295 with type-args: {5}\n\
2296 candidates:
2298 # 0: symbol, 1: type, 2: type
2299 compiler.note.deferred.method.inst=\
2300 Deferred instantiation of method {0}\n\
2301 instantiated signature: {1}\n\
2302 target-type: {2}
2304 ########################################
2305 # Diagnostics for where clause implementation
2306 # used by the RichDiagnosticFormatter.
2307 ########################################
2309 compiler.misc.type.null=\
2310 <null>
2312 # X#n (where n is an int id) is disambiguated tvar name
2313 # 0: name, 1: number
2314 compiler.misc.type.var=\
2315 {0}#{1}
2317 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
2318 # 0: number
2319 compiler.misc.captured.type=\
2320 CAP#{0}
2322 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2323 # 0: number
2324 compiler.misc.intersection.type=\
2325 INT#{0}
2327 # where clause for captured type: contains upper ('extends {1}') and lower
2328 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
2329 # 0: type, 1: type, 2: type, 3: type
2330 compiler.misc.where.captured=\
2331 {0} extends {1} super: {2} from capture of {3}
2333 # compact where clause for captured type: contains upper ('extends {1}') along
2334 # with the wildcard that generated this captured type ({3})
2335 # 0: type, 1: type, 2: unused, 3: type
2336 compiler.misc.where.captured.1=\
2337 {0} extends {1} from capture of {3}
2339 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
2340 # the kindname ({2}) and location ({3}) in which the typevar has been declared
2341 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2342 compiler.misc.where.typevar=\
2343 {0} extends {1} declared in {2} {3}
2345 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
2346 # in which the typevar has been declared
2347 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2348 compiler.misc.where.typevar.1=\
2349 {0} declared in {2} {3}
2351 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2352 # Since a fresh type-variable is synthetic - there's no location/kindname here.
2353 # 0: type, 1: list of type
2354 compiler.misc.where.fresh.typevar=\
2355 {0} extends {1}
2357 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
2358 # of this intersection type
2359 # 0: type, 1: list of type
2360 compiler.misc.where.intersection=\
2361 {0} extends {1}
2363 ### Where clause headers ###
2364 compiler.misc.where.description.captured=\
2365 where {0} is a fresh type-variable:
2367 # 0: set of type
2368 compiler.misc.where.description.typevar=\
2369 where {0} is a type-variable:
2371 # 0: set of type
2372 compiler.misc.where.description.intersection=\
2373 where {0} is an intersection type:
2375 # 0: set of type
2376 compiler.misc.where.description.captured.1=\
2377 where {0} are fresh type-variables:
2379 # 0: set of type
2380 compiler.misc.where.description.typevar.1=\
2381 where {0} are type-variables:
2383 compiler.misc.where.description.intersection.1=\
2384 where {0} are intersection types:
2386 ###
2387 # errors related to doc comments
2389 compiler.err.dc.bad.entity=\
2390 bad HTML entity
2392 compiler.err.dc.bad.gt=\
2393 bad use of ''>''
2395 compiler.err.dc.bad.inline.tag=\
2396 incorrect use of inline tag
2398 compiler.err.dc.identifier.expected=\
2399 identifier expected
2401 compiler.err.dc.malformed.html=\
2402 malformed HTML
2404 compiler.err.dc.missing.semicolon=\
2405 semicolon missing
2407 compiler.err.dc.no.content=\
2408 no content
2410 compiler.err.dc.no.tag.name=\
2411 no tag name after '@'
2413 compiler.err.dc.gt.expected=\
2414 ''>'' expected
2416 compiler.err.dc.ref.bad.parens=\
2417 '')'' missing in reference
2419 compiler.err.dc.ref.syntax.error=\
2420 syntax error in reference
2422 compiler.err.dc.ref.unexpected.input=\
2423 unexpected text
2425 compiler.err.dc.unexpected.content=\
2426 unexpected content
2428 compiler.err.dc.unterminated.inline.tag=\
2429 unterminated inline tag
2431 compiler.err.dc.unterminated.signature=\
2432 unterminated signature
2434 compiler.err.dc.unterminated.string=\
2435 unterminated string