Mon, 25 Mar 2013 16:55:14 -0700
8010521: jdk8 l10n resource file translation update 2
Reviewed-by: naoto, yhuang
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: symbol, 1: symbol
770 compiler.misc.not.def.public.cant.access=\
771 {0} is not public in {1}; cannot be accessed from outside package
773 # 0: name
774 compiler.err.not.loop.label=\
775 not a loop label: {0}
777 compiler.err.not.stmt=\
778 not a statement
780 # 0: symbol
781 compiler.err.not.encl.class=\
782 not an enclosing class: {0}
784 # 0: name, 1: type, 2: unused
785 compiler.err.operator.cant.be.applied=\
786 bad operand type {1} for unary operator ''{0}''
788 # 0: name, 1: type, 2: type
789 compiler.err.operator.cant.be.applied.1=\
790 bad operand types for binary operator ''{0}''\n\
791 first type: {1}\n\
792 second type: {2}
794 compiler.err.pkg.annotations.sb.in.package-info.java=\
795 package annotations should be in file package-info.java
797 # 0: symbol
798 compiler.err.pkg.clashes.with.class.of.same.name=\
799 package {0} clashes with class of same name
801 compiler.err.warnings.and.werror=\
802 warnings found and -Werror specified
804 # Errors related to annotation processing
806 # 0: symbol, 1: string, 2: stack-trace
807 compiler.err.proc.cant.access=\
808 cannot access {0}\n\
809 {1}\n\
810 Consult the following stack trace for details.\n\
811 {2}
813 # 0: symbol, 1: string
814 compiler.err.proc.cant.access.1=\
815 cannot access {0}\n\
816 {1}
818 # 0: string
819 compiler.err.proc.cant.find.class=\
820 Could not find class file for ''{0}''.
822 # Print a client-generated error message; assumed to be localized, no translation required
823 # 0: string
824 compiler.err.proc.messager=\
825 {0}
827 # 0: list of string
828 compiler.err.proc.no.explicit.annotation.processing.requested=\
829 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
831 compiler.err.proc.no.service=\
832 A ServiceLoader was not usable and is required for annotation processing.
834 compiler.err.proc.processor.bad.option.name=\
835 Bad option name ''{0}'' provided by processor ''{1}''
837 # 0: string
838 compiler.err.proc.processor.cant.instantiate=\
839 Could not instantiate an instance of processor ''{0}''
841 # 0: string
842 compiler.err.proc.processor.not.found=\
843 Annotation processor ''{0}'' not found
845 # 0: string
846 compiler.err.proc.processor.wrong.type=\
847 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
849 compiler.err.proc.service.problem=\
850 Error creating a service loader to load Processors.
852 compiler.err.proc.bad.config.file=\
853 Bad service configuration file, or exception thrown while constructing Processor object: {0}
855 compiler.err.proc.cant.create.loader=\
856 Could not create class loader for annotation processors: {0}
858 # 0: unused
859 compiler.err.qualified.new.of.static.class=\
860 qualified new of static class
862 compiler.err.recursive.ctor.invocation=\
863 recursive constructor invocation
865 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
866 compiler.err.ref.ambiguous=\
867 reference to {0} is ambiguous\n\
868 both {1} {2} in {3} and {4} {5} in {6} match
870 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
871 compiler.misc.ref.ambiguous=\
872 reference to {0} is ambiguous\n\
873 both {1} {2} in {3} and {4} {5} in {6} match
875 compiler.err.repeated.annotation.target=\
876 repeated annotation target
878 compiler.err.repeated.interface=\
879 repeated interface
881 compiler.err.repeated.modifier=\
882 repeated modifier
884 # 0: symbol, 1: set of modifier, 2: symbol
885 compiler.err.report.access=\
886 {0} has {1} access in {2}
888 compiler.err.ret.outside.meth=\
889 return outside method
891 compiler.err.signature.doesnt.match.supertype=\
892 signature does not match {0}; incompatible supertype
894 compiler.err.signature.doesnt.match.intf=\
895 signature does not match {0}; incompatible interfaces
897 # 0: symbol, 1: symbol, 2: symbol
898 compiler.err.does.not.override.abstract=\
899 {0} is not abstract and does not override abstract method {1} in {2}
901 compiler.err.source.cant.overwrite.input.file=\
902 error writing source; cannot overwrite input file {0}
904 compiler.err.stack.sim.error=\
905 Internal error: stack sim error on {0}
907 compiler.err.static.imp.only.classes.and.interfaces=\
908 static import only from classes and interfaces
910 compiler.err.string.const.req=\
911 constant string expression required
913 # 0: symbol, 1: symbol
914 compiler.err.synthetic.name.conflict=\
915 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
917 # 0: symbol, 1: symbol
918 compiler.warn.synthetic.name.conflict=\
919 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
921 compiler.err.throws.not.allowed.in.intf.annotation=\
922 throws clause not allowed in @interface members
924 compiler.err.try.without.catch.or.finally=\
925 ''try'' without ''catch'' or ''finally''
927 compiler.err.try.without.catch.finally.or.resource.decls=\
928 ''try'' without ''catch'', ''finally'' or resource declarations
930 # 0: symbol
931 compiler.err.type.doesnt.take.params=\
932 type {0} does not take parameters
934 compiler.err.type.var.cant.be.deref=\
935 cannot select from a type variable
937 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
938 a type variable may not be followed by other bounds
940 compiler.err.type.var.more.than.once=\
941 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
943 compiler.err.type.var.more.than.once.in.result=\
944 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
946 # 0: type, 1: type, 2: string
947 compiler.err.types.incompatible.diff.ret=\
948 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
950 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
951 compiler.err.types.incompatible.unrelated.defaults=\
952 {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
954 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
955 compiler.err.types.incompatible.abstract.default=\
956 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
958 # 0: name, 1: kind, 2: symbol
959 compiler.err.default.overrides.object.member=\
960 default method {0} in {1} {2} overrides a member of java.lang.Object
962 # 0: type
963 compiler.err.illegal.static.intf.meth.call=\
964 illegal static interface method call\n\
965 the receiver expression should be replaced with the type qualifier ''{0}''
967 # 0: type, 1: message segment
968 compiler.err.illegal.default.super.call=\
969 bad type qualifier {0} in default super call\n\
970 {1}
972 # 0: symbol, 1: type
973 compiler.misc.overridden.default=\
974 method {0} is overridden in {1}
976 # 0: symbol, 1: symbol
977 compiler.misc.redundant.supertype=\
978 redundant interface {0} is extended by {1}
980 compiler.err.unclosed.char.lit=\
981 unclosed character literal
983 compiler.err.unclosed.comment=\
984 unclosed comment
986 compiler.err.unclosed.str.lit=\
987 unclosed string literal
989 # 0: name
990 compiler.err.unsupported.encoding=\
991 unsupported encoding: {0}
993 compiler.err.io.exception=\
994 error reading source file: {0}
996 # 0: name
997 compiler.err.undef.label=\
998 undefined label: {0}
1000 # 0: message segment, 1: unused
1001 compiler.err.cant.apply.diamond=\
1002 cannot infer type arguments for {0}
1004 # 0: message segment or type, 1: message segment
1005 compiler.err.cant.apply.diamond.1=\
1006 cannot infer type arguments for {0}\n\
1007 reason: {1}
1009 # 0: message segment or type, 1: message segment
1010 compiler.misc.cant.apply.diamond.1=\
1011 cannot infer type arguments for {0}\n\
1012 reason: {1}
1014 compiler.err.unreachable.stmt=\
1015 unreachable statement
1017 compiler.err.initializer.must.be.able.to.complete.normally=\
1018 initializer must be able to complete normally
1020 # 0: type
1021 compiler.err.unreported.exception.need.to.catch.or.throw=\
1022 unreported exception {0}; must be caught or declared to be thrown
1024 # 0: type
1025 compiler.err.unreported.exception.default.constructor=\
1026 unreported exception {0} in default constructor
1028 # 0: type, 1: name
1029 compiler.err.unreported.exception.implicit.close=\
1030 unreported exception {0}; must be caught or declared to be thrown\n\
1031 exception thrown from implicit call to close() on resource variable ''{1}''
1033 compiler.err.unsupported.cross.fp.lit=\
1034 hexadecimal floating-point literals are not supported on this VM
1036 compiler.err.void.not.allowed.here=\
1037 ''void'' type not allowed here
1039 # 0: string
1040 compiler.err.wrong.number.type.args=\
1041 wrong number of type arguments; required {0}
1043 # 0: symbol
1044 compiler.err.var.might.already.be.assigned=\
1045 variable {0} might already have been assigned
1047 # 0: symbol
1048 compiler.err.var.might.not.have.been.initialized=\
1049 variable {0} might not have been initialized
1051 # 0: symbol
1052 compiler.err.var.might.be.assigned.in.loop=\
1053 variable {0} might be assigned in loop
1055 # 0: symbol, 1: message segment
1056 compiler.err.varargs.invalid.trustme.anno=\
1057 Invalid {0} annotation. {1}
1059 # 0: type
1060 compiler.misc.varargs.trustme.on.reifiable.varargs=\
1061 Varargs element type {0} is reifiable.
1063 # 0: symbol
1064 compiler.misc.varargs.trustme.on.non.varargs.meth=\
1065 Method {0} is not a varargs method.
1067 # 0: symbol
1068 compiler.misc.varargs.trustme.on.virtual.varargs=\
1069 Instance method {0} is not final.
1071 # 0: type, 1: symbol kind, 2: symbol
1072 compiler.misc.inaccessible.varargs.type=\
1073 formal varargs element type {0} is not accessible from {1} {2}
1075 # In the following string, {1} will always be the detail message from
1076 # java.io.IOException.
1077 # 0: symbol, 1: string
1078 compiler.err.class.cant.write=\
1079 error while writing {0}: {1}
1081 # In the following string, {0} is the name of the class in the Java source.
1082 # It really should be used two times..
1083 # 0: name
1084 compiler.err.class.public.should.be.in.file=\
1085 class {0} is public, should be declared in a file named {0}.java
1087 ## All errors which do not refer to a particular line in the source code are
1088 ## preceded by this string.
1089 compiler.err.error=\
1090 error:\u0020
1092 # The following error messages do not refer to a line in the source code.
1093 compiler.err.cant.read.file=\
1094 cannot read: {0}
1096 #####
1098 # Fatal Errors
1100 compiler.misc.fatal.err.no.java.lang=\
1101 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
1103 compiler.misc.fatal.err.cant.locate.meth=\
1104 Fatal Error: Unable to find method {0}
1106 compiler.misc.fatal.err.cant.locate.field=\
1107 Fatal Error: Unable to find field {0}
1109 compiler.misc.fatal.err.cant.locate.ctor=\
1110 Fatal Error: Unable to find constructor for {0}
1112 compiler.misc.fatal.err.cant.close=\
1113 Fatal Error: Cannot close compiler resources
1115 #####
1117 ##
1118 ## miscellaneous strings
1119 ##
1121 compiler.misc.source.unavailable=\
1122 (source unavailable)
1124 compiler.misc.base.membership=\
1125 all your base class are belong to us
1127 # 0: string, 1: string, 2: boolean
1128 compiler.misc.x.print.processor.info=\
1129 Processor {0} matches {1} and returns {2}.
1131 # 0: number, 1: string, 2: set of symbol, 3: boolean
1132 compiler.misc.x.print.rounds=\
1133 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1135 #####
1137 ## The following string will appear before all messages keyed as:
1138 ## "compiler.note".
1140 compiler.note.potential.lambda.found=\
1141 This anonymous inner class creation can be turned into a lambda expression.
1143 compiler.note.note=\
1144 Note:\u0020
1146 # 0: file name
1147 compiler.note.deprecated.filename=\
1148 {0} uses or overrides a deprecated API.
1150 compiler.note.deprecated.plural=\
1151 Some input files use or override a deprecated API.
1153 # The following string may appear after one of the above deprecation
1154 # messages.
1155 compiler.note.deprecated.recompile=\
1156 Recompile with -Xlint:deprecation for details.
1158 # 0: file name
1159 compiler.note.deprecated.filename.additional=\
1160 {0} has additional uses or overrides of a deprecated API.
1162 compiler.note.deprecated.plural.additional=\
1163 Some input files additionally use or override a deprecated API.
1165 # 0: file name
1166 compiler.note.unchecked.filename=\
1167 {0} uses unchecked or unsafe operations.
1169 compiler.note.unchecked.plural=\
1170 Some input files use unchecked or unsafe operations.
1172 # The following string may appear after one of the above deprecation
1173 # messages.
1174 compiler.note.unchecked.recompile=\
1175 Recompile with -Xlint:unchecked for details.
1177 # 0: file name
1178 compiler.note.unchecked.filename.additional=\
1179 {0} has additional unchecked or unsafe operations.
1181 compiler.note.unchecked.plural.additional=\
1182 Some input files additionally use unchecked or unsafe operations.
1184 # 0: file name
1185 compiler.note.sunapi.filename=\
1186 {0} uses internal proprietary API that may be removed in a future release.
1188 compiler.note.sunapi.plural=\
1189 Some input files use internal proprietary API that may be removed in a future release.
1191 # The following string may appear after one of the above sunapi messages.
1192 compiler.note.sunapi.recompile=\
1193 Recompile with -Xlint:sunapi for details.
1195 # 0: file name
1196 compiler.note.sunapi.filename.additional=\
1197 {0} uses additional internal proprietary API that may be removed in a future release.
1199 compiler.note.sunapi.plural.additional=\
1200 Some input files additionally use internal proprietary API that may be removed in a future release.
1202 # Notes related to annotation processing
1204 # Print a client-generated note; assumed to be localized, no translation required
1205 # 0: string
1206 compiler.note.proc.messager=\
1207 {0}
1209 #####
1211 # 0: number
1212 compiler.misc.count.error=\
1213 {0} error
1215 # 0: number
1216 compiler.misc.count.error.plural=\
1217 {0} errors
1219 # 0: number
1220 compiler.misc.count.warn=\
1221 {0} warning
1223 # 0: number
1224 compiler.misc.count.warn.plural=\
1225 {0} warnings
1227 compiler.misc.version.not.available=\
1228 (version info not available)
1230 ## extra output when using -verbose (JavaCompiler)
1232 # 0: symbol
1233 compiler.misc.verbose.checking.attribution=\
1234 [checking {0}]
1236 # 0: string
1237 compiler.misc.verbose.parsing.done=\
1238 [parsing completed {0}ms]
1240 # 0: file name
1241 compiler.misc.verbose.parsing.started=\
1242 [parsing started {0}]
1244 # 0: string
1245 compiler.misc.verbose.total=\
1246 [total {0}ms]
1248 # 0: file name
1249 compiler.misc.verbose.wrote.file=\
1250 [wrote {0}]
1252 ## extra output when using -verbose (Retro)
1253 compiler.misc.verbose.retro=\
1254 [retrofitting {0}]
1256 compiler.misc.verbose.retro.with=\
1257 \tretrofitting {0} with {1}
1259 compiler.misc.verbose.retro.with.list=\
1260 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1262 ## extra output when using -verbose (code/ClassReader)
1263 # 0: string
1264 compiler.misc.verbose.loading=\
1265 [loading {0}]
1267 # 0: string
1268 compiler.misc.verbose.sourcepath=\
1269 [search path for source files: {0}]
1271 # 0: string
1272 compiler.misc.verbose.classpath=\
1273 [search path for class files: {0}]
1275 ## extra output when using -checkclassfile (code/ClassReader)
1276 compiler.misc.ccf.found.later.version=\
1277 class file has later version than expected: {0}
1279 compiler.misc.ccf.unrecognized.attribute=\
1280 unrecognized attribute: {0}
1282 ## extra output when using -prompt (util/Log)
1283 compiler.misc.resume.abort=\
1284 R)esume, A)bort>
1286 #####
1288 ##
1289 ## warnings
1290 ##
1292 ## All warning messages are preceded by the following string.
1293 compiler.warn.warning=\
1294 warning:\u0020
1296 ## Warning messages may also include the following prefix to identify a
1297 ## lint option
1298 # 0: option name
1299 compiler.warn.lintOption=\
1300 [{0}]\u0020
1302 # 0: symbol
1303 compiler.warn.constant.SVUID=\
1304 serialVersionUID must be constant in class {0}
1306 # 0: file name
1307 compiler.warn.dir.path.element.not.found=\
1308 bad path element "{0}": no such directory
1310 compiler.warn.finally.cannot.complete=\
1311 finally clause cannot complete normally
1313 # 0: symbol, 1: symbol
1314 compiler.warn.has.been.deprecated=\
1315 {0} in {1} has been deprecated
1317 # 0: symbol
1318 compiler.warn.sun.proprietary=\
1319 {0} is internal proprietary API and may be removed in a future release
1321 compiler.warn.illegal.char.for.encoding=\
1322 unmappable character for encoding {0}
1324 # 0: symbol
1325 compiler.warn.improper.SVUID=\
1326 serialVersionUID must be declared static final in class {0}
1328 # 0: type, 1: type
1329 compiler.warn.inexact.non-varargs.call=\
1330 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1331 cast to {0} for a varargs call\n\
1332 cast to {1} for a non-varargs call and to suppress this warning
1334 # 0: list of type
1335 compiler.warn.unreachable.catch=\
1336 unreachable catch clause\n\
1337 thrown type {0} has already been caught
1339 # 0: list of type
1340 compiler.warn.unreachable.catch.1=\
1341 unreachable catch clause\n\
1342 thrown types {0} have already been caught
1344 # 0: symbol
1345 compiler.warn.long.SVUID=\
1346 serialVersionUID must be of type long in class {0}
1348 # 0: symbol
1349 compiler.warn.missing.SVUID=\
1350 serializable class {0} has no definition of serialVersionUID
1352 # 0: message segment
1353 compiler.warn.override.varargs.missing=\
1354 {0}; overridden method has no ''...''
1356 # 0: message segment
1357 compiler.warn.override.varargs.extra=\
1358 {0}; overriding method is missing ''...''
1360 compiler.warn.override.bridge=\
1361 {0}; overridden method is a bridge method
1363 # 0: symbol
1364 compiler.warn.pkg-info.already.seen=\
1365 a package-info.java file has already been seen for package {0}
1367 # 0: file name
1368 compiler.warn.path.element.not.found=\
1369 bad path element "{0}": no such file or directory
1371 compiler.warn.possible.fall-through.into.case=\
1372 possible fall-through into case
1374 # 0: type
1375 compiler.warn.redundant.cast=\
1376 redundant cast to {0}
1378 # 0: number
1379 compiler.warn.position.overflow=\
1380 Position encoding overflows at line {0}
1382 # 0: file name, 1: number, 2: number
1383 compiler.warn.big.major.version=\
1384 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1385 It is recommended that the compiler be upgraded.
1387 # 0: symbol kind, 1: symbol
1388 compiler.warn.static.not.qualified.by.type=\
1389 static {0} should be qualified by type name, {1}, instead of by an expression
1391 # 0: string
1392 compiler.warn.source.no.bootclasspath=\
1393 bootstrap class path not set in conjunction with -source {0}
1395 # 0: name, 1: number, 2: number, 3: number, 4: number
1396 compiler.warn.future.attr=\
1397 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1399 # Warnings related to annotation processing
1400 # 0: name
1401 compiler.warn.proc.package.does.not.exist=\
1402 package {0} does not exist
1404 # 0: name
1405 compiler.warn.proc.file.reopening=\
1406 Attempt to create a file for ''{0}'' multiple times
1408 # 0: name
1409 compiler.warn.proc.type.already.exists=\
1410 A file for type ''{0}'' already exists on the sourcepath or classpath
1412 # 0: name
1413 compiler.warn.proc.type.recreate=\
1414 Attempt to create a file for type ''{0}'' multiple times
1416 # 0: string
1417 compiler.warn.proc.illegal.file.name=\
1418 Cannot create file for illegal name ''{0}''.
1420 # 0: string, 1: string
1421 compiler.warn.proc.suspicious.class.name=\
1422 Creating file for a type whose name ends in {1}: ''{0}''
1424 # 0: name
1425 compiler.warn.proc.file.create.last.round=\
1426 File for type ''{0}'' created in the last round will not be subject to annotation processing.
1428 # 0: string, 1: string
1429 compiler.warn.proc.malformed.supported.string=\
1430 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1432 # 0: set of string
1433 compiler.warn.proc.annotations.without.processors=\
1434 No processor claimed any of these annotations: {0}
1436 # 0: source version, 1: string, 2: string
1437 compiler.warn.proc.processor.incompatible.source.version=\
1438 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1440 compiler.warn.proc.proc-only.requested.no.procs=\
1441 Annotation processing without compilation requested but no processors were found.
1443 compiler.warn.proc.use.implicit=\
1444 Implicitly compiled files were not subject to annotation processing.\n\
1445 Use -implicit to specify a policy for implicit compilation.
1447 compiler.warn.proc.use.proc.or.implicit=\
1448 Implicitly compiled files were not subject to annotation processing.\n\
1449 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1451 # Print a client-generated warning; assumed to be localized, no translation required
1452 # 0: string
1453 compiler.warn.proc.messager=\
1454 {0}
1456 # 0: set of name
1457 compiler.warn.proc.unclosed.type.files=\
1458 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1460 # 0: string
1461 compiler.warn.proc.unmatched.processor.options=\
1462 The following options were not recognized by any processor: ''{0}''
1464 compiler.warn.try.explicit.close.call=\
1465 explicit call to close() on an auto-closeable resource
1467 # 0: symbol
1468 compiler.warn.try.resource.not.referenced=\
1469 auto-closeable resource {0} is never referenced in body of corresponding try statement
1471 # 0: type
1472 compiler.warn.try.resource.throws.interrupted.exc=\
1473 auto-closeable resource {0} has a member method close() that could throw InterruptedException
1475 compiler.warn.unchecked.assign=\
1476 unchecked assignment: {0} to {1}
1478 # 0: symbol, 1: type
1479 compiler.warn.unchecked.assign.to.var=\
1480 unchecked assignment to variable {0} as member of raw type {1}
1482 # 0: symbol, 1: type
1483 compiler.warn.unchecked.call.mbr.of.raw.type=\
1484 unchecked call to {0} as a member of the raw type {1}
1486 compiler.warn.unchecked.cast.to.type=\
1487 unchecked cast to type {0}
1489 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1490 compiler.warn.unchecked.meth.invocation.applied=\
1491 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1492 required: {2}\n\
1493 found: {3}
1495 # 0: type
1496 compiler.warn.unchecked.generic.array.creation=\
1497 unchecked generic array creation for varargs parameter of type {0}
1499 # 0: type
1500 compiler.warn.unchecked.varargs.non.reifiable.type=\
1501 Possible heap pollution from parameterized vararg type {0}
1503 # 0: symbol
1504 compiler.warn.varargs.unsafe.use.varargs.param=\
1505 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1507 compiler.warn.missing.deprecated.annotation=\
1508 deprecated item is not annotated with @Deprecated
1510 compiler.warn.invalid.archive.file=\
1511 Unexpected file on path: {0}
1513 compiler.warn.unexpected.archive.file=\
1514 Unexpected extension for archive file: {0}
1516 compiler.warn.div.zero=\
1517 division by zero
1519 compiler.warn.empty.if=\
1520 empty statement after if
1522 compiler.warn.annotation.method.not.found=\
1523 Cannot find annotation method ''{1}()'' in type ''{0}''
1525 compiler.warn.annotation.method.not.found.reason=\
1526 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1528 # 0: symbol, 1: name
1529 compiler.warn.unknown.enum.constant=\
1530 unknown enum constant {1}.{2}
1532 # 0: symbol, 1: name, 2: message segment
1533 compiler.warn.unknown.enum.constant.reason=\
1534 unknown enum constant {1}.{2}\n\
1535 reason: {3}
1537 # 0: type, 1: type
1538 compiler.warn.raw.class.use=\
1539 found raw type: {0}\n\
1540 missing type arguments for generic class {1}
1542 # 0: unused, 1: unused
1543 compiler.warn.diamond.redundant.args=\
1544 redundant type arguments in new expression (use diamond operator instead).
1546 # 0: type, 1: type
1547 compiler.warn.diamond.redundant.args.1=\
1548 redundant type arguments in new expression (use diamond operator instead).\n\
1549 explicit: {0}\n\
1550 inferred: {1}
1552 # 0: symbol, 1: message segment
1553 compiler.warn.varargs.redundant.trustme.anno=\
1554 Redundant {0} annotation. {1}
1556 #####
1558 ## The following are tokens which are non-terminals in the language. They should
1559 ## be named as JLS3 calls them when translated to the appropriate language.
1560 compiler.misc.token.identifier=\
1561 <identifier>
1563 compiler.misc.token.character=\
1564 <character>
1566 compiler.misc.token.string=\
1567 <string>
1569 compiler.misc.token.integer=\
1570 <integer>
1572 compiler.misc.token.long-integer=\
1573 <long integer>
1575 compiler.misc.token.float=\
1576 <float>
1578 compiler.misc.token.double=\
1579 <double>
1581 compiler.misc.token.bad-symbol=\
1582 <bad symbol>
1584 compiler.misc.token.end-of-input=\
1585 <end of input>
1587 ## The argument to the following string will always be one of the following:
1588 ## 1. one of the above non-terminals
1589 ## 2. a keyword (JLS1.8)
1590 ## 3. a boolean literal (JLS3.10.3)
1591 ## 4. the null literal (JLS3.10.7)
1592 ## 5. a Java separator (JLS3.11)
1593 ## 6. an operator (JLS3.12)
1594 ##
1595 ## This is the only place these tokens will be used.
1596 # 0: token
1597 compiler.err.expected=\
1598 {0} expected
1600 # 0: token, 1: token
1601 compiler.err.expected2=\
1602 {0} or {1} expected
1604 # 0: token, 1: token, 2: token
1605 compiler.err.expected3=\
1606 {0}, {1}, or {2} expected
1608 compiler.err.premature.eof=\
1609 reached end of file while parsing
1611 ## The following are related in form, but do not easily fit the above paradigm.
1612 compiler.err.dot.class.expected=\
1613 ''.class'' expected
1615 ## The argument to this string will always be either 'case' or 'default'.
1616 # 0: token
1617 compiler.err.orphaned=\
1618 orphaned {0}
1620 # 0: name
1621 compiler.misc.anonymous.class=\
1622 <anonymous {0}>
1624 # 0: name, 1: type
1625 compiler.misc.type.captureof=\
1626 capture#{0} of {1}
1628 compiler.misc.type.captureof.1=\
1629 capture#{0}
1631 compiler.misc.type.none=\
1632 <none>
1634 compiler.misc.unnamed.package=\
1635 unnamed package
1637 #####
1639 # 0: symbol, 1: message segment
1640 compiler.err.cant.access=\
1641 cannot access {0}\n\
1642 {1}
1644 compiler.misc.bad.class.file.header=\
1645 bad class file: {0}\n\
1646 {1}\n\
1647 Please remove or make sure it appears in the correct subdirectory of the classpath.
1649 # 0: file name, 1: message segment
1650 compiler.misc.bad.source.file.header=\
1651 bad source file: {0}\n\
1652 {1}\n\
1653 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1655 ## The following are all possible strings for the second argument ({1}) of the
1656 ## above strings.
1657 compiler.misc.bad.class.signature=\
1658 bad class signature: {0}
1660 #0: symbol, 1: symbol
1661 compiler.misc.bad.enclosing.class=\
1662 bad enclosing class for {0}: {1}
1664 # 0: symbol
1665 compiler.misc.bad.enclosing.method=\
1666 bad enclosing method attribute for class {0}
1668 compiler.misc.bad.runtime.invisible.param.annotations=\
1669 bad RuntimeInvisibleParameterAnnotations attribute: {0}
1671 compiler.misc.bad.const.pool.tag=\
1672 bad constant pool tag: {0}
1674 compiler.misc.bad.const.pool.tag.at=\
1675 bad constant pool tag: {0} at {1}
1677 compiler.misc.bad.signature=\
1678 bad signature: {0}
1680 compiler.misc.bad.type.annotation.value=\
1681 bad type annotation target type value: {0}
1683 compiler.misc.class.file.wrong.class=\
1684 class file contains wrong class: {0}
1686 compiler.misc.class.file.not.found=\
1687 class file for {0} not found
1689 # 0: name
1690 compiler.misc.file.doesnt.contain.class=\
1691 file does not contain class {0}
1693 compiler.misc.file.does.not.contain.package=\
1694 file does not contain package {0}
1696 compiler.misc.illegal.start.of.class.file=\
1697 illegal start of class file
1699 compiler.misc.unable.to.access.file=\
1700 unable to access file: {0}
1702 compiler.misc.unicode.str.not.supported=\
1703 unicode string in class file not supported
1705 compiler.misc.undecl.type.var=\
1706 undeclared type variable: {0}
1708 compiler.misc.wrong.version=\
1709 class file has wrong version {0}.{1}, should be {2}.{3}
1711 #####
1713 # 0: type, 1: type or symbol
1714 compiler.err.not.within.bounds=\
1715 type argument {0} is not within bounds of type-variable {1}
1717 ## The following are all possible strings for the second argument ({1}) of the
1718 ## above string.
1720 ## none yet...
1722 #####
1724 # 0: message segment
1725 compiler.err.prob.found.req=\
1726 incompatible types: {0}
1728 # 0: message segment, 1: type, 2: type
1729 compiler.warn.prob.found.req=\
1730 {0}\n\
1731 required: {2}\n\
1732 found: {1}
1734 # 0: type, 1: type
1735 compiler.misc.inconvertible.types=\
1736 {0} cannot be converted to {1}
1738 # 0: type, 1: type
1739 compiler.misc.possible.loss.of.precision=\
1740 possible lossy conversion from {0} to {1}
1742 compiler.misc.unchecked.assign=\
1743 unchecked conversion
1745 # compiler.misc.storecheck=\
1746 # assignment might cause later store checks to fail
1747 # compiler.misc.unchecked=\
1748 # assigned array cannot dynamically check its stores
1749 compiler.misc.unchecked.cast.to.type=\
1750 unchecked cast
1752 # compiler.err.star.expected=\
1753 # ''*'' expected
1754 # compiler.err.no.elem.type=\
1755 # \[\*\] cannot have a type
1757 # 0: type
1758 compiler.misc.try.not.applicable.to.type=\
1759 try-with-resources not applicable to variable type\n\
1760 ({0})
1762 #####
1764 # 0: message segment or type, 1: message segment
1765 compiler.err.type.found.req=\
1766 unexpected type\n\
1767 required: {1}\n\
1768 found: {0}
1770 ## The following are all possible strings for the first argument ({0}) of the
1771 ## above string.
1772 compiler.misc.type.req.class=\
1773 class
1775 compiler.misc.type.req.class.array=\
1776 class or array
1778 compiler.misc.type.req.array.or.iterable=\
1779 array or java.lang.Iterable
1781 compiler.misc.type.req.ref=\
1782 reference
1784 compiler.misc.type.req.exact=\
1785 class or interface without bounds
1787 # 0: type
1788 compiler.misc.type.parameter=\
1789 type parameter {0}
1791 #####
1793 ## The following are all possible strings for the last argument of all those
1794 ## diagnostics whose key ends in ".1"
1796 # 0: type, 1: list of type
1797 compiler.misc.no.unique.maximal.instance.exists=\
1798 no unique maximal instance exists for type variable {0} with upper bounds {1}
1800 compiler.misc.no.unique.minimal.instance.exists=\
1801 no unique minimal instance exists for type variable {0} with lower bounds {1}
1803 # 0: type, 1: list of type
1804 compiler.misc.incompatible.upper.bounds=\
1805 inference variable {0} has incompatible upper bounds {1}
1807 # 0: type, 1: list of type, 2: list of type
1808 compiler.misc.incompatible.eq.upper.bounds=\
1809 inference variable {0} has incompatible bounds\n\
1810 equality constraints: {1}\n\
1811 upper bounds: {2}
1813 # 0: type, 1: list of type, 2: list of type
1814 compiler.misc.incompatible.eq.lower.bounds=\
1815 inference variable {0} has incompatible bounds\n\
1816 equality constraints: {1}\n\
1817 lower bounds: {2}
1819 # 0: list of type, 1: type, 2: type
1820 compiler.misc.infer.no.conforming.instance.exists=\
1821 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1823 # 0: list of type, 1: message segment
1824 compiler.misc.infer.no.conforming.assignment.exists=\
1825 cannot infer type-variable(s) {0}\n\
1826 (argument mismatch; {1})
1828 # 0: list of type
1829 compiler.misc.infer.arg.length.mismatch=\
1830 cannot infer type-variable(s) {0}\n\
1831 (actual and formal argument lists differ in length)
1833 # 0: list of type, 1: message segment
1834 compiler.misc.infer.varargs.argument.mismatch=\
1835 cannot infer type-variable(s) {0}\n\
1836 (varargs mismatch; {1})
1838 # 0: type, 1: list of type
1839 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
1840 inferred type does not conform to upper bound(s)\n\
1841 inferred: {0}\n\
1842 upper bound(s): {1}
1844 # 0: type, 1: list of type
1845 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
1846 inferred type does not conform to lower bound(s)\n\
1847 inferred: {0}\n\
1848 lower bound(s): {1}
1850 # 0: type, 1: list of type
1851 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
1852 inferred type does not conform to equality constraint(s)\n\
1853 inferred: {0}\n\
1854 equality constraints(s): {1}
1856 # 0: list of type
1857 compiler.misc.cyclic.inference=\
1858 Cannot instantiate inference variables {0} because of an inference loop
1860 # 0: symbol
1861 compiler.misc.diamond=\
1862 {0}<>
1864 # 0: type
1865 compiler.misc.diamond.non.generic=\
1866 cannot use ''<>'' with non-generic class {0}
1868 # 0: unused
1869 compiler.misc.diamond.and.explicit.params=\
1870 cannot use ''<>'' with explicit type parameters for constructor
1872 # 0: type, 1: list of type
1873 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1874 explicit type argument {0} does not conform to declared bound(s) {1}
1876 compiler.misc.arg.length.mismatch=\
1877 actual and formal argument lists differ in length
1879 # 0: message segment
1880 compiler.misc.no.conforming.assignment.exists=\
1881 argument mismatch; {0}
1883 # 0: message segment
1884 compiler.misc.varargs.argument.mismatch=\
1885 varargs mismatch; {0}
1887 #####
1889 # 0: type, 1: file name
1890 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
1891 auxiliary class {0} in {1} should not be accessed from outside its own source file
1894 ## The first argument ({0}) is a "kindname".
1895 # 0: symbol kind, 1: symbol, 2: symbol
1896 compiler.err.abstract.cant.be.accessed.directly=\
1897 abstract {0} {1} in {2} cannot be accessed directly
1899 ## The first argument ({0}) is a "kindname".
1900 # 0: symbol kind, 1: symbol
1901 compiler.err.non-static.cant.be.ref=\
1902 non-static {0} {1} cannot be referenced from a static context
1904 # 0: symbol kind, 1: symbol
1905 compiler.misc.non-static.cant.be.ref=\
1906 non-static {0} {1} cannot be referenced from a static context
1908 # 0: symbol kind, 1: symbol
1909 compiler.misc.static.method.in.unbound.lookup=\
1910 static {0} {1} found in unbound lookup
1912 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1913 ## of kindnames (the list should be identical to that provided in source.
1914 compiler.err.unexpected.type=\
1915 unexpected type\n\
1916 required: {0}\n\
1917 found: {1}
1919 compiler.err.unexpected.lambda=\
1920 lambda expression not expected here
1922 compiler.err.unexpected.mref=\
1923 method reference not expected here
1925 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1926 ## The second argument {1} is the non-resolved symbol
1927 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1928 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1929 # 0: symbol kind, 1: name, 2: unused, 3: unused
1930 compiler.err.cant.resolve=\
1931 cannot find symbol\n\
1932 symbol: {0} {1}
1934 # 0: symbol kind, 1: name, 2: unused, 3: list of type
1935 compiler.err.cant.resolve.args=\
1936 cannot find symbol\n\
1937 symbol: {0} {1}({3})
1939 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
1940 compiler.err.cant.resolve.args.params=\
1941 cannot find symbol\n\
1942 symbol: {0} <{2}>{1}({3})
1944 ## arguments from {0} to {3} have the same meaning as above
1945 ## The fifth argument {4} is a location subdiagnostic (see below)
1946 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
1947 compiler.err.cant.resolve.location=\
1948 cannot find symbol\n\
1949 symbol: {0} {1}\n\
1950 location: {4}
1952 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1953 compiler.err.cant.resolve.location.args=\
1954 cannot find symbol\n\
1955 symbol: {0} {1}({3})\n\
1956 location: {4}
1958 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1959 compiler.err.cant.resolve.location.args.params=\
1960 cannot find symbol\n\
1961 symbol: {0} <{2}>{1}({3})\n\
1962 location: {4}
1964 ### Following are replicated/used for method reference diagnostics
1966 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1967 compiler.misc.cant.resolve.location.args=\
1968 cannot find symbol\n\
1969 symbol: {0} {1}({3})\n\
1970 location: {4}
1972 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1973 compiler.misc.cant.resolve.location.args.params=\
1974 cannot find symbol\n\
1975 symbol: {0} <{2}>{1}({3})\n\
1976 location: {4}
1978 ##a location subdiagnostic is composed as follows:
1979 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1980 ## The second argument {1} is the location name
1981 ## The third argument {2} is the location type (only when {1} is a variable name)
1983 # 0: symbol kind, 1: type or symbol, 2: unused
1984 compiler.misc.location=\
1985 {0} {1}
1987 # 0: symbol kind, 1: symbol, 2: type
1988 compiler.misc.location.1=\
1989 {0} {1} of type {2}
1991 ## The following are all possible string for "kindname".
1992 ## They should be called whatever the JLS calls them after it been translated
1993 ## to the appropriate language.
1994 # compiler.misc.kindname.constructor=\
1995 # static member
1996 compiler.misc.kindname.annotation=\
1997 @interface
1999 compiler.misc.kindname.constructor=\
2000 constructor
2002 compiler.misc.kindname.enum=\
2003 enum
2005 compiler.misc.kindname.interface=\
2006 interface
2008 compiler.misc.kindname.static=\
2009 static
2011 compiler.misc.kindname.type.variable=\
2012 type variable
2014 compiler.misc.kindname.type.variable.bound=\
2015 bound of type variable
2017 compiler.misc.kindname.variable=\
2018 variable
2020 compiler.misc.kindname.value=\
2021 value
2023 compiler.misc.kindname.method=\
2024 method
2026 compiler.misc.kindname.class=\
2027 class
2029 compiler.misc.kindname.package=\
2030 package
2032 compiler.misc.kindname.static.init=\
2033 static initializer
2035 compiler.misc.kindname.instance.init=\
2036 instance initializer
2038 #####
2040 compiler.misc.no.args=\
2041 no arguments
2043 # 0: message segment
2044 compiler.err.override.static=\
2045 {0}\n\
2046 overriding method is static
2048 # 0: message segment, 1: set of modifier
2049 compiler.err.override.meth=\
2050 {0}\n\
2051 overridden method is {1}
2053 # 0: message segment, 1: type
2054 compiler.err.override.meth.doesnt.throw=\
2055 {0}\n\
2056 overridden method does not throw {1}
2058 # In the following string {1} is a space separated list of Java Keywords, as
2059 # they would have been declared in the source code
2060 # 0: message segment, 1: set of modifier
2061 compiler.err.override.weaker.access=\
2062 {0}\n\
2063 attempting to assign weaker access privileges; was {1}
2065 # 0: message segment, 1: type, 2: type
2066 compiler.err.override.incompatible.ret=\
2067 {0}\n\
2068 return type {1} is not compatible with {2}
2070 # 0: message segment, 1: type, 2: type
2071 compiler.warn.override.unchecked.ret=\
2072 {0}\n\
2073 return type requires unchecked conversion from {1} to {2}
2075 # 0: message segment, 1: type
2076 compiler.warn.override.unchecked.thrown=\
2077 {0}\n\
2078 overridden method does not throw {1}
2080 # 0: symbol
2081 compiler.warn.override.equals.but.not.hashcode=\
2082 Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
2084 ## The following are all possible strings for the first argument ({0}) of the
2085 ## above strings.
2086 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2087 compiler.misc.cant.override=\
2088 {0} in {1} cannot override {2} in {3}
2090 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2091 compiler.misc.cant.implement=\
2092 {0} in {1} cannot implement {2} in {3}
2094 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2095 compiler.misc.clashes.with=\
2096 {0} in {1} clashes with {2} in {3}
2098 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2099 compiler.misc.unchecked.override=\
2100 {0} in {1} overrides {2} in {3}
2102 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2103 compiler.misc.unchecked.implement=\
2104 {0} in {1} implements {2} in {3}
2106 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2107 compiler.misc.unchecked.clash.with=\
2108 {0} in {1} overrides {2} in {3}
2110 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2111 compiler.misc.varargs.override=\
2112 {0} in {1} overrides {2} in {3}
2114 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2115 compiler.misc.varargs.implement=\
2116 {0} in {1} implements {2} in {3}
2118 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2119 compiler.misc.varargs.clash.with=\
2120 {0} in {1} overrides {2} in {3}
2122 # 0: unused
2123 compiler.misc.diamond.and.anon.class=\
2124 cannot use ''<>'' with anonymous inner classes
2126 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
2127 compiler.misc.inapplicable.method=\
2128 {0} {1}.{2} is not applicable\n\
2129 ({3})
2131 ########################################
2132 # Diagnostics for language feature changes
2133 ########################################
2134 # 0: string
2135 compiler.err.unsupported.fp.lit=\
2136 hexadecimal floating point literals are not supported in -source {0}\n\
2137 (use -source 5 or higher to enable hexadecimal floating point literals)
2139 # 0: string
2140 compiler.err.unsupported.binary.lit=\
2141 binary literals are not supported in -source {0}\n\
2142 (use -source 7 or higher to enable binary literals)
2144 # 0: string
2145 compiler.err.unsupported.underscore.lit=\
2146 underscores in literals are not supported in -source {0}\n\
2147 (use -source 7 or higher to enable underscores in literals)
2149 # 0: string
2150 compiler.err.try.with.resources.not.supported.in.source=\
2151 try-with-resources is not supported in -source {0}\n\
2152 (use -source 7 or higher to enable try-with-resources)
2154 compiler.warn.enum.as.identifier=\
2155 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2156 (use -source 5 or higher to use ''enum'' as a keyword)
2158 compiler.warn.assert.as.identifier=\
2159 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2160 (use -source 1.4 or higher to use ''assert'' as a keyword)
2162 compiler.warn.underscore.as.identifier=\
2163 ''_'' used as an identifier\n\
2164 (use of ''_'' as an identifier might not be supported in future releases)
2166 compiler.err.enum.as.identifier=\
2167 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
2168 (use -source 1.4 or lower to use ''enum'' as an identifier)
2170 compiler.err.assert.as.identifier=\
2171 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
2172 (use -source 1.3 or lower to use ''assert'' as an identifier)
2174 # TODO 308: make a better error message
2175 compiler.err.this.as.identifier=\
2176 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
2178 # TODO 308: make a better error message
2179 compiler.err.cant.annotate.static.class=\
2180 enclosing static nested class cannot be annotated
2181 # TODO 308: make a better error message
2182 compiler.err.cant.annotate.nested.type=\
2183 nested type cannot be annotated
2185 compiler.err.incorrect.receiver.type=\
2186 the receiver type does not match the enclosing class type
2188 compiler.err.no.annotations.on.dot.class=\
2189 no annotations are allowed in the type of a class literal
2191 # 0: string
2192 compiler.err.generics.not.supported.in.source=\
2193 generics are not supported in -source {0}\n\
2194 (use -source 5 or higher to enable generics)
2196 # 0: string
2197 compiler.err.varargs.not.supported.in.source=\
2198 variable-arity methods are not supported in -source {0}\n\
2199 (use -source 5 or higher to enable variable-arity methods)
2201 # 0: string
2202 compiler.err.annotations.not.supported.in.source=\
2203 annotations are not supported in -source {0}\n\
2204 (use -source 5 or higher to enable annotations)
2206 # 0: string
2207 compiler.err.type.annotations.not.supported.in.source=\
2208 type annotations are not supported in -source {0}\n\
2209 (use -source 8 or higher to enable type annotations)
2211 # 0: string
2212 compiler.err.foreach.not.supported.in.source=\
2213 for-each loops are not supported in -source {0}\n\
2214 (use -source 5 or higher to enable for-each loops)
2216 # 0: string
2217 compiler.err.static.import.not.supported.in.source=\
2218 static import declarations are not supported in -source {0}\n\
2219 (use -source 5 or higher to enable static import declarations)
2221 # 0: string
2222 compiler.err.enums.not.supported.in.source=\
2223 enums are not supported in -source {0}\n\
2224 (use -source 5 or higher to enable enums)
2226 # 0: string
2227 compiler.err.diamond.not.supported.in.source=\
2228 diamond operator is not supported in -source {0}\n\
2229 (use -source 7 or higher to enable diamond operator)
2231 # 0: string
2232 compiler.err.multicatch.not.supported.in.source=\
2233 multi-catch statement is not supported in -source {0}\n\
2234 (use -source 7 or higher to enable multi-catch statement)
2236 # 0: string
2237 compiler.err.string.switch.not.supported.in.source=\
2238 strings in switch are not supported in -source {0}\n\
2239 (use -source 7 or higher to enable strings in switch)
2241 # 0: string
2242 compiler.err.lambda.not.supported.in.source=\
2243 lambda expressions are not supported in -source {0}\n\
2244 (use -source 8 or higher to enable lambda expressions)
2246 # 0: string
2247 compiler.err.method.references.not.supported.in.source=\
2248 method references are not supported in -source {0}\n\
2249 (use -source 8 or higher to enable method references)
2251 # 0: string
2252 compiler.err.default.methods.not.supported.in.source=\
2253 default methods are not supported in -source {0}\n\
2254 (use -source 8 or higher to enable default methods)
2256 # 0: string
2257 compiler.err.intersection.types.in.cast.not.supported.in.source=\
2258 intersection types in cast are not supported in -source {0}\n\
2259 (use -source 8 or higher to enable default methods)
2261 # 0: string
2262 compiler.err.static.intf.methods.not.supported.in.source=\
2263 static interface methods are not supported in -source {0}\n\
2264 (use -source 8 or higher to enable static interface methods)
2266 ########################################
2267 # Diagnostics for verbose resolution
2268 # used by Resolve (debug only)
2269 ########################################
2271 # 0: number, 1: symbol, 2: unused
2272 compiler.misc.applicable.method.found=\
2273 #{0} applicable method found: {1}
2275 # 0: number, 1: symbol, 2: message segment
2276 compiler.misc.applicable.method.found.1=\
2277 #{0} applicable method found: {1}\n\
2278 ({2})
2280 # 0: number, 1: symbol, 2: message segment
2281 compiler.misc.not.applicable.method.found=\
2282 #{0} not applicable method found: {1}\n\
2283 ({2})
2285 # 0: type
2286 compiler.misc.partial.inst.sig=\
2287 partially instantiated to: {0}
2289 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2290 compiler.note.verbose.resolve.multi=\
2291 resolving method {0} in type {1} to candidate {2}\n\
2292 phase: {3}\n\
2293 with actuals: {4}\n\
2294 with type-args: {5}\n\
2295 candidates:
2297 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2298 compiler.note.verbose.resolve.multi.1=\
2299 erroneous resolution for method {0} in type {1}\n\
2300 phase: {3}\n\
2301 with actuals: {4}\n\
2302 with type-args: {5}\n\
2303 candidates:
2305 # 0: symbol, 1: type, 2: type
2306 compiler.note.deferred.method.inst=\
2307 Deferred instantiation of method {0}\n\
2308 instantiated signature: {1}\n\
2309 target-type: {2}
2311 ########################################
2312 # Diagnostics for where clause implementation
2313 # used by the RichDiagnosticFormatter.
2314 ########################################
2316 compiler.misc.type.null=\
2317 <null>
2319 # X#n (where n is an int id) is disambiguated tvar name
2320 # 0: name, 1: number
2321 compiler.misc.type.var=\
2322 {0}#{1}
2324 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
2325 # 0: number
2326 compiler.misc.captured.type=\
2327 CAP#{0}
2329 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2330 # 0: number
2331 compiler.misc.intersection.type=\
2332 INT#{0}
2334 # where clause for captured type: contains upper ('extends {1}') and lower
2335 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
2336 # 0: type, 1: type, 2: type, 3: type
2337 compiler.misc.where.captured=\
2338 {0} extends {1} super: {2} from capture of {3}
2340 # compact where clause for captured type: contains upper ('extends {1}') along
2341 # with the wildcard that generated this captured type ({3})
2342 # 0: type, 1: type, 2: unused, 3: type
2343 compiler.misc.where.captured.1=\
2344 {0} extends {1} from capture of {3}
2346 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
2347 # the kindname ({2}) and location ({3}) in which the typevar has been declared
2348 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2349 compiler.misc.where.typevar=\
2350 {0} extends {1} declared in {2} {3}
2352 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
2353 # in which the typevar has been declared
2354 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2355 compiler.misc.where.typevar.1=\
2356 {0} declared in {2} {3}
2358 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2359 # Since a fresh type-variable is synthetic - there's no location/kindname here.
2360 # 0: type, 1: list of type
2361 compiler.misc.where.fresh.typevar=\
2362 {0} extends {1}
2364 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
2365 # of this intersection type
2366 # 0: type, 1: list of type
2367 compiler.misc.where.intersection=\
2368 {0} extends {1}
2370 ### Where clause headers ###
2371 compiler.misc.where.description.captured=\
2372 where {0} is a fresh type-variable:
2374 # 0: set of type
2375 compiler.misc.where.description.typevar=\
2376 where {0} is a type-variable:
2378 # 0: set of type
2379 compiler.misc.where.description.intersection=\
2380 where {0} is an intersection type:
2382 # 0: set of type
2383 compiler.misc.where.description.captured.1=\
2384 where {0} are fresh type-variables:
2386 # 0: set of type
2387 compiler.misc.where.description.typevar.1=\
2388 where {0} are type-variables:
2390 compiler.misc.where.description.intersection.1=\
2391 where {0} are intersection types:
2393 ###
2394 # errors related to doc comments
2396 compiler.err.dc.bad.entity=\
2397 bad HTML entity
2399 compiler.err.dc.bad.gt=\
2400 bad use of ''>''
2402 compiler.err.dc.bad.inline.tag=\
2403 incorrect use of inline tag
2405 compiler.err.dc.identifier.expected=\
2406 identifier expected
2408 compiler.err.dc.malformed.html=\
2409 malformed HTML
2411 compiler.err.dc.missing.semicolon=\
2412 semicolon missing
2414 compiler.err.dc.no.content=\
2415 no content
2417 compiler.err.dc.no.tag.name=\
2418 no tag name after '@'
2420 compiler.err.dc.gt.expected=\
2421 ''>'' expected
2423 compiler.err.dc.ref.bad.parens=\
2424 '')'' missing in reference
2426 compiler.err.dc.ref.syntax.error=\
2427 syntax error in reference
2429 compiler.err.dc.ref.unexpected.input=\
2430 unexpected text
2432 compiler.err.dc.unexpected.content=\
2433 unexpected content
2435 compiler.err.dc.unterminated.inline.tag=\
2436 unterminated inline tag
2438 compiler.err.dc.unterminated.signature=\
2439 unterminated signature
2441 compiler.err.dc.unterminated.string=\
2442 unterminated string