Mon, 07 Feb 2011 18:10:13 +0000
7007615: java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123.
Summary: override clash algorithm is not implemented correctly
Reviewed-by: jjg
1 #
2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
26 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
27 # are preceded by a stylized comment describing the type of the corresponding
28 # values.
29 # The types currently in use are
30 #
31 # boolean true or false
32 # file name the name of an input file; e.g. MyFile.java
33 # message segment a sub-message; see compiler.misc.*
34 # modifier a Java modifier; e.g. public, private, protected
35 # name a name, typically a Java identifier
36 # number an integer
37 # option name the name of a command line option
38 # source version a source version number, such as 1.5, 1.6, 1.7
39 # string a general string
40 # symbol the name of a declared type
41 # symbol kind a description of the kind of a declaration; see compiler.misc.kindname.*
42 # token the name of a non-terminal in source code; see compiler.misc.token.*
43 # type a Java type; e.g. int, X, X<T>
44 # unused the value is not used in this message
45 #
46 # list of X a comma-separated list of items; e.g. list of type
47 # X or Y alternation; e.g. message segment or type
48 # set of X a comma-separated collection of items; e.g. set of modifier
49 #
50 # These may be composed: e.g. list of type or message segment
51 #
52 # These comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
53 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
54 # MessageInfo can also be run as a standalone utility providing more facilities
55 # for manipulating this file. For more details, see MessageInfo.java.
57 ##
58 ## errors
59 ##
61 # 0: symbol
62 compiler.err.abstract.cant.be.instantiated=\
63 {0} is abstract; cannot be instantiated
65 compiler.err.abstract.meth.cant.have.body=\
66 abstract methods cannot have a body
68 compiler.err.already.annotated=\
69 {0} {1} has already been annotated
71 # 0: symbol, 1: symbol
72 compiler.err.already.defined=\
73 {0} is already defined in {1}
75 # 0: string
76 compiler.err.already.defined.single.import=\
77 {0} is already defined in a single-type import
79 # 0: string
80 compiler.err.already.defined.static.single.import=\
81 {0} is already defined in a static single-type import
83 compiler.err.already.defined.this.unit=\
84 {0} is already defined in this compilation unit
86 # 0: type, 1: list of name
87 compiler.err.annotation.missing.default.value=\
88 annotation {0} is missing value for the attribute {1}
90 # 0: type, 1: list of name
91 compiler.err.annotation.missing.default.value.1=\
92 annotation {0} is missing values for attributes {1}
94 # 0: type
95 compiler.err.annotation.not.valid.for.type=\
96 annotation not valid for a value of type {0}
98 compiler.err.annotation.type.not.applicable=\
99 annotation type not applicable to this kind of declaration
101 compiler.err.annotation.value.must.be.annotation=\
102 annotation value must be an annotation
104 compiler.err.annotation.value.must.be.class.literal=\
105 annotation value must be a class literal
107 compiler.err.annotation.value.must.be.name.value=\
108 annotation values must be of the form ''name=value''
110 compiler.err.annotation.value.not.allowable.type=\
111 annotation value not of an allowable type
113 compiler.err.anon.class.impl.intf.no.args=\
114 anonymous class implements interface; cannot have arguments
116 compiler.err.anon.class.impl.intf.no.typeargs=\
117 anonymous class implements interface; cannot have type arguments
119 compiler.err.anon.class.impl.intf.no.qual.for.new=\
120 anonymous class implements interface; cannot have qualifier for new
122 # 0: symbol, 1: symbol, 2: symbol
123 compiler.err.array.and.varargs=\
124 cannot declare both {0} and {1} in {2}
126 compiler.err.array.dimension.missing=\
127 array dimension missing
129 # 0: type
130 compiler.err.array.req.but.found=\
131 array required, but {0} found
133 compiler.err.assignment.from.super-bound=\
134 assigning from wildcard {0}
136 compiler.err.assignment.to.extends-bound=\
137 assigning to wildcard {0}
139 compiler.err.attribute.value.must.be.constant=\
140 attribute value must be constant
142 compiler.err.break.outside.switch.loop=\
143 break outside switch or loop
145 # 0: name
146 compiler.err.call.must.be.first.stmt.in.ctor=\
147 call to {0} must be first statement in constructor
149 compiler.err.cant.apply.symbol=\
150 {0} {1} in {4} {5} cannot be applied to given types\n\
151 required: {2}\n\
152 found: {3}
154 # 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
155 compiler.err.cant.apply.symbol.1=\
156 {0} {1} in {4} {5} cannot be applied to given types;\n\
157 required: {2}\n\
158 found: {3}\n\
159 reason: {6}
161 # 0: symbol kind, 1: name, 2: list of type
162 compiler.err.cant.apply.symbols=\
163 no suitable {0} found for {1}({2})
165 # 0: symbol
166 compiler.err.cant.assign.val.to.final.var=\
167 cannot assign a value to final variable {0}
169 # 0: type
170 compiler.err.cant.deref=\
171 {0} cannot be dereferenced
173 compiler.err.cant.extend.intf.annotation=\
174 ''extends'' not allowed for @interfaces
176 # 0: symbol
177 compiler.err.cant.inherit.from.final=\
178 cannot inherit from final {0}
180 # 0: symbol
181 compiler.err.cant.ref.before.ctor.called=\
182 cannot reference {0} before supertype constructor has been called
184 compiler.err.cant.ret.val.from.meth.decl.void=\
185 cannot return a value from method whose result type is void
187 compiler.err.cant.select.static.class.from.param.type=\
188 cannot select a static class from a parameterized type
190 # 0: symbol, 1: string, 2: string
191 compiler.err.cant.inherit.diff.arg=\
192 {0} cannot be inherited with different arguments: <{1}> and <{2}>
194 compiler.err.catch.without.try=\
195 ''catch'' without ''try''
197 # 0: symbol kind, 1: symbol
198 compiler.err.clash.with.pkg.of.same.name=\
199 {0} {1} clashes with package of same name
201 compiler.err.const.expr.req=\
202 constant expression required
204 compiler.err.cont.outside.loop=\
205 continue outside of loop
207 # 0: symbol
208 compiler.err.cyclic.inheritance=\
209 cyclic inheritance involving {0}
211 compiler.err.cyclic.annotation.element=\
212 cyclic annotation element type
214 # 0: unused
215 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
216 call to super not allowed in enum constructor
218 # 0: type
219 compiler.err.no.superclass=\
220 {0} has no superclass
222 compiler.err.wrong.target.for.polymorphic.signature.definition=\
223 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
225 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
226 compiler.err.concrete.inheritance.conflict=\
227 methods {0} from {1} and {2} from {3} are inherited with the same signature
229 compiler.err.default.allowed.in.intf.annotation.member=\
230 default value only allowed in an @interface member
232 # 0: symbol
233 compiler.err.doesnt.exist=\
234 package {0} does not exist
236 compiler.err.duplicate.annotation=\
237 duplicate annotation
239 # 0: name, 1: type
240 compiler.err.duplicate.annotation.member.value=\
241 duplicate annotation member value {0} in {1}
243 # 0: name
244 compiler.err.duplicate.class=\
245 duplicate class: {0}
247 compiler.err.duplicate.case.label=\
248 duplicate case label
250 compiler.err.duplicate.default.label=\
251 duplicate default label
253 compiler.err.else.without.if=\
254 ''else'' without ''if''
256 compiler.err.empty.char.lit=\
257 empty character literal
259 # 0: symbol
260 compiler.err.encl.class.required=\
261 an enclosing instance that contains {0} is required
263 compiler.err.enum.annotation.must.be.enum.constant=\
264 an enum annotation value must be an enum constant
266 compiler.err.enum.cant.be.instantiated=\
267 enum types may not be instantiated
269 compiler.err.enum.label.must.be.unqualified.enum=\
270 an enum switch case label must be the unqualified name of an enumeration constant
272 compiler.err.enum.no.subclassing=\
273 classes cannot directly extend java.lang.Enum
275 compiler.err.enum.types.not.extensible=\
276 enum types are not extensible
278 compiler.err.enum.no.finalize=\
279 enums cannot have finalize methods
281 # 0: file name, 1: string
282 compiler.err.error.reading.file=\
283 error reading {0}; {1}
285 # 0: type
286 compiler.err.except.already.caught=\
287 exception {0} has already been caught
289 # 0: type
290 compiler.err.except.never.thrown.in.try=\
291 exception {0} is never thrown in body of corresponding try statement
293 # 0: symbol
294 compiler.err.final.parameter.may.not.be.assigned=\
295 final parameter {0} may not be assigned
297 # 0: symbol
298 compiler.err.try.resource.may.not.be.assigned=\
299 auto-closeable resource {0} may not be assigned
301 # 0: symbol
302 compiler.err.multicatch.parameter.may.not.be.assigned=\
303 multi-catch parameter {0} may not be assigned
305 compiler.err.finally.without.try=\
306 ''finally'' without ''try''
308 # 0: type, 1: message segment
309 compiler.err.foreach.not.applicable.to.type=\
310 for-each not applicable to expression type\n\
311 required: {1}\n\
312 found: {0}
314 compiler.err.fp.number.too.large=\
315 floating point number too large
317 compiler.err.fp.number.too.small=\
318 floating point number too small
320 compiler.err.generic.array.creation=\
321 generic array creation
323 compiler.err.generic.throwable=\
324 a generic class may not extend java.lang.Throwable
326 # 0: symbol
327 compiler.err.icls.cant.have.static.decl=\
328 Illegal static declaration in inner class {0}\n\
329 modifier \''static\'' is only allowed in constant variable declarations
331 # 0: string
332 compiler.err.illegal.char=\
333 illegal character: \\{0}
335 compiler.err.illegal.char.for.encoding=\
336 unmappable character for encoding {0}
338 # 0: set of modifier, 1: set of modifier
339 compiler.err.illegal.combination.of.modifiers=\
340 illegal combination of modifiers: {0} and {1}
342 compiler.err.illegal.enum.static.ref=\
343 illegal reference to static field from initializer
345 compiler.err.illegal.esc.char=\
346 illegal escape character
348 compiler.err.illegal.forward.ref=\
349 illegal forward reference
351 # 0: symbol
352 compiler.warn.forward.ref=\
353 reference to variable ''{0}'' before it has been initialized
355 compiler.err.illegal.self.ref=\
356 self-reference in initializer
358 # 0: symbol
359 compiler.warn.self.ref=\
360 self-reference in initializer of variable ''{0}''
362 compiler.err.illegal.generic.type.for.instof=\
363 illegal generic type for instanceof
365 # 0: type
366 compiler.err.illegal.initializer.for.type=\
367 illegal initializer for {0}
369 compiler.err.illegal.line.end.in.char.lit=\
370 illegal line end in character literal
372 compiler.err.illegal.nonascii.digit=\
373 illegal non-ASCII digit
375 compiler.err.illegal.underscore=\
376 illegal underscore
378 # 0: symbol
379 compiler.err.illegal.qual.not.icls=\
380 illegal qualifier; {0} is not an inner class
382 compiler.err.illegal.start.of.expr=\
383 illegal start of expression
385 compiler.err.illegal.start.of.type=\
386 illegal start of type
388 compiler.err.illegal.unicode.esc=\
389 illegal unicode escape
391 # 0: symbol
392 compiler.err.import.requires.canonical=\
393 import requires canonical name for {0}
395 compiler.err.improperly.formed.type.param.missing=\
396 improperly formed type, some parameters are missing
398 compiler.err.improperly.formed.type.inner.raw.param=\
399 improperly formed type, type arguments given on a raw type
401 # 0: type, 1: type
402 compiler.err.incomparable.types=\
403 incomparable types: {0} and {1}
405 # 0: number
406 compiler.err.int.number.too.large=\
407 integer number too large: {0}
409 compiler.err.internal.error.cant.instantiate=\
410 internal error; cannot instantiate {0} at {1} to ({2})
412 compiler.err.intf.annotation.members.cant.have.params=\
413 @interface members may not have parameters
415 compiler.err.intf.annotation.cant.have.type.params=\
416 @interface may not have type parameters
418 compiler.err.intf.annotation.members.cant.have.type.params=\
419 @interface members may not have type parameters
421 # 0: symbol, 1: type
422 compiler.err.intf.annotation.member.clash=\
423 @interface member clashes with method ''{0}'' in {1}
425 compiler.err.intf.expected.here=\
426 interface expected here
428 compiler.err.intf.meth.cant.have.body=\
429 interface methods cannot have body
431 compiler.err.invalid.annotation.member.type=\
432 invalid type for annotation member
434 compiler.err.invalid.binary.number=\
435 binary numbers must contain at least one binary digit
437 compiler.err.invalid.hex.number=\
438 hexadecimal numbers must contain at least one hexadecimal digit
440 compiler.err.invalid.meth.decl.ret.type.req=\
441 invalid method declaration; return type required
443 compiler.err.varargs.and.old.array.syntax=\
444 legacy array notation not allowed on variable-arity parameter
446 # 0: name
447 compiler.err.label.already.in.use=\
448 label {0} already in use
450 # 0: symbol
451 compiler.err.local.var.accessed.from.icls.needs.final=\
452 local variable {0} is accessed from within inner class; needs to be declared final
454 compiler.err.local.enum=\
455 enum types must not be local
457 compiler.err.cannot.create.array.with.type.arguments=\
458 cannot create array with type arguments
460 #
461 # limits. We don't give the limits in the diagnostic because we expect
462 # them to change, yet we want to use the same diagnostic. These are all
463 # detected during code generation.
464 #
465 compiler.err.limit.code=\
466 code too large
468 compiler.err.limit.code.too.large.for.try.stmt=\
469 code too large for try statement
471 compiler.err.limit.dimensions=\
472 array type has too many dimensions
474 compiler.err.limit.locals=\
475 too many local variables
477 compiler.err.limit.parameters=\
478 too many parameters
480 compiler.err.limit.pool=\
481 too many constants
483 compiler.err.limit.pool.in.class=\
484 too many constants in class {0}
486 compiler.err.limit.stack=\
487 code requires too much stack
489 compiler.err.limit.string=\
490 constant string too long
492 compiler.err.limit.string.overflow=\
493 UTF8 representation for string \"{0}...\" is too long for the constant pool
495 compiler.err.malformed.fp.lit=\
496 malformed floating point literal
498 compiler.err.method.does.not.override.superclass=\
499 method does not override or implement a method from a supertype
501 compiler.err.missing.meth.body.or.decl.abstract=\
502 missing method body, or declare abstract
504 compiler.err.missing.ret.stmt=\
505 missing return statement
507 compiler.err.missing.ret.val=\
508 missing return value
510 # 0: set of modifier
511 compiler.err.mod.not.allowed.here=\
512 modifier {0} not allowed here
514 compiler.err.intf.not.allowed.here=\
515 interface not allowed here
517 compiler.err.enums.must.be.static=\
518 enum declarations allowed only in static contexts
520 # 0: symbol, 1: symbol
521 compiler.err.name.clash.same.erasure=\
522 name clash: {0} and {1} have the same erasure
524 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
525 compiler.err.name.clash.same.erasure.no.override=\
526 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
528 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
529 compiler.err.name.clash.same.erasure.no.override.1=\
530 name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
531 first method: {2} in {3}\n\
532 second method: {4} in {5}
534 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
535 compiler.err.name.clash.same.erasure.no.hide=\
536 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
538 compiler.err.name.reserved.for.internal.use=\
539 {0} is reserved for internal use
541 compiler.err.native.meth.cant.have.body=\
542 native methods cannot have a body
544 # 0: type, 1: type
545 compiler.err.neither.conditional.subtype=\
546 incompatible types for ?: neither is a subtype of the other\n\
547 second operand: {0}\n\
548 third operand : {1}
550 compiler.err.new.not.allowed.in.annotation=\
551 ''new'' not allowed in an annotation
553 compiler.err.no.annotation.member=\
554 no annotation member {0} in {1}
556 compiler.err.no.encl.instance.of.type.in.scope=\
557 no enclosing instance of type {0} is in scope
559 compiler.err.no.intf.expected.here=\
560 no interface expected here
562 compiler.err.no.match.entry=\
563 {0} has no match in entry in {1}; required {2}
565 compiler.err.not.annotation.type=\
566 {0} is not an annotation type
568 # 0: symbol, 1: symbol
569 compiler.err.not.def.access.class.intf.cant.access=\
570 {0} in {1} is defined in an inaccessible class or interface
572 # 0: symbol, 1: symbol
573 compiler.err.not.def.public.cant.access=\
574 {0} is not public in {1}; cannot be accessed from outside package
576 # 0: name
577 compiler.err.not.loop.label=\
578 not a loop label: {0}
580 compiler.err.not.stmt=\
581 not a statement
583 # 0: symbol
584 compiler.err.not.encl.class=\
585 not an enclosing class: {0}
587 # 0: name, 1: type, 2: unused
588 compiler.err.operator.cant.be.applied=\
589 bad operand type {1} for unary operator ''{0}''
591 # 0: name, 1: type, 2: type
592 compiler.err.operator.cant.be.applied.1=\
593 bad operand types for binary operator ''{0}''\n\
594 first type: {1}\n\
595 second type: {2}
597 compiler.err.pkg.annotations.sb.in.package-info.java=\
598 package annotations should be in file package-info.java
600 # 0: symbol
601 compiler.err.pkg.clashes.with.class.of.same.name=\
602 package {0} clashes with class of same name
604 compiler.err.warnings.and.werror=\
605 warnings found and -Werror specified
607 # Errors related to annotation processing
609 compiler.err.proc.cant.access=\
610 cannot access {0}\n\
611 {1}\n\
612 Consult the following stack trace for details.\n\
613 {2}
615 # 0: string
616 compiler.err.proc.cant.find.class=\
617 Could not find class file for ''{0}''.
619 # Print a client-generated error message; assumed to be localized, no translation required
620 # 0: string
621 compiler.err.proc.messager=\
622 {0}
624 # 0: list of string
625 compiler.err.proc.no.explicit.annotation.processing.requested=\
626 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
628 compiler.err.proc.no.service=\
629 A service loader class could not be found.\n\
630 Either java.util.ServiceLoader or sun.misc.Service must be available.
632 compiler.err.proc.processor.bad.option.name=\
633 Bad option name ''{0}'' provided by processor ''{1}''
635 # 0: string
636 compiler.err.proc.processor.cant.instantiate=\
637 Could not instantiate an instance of processor ''{0}''
639 compiler.err.proc.processor.constructor.error=\
640 Exception thrown while constructing Processor object: {0}
642 # 0: string
643 compiler.err.proc.processor.not.found=\
644 Annotation processor ''{0}'' not found
646 # 0: string
647 compiler.err.proc.processor.wrong.type=\
648 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
650 compiler.err.proc.service.problem=\
651 Error creating a service loader to load Processors.
653 compiler.err.proc.bad.config.file=\
654 Bad service configuration file, or exception thrown while constructing Processor object: {0}
656 compiler.err.proc.cant.create.loader=\
657 Could not create class loader for annotation processors: {0}
659 # 0: unused
660 compiler.err.qualified.new.of.static.class=\
661 qualified new of static class
663 compiler.err.recursive.ctor.invocation=\
664 recursive constructor invocation
666 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
667 compiler.err.ref.ambiguous=\
668 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
670 compiler.err.repeated.annotation.target=\
671 repeated annotation target
673 compiler.err.repeated.interface=\
674 repeated interface
676 compiler.err.repeated.modifier=\
677 repeated modifier
679 # 0: symbol, 1: set of modifier, 2: symbol
680 compiler.err.report.access=\
681 {0} has {1} access in {2}
683 compiler.err.ret.outside.meth=\
684 return outside method
686 compiler.err.signature.doesnt.match.supertype=\
687 signature does not match {0}; incompatible supertype
689 compiler.err.signature.doesnt.match.intf=\
690 signature does not match {0}; incompatible interfaces
692 # 0: symbol, 1: symbol, 2: symbol
693 compiler.err.does.not.override.abstract=\
694 {0} is not abstract and does not override abstract method {1} in {2}
696 compiler.err.source.cant.overwrite.input.file=\
697 error writing source; cannot overwrite input file {0}
699 compiler.err.stack.sim.error=\
700 Internal error: stack sim error on {0}
702 compiler.err.static.imp.only.classes.and.interfaces=\
703 static import only from classes and interfaces
705 compiler.err.string.const.req=\
706 constant string expression required
708 # 0: symbol, 1: symbol
709 compiler.err.synthetic.name.conflict=\
710 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
712 # 0: symbol, 1: symbol
713 compiler.warn.synthetic.name.conflict=\
714 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
716 compiler.err.throws.not.allowed.in.intf.annotation=\
717 throws clause not allowed in @interface members
719 compiler.err.try.without.catch.or.finally=\
720 ''try'' without ''catch'' or ''finally''
722 compiler.err.try.without.catch.finally.or.resource.decls=\
723 ''try'' without ''catch'', ''finally'' or resource declarations
725 # 0: symbol
726 compiler.err.type.doesnt.take.params=\
727 type {0} does not take parameters
729 compiler.err.type.var.cant.be.deref=\
730 cannot select from a type variable
732 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
733 a type variable may not be followed by other bounds
735 compiler.err.type.var.more.than.once=\
736 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
738 compiler.err.type.var.more.than.once.in.result=\
739 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
741 # 0: type, 1: type, 2: string
742 compiler.err.types.incompatible.diff.ret=\
743 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
745 compiler.err.unclosed.char.lit=\
746 unclosed character literal
748 compiler.err.unclosed.comment=\
749 unclosed comment
751 compiler.err.unclosed.str.lit=\
752 unclosed string literal
754 compiler.err.unknown.enum.constant=\
755 in class file {0}: unknown enum constant {1}.{2}
757 # 0: name
758 compiler.err.unsupported.encoding=\
759 unsupported encoding: {0}
761 compiler.err.io.exception=\
762 error reading source file: {0}
764 # 0: name
765 compiler.err.undef.label=\
766 undefined label: {0}
768 compiler.err.undetermined.type=\
769 cannot infer type arguments for {0}
771 # 0: type, 1: message segment
772 compiler.err.undetermined.type.1=\
773 cannot infer type arguments for {0};\n\
774 reason: {1}
776 # 0: list of type, 1: message segment
777 compiler.err.invalid.inferred.types=\
778 invalid inferred types for {0}; {1}
780 # 0: message segment, 1: unused
781 compiler.err.cant.apply.diamond=\
782 cannot infer type arguments for {0}
784 # 0: message segment, 1: message segment
785 compiler.err.cant.apply.diamond.1=\
786 cannot infer type arguments for {0};\n\
787 reason: {1}
789 compiler.err.unreachable.stmt=\
790 unreachable statement
792 compiler.err.initializer.must.be.able.to.complete.normally=\
793 initializer must be able to complete normally
795 # 0: type
796 compiler.err.unreported.exception.need.to.catch.or.throw=\
797 unreported exception {0}; must be caught or declared to be thrown
799 # 0: type
800 compiler.err.unreported.exception.default.constructor=\
801 unreported exception {0} in default constructor
803 compiler.err.unsupported.cross.fp.lit=\
804 hexadecimal floating-point literals are not supported on this VM
806 compiler.err.void.not.allowed.here=\
807 ''void'' type not allowed here
809 # 0: string
810 compiler.err.wrong.number.type.args=\
811 wrong number of type arguments; required {0}
813 # 0: symbol
814 compiler.err.var.might.already.be.assigned=\
815 variable {0} might already have been assigned
817 # 0: symbol
818 compiler.err.var.might.not.have.been.initialized=\
819 variable {0} might not have been initialized
821 # 0: symbol
822 compiler.err.var.might.be.assigned.in.loop=\
823 variable {0} might be assigned in loop
825 # 0: symbol, 1: message segment
826 compiler.err.varargs.invalid.trustme.anno=\
827 Invalid {0} annotation. {1}
829 # 0: type
830 compiler.misc.varargs.trustme.on.reifiable.varargs=\
831 Varargs element type {0} is reifiable.
833 # 0: symbol
834 compiler.misc.varargs.trustme.on.non.varargs.meth=\
835 Method {0} is not a varargs method.
837 # 0: symbol
838 compiler.misc.varargs.trustme.on.virtual.varargs=\
839 Instance method {0} is not final.
841 # 0: type, 1: kind, 2: symbol
842 compiler.misc.inaccessible.varargs.type=\
843 formal varargs element type {0} is not accessible from {1} {2}
845 # In the following string, {1} will always be the detail message from
846 # java.io.IOException.
847 # 0: symbol, 1: string
848 compiler.err.class.cant.write=\
849 error while writing {0}: {1}
851 # In the following string, {0} is the name of the class in the Java source.
852 # It really should be used two times..
853 # 0: name
854 compiler.err.class.public.should.be.in.file=\
855 class {0} is public, should be declared in a file named {0}.java
857 ## All errors which do not refer to a particular line in the source code are
858 ## preceded by this string.
859 compiler.err.error=\
860 error:\u0020
862 # The following error messages do not refer to a line in the source code.
863 compiler.err.cant.read.file=\
864 cannot read: {0}
866 #####
868 # Fatal Errors
870 compiler.misc.fatal.err.no.java.lang=\
871 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
873 compiler.misc.fatal.err.cant.locate.meth=\
874 Fatal Error: Unable to find method {0}
876 compiler.misc.fatal.err.cant.locate.field=\
877 Fatal Error: Unable to find field {0}
879 compiler.misc.fatal.err.cant.locate.ctor=\
880 Fatal Error: Unable to find constructor for {0}
882 compiler.misc.fatal.err.cant.close.loader=\
883 Fatal Error: Cannot close class loader for annotation processors
885 #####
887 ##
888 ## miscellaneous strings
889 ##
891 compiler.misc.source.unavailable=\
892 (source unavailable)
894 compiler.misc.base.membership=\
895 all your base class are belong to us
897 # 0: string, 1: string, 2: boolean
898 compiler.misc.x.print.processor.info=\
899 Processor {0} matches {1} and returns {2}.
901 # 0: number, 1: string, 2: set of symbol, 3: boolean
902 compiler.misc.x.print.rounds=\
903 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
905 #####
907 ## The following string will appear before all messages keyed as:
908 ## "compiler.note".
909 compiler.note.note=\
910 Note:\u0020
912 # 0: file name
913 compiler.note.deprecated.filename=\
914 {0} uses or overrides a deprecated API.
916 compiler.note.deprecated.plural=\
917 Some input files use or override a deprecated API.
919 # The following string may appear after one of the above deprecation
920 # messages.
921 compiler.note.deprecated.recompile=\
922 Recompile with -Xlint:deprecation for details.
924 # 0: file name
925 compiler.note.deprecated.filename.additional=\
926 {0} has additional uses or overrides of a deprecated API.
928 compiler.note.deprecated.plural.additional=\
929 Some input files additionally use or override a deprecated API.
931 # 0: file name
932 compiler.note.unchecked.filename=\
933 {0} uses unchecked or unsafe operations.
935 compiler.note.unchecked.plural=\
936 Some input files use unchecked or unsafe operations.
938 # The following string may appear after one of the above deprecation
939 # messages.
940 compiler.note.unchecked.recompile=\
941 Recompile with -Xlint:unchecked for details.
943 # 0: file name
944 compiler.note.unchecked.filename.additional=\
945 {0} has additional unchecked or unsafe operations.
947 compiler.note.unchecked.plural.additional=\
948 Some input files additionally use unchecked or unsafe operations.
950 # 0: file name
951 compiler.note.sunapi.filename=\
952 {0} uses internal proprietary API that may be removed in a future release.
954 compiler.note.sunapi.plural=\
955 Some input files use internal proprietary API that may be removed in a future release.
957 # The following string may appear after one of the above sunapi messages.
958 compiler.note.sunapi.recompile=\
959 Recompile with -Xlint:sunapi for details.
961 # 0: file name
962 compiler.note.sunapi.filename.additional=\
963 {0} uses additional internal proprietary API that may be removed in a future release.
965 compiler.note.sunapi.plural.additional=\
966 Some input files additionally use internal proprietary API that may be removed in a future release.
968 # Notes related to annotation processing
970 # Print a client-generated note; assumed to be localized, no translation required
971 # 0: string
972 compiler.note.proc.messager=\
973 {0}
975 #####
977 # 0: number
978 compiler.misc.count.error=\
979 {0} error
981 # 0: number
982 compiler.misc.count.error.plural=\
983 {0} errors
985 # 0: number
986 compiler.misc.count.warn=\
987 {0} warning
989 # 0: number
990 compiler.misc.count.warn.plural=\
991 {0} warnings
993 compiler.misc.version.not.available=\
994 (version info not available)
996 ## extra output when using -verbose (JavaCompiler)
998 # 0: symbol
999 compiler.misc.verbose.checking.attribution=\
1000 [checking {0}]
1002 # 0: string
1003 compiler.misc.verbose.parsing.done=\
1004 [parsing completed {0}ms]
1006 # 0: file name
1007 compiler.misc.verbose.parsing.started=\
1008 [parsing started {0}]
1010 # 0: string
1011 compiler.misc.verbose.total=\
1012 [total {0}ms]
1014 # 0: file name
1015 compiler.misc.verbose.wrote.file=\
1016 [wrote {0}]
1018 ## extra output when using -verbose (Retro)
1019 compiler.misc.verbose.retro=\
1020 [retrofitting {0}]
1022 compiler.misc.verbose.retro.with=\
1023 \tretrofitting {0} with {1}
1025 compiler.misc.verbose.retro.with.list=\
1026 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1028 ## extra output when using -verbose (code/ClassReader)
1029 # 0: string
1030 compiler.misc.verbose.loading=\
1031 [loading {0}]
1033 # 0: string
1034 compiler.misc.verbose.sourcepath=\
1035 [search path for source files: {0}]
1037 # 0: string
1038 compiler.misc.verbose.classpath=\
1039 [search path for class files: {0}]
1041 ## extra output when using -checkclassfile (code/ClassReader)
1042 compiler.misc.ccf.found.later.version=\
1043 class file has later version than expected: {0}
1045 compiler.misc.ccf.unrecognized.attribute=\
1046 unrecognized attribute: {0}
1048 ## extra output when using -prompt (util/Log)
1049 compiler.misc.resume.abort=\
1050 R)esume, A)bort>
1052 #####
1054 ##
1055 ## warnings
1056 ##
1058 ## All warning messages are preceded by the following string.
1059 compiler.warn.warning=\
1060 warning:\u0020
1062 ## Warning messages may also include the following prefix to identify a
1063 ## lint option
1064 # 0: option name
1065 compiler.warn.lintOption=\
1066 [{0}]\u0020
1068 # 0: symbol
1069 compiler.warn.constant.SVUID=\
1070 serialVersionUID must be constant in class {0}
1072 # 0: file name
1073 compiler.warn.dir.path.element.not.found=\
1074 bad path element "{0}": no such directory
1076 compiler.warn.finally.cannot.complete=\
1077 finally clause cannot complete normally
1079 # 0: symbol, 1: symbol
1080 compiler.warn.has.been.deprecated=\
1081 {0} in {1} has been deprecated
1083 # 0: symbol
1084 compiler.warn.sun.proprietary=\
1085 {0} is internal proprietary API and may be removed in a future release
1087 compiler.warn.illegal.char.for.encoding=\
1088 unmappable character for encoding {0}
1090 # 0: symbol
1091 compiler.warn.improper.SVUID=\
1092 serialVersionUID must be declared static final in class {0}
1094 # 0: type, 1: type
1095 compiler.warn.inexact.non-varargs.call=\
1096 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1097 cast to {0} for a varargs call\n\
1098 cast to {1} for a non-varargs call and to suppress this warning
1100 # 0: symbol
1101 compiler.warn.long.SVUID=\
1102 serialVersionUID must be of type long in class {0}
1104 # 0: symbol
1105 compiler.warn.missing.SVUID=\
1106 serializable class {0} has no definition of serialVersionUID
1108 # 0: message segment
1109 compiler.warn.override.varargs.missing=\
1110 {0}; overridden method has no ''...''
1112 # 0: message segment
1113 compiler.warn.override.varargs.extra=\
1114 {0}; overriding method is missing ''...''
1116 compiler.warn.override.bridge=\
1117 {0}; overridden method is a bridge method
1119 # 0: symbol
1120 compiler.warn.pkg-info.already.seen=\
1121 a package-info.java file has already been seen for package {0}
1123 # 0: file name
1124 compiler.warn.path.element.not.found=\
1125 bad path element "{0}": no such file or directory
1127 compiler.warn.possible.fall-through.into.case=\
1128 possible fall-through into case
1130 # 0: type
1131 compiler.warn.redundant.cast=\
1132 redundant cast to {0}
1134 # 0: number
1135 compiler.warn.position.overflow=\
1136 Position encoding overflows at line {0}
1138 # 0: file name, 1: number, 2: number
1139 compiler.warn.big.major.version=\
1140 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1141 It is recommended that the compiler be upgraded.
1143 # 0: symbol kind, 1: symbol
1144 compiler.warn.static.not.qualified.by.type=\
1145 static {0} should be qualified by type name, {1}, instead of by an expression
1147 # 0: string
1148 compiler.warn.source.no.bootclasspath=\
1149 bootstrap class path not set in conjunction with -source {0}
1151 # 0: name, 1: number, 2: number, 3: number, 4: number
1152 compiler.warn.future.attr=\
1153 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1155 # Warnings related to annotation processing
1156 # 0: name
1157 compiler.warn.proc.package.does.not.exist=\
1158 package {0} does not exist
1160 # 0: name
1161 compiler.warn.proc.file.reopening=\
1162 Attempt to create a file for ''{0}'' multiple times
1164 # 0: name
1165 compiler.warn.proc.type.already.exists=\
1166 A file for type ''{0}'' already exists on the sourcepath or classpath
1168 # 0: name
1169 compiler.warn.proc.type.recreate=\
1170 Attempt to create a file for type ''{0}'' multiple times
1172 # 0: string
1173 compiler.warn.proc.illegal.file.name=\
1174 Cannot create file for illegal name ''{0}''.
1176 # 0: string, 1: string
1177 compiler.warn.proc.suspicious.class.name=\
1178 Creating file for a type whose name ends in {1}: ''{0}''
1180 # 0: name
1181 compiler.warn.proc.file.create.last.round=\
1182 File for type ''{0}'' created in the last round will not be subject to annotation processing.
1184 # 0: string, 1: string
1185 compiler.warn.proc.malformed.supported.string=\
1186 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1188 # 0: set of string
1189 compiler.warn.proc.annotations.without.processors=\
1190 No processor claimed any of these annotations: {0}
1192 # 0: source version, 1: string, 2: string
1193 compiler.warn.proc.processor.incompatible.source.version=\
1194 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1196 compiler.warn.proc.proc-only.requested.no.procs=\
1197 Annotation processing without compilation requested but no processors were found.
1199 compiler.warn.proc.use.implicit=\
1200 Implicitly compiled files were not subject to annotation processing.\n\
1201 Use -implicit to specify a policy for implicit compilation.
1203 compiler.warn.proc.use.proc.or.implicit=\
1204 Implicitly compiled files were not subject to annotation processing.\n\
1205 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1207 # Print a client-generated warning; assumed to be localized, no translation required
1208 # 0: string
1209 compiler.warn.proc.messager=\
1210 {0}
1212 # 0: set of name
1213 compiler.warn.proc.unclosed.type.files=\
1214 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1216 # 0: string
1217 compiler.warn.proc.unmatched.processor.options=\
1218 The following options were not recognized by any processor: ''{0}''
1220 compiler.warn.try.explicit.close.call=\
1221 explicit call to close() on an auto-closeable resource
1223 # 0: symbol
1224 compiler.warn.try.resource.not.referenced=\
1225 auto-closeable resource {0} is never referenced in body of corresponding try statement
1227 compiler.warn.unchecked.assign=\
1228 unchecked assignment: {0} to {1}
1230 # 0: symbol, 1: type
1231 compiler.warn.unchecked.assign.to.var=\
1232 unchecked assignment to variable {0} as member of raw type {1}
1234 # 0: symbol, 1: type
1235 compiler.warn.unchecked.call.mbr.of.raw.type=\
1236 unchecked call to {0} as a member of the raw type {1}
1238 compiler.warn.unchecked.cast.to.type=\
1239 unchecked cast to type {0}
1241 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1242 compiler.warn.unchecked.meth.invocation.applied=\
1243 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1244 required: {2}\n\
1245 found: {3}
1247 # 0: type
1248 compiler.warn.unchecked.generic.array.creation=\
1249 unchecked generic array creation for varargs parameter of type {0}
1251 # 0: type
1252 compiler.warn.unchecked.varargs.non.reifiable.type=\
1253 Possible heap pollution from parameterized vararg type {0}
1255 # 0: symbol
1256 compiler.warn.varargs.unsafe.use.varargs.param=\
1257 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1259 compiler.warn.missing.deprecated.annotation=\
1260 deprecated item is not annotated with @Deprecated
1262 compiler.warn.invalid.archive.file=\
1263 Unexpected file on path: {0}
1265 compiler.warn.unexpected.archive.file=\
1266 Unexpected extension for archive file: {0}
1268 compiler.warn.div.zero=\
1269 division by zero
1271 compiler.warn.empty.if=\
1272 empty statement after if
1274 compiler.warn.annotation.method.not.found=\
1275 Cannot find annotation method ''{1}()'' in type ''{0}''
1277 compiler.warn.annotation.method.not.found.reason=\
1278 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1280 # 0: type, 1: type
1281 compiler.warn.raw.class.use=\
1282 found raw type: {0}\n\
1283 missing type arguments for generic class {1}
1285 # 0: unused, 1: unused
1286 compiler.warn.diamond.redundant.args=\
1287 redundant type arguments in new expression (use diamond operator instead).
1289 # 0: type, 1: type
1290 compiler.warn.diamond.redundant.args.1=\
1291 redundant type arguments in new expression (use diamond operator instead).\n\
1292 explicit: {0}\n\
1293 inferred: {1}
1295 # 0: symbol, 1: message segment
1296 compiler.warn.varargs.redundant.trustme.anno=\
1297 Redundant {0} annotation. {1}
1299 #####
1301 ## The following are tokens which are non-terminals in the language. They should
1302 ## be named as JLS3 calls them when translated to the appropriate language.
1303 compiler.misc.token.identifier=\
1304 <identifier>
1306 compiler.misc.token.character=\
1307 <character>
1309 compiler.misc.token.string=\
1310 <string>
1312 compiler.misc.token.integer=\
1313 <integer>
1315 compiler.misc.token.long-integer=\
1316 <long integer>
1318 compiler.misc.token.float=\
1319 <float>
1321 compiler.misc.token.double=\
1322 <double>
1324 compiler.misc.token.bad-symbol=\
1325 <bad symbol>
1327 compiler.misc.token.end-of-input=\
1328 <end of input>
1330 ## The argument to the following string will always be one of the following:
1331 ## 1. one of the above non-terminals
1332 ## 2. a keyword (JLS1.8)
1333 ## 3. a boolean literal (JLS3.10.3)
1334 ## 4. the null literal (JLS3.10.7)
1335 ## 5. a Java separator (JLS3.11)
1336 ## 6. an operator (JLS3.12)
1337 ##
1338 ## This is the only place these tokens will be used.
1339 # 0: token
1340 compiler.err.expected=\
1341 {0} expected
1343 # 0: token, 1: token
1344 compiler.err.expected2=\
1345 {0} or {1} expected
1347 # 0: token, 1: token, 2: token
1348 compiler.err.expected3=\
1349 {0}, {1}, or {2} expected
1351 compiler.err.premature.eof=\
1352 reached end of file while parsing
1354 ## The following are related in form, but do not easily fit the above paradigm.
1355 compiler.err.dot.class.expected=\
1356 ''.class'' expected
1358 ## The argument to this string will always be either 'case' or 'default'.
1359 # 0: token
1360 compiler.err.orphaned=\
1361 orphaned {0}
1363 # 0: name
1364 compiler.misc.anonymous.class=\
1365 <anonymous {0}>
1367 # 0: name, 1: type
1368 compiler.misc.type.captureof=\
1369 capture#{0} of {1}
1371 compiler.misc.type.captureof.1=\
1372 capture#{0}
1374 compiler.misc.type.none=\
1375 <none>
1377 compiler.misc.unnamed.package=\
1378 unnamed package
1380 #####
1382 # 0: symbol, 1: message segment
1383 compiler.err.cant.access=\
1384 cannot access {0}\n\
1385 {1}
1387 compiler.misc.bad.class.file.header=\
1388 bad class file: {0}\n\
1389 {1}\n\
1390 Please remove or make sure it appears in the correct subdirectory of the classpath.
1392 # 0: file name, 1: message segment
1393 compiler.misc.bad.source.file.header=\
1394 bad source file: {0}\n\
1395 {1}\n\
1396 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1398 ## The following are all possible strings for the second argument ({1}) of the
1399 ## above strings.
1400 compiler.misc.bad.class.signature=\
1401 bad class signature: {0}
1403 compiler.misc.bad.enclosing.method=\
1404 bad enclosing method attribute: {0}
1406 compiler.misc.bad.runtime.invisible.param.annotations=\
1407 bad RuntimeInvisibleParameterAnnotations attribute: {0}
1409 compiler.misc.bad.const.pool.tag=\
1410 bad constant pool tag: {0}
1412 compiler.misc.bad.const.pool.tag.at=\
1413 bad constant pool tag: {0} at {1}
1415 compiler.misc.bad.signature=\
1416 bad signature: {0}
1418 compiler.misc.class.file.wrong.class=\
1419 class file contains wrong class: {0}
1421 compiler.misc.class.file.not.found=\
1422 class file for {0} not found
1424 # 0: name
1425 compiler.misc.file.doesnt.contain.class=\
1426 file does not contain class {0}
1428 compiler.misc.file.does.not.contain.package=\
1429 file does not contain package {0}
1431 compiler.misc.illegal.start.of.class.file=\
1432 illegal start of class file
1434 compiler.misc.unable.to.access.file=\
1435 unable to access file: {0}
1437 compiler.misc.unicode.str.not.supported=\
1438 unicode string in class file not supported
1440 compiler.misc.undecl.type.var=\
1441 undeclared type variable: {0}
1443 compiler.misc.wrong.version=\
1444 class file has wrong version {0}.{1}, should be {2}.{3}
1446 #####
1448 # 0: type, 1: type or symbol
1449 compiler.err.not.within.bounds=\
1450 type argument {0} is not within bounds of type-variable {1}
1452 ## The following are all possible strings for the second argument ({1}) of the
1453 ## above string.
1455 ## none yet...
1457 #####
1459 # 0: message segment, 1: type, 2: type
1460 compiler.err.prob.found.req=\
1461 {0}\n\
1462 required: {2}\n\
1463 found: {1}
1465 # 0: message segment, 1: type, 2: type
1466 compiler.warn.prob.found.req=\
1467 {0}\n\
1468 required: {2}\n\
1469 found: {1}
1471 compiler.err.prob.found.req.1=\
1472 {0} {3}\n\
1473 required: {2}\n\
1474 found: {1}
1476 ## The following are all possible strings for the first argument ({0}) of the
1477 ## above strings.
1478 compiler.misc.incompatible.types=\
1479 incompatible types
1481 # 0: message segment
1482 compiler.misc.incompatible.types.1=\
1483 incompatible types; {0}
1485 compiler.misc.inconvertible.types=\
1486 inconvertible types
1488 compiler.misc.possible.loss.of.precision=\
1489 possible loss of precision
1491 compiler.misc.unchecked.assign=\
1492 unchecked conversion
1494 # compiler.misc.storecheck=\
1495 # assignment might cause later store checks to fail
1496 # compiler.misc.unchecked=\
1497 # assigned array cannot dynamically check its stores
1498 compiler.misc.unchecked.cast.to.type=\
1499 unchecked cast
1501 compiler.misc.assignment.from.super-bound=\
1502 assignment from super-bound type {0}
1504 compiler.misc.assignment.to.extends-bound=\
1505 assignment to extends-bound type {0}
1507 # compiler.err.star.expected=\
1508 # ''*'' expected
1509 # compiler.err.no.elem.type=\
1510 # \[\*\] cannot have a type
1512 compiler.misc.try.not.applicable.to.type=\
1513 try-with-resources not applicable to variable type
1515 #####
1517 # 0: message segment or type, 1: message segment
1518 compiler.err.type.found.req=\
1519 unexpected type\n\
1520 required: {1}\n\
1521 found: {0}
1523 ## The following are all possible strings for the first argument ({0}) of the
1524 ## above string.
1525 compiler.misc.type.req.class=\
1526 class
1528 compiler.misc.type.req.class.array=\
1529 class or array
1531 compiler.misc.type.req.array.or.iterable=\
1532 array or java.lang.Iterable
1534 compiler.misc.type.req.ref=\
1535 reference
1537 compiler.misc.type.req.exact=\
1538 class or interface without bounds
1540 # 0: type
1541 compiler.misc.type.parameter=\
1542 type parameter {0}
1544 #####
1546 ## The following are all possible strings for the last argument of all those
1547 ## diagnostics whose key ends in ".1"
1548 compiler.misc.undetermined.type=\
1549 undetermined type
1551 compiler.misc.type.variable.has.undetermined.type=\
1552 type variable {0} has undetermined type
1554 # 0: type, 1: list of type
1555 compiler.misc.no.unique.maximal.instance.exists=\
1556 no unique maximal instance exists for type variable {0} with upper bounds {1}
1558 compiler.misc.no.unique.minimal.instance.exists=\
1559 no unique minimal instance exists for type variable {0} with lower bounds {1}
1561 # 0: list of type, 1: type, 2: type
1562 compiler.misc.infer.no.conforming.instance.exists=\
1563 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1565 # 0: list of type, 1: type, 2: type
1566 compiler.misc.infer.no.conforming.assignment.exists=\
1567 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1569 compiler.misc.infer.arg.length.mismatch=\
1570 cannot instantiate from arguments because actual and formal argument lists differ in length
1572 # 0: type, 1: list of type
1573 compiler.misc.inferred.do.not.conform.to.bounds=\
1574 inferred type does not conform to declared bound(s)\n\
1575 inferred: {0}\n\
1576 bound(s): {1}
1578 # 0: symbol
1579 compiler.misc.diamond=\
1580 {0}<>
1582 # 0: list of type, 1: message segment
1583 compiler.misc.diamond.invalid.arg=\
1584 type argument {0} inferred for {1} is not allowed in this context
1586 # 0: list of type, 1: message segment
1587 compiler.misc.diamond.invalid.args=\
1588 type arguments {0} inferred for {1} are not allowed in this context
1590 # 0: type, 1: list of type
1591 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1592 explicit type argument {0} does not conform to declared bound(s) {1}
1594 compiler.misc.arg.length.mismatch=\
1595 actual and formal argument lists differ in length
1597 # 0: type, 1: type
1598 compiler.misc.no.conforming.assignment.exists=\
1599 actual argument {0} cannot be converted to {1} by method invocation conversion
1601 # 0: type, 1: type
1602 compiler.misc.varargs.argument.mismatch=\
1603 argument type {0} does not conform to vararg element type {1}
1605 #####
1607 ## The first argument ({0}) is a "kindname".
1608 # 0: symbol kind, 1: symbol, 2: symbol
1609 compiler.err.abstract.cant.be.accessed.directly=\
1610 abstract {0} {1} in {2} cannot be accessed directly
1612 ## The first argument ({0}) is a "kindname".
1613 # 0: symbol kind, 1: symbol
1614 compiler.err.non-static.cant.be.ref=\
1615 non-static {0} {1} cannot be referenced from a static context
1617 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1618 ## of kindnames (the list should be identical to that provided in source.
1619 compiler.err.unexpected.type=\
1620 unexpected type\n\
1621 required: {0}\n\
1622 found: {1}
1624 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1625 ## The second argument {1} is the non-resolved symbol
1626 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1627 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1628 # 0: symbol kind, 1: name, 2: unused, 3: unused
1629 compiler.err.cant.resolve=\
1630 cannot find symbol\n\
1631 symbol: {0} {1}
1633 # 0: symbol kind, 1: name, 2: unused, 3: list of type
1634 compiler.err.cant.resolve.args=\
1635 cannot find symbol\n\
1636 symbol: {0} {1}({3})
1638 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
1639 compiler.err.cant.resolve.args.params=\
1640 cannot find symbol\n\
1641 symbol: {0} <{2}>{1}({3})
1643 ## arguments from {0} to {3} have the same meaning as above
1644 ## The fifth argument {4} is a location subdiagnostic (see below)
1645 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
1646 compiler.err.cant.resolve.location=\
1647 cannot find symbol\n\
1648 symbol: {0} {1}\n\
1649 location: {4}
1651 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1652 compiler.err.cant.resolve.location.args=\
1653 cannot find symbol\n\
1654 symbol: {0} {1}({3})\n\
1655 location: {4}
1657 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1658 compiler.err.cant.resolve.location.args.params=\
1659 cannot find symbol\n\
1660 symbol: {0} <{2}>{1}({3})\n\
1661 location: {4}
1663 ##a location subdiagnostic is composed as follows:
1664 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1665 ## The second argument {1} is the location name
1666 ## The third argument {2} is the location type (only when {1} is a variable name)
1668 # 0: symbol kind, 1: symbol, 2: unused
1669 compiler.misc.location=\
1670 {0} {1}
1672 # 0: symbol kind, 1: symbol, 2: type
1673 compiler.misc.location.1=\
1674 {0} {1} of type {2}
1676 ## The following are all possible string for "kindname".
1677 ## They should be called whatever the JLS calls them after it been translated
1678 ## to the appropriate language.
1679 # compiler.misc.kindname.constructor=\
1680 # static member
1681 compiler.misc.kindname.annotation=\
1682 @interface
1684 compiler.misc.kindname.constructor=\
1685 constructor
1687 compiler.misc.kindname.enum=\
1688 enum
1690 compiler.misc.kindname.interface=\
1691 interface
1693 compiler.misc.kindname.static=\
1694 static
1696 compiler.misc.kindname.type.variable=\
1697 type variable
1699 compiler.misc.kindname.type.variable.bound=\
1700 bound of type variable
1702 compiler.misc.kindname.variable=\
1703 variable
1705 compiler.misc.kindname.value=\
1706 value
1708 compiler.misc.kindname.method=\
1709 method
1711 compiler.misc.kindname.class=\
1712 class
1714 compiler.misc.kindname.package=\
1715 package
1717 #####
1719 compiler.misc.no.args=\
1720 no arguments
1722 # 0: message segment
1723 compiler.err.override.static=\
1724 {0}\n\
1725 overriding method is static
1727 # 0: message segment, 1: set of modifier
1728 compiler.err.override.meth=\
1729 {0}\n\
1730 overridden method is {1}
1732 # 0: message segment, 1: type
1733 compiler.err.override.meth.doesnt.throw=\
1734 {0}\n\
1735 overridden method does not throw {1}
1737 # In the following string {1} is a space separated list of Java Keywords, as
1738 # they would have been declared in the source code
1739 # 0: message segment, 1: set of modifier
1740 compiler.err.override.weaker.access=\
1741 {0}\n\
1742 attempting to assign weaker access privileges; was {1}
1744 # 0: message segment, 1: type, 2: type
1745 compiler.err.override.incompatible.ret=\
1746 {0}\n\
1747 return type {1} is not compatible with {2}
1749 # 0: message segment, 1: type, 2: type
1750 compiler.warn.override.unchecked.ret=\
1751 {0}\n\
1752 return type requires unchecked conversion from {1} to {2}
1754 # 0: message segment, 1: type
1755 compiler.warn.override.unchecked.thrown=\
1756 {0}\n\
1757 overridden method does not throw {1}
1759 ## The following are all possible strings for the first argument ({0}) of the
1760 ## above strings.
1761 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1762 compiler.misc.cant.override=\
1763 {0} in {1} cannot override {2} in {3}
1765 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1766 compiler.misc.cant.implement=\
1767 {0} in {1} cannot implement {2} in {3}
1769 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1770 compiler.misc.clashes.with=\
1771 {0} in {1} clashes with {2} in {3}
1773 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1774 compiler.misc.unchecked.override=\
1775 {0} in {1} overrides {2} in {3}
1777 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1778 compiler.misc.unchecked.implement=\
1779 {0} in {1} implements {2} in {3}
1781 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1782 compiler.misc.unchecked.clash.with=\
1783 {0} in {1} overrides {2} in {3}
1785 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1786 compiler.misc.varargs.override=\
1787 {0} in {1} overrides {2} in {3}
1789 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1790 compiler.misc.varargs.implement=\
1791 {0} in {1} implements {2} in {3}
1793 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1794 compiler.misc.varargs.clash.with=\
1795 {0} in {1} overrides {2} in {3}
1797 compiler.misc.non.denotable.type=\
1798 Non-denotable type {0} not allowed here
1800 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
1801 compiler.misc.inapplicable.method=\
1802 {0} {1}.{2} is not applicable\n\
1803 ({3})
1805 ########################################
1806 # Diagnostics for language feature changes
1807 ########################################
1808 # 0: string
1809 compiler.err.unsupported.fp.lit=\
1810 hexadecimal floating point literals are not supported in -source {0}\n\
1811 (use -source 5 or higher to enable hexadecimal floating point literals)
1813 # 0: string
1814 compiler.err.unsupported.binary.lit=\
1815 binary literals are not supported in -source {0}\n\
1816 (use -source 7 or higher to enable binary literals)
1818 # 0: string
1819 compiler.err.unsupported.underscore.lit=\
1820 underscores in literals are not supported in -source {0}\n\
1821 (use -source 7 or higher to enable underscores in literals)
1823 # 0: string
1824 compiler.err.try.with.resources.not.supported.in.source=\
1825 try-with-resources is not supported in -source {0}\n\
1826 (use -source 7 or higher to enable try-with-resources)
1828 compiler.warn.enum.as.identifier=\
1829 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1830 (use -source 5 or higher to use ''enum'' as a keyword)
1832 compiler.warn.assert.as.identifier=\
1833 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1834 (use -source 1.4 or higher to use ''assert'' as a keyword)
1836 compiler.err.enum.as.identifier=\
1837 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1838 (use -source 1.4 or lower to use ''enum'' as an identifier)
1840 compiler.err.assert.as.identifier=\
1841 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1842 (use -source 1.3 or lower to use ''assert'' as an identifier)
1844 # 0: string
1845 compiler.err.generics.not.supported.in.source=\
1846 generics are not supported in -source {0}\n\
1847 (use -source 5 or higher to enable generics)
1849 # 0: string
1850 compiler.err.varargs.not.supported.in.source=\
1851 variable-arity methods are not supported in -source {0}\n\
1852 (use -source 5 or higher to enable variable-arity methods)
1854 # 0: string
1855 compiler.err.annotations.not.supported.in.source=\
1856 annotations are not supported in -source {0}\n\
1857 (use -source 5 or higher to enable annotations)
1859 #308 compiler.err.type.annotations.not.supported.in.source=\
1860 #308 type annotations are not supported in -source {0}\n\
1861 #308 (use -source 7 or higher to enable type annotations)
1863 # 0: string
1864 compiler.err.foreach.not.supported.in.source=\
1865 for-each loops are not supported in -source {0}\n\
1866 (use -source 5 or higher to enable for-each loops)
1868 # 0: string
1869 compiler.err.static.import.not.supported.in.source=\
1870 static import declarations are not supported in -source {0}\n\
1871 (use -source 5 or higher to enable static import declarations)
1873 # 0: string
1874 compiler.err.enums.not.supported.in.source=\
1875 enums are not supported in -source {0}\n\
1876 (use -source 5 or higher to enable enums)
1878 # 0: string
1879 compiler.err.diamond.not.supported.in.source=\
1880 diamond operator is not supported in -source {0}\n\
1881 (use -source 7 or higher to enable diamond operator)
1883 # 0: string
1884 compiler.err.multicatch.not.supported.in.source=\
1885 multi-catch statement is not supported in -source {0}\n\
1886 (use -source 7 or higher to enable multi-catch statement)
1888 # 0: string
1889 compiler.err.string.switch.not.supported.in.source=\
1890 strings in switch are not supported in -source {0}\n\
1891 (use -source 7 or higher to enable strings in switch)
1893 ########################################
1894 # Diagnostics for where clause implementation
1895 # used by the RichDiagnosticFormatter.
1896 ########################################
1898 compiler.misc.type.null=\
1899 <null>
1901 # X#n (where n is an int id) is disambiguated tvar name
1902 # 0: name, 1: number
1903 compiler.misc.type.var=\
1904 {0}#{1}
1906 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1907 # 0: number
1908 compiler.misc.captured.type=\
1909 CAP#{0}
1911 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1912 # 0: number
1913 compiler.misc.intersection.type=\
1914 INT#{0}
1916 # where clause for captured type: contains upper ('extends {1}') and lower
1917 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1918 # 0: type, 1: type, 2: type, 3: type
1919 compiler.misc.where.captured=\
1920 {0} extends {1} super: {2} from capture of {3}
1922 # compact where clause for captured type: contains upper ('extends {1}') along
1923 # with the wildcard that generated this captured type ({3})
1924 # 0: type, 1: type, 2: unused, 3: type
1925 compiler.misc.where.captured.1=\
1926 {0} extends {1} from capture of {3}
1928 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1929 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1930 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
1931 compiler.misc.where.typevar=\
1932 {0} extends {1} declared in {2} {3}
1934 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1935 # in which the typevar has been declared
1936 compiler.misc.where.typevar.1=\
1937 {0} declared in {2} {3}
1939 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1940 # of this intersection type
1941 # 0: type, 1: list of type
1942 compiler.misc.where.intersection=\
1943 {0} extends {1}
1945 ### Where clause headers ###
1946 compiler.misc.where.description.captured=\
1947 where {0} is a fresh type-variable:
1949 # 0: set of type
1950 compiler.misc.where.description.typevar=\
1951 where {0} is a type-variable:
1953 # 0: set of type
1954 compiler.misc.where.description.intersection=\
1955 where {0} is an intersection type:
1957 # 0: set of type
1958 compiler.misc.where.description.captured.1=\
1959 where {0} are fresh type-variables:
1961 # 0: set of type
1962 compiler.misc.where.description.typevar.1=\
1963 where {0} are type-variables:
1965 compiler.misc.where.description.intersection.1=\
1966 where {0} are intersection types: