Wed, 15 Aug 2012 13:48:46 -0700
7191449: update copyright year to match last edit in jdk8 langtools repository
Reviewed-by: jjh
Contributed-by: steve.sides@oracle.com
1 #
2 # Copyright (c) 1999, 2012, 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 compiler.err.cant.apply.symbol=\
152 {0} {1} in {4} {5} cannot be applied to given types\n\
153 required: {2}\n\
154 found: {3}
156 # 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
157 compiler.err.cant.apply.symbol.1=\
158 {0} {1} in {4} {5} cannot be applied to given types;\n\
159 required: {2}\n\
160 found: {3}\n\
161 reason: {6}
163 # 0: symbol kind, 1: name, 2: list of type
164 compiler.err.cant.apply.symbols=\
165 no suitable {0} found for {1}({2})
167 # 0: symbol
168 compiler.err.cant.assign.val.to.final.var=\
169 cannot assign a value to final variable {0}
171 # 0: symbol, 1: message segment
172 compiler.err.cant.ref.non.effectively.final.var=\
173 local variables referenced from {1} must be final or effectively final
176 compiler.misc.inner.cls=\
177 an inner class
179 # 0: type
180 compiler.err.cant.deref=\
181 {0} cannot be dereferenced
183 compiler.err.cant.extend.intf.annotation=\
184 ''extends'' not allowed for @interfaces
186 # 0: symbol
187 compiler.err.cant.inherit.from.final=\
188 cannot inherit from final {0}
190 # 0: symbol
191 compiler.err.cant.ref.before.ctor.called=\
192 cannot reference {0} before supertype constructor has been called
194 compiler.err.cant.ret.val.from.meth.decl.void=\
195 cannot return a value from method whose result type is void
197 compiler.err.cant.select.static.class.from.param.type=\
198 cannot select a static class from a parameterized type
200 # 0: symbol, 1: string, 2: string
201 compiler.err.cant.inherit.diff.arg=\
202 {0} cannot be inherited with different arguments: <{1}> and <{2}>
204 compiler.err.catch.without.try=\
205 ''catch'' without ''try''
207 # 0: symbol kind, 1: symbol
208 compiler.err.clash.with.pkg.of.same.name=\
209 {0} {1} clashes with package of same name
211 compiler.err.class.not.allowed=\
212 class, interface or enum declaration not allowed here
214 compiler.err.const.expr.req=\
215 constant expression required
217 compiler.err.cont.outside.loop=\
218 continue outside of loop
220 # 0: symbol
221 compiler.err.cyclic.inheritance=\
222 cyclic inheritance involving {0}
224 compiler.err.cyclic.annotation.element=\
225 cyclic annotation element type
227 # 0: unused
228 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
229 call to super not allowed in enum constructor
231 # 0: type
232 compiler.err.no.superclass=\
233 {0} has no superclass
235 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
236 compiler.err.concrete.inheritance.conflict=\
237 methods {0} from {1} and {2} from {3} are inherited with the same signature
239 compiler.err.default.allowed.in.intf.annotation.member=\
240 default value only allowed in an @interface member
242 # 0: symbol
243 compiler.err.doesnt.exist=\
244 package {0} does not exist
246 compiler.err.duplicate.annotation=\
247 duplicate annotation
249 # 0: name, 1: type
250 compiler.err.duplicate.annotation.member.value=\
251 duplicate annotation member value {0} in {1}
253 # 0: name
254 compiler.err.duplicate.class=\
255 duplicate class: {0}
257 compiler.err.duplicate.case.label=\
258 duplicate case label
260 compiler.err.duplicate.default.label=\
261 duplicate default label
263 compiler.err.else.without.if=\
264 ''else'' without ''if''
266 compiler.err.empty.char.lit=\
267 empty character literal
269 # 0: symbol
270 compiler.err.encl.class.required=\
271 an enclosing instance that contains {0} is required
273 compiler.err.enum.annotation.must.be.enum.constant=\
274 an enum annotation value must be an enum constant
276 compiler.err.enum.cant.be.instantiated=\
277 enum types may not be instantiated
279 compiler.err.enum.label.must.be.unqualified.enum=\
280 an enum switch case label must be the unqualified name of an enumeration constant
282 compiler.err.enum.no.subclassing=\
283 classes cannot directly extend java.lang.Enum
285 compiler.err.enum.types.not.extensible=\
286 enum types are not extensible
288 compiler.err.enum.no.finalize=\
289 enums cannot have finalize methods
291 # 0: file name, 1: string
292 compiler.err.error.reading.file=\
293 error reading {0}; {1}
295 # 0: type
296 compiler.err.except.already.caught=\
297 exception {0} has already been caught
299 # 0: type
300 compiler.err.except.never.thrown.in.try=\
301 exception {0} is never thrown in body of corresponding try statement
303 # 0: symbol
304 compiler.err.final.parameter.may.not.be.assigned=\
305 final parameter {0} may not be assigned
307 # 0: symbol
308 compiler.err.try.resource.may.not.be.assigned=\
309 auto-closeable resource {0} may not be assigned
311 # 0: symbol
312 compiler.err.multicatch.parameter.may.not.be.assigned=\
313 multi-catch parameter {0} may not be assigned
315 # 0: type, 1: type
316 compiler.err.multicatch.types.must.be.disjoint=\
317 Alternatives in a multi-catch statement cannot be related by subclassing\n\
318 Alternative {0} is a subclass of alternative {1}
320 compiler.err.finally.without.try=\
321 ''finally'' without ''try''
323 # 0: type, 1: message segment
324 compiler.err.foreach.not.applicable.to.type=\
325 for-each not applicable to expression type\n\
326 required: {1}\n\
327 found: {0}
329 compiler.err.fp.number.too.large=\
330 floating point number too large
332 compiler.err.fp.number.too.small=\
333 floating point number too small
335 compiler.err.generic.array.creation=\
336 generic array creation
338 compiler.err.generic.throwable=\
339 a generic class may not extend java.lang.Throwable
341 # 0: symbol
342 compiler.err.icls.cant.have.static.decl=\
343 Illegal static declaration in inner class {0}\n\
344 modifier \''static\'' is only allowed in constant variable declarations
346 # 0: string
347 compiler.err.illegal.char=\
348 illegal character: \\{0}
350 compiler.err.illegal.char.for.encoding=\
351 unmappable character for encoding {0}
353 # 0: set of modifier, 1: set of modifier
354 compiler.err.illegal.combination.of.modifiers=\
355 illegal combination of modifiers: {0} and {1}
357 compiler.err.illegal.enum.static.ref=\
358 illegal reference to static field from initializer
360 compiler.err.illegal.esc.char=\
361 illegal escape character
363 compiler.err.illegal.forward.ref=\
364 illegal forward reference
366 # 0: symbol
367 compiler.warn.forward.ref=\
368 reference to variable ''{0}'' before it has been initialized
370 compiler.err.illegal.self.ref=\
371 self-reference in initializer
373 # 0: symbol
374 compiler.warn.self.ref=\
375 self-reference in initializer of variable ''{0}''
377 compiler.err.illegal.generic.type.for.instof=\
378 illegal generic type for instanceof
380 # 0: type
381 compiler.err.illegal.initializer.for.type=\
382 illegal initializer for {0}
384 compiler.err.illegal.line.end.in.char.lit=\
385 illegal line end in character literal
387 compiler.err.illegal.nonascii.digit=\
388 illegal non-ASCII digit
390 compiler.err.illegal.underscore=\
391 illegal underscore
393 compiler.err.illegal.dot=\
394 illegal ''.''
396 # 0: symbol
397 compiler.err.illegal.qual.not.icls=\
398 illegal qualifier; {0} is not an inner class
400 compiler.err.illegal.start.of.expr=\
401 illegal start of expression
403 compiler.err.illegal.start.of.stmt=\
404 illegal start of statement
406 compiler.err.illegal.start.of.type=\
407 illegal start of type
409 compiler.err.illegal.unicode.esc=\
410 illegal unicode escape
412 # 0: symbol
413 compiler.err.import.requires.canonical=\
414 import requires canonical name for {0}
416 compiler.err.improperly.formed.type.param.missing=\
417 improperly formed type, some parameters are missing
419 compiler.err.improperly.formed.type.inner.raw.param=\
420 improperly formed type, type arguments given on a raw type
422 # 0: type, 1: type
423 compiler.err.incomparable.types=\
424 incomparable types: {0} and {1}
426 # 0: number
427 compiler.err.int.number.too.large=\
428 integer number too large: {0}
430 compiler.err.intf.annotation.members.cant.have.params=\
431 @interface members may not have parameters
433 compiler.err.intf.annotation.cant.have.type.params=\
434 @interface may not have type parameters
436 compiler.err.intf.annotation.members.cant.have.type.params=\
437 @interface members may not have type parameters
439 # 0: symbol, 1: type
440 compiler.err.intf.annotation.member.clash=\
441 @interface member clashes with method ''{0}'' in {1}
443 compiler.err.intf.expected.here=\
444 interface expected here
446 compiler.err.intf.meth.cant.have.body=\
447 interface methods cannot have body
449 compiler.err.invalid.annotation.member.type=\
450 invalid type for annotation member
452 compiler.err.invalid.binary.number=\
453 binary numbers must contain at least one binary digit
455 compiler.err.invalid.hex.number=\
456 hexadecimal numbers must contain at least one hexadecimal digit
458 compiler.err.invalid.meth.decl.ret.type.req=\
459 invalid method declaration; return type required
461 compiler.err.varargs.and.old.array.syntax=\
462 legacy array notation not allowed on variable-arity parameter
464 compiler.err.variable.not.allowed=\
465 variable declaration not allowed here
467 # 0: name
468 compiler.err.label.already.in.use=\
469 label {0} already in use
471 # 0: symbol
472 compiler.err.local.var.accessed.from.icls.needs.final=\
473 local variable {0} is accessed from within inner class; needs to be declared final
475 compiler.err.local.enum=\
476 enum types must not be local
478 compiler.err.cannot.create.array.with.type.arguments=\
479 cannot create array with type arguments
481 compiler.err.cannot.create.array.with.diamond=\
482 cannot create array with ''<>''
484 #
485 # limits. We don't give the limits in the diagnostic because we expect
486 # them to change, yet we want to use the same diagnostic. These are all
487 # detected during code generation.
488 #
489 compiler.err.limit.code=\
490 code too large
492 compiler.err.limit.code.too.large.for.try.stmt=\
493 code too large for try statement
495 compiler.err.limit.dimensions=\
496 array type has too many dimensions
498 compiler.err.limit.locals=\
499 too many local variables
501 compiler.err.limit.parameters=\
502 too many parameters
504 compiler.err.limit.pool=\
505 too many constants
507 compiler.err.limit.pool.in.class=\
508 too many constants in class {0}
510 compiler.err.limit.stack=\
511 code requires too much stack
513 compiler.err.limit.string=\
514 constant string too long
516 compiler.err.limit.string.overflow=\
517 UTF8 representation for string \"{0}...\" is too long for the constant pool
519 compiler.err.malformed.fp.lit=\
520 malformed floating point literal
522 compiler.err.method.does.not.override.superclass=\
523 method does not override or implement a method from a supertype
525 compiler.err.missing.meth.body.or.decl.abstract=\
526 missing method body, or declare abstract
528 compiler.err.missing.ret.stmt=\
529 missing return statement
531 compiler.err.missing.ret.val=\
532 missing return value
534 # 0: set of modifier
535 compiler.err.mod.not.allowed.here=\
536 modifier {0} not allowed here
538 compiler.err.intf.not.allowed.here=\
539 interface not allowed here
541 compiler.err.enums.must.be.static=\
542 enum declarations allowed only in static contexts
544 # 0: symbol, 1: symbol
545 compiler.err.name.clash.same.erasure=\
546 name clash: {0} and {1} have the same erasure
548 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
549 compiler.err.name.clash.same.erasure.no.override=\
550 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
552 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
553 compiler.err.name.clash.same.erasure.no.override.1=\
554 name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
555 first method: {2} in {3}\n\
556 second method: {4} in {5}
558 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
559 compiler.err.name.clash.same.erasure.no.hide=\
560 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
562 compiler.err.name.reserved.for.internal.use=\
563 {0} is reserved for internal use
565 compiler.err.native.meth.cant.have.body=\
566 native methods cannot have a body
568 # 0: type, 1: type
569 compiler.err.neither.conditional.subtype=\
570 incompatible types for ?: neither is a subtype of the other\n\
571 second operand: {0}\n\
572 third operand : {1}
574 compiler.err.new.not.allowed.in.annotation=\
575 ''new'' not allowed in an annotation
577 compiler.err.no.annotation.member=\
578 no annotation member {0} in {1}
580 compiler.err.no.encl.instance.of.type.in.scope=\
581 no enclosing instance of type {0} is in scope
583 compiler.err.no.intf.expected.here=\
584 no interface expected here
586 compiler.err.no.match.entry=\
587 {0} has no match in entry in {1}; required {2}
589 compiler.err.not.annotation.type=\
590 {0} is not an annotation type
592 # 0: symbol, 1: symbol
593 compiler.err.not.def.access.class.intf.cant.access=\
594 {0} in {1} is defined in an inaccessible class or interface
596 # 0: symbol, 1: symbol
597 compiler.err.not.def.public.cant.access=\
598 {0} is not public in {1}; cannot be accessed from outside package
600 # 0: name
601 compiler.err.not.loop.label=\
602 not a loop label: {0}
604 compiler.err.not.stmt=\
605 not a statement
607 # 0: symbol
608 compiler.err.not.encl.class=\
609 not an enclosing class: {0}
611 # 0: name, 1: type, 2: unused
612 compiler.err.operator.cant.be.applied=\
613 bad operand type {1} for unary operator ''{0}''
615 # 0: name, 1: type, 2: type
616 compiler.err.operator.cant.be.applied.1=\
617 bad operand types for binary operator ''{0}''\n\
618 first type: {1}\n\
619 second type: {2}
621 compiler.err.pkg.annotations.sb.in.package-info.java=\
622 package annotations should be in file package-info.java
624 # 0: symbol
625 compiler.err.pkg.clashes.with.class.of.same.name=\
626 package {0} clashes with class of same name
628 compiler.err.warnings.and.werror=\
629 warnings found and -Werror specified
631 # Errors related to annotation processing
633 # 0: symbol, 1: string, 2: stack-trace
634 compiler.err.proc.cant.access=\
635 cannot access {0}\n\
636 {1}\n\
637 Consult the following stack trace for details.\n\
638 {2}
640 # 0: symbol, 1: string
641 compiler.err.proc.cant.access.1=\
642 cannot access {0}\n\
643 {1}
645 # 0: string
646 compiler.err.proc.cant.find.class=\
647 Could not find class file for ''{0}''.
649 # Print a client-generated error message; assumed to be localized, no translation required
650 # 0: string
651 compiler.err.proc.messager=\
652 {0}
654 # 0: list of string
655 compiler.err.proc.no.explicit.annotation.processing.requested=\
656 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
658 compiler.err.proc.no.service=\
659 A ServiceLoader was not usable and is required for annotation processing.
661 compiler.err.proc.processor.bad.option.name=\
662 Bad option name ''{0}'' provided by processor ''{1}''
664 # 0: string
665 compiler.err.proc.processor.cant.instantiate=\
666 Could not instantiate an instance of processor ''{0}''
668 # 0: string
669 compiler.err.proc.processor.not.found=\
670 Annotation processor ''{0}'' not found
672 # 0: string
673 compiler.err.proc.processor.wrong.type=\
674 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
676 compiler.err.proc.service.problem=\
677 Error creating a service loader to load Processors.
679 compiler.err.proc.bad.config.file=\
680 Bad service configuration file, or exception thrown while constructing Processor object: {0}
682 compiler.err.proc.cant.create.loader=\
683 Could not create class loader for annotation processors: {0}
685 # 0: unused
686 compiler.err.qualified.new.of.static.class=\
687 qualified new of static class
689 compiler.err.recursive.ctor.invocation=\
690 recursive constructor invocation
692 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
693 compiler.err.ref.ambiguous=\
694 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
696 compiler.err.repeated.annotation.target=\
697 repeated annotation target
699 compiler.err.repeated.interface=\
700 repeated interface
702 compiler.err.repeated.modifier=\
703 repeated modifier
705 # 0: symbol, 1: set of modifier, 2: symbol
706 compiler.err.report.access=\
707 {0} has {1} access in {2}
709 compiler.err.ret.outside.meth=\
710 return outside method
712 compiler.err.signature.doesnt.match.supertype=\
713 signature does not match {0}; incompatible supertype
715 compiler.err.signature.doesnt.match.intf=\
716 signature does not match {0}; incompatible interfaces
718 # 0: symbol, 1: symbol, 2: symbol
719 compiler.err.does.not.override.abstract=\
720 {0} is not abstract and does not override abstract method {1} in {2}
722 compiler.err.source.cant.overwrite.input.file=\
723 error writing source; cannot overwrite input file {0}
725 compiler.err.stack.sim.error=\
726 Internal error: stack sim error on {0}
728 compiler.err.static.imp.only.classes.and.interfaces=\
729 static import only from classes and interfaces
731 compiler.err.string.const.req=\
732 constant string expression required
734 # 0: symbol, 1: symbol
735 compiler.err.synthetic.name.conflict=\
736 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
738 # 0: symbol, 1: symbol
739 compiler.warn.synthetic.name.conflict=\
740 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
742 compiler.err.throws.not.allowed.in.intf.annotation=\
743 throws clause not allowed in @interface members
745 compiler.err.try.without.catch.or.finally=\
746 ''try'' without ''catch'' or ''finally''
748 compiler.err.try.without.catch.finally.or.resource.decls=\
749 ''try'' without ''catch'', ''finally'' or resource declarations
751 # 0: symbol
752 compiler.err.type.doesnt.take.params=\
753 type {0} does not take parameters
755 compiler.err.type.var.cant.be.deref=\
756 cannot select from a type variable
758 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
759 a type variable may not be followed by other bounds
761 compiler.err.type.var.more.than.once=\
762 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
764 compiler.err.type.var.more.than.once.in.result=\
765 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
767 # 0: type, 1: type, 2: string
768 compiler.err.types.incompatible.diff.ret=\
769 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
771 compiler.err.unclosed.char.lit=\
772 unclosed character literal
774 compiler.err.unclosed.comment=\
775 unclosed comment
777 compiler.err.unclosed.str.lit=\
778 unclosed string literal
780 # 0: name
781 compiler.err.unsupported.encoding=\
782 unsupported encoding: {0}
784 compiler.err.io.exception=\
785 error reading source file: {0}
787 # 0: name
788 compiler.err.undef.label=\
789 undefined label: {0}
791 # 0: message segment, 1: unused
792 compiler.err.cant.apply.diamond=\
793 cannot infer type arguments for {0}
795 # 0: message segment or type, 1: message segment
796 compiler.err.cant.apply.diamond.1=\
797 cannot infer type arguments for {0}\n\
798 reason: {1}
800 # 0: message segment or type, 1: message segment
801 compiler.misc.cant.apply.diamond.1=\
802 cannot infer type arguments for {0}\n\
803 reason: {1}
805 compiler.err.unreachable.stmt=\
806 unreachable statement
808 compiler.err.initializer.must.be.able.to.complete.normally=\
809 initializer must be able to complete normally
811 # 0: type
812 compiler.err.unreported.exception.need.to.catch.or.throw=\
813 unreported exception {0}; must be caught or declared to be thrown
815 # 0: type
816 compiler.err.unreported.exception.default.constructor=\
817 unreported exception {0} in default constructor
819 # 0: type, 1: name
820 compiler.err.unreported.exception.implicit.close=\
821 unreported exception {0}; must be caught or declared to be thrown\n\
822 exception thrown from implicit call to close() on resource variable ''{1}''
824 compiler.err.unsupported.cross.fp.lit=\
825 hexadecimal floating-point literals are not supported on this VM
827 compiler.err.void.not.allowed.here=\
828 ''void'' type not allowed here
830 # 0: string
831 compiler.err.wrong.number.type.args=\
832 wrong number of type arguments; required {0}
834 # 0: symbol
835 compiler.err.var.might.already.be.assigned=\
836 variable {0} might already have been assigned
838 # 0: symbol
839 compiler.err.var.might.not.have.been.initialized=\
840 variable {0} might not have been initialized
842 # 0: symbol
843 compiler.err.var.might.be.assigned.in.loop=\
844 variable {0} might be assigned in loop
846 # 0: symbol, 1: message segment
847 compiler.err.varargs.invalid.trustme.anno=\
848 Invalid {0} annotation. {1}
850 # 0: type
851 compiler.misc.varargs.trustme.on.reifiable.varargs=\
852 Varargs element type {0} is reifiable.
854 # 0: symbol
855 compiler.misc.varargs.trustme.on.non.varargs.meth=\
856 Method {0} is not a varargs method.
858 # 0: symbol
859 compiler.misc.varargs.trustme.on.virtual.varargs=\
860 Instance method {0} is not final.
862 # 0: type, 1: symbol kind, 2: symbol
863 compiler.misc.inaccessible.varargs.type=\
864 formal varargs element type {0} is not accessible from {1} {2}
866 # In the following string, {1} will always be the detail message from
867 # java.io.IOException.
868 # 0: symbol, 1: string
869 compiler.err.class.cant.write=\
870 error while writing {0}: {1}
872 # In the following string, {0} is the name of the class in the Java source.
873 # It really should be used two times..
874 # 0: name
875 compiler.err.class.public.should.be.in.file=\
876 class {0} is public, should be declared in a file named {0}.java
878 ## All errors which do not refer to a particular line in the source code are
879 ## preceded by this string.
880 compiler.err.error=\
881 error:\u0020
883 # The following error messages do not refer to a line in the source code.
884 compiler.err.cant.read.file=\
885 cannot read: {0}
887 #####
889 # Fatal Errors
891 compiler.misc.fatal.err.no.java.lang=\
892 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
894 compiler.misc.fatal.err.cant.locate.meth=\
895 Fatal Error: Unable to find method {0}
897 compiler.misc.fatal.err.cant.locate.field=\
898 Fatal Error: Unable to find field {0}
900 compiler.misc.fatal.err.cant.locate.ctor=\
901 Fatal Error: Unable to find constructor for {0}
903 compiler.misc.fatal.err.cant.close=\
904 Fatal Error: Cannot close compiler resources
906 #####
908 ##
909 ## miscellaneous strings
910 ##
912 compiler.misc.source.unavailable=\
913 (source unavailable)
915 compiler.misc.base.membership=\
916 all your base class are belong to us
918 # 0: string, 1: string, 2: boolean
919 compiler.misc.x.print.processor.info=\
920 Processor {0} matches {1} and returns {2}.
922 # 0: number, 1: string, 2: set of symbol, 3: boolean
923 compiler.misc.x.print.rounds=\
924 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
926 #####
928 ## The following string will appear before all messages keyed as:
929 ## "compiler.note".
930 compiler.note.note=\
931 Note:\u0020
933 # 0: file name
934 compiler.note.deprecated.filename=\
935 {0} uses or overrides a deprecated API.
937 compiler.note.deprecated.plural=\
938 Some input files use or override a deprecated API.
940 # The following string may appear after one of the above deprecation
941 # messages.
942 compiler.note.deprecated.recompile=\
943 Recompile with -Xlint:deprecation for details.
945 # 0: file name
946 compiler.note.deprecated.filename.additional=\
947 {0} has additional uses or overrides of a deprecated API.
949 compiler.note.deprecated.plural.additional=\
950 Some input files additionally use or override a deprecated API.
952 # 0: file name
953 compiler.note.unchecked.filename=\
954 {0} uses unchecked or unsafe operations.
956 compiler.note.unchecked.plural=\
957 Some input files use unchecked or unsafe operations.
959 # The following string may appear after one of the above deprecation
960 # messages.
961 compiler.note.unchecked.recompile=\
962 Recompile with -Xlint:unchecked for details.
964 # 0: file name
965 compiler.note.unchecked.filename.additional=\
966 {0} has additional unchecked or unsafe operations.
968 compiler.note.unchecked.plural.additional=\
969 Some input files additionally use unchecked or unsafe operations.
971 # 0: file name
972 compiler.note.sunapi.filename=\
973 {0} uses internal proprietary API that may be removed in a future release.
975 compiler.note.sunapi.plural=\
976 Some input files use internal proprietary API that may be removed in a future release.
978 # The following string may appear after one of the above sunapi messages.
979 compiler.note.sunapi.recompile=\
980 Recompile with -Xlint:sunapi for details.
982 # 0: file name
983 compiler.note.sunapi.filename.additional=\
984 {0} uses additional internal proprietary API that may be removed in a future release.
986 compiler.note.sunapi.plural.additional=\
987 Some input files additionally use internal proprietary API that may be removed in a future release.
989 # Notes related to annotation processing
991 # Print a client-generated note; assumed to be localized, no translation required
992 # 0: string
993 compiler.note.proc.messager=\
994 {0}
996 #####
998 # 0: number
999 compiler.misc.count.error=\
1000 {0} error
1002 # 0: number
1003 compiler.misc.count.error.plural=\
1004 {0} errors
1006 # 0: number
1007 compiler.misc.count.warn=\
1008 {0} warning
1010 # 0: number
1011 compiler.misc.count.warn.plural=\
1012 {0} warnings
1014 compiler.misc.version.not.available=\
1015 (version info not available)
1017 ## extra output when using -verbose (JavaCompiler)
1019 # 0: symbol
1020 compiler.misc.verbose.checking.attribution=\
1021 [checking {0}]
1023 # 0: string
1024 compiler.misc.verbose.parsing.done=\
1025 [parsing completed {0}ms]
1027 # 0: file name
1028 compiler.misc.verbose.parsing.started=\
1029 [parsing started {0}]
1031 # 0: string
1032 compiler.misc.verbose.total=\
1033 [total {0}ms]
1035 # 0: file name
1036 compiler.misc.verbose.wrote.file=\
1037 [wrote {0}]
1039 ## extra output when using -verbose (Retro)
1040 compiler.misc.verbose.retro=\
1041 [retrofitting {0}]
1043 compiler.misc.verbose.retro.with=\
1044 \tretrofitting {0} with {1}
1046 compiler.misc.verbose.retro.with.list=\
1047 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1049 ## extra output when using -verbose (code/ClassReader)
1050 # 0: string
1051 compiler.misc.verbose.loading=\
1052 [loading {0}]
1054 # 0: string
1055 compiler.misc.verbose.sourcepath=\
1056 [search path for source files: {0}]
1058 # 0: string
1059 compiler.misc.verbose.classpath=\
1060 [search path for class files: {0}]
1062 ## extra output when using -checkclassfile (code/ClassReader)
1063 compiler.misc.ccf.found.later.version=\
1064 class file has later version than expected: {0}
1066 compiler.misc.ccf.unrecognized.attribute=\
1067 unrecognized attribute: {0}
1069 ## extra output when using -prompt (util/Log)
1070 compiler.misc.resume.abort=\
1071 R)esume, A)bort>
1073 #####
1075 ##
1076 ## warnings
1077 ##
1079 ## All warning messages are preceded by the following string.
1080 compiler.warn.warning=\
1081 warning:\u0020
1083 ## Warning messages may also include the following prefix to identify a
1084 ## lint option
1085 # 0: option name
1086 compiler.warn.lintOption=\
1087 [{0}]\u0020
1089 # 0: symbol
1090 compiler.warn.constant.SVUID=\
1091 serialVersionUID must be constant in class {0}
1093 # 0: file name
1094 compiler.warn.dir.path.element.not.found=\
1095 bad path element "{0}": no such directory
1097 compiler.warn.finally.cannot.complete=\
1098 finally clause cannot complete normally
1100 # 0: symbol, 1: symbol
1101 compiler.warn.has.been.deprecated=\
1102 {0} in {1} has been deprecated
1104 # 0: symbol
1105 compiler.warn.sun.proprietary=\
1106 {0} is internal proprietary API and may be removed in a future release
1108 compiler.warn.illegal.char.for.encoding=\
1109 unmappable character for encoding {0}
1111 # 0: symbol
1112 compiler.warn.improper.SVUID=\
1113 serialVersionUID must be declared static final in class {0}
1115 # 0: type, 1: type
1116 compiler.warn.inexact.non-varargs.call=\
1117 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1118 cast to {0} for a varargs call\n\
1119 cast to {1} for a non-varargs call and to suppress this warning
1121 # 0: list of type
1122 compiler.warn.unreachable.catch=\
1123 unreachable catch clause\n\
1124 thrown type {0} has already been caught
1126 # 0: list of type
1127 compiler.warn.unreachable.catch.1=\
1128 unreachable catch clause\n\
1129 thrown types {0} have already been caught
1131 # 0: symbol
1132 compiler.warn.long.SVUID=\
1133 serialVersionUID must be of type long in class {0}
1135 # 0: symbol
1136 compiler.warn.missing.SVUID=\
1137 serializable class {0} has no definition of serialVersionUID
1139 # 0: message segment
1140 compiler.warn.override.varargs.missing=\
1141 {0}; overridden method has no ''...''
1143 # 0: message segment
1144 compiler.warn.override.varargs.extra=\
1145 {0}; overriding method is missing ''...''
1147 compiler.warn.override.bridge=\
1148 {0}; overridden method is a bridge method
1150 # 0: symbol
1151 compiler.warn.pkg-info.already.seen=\
1152 a package-info.java file has already been seen for package {0}
1154 # 0: file name
1155 compiler.warn.path.element.not.found=\
1156 bad path element "{0}": no such file or directory
1158 compiler.warn.possible.fall-through.into.case=\
1159 possible fall-through into case
1161 # 0: type
1162 compiler.warn.redundant.cast=\
1163 redundant cast to {0}
1165 # 0: number
1166 compiler.warn.position.overflow=\
1167 Position encoding overflows at line {0}
1169 # 0: file name, 1: number, 2: number
1170 compiler.warn.big.major.version=\
1171 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1172 It is recommended that the compiler be upgraded.
1174 # 0: symbol kind, 1: symbol
1175 compiler.warn.static.not.qualified.by.type=\
1176 static {0} should be qualified by type name, {1}, instead of by an expression
1178 # 0: string
1179 compiler.warn.source.no.bootclasspath=\
1180 bootstrap class path not set in conjunction with -source {0}
1182 # 0: name, 1: number, 2: number, 3: number, 4: number
1183 compiler.warn.future.attr=\
1184 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1186 # Warnings related to annotation processing
1187 # 0: name
1188 compiler.warn.proc.package.does.not.exist=\
1189 package {0} does not exist
1191 # 0: name
1192 compiler.warn.proc.file.reopening=\
1193 Attempt to create a file for ''{0}'' multiple times
1195 # 0: name
1196 compiler.warn.proc.type.already.exists=\
1197 A file for type ''{0}'' already exists on the sourcepath or classpath
1199 # 0: name
1200 compiler.warn.proc.type.recreate=\
1201 Attempt to create a file for type ''{0}'' multiple times
1203 # 0: string
1204 compiler.warn.proc.illegal.file.name=\
1205 Cannot create file for illegal name ''{0}''.
1207 # 0: string, 1: string
1208 compiler.warn.proc.suspicious.class.name=\
1209 Creating file for a type whose name ends in {1}: ''{0}''
1211 # 0: name
1212 compiler.warn.proc.file.create.last.round=\
1213 File for type ''{0}'' created in the last round will not be subject to annotation processing.
1215 # 0: string, 1: string
1216 compiler.warn.proc.malformed.supported.string=\
1217 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1219 # 0: set of string
1220 compiler.warn.proc.annotations.without.processors=\
1221 No processor claimed any of these annotations: {0}
1223 # 0: source version, 1: string, 2: string
1224 compiler.warn.proc.processor.incompatible.source.version=\
1225 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1227 compiler.warn.proc.proc-only.requested.no.procs=\
1228 Annotation processing without compilation requested but no processors were found.
1230 compiler.warn.proc.use.implicit=\
1231 Implicitly compiled files were not subject to annotation processing.\n\
1232 Use -implicit to specify a policy for implicit compilation.
1234 compiler.warn.proc.use.proc.or.implicit=\
1235 Implicitly compiled files were not subject to annotation processing.\n\
1236 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1238 # Print a client-generated warning; assumed to be localized, no translation required
1239 # 0: string
1240 compiler.warn.proc.messager=\
1241 {0}
1243 # 0: set of name
1244 compiler.warn.proc.unclosed.type.files=\
1245 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1247 # 0: string
1248 compiler.warn.proc.unmatched.processor.options=\
1249 The following options were not recognized by any processor: ''{0}''
1251 compiler.warn.try.explicit.close.call=\
1252 explicit call to close() on an auto-closeable resource
1254 # 0: symbol
1255 compiler.warn.try.resource.not.referenced=\
1256 auto-closeable resource {0} is never referenced in body of corresponding try statement
1258 # 0: type
1259 compiler.warn.try.resource.throws.interrupted.exc=\
1260 auto-closeable resource {0} has a member method close() that could throw InterruptedException
1262 compiler.warn.unchecked.assign=\
1263 unchecked assignment: {0} to {1}
1265 # 0: symbol, 1: type
1266 compiler.warn.unchecked.assign.to.var=\
1267 unchecked assignment to variable {0} as member of raw type {1}
1269 # 0: symbol, 1: type
1270 compiler.warn.unchecked.call.mbr.of.raw.type=\
1271 unchecked call to {0} as a member of the raw type {1}
1273 compiler.warn.unchecked.cast.to.type=\
1274 unchecked cast to type {0}
1276 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1277 compiler.warn.unchecked.meth.invocation.applied=\
1278 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1279 required: {2}\n\
1280 found: {3}
1282 # 0: type
1283 compiler.warn.unchecked.generic.array.creation=\
1284 unchecked generic array creation for varargs parameter of type {0}
1286 # 0: type
1287 compiler.warn.unchecked.varargs.non.reifiable.type=\
1288 Possible heap pollution from parameterized vararg type {0}
1290 # 0: symbol
1291 compiler.warn.varargs.unsafe.use.varargs.param=\
1292 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1294 compiler.warn.missing.deprecated.annotation=\
1295 deprecated item is not annotated with @Deprecated
1297 compiler.warn.invalid.archive.file=\
1298 Unexpected file on path: {0}
1300 compiler.warn.unexpected.archive.file=\
1301 Unexpected extension for archive file: {0}
1303 compiler.warn.div.zero=\
1304 division by zero
1306 compiler.warn.empty.if=\
1307 empty statement after if
1309 compiler.warn.annotation.method.not.found=\
1310 Cannot find annotation method ''{1}()'' in type ''{0}''
1312 compiler.warn.annotation.method.not.found.reason=\
1313 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1315 # 0: symbol, 1: name
1316 compiler.warn.unknown.enum.constant=\
1317 unknown enum constant {1}.{2}
1319 # 0: symbol, 1: name, 2: message segment
1320 compiler.warn.unknown.enum.constant.reason=\
1321 unknown enum constant {1}.{2}\n\
1322 reason: {3}
1324 # 0: type, 1: type
1325 compiler.warn.raw.class.use=\
1326 found raw type: {0}\n\
1327 missing type arguments for generic class {1}
1329 # 0: unused, 1: unused
1330 compiler.warn.diamond.redundant.args=\
1331 redundant type arguments in new expression (use diamond operator instead).
1333 # 0: type, 1: type
1334 compiler.warn.diamond.redundant.args.1=\
1335 redundant type arguments in new expression (use diamond operator instead).\n\
1336 explicit: {0}\n\
1337 inferred: {1}
1339 # 0: symbol, 1: message segment
1340 compiler.warn.varargs.redundant.trustme.anno=\
1341 Redundant {0} annotation. {1}
1343 #####
1345 ## The following are tokens which are non-terminals in the language. They should
1346 ## be named as JLS3 calls them when translated to the appropriate language.
1347 compiler.misc.token.identifier=\
1348 <identifier>
1350 compiler.misc.token.character=\
1351 <character>
1353 compiler.misc.token.string=\
1354 <string>
1356 compiler.misc.token.integer=\
1357 <integer>
1359 compiler.misc.token.long-integer=\
1360 <long integer>
1362 compiler.misc.token.float=\
1363 <float>
1365 compiler.misc.token.double=\
1366 <double>
1368 compiler.misc.token.bad-symbol=\
1369 <bad symbol>
1371 compiler.misc.token.end-of-input=\
1372 <end of input>
1374 ## The argument to the following string will always be one of the following:
1375 ## 1. one of the above non-terminals
1376 ## 2. a keyword (JLS1.8)
1377 ## 3. a boolean literal (JLS3.10.3)
1378 ## 4. the null literal (JLS3.10.7)
1379 ## 5. a Java separator (JLS3.11)
1380 ## 6. an operator (JLS3.12)
1381 ##
1382 ## This is the only place these tokens will be used.
1383 # 0: token
1384 compiler.err.expected=\
1385 {0} expected
1387 # 0: token, 1: token
1388 compiler.err.expected2=\
1389 {0} or {1} expected
1391 # 0: token, 1: token, 2: token
1392 compiler.err.expected3=\
1393 {0}, {1}, or {2} expected
1395 compiler.err.premature.eof=\
1396 reached end of file while parsing
1398 ## The following are related in form, but do not easily fit the above paradigm.
1399 compiler.err.dot.class.expected=\
1400 ''.class'' expected
1402 ## The argument to this string will always be either 'case' or 'default'.
1403 # 0: token
1404 compiler.err.orphaned=\
1405 orphaned {0}
1407 # 0: name
1408 compiler.misc.anonymous.class=\
1409 <anonymous {0}>
1411 # 0: name, 1: type
1412 compiler.misc.type.captureof=\
1413 capture#{0} of {1}
1415 compiler.misc.type.captureof.1=\
1416 capture#{0}
1418 compiler.misc.type.none=\
1419 <none>
1421 compiler.misc.unnamed.package=\
1422 unnamed package
1424 #####
1426 # 0: symbol, 1: message segment
1427 compiler.err.cant.access=\
1428 cannot access {0}\n\
1429 {1}
1431 compiler.misc.bad.class.file.header=\
1432 bad class file: {0}\n\
1433 {1}\n\
1434 Please remove or make sure it appears in the correct subdirectory of the classpath.
1436 # 0: file name, 1: message segment
1437 compiler.misc.bad.source.file.header=\
1438 bad source file: {0}\n\
1439 {1}\n\
1440 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1442 ## The following are all possible strings for the second argument ({1}) of the
1443 ## above strings.
1444 compiler.misc.bad.class.signature=\
1445 bad class signature: {0}
1447 #0: symbol, 1: symbol
1448 compiler.misc.bad.enclosing.class=\
1449 bad enclosing class for {0}: {1}
1451 # 0: symbol
1452 compiler.misc.bad.enclosing.method=\
1453 bad enclosing method attribute for class {0}
1455 compiler.misc.bad.runtime.invisible.param.annotations=\
1456 bad RuntimeInvisibleParameterAnnotations attribute: {0}
1458 compiler.misc.bad.const.pool.tag=\
1459 bad constant pool tag: {0}
1461 compiler.misc.bad.const.pool.tag.at=\
1462 bad constant pool tag: {0} at {1}
1464 compiler.misc.bad.signature=\
1465 bad signature: {0}
1467 compiler.misc.class.file.wrong.class=\
1468 class file contains wrong class: {0}
1470 compiler.misc.class.file.not.found=\
1471 class file for {0} not found
1473 # 0: name
1474 compiler.misc.file.doesnt.contain.class=\
1475 file does not contain class {0}
1477 compiler.misc.file.does.not.contain.package=\
1478 file does not contain package {0}
1480 compiler.misc.illegal.start.of.class.file=\
1481 illegal start of class file
1483 compiler.misc.unable.to.access.file=\
1484 unable to access file: {0}
1486 compiler.misc.unicode.str.not.supported=\
1487 unicode string in class file not supported
1489 compiler.misc.undecl.type.var=\
1490 undeclared type variable: {0}
1492 compiler.misc.wrong.version=\
1493 class file has wrong version {0}.{1}, should be {2}.{3}
1495 #####
1497 # 0: type, 1: type or symbol
1498 compiler.err.not.within.bounds=\
1499 type argument {0} is not within bounds of type-variable {1}
1501 ## The following are all possible strings for the second argument ({1}) of the
1502 ## above string.
1504 ## none yet...
1506 #####
1508 # 0: message segment
1509 compiler.err.prob.found.req=\
1510 incompatible types: {0}
1512 # 0: message segment, 1: type, 2: type
1513 compiler.warn.prob.found.req=\
1514 {0}\n\
1515 required: {2}\n\
1516 found: {1}
1518 # 0: type, 1: type
1519 compiler.misc.inconvertible.types=\
1520 {0} cannot be converted to {1}
1522 # 0: type, 1: type
1523 compiler.misc.possible.loss.of.precision=\
1524 possible lossy conversion from {0} to {1}
1526 compiler.misc.unchecked.assign=\
1527 unchecked conversion
1529 # compiler.misc.storecheck=\
1530 # assignment might cause later store checks to fail
1531 # compiler.misc.unchecked=\
1532 # assigned array cannot dynamically check its stores
1533 compiler.misc.unchecked.cast.to.type=\
1534 unchecked cast
1536 # compiler.err.star.expected=\
1537 # ''*'' expected
1538 # compiler.err.no.elem.type=\
1539 # \[\*\] cannot have a type
1541 # 0: type
1542 compiler.misc.try.not.applicable.to.type=\
1543 try-with-resources not applicable to variable type\n\
1544 ({0})
1546 #####
1548 # 0: message segment or type, 1: message segment
1549 compiler.err.type.found.req=\
1550 unexpected type\n\
1551 required: {1}\n\
1552 found: {0}
1554 ## The following are all possible strings for the first argument ({0}) of the
1555 ## above string.
1556 compiler.misc.type.req.class=\
1557 class
1559 compiler.misc.type.req.class.array=\
1560 class or array
1562 compiler.misc.type.req.array.or.iterable=\
1563 array or java.lang.Iterable
1565 compiler.misc.type.req.ref=\
1566 reference
1568 compiler.misc.type.req.exact=\
1569 class or interface without bounds
1571 # 0: type
1572 compiler.misc.type.parameter=\
1573 type parameter {0}
1575 #####
1577 ## The following are all possible strings for the last argument of all those
1578 ## diagnostics whose key ends in ".1"
1580 # 0: type, 1: list of type
1581 compiler.misc.no.unique.maximal.instance.exists=\
1582 no unique maximal instance exists for type variable {0} with upper bounds {1}
1584 compiler.misc.no.unique.minimal.instance.exists=\
1585 no unique minimal instance exists for type variable {0} with lower bounds {1}
1587 # 0: type, 1: list of type
1588 compiler.misc.incompatible.upper.bounds=\
1589 inference variable {0} has incompatible upper bounds {1}
1591 # 0: list of type, 1: type, 2: type
1592 compiler.misc.infer.no.conforming.instance.exists=\
1593 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1595 # 0: list of type, 1: message segment
1596 compiler.misc.infer.no.conforming.assignment.exists=\
1597 cannot infer type-variable(s) {0}\n\
1598 (argument mismatch; {1})
1600 # 0: list of type
1601 compiler.misc.infer.arg.length.mismatch=\
1602 cannot infer type-variable(s) {0}\n\
1603 (actual and formal argument lists differ in length)
1605 # 0: list of type, 1: message segment
1606 compiler.misc.infer.varargs.argument.mismatch=\
1607 cannot infer type-variable(s) {0}\n\
1608 (varargs mismatch; {1})
1610 # 0: type, 1: list of type
1611 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
1612 inferred type does not conform to upper bound(s)\n\
1613 inferred: {0}\n\
1614 upper bound(s): {1}
1616 # 0: type, 1: list of type
1617 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
1618 inferred type does not conform to lower bound(s)\n\
1619 inferred: {0}\n\
1620 lower bound(s): {1}
1622 # 0: type, 1: list of type
1623 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
1624 inferred type does not conform to equality constraint(s)\n\
1625 inferred: {0}\n\
1626 equality constraints(s): {1}
1628 # 0: symbol
1629 compiler.misc.diamond=\
1630 {0}<>
1632 # 0: type
1633 compiler.misc.diamond.non.generic=\
1634 cannot use ''<>'' with non-generic class {0}
1636 # 0: unused
1637 compiler.misc.diamond.and.explicit.params=\
1638 cannot use ''<>'' with explicit type parameters for constructor
1640 # 0: type, 1: list of type
1641 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1642 explicit type argument {0} does not conform to declared bound(s) {1}
1644 compiler.misc.arg.length.mismatch=\
1645 actual and formal argument lists differ in length
1647 # 0: message segment
1648 compiler.misc.no.conforming.assignment.exists=\
1649 argument mismatch; {0}
1651 # 0: message segment
1652 compiler.misc.varargs.argument.mismatch=\
1653 varargs mismatch; {0}
1655 #####
1657 ## The first argument ({0}) is a "kindname".
1658 # 0: symbol kind, 1: symbol, 2: symbol
1659 compiler.err.abstract.cant.be.accessed.directly=\
1660 abstract {0} {1} in {2} cannot be accessed directly
1662 ## The first argument ({0}) is a "kindname".
1663 # 0: symbol kind, 1: symbol
1664 compiler.err.non-static.cant.be.ref=\
1665 non-static {0} {1} cannot be referenced from a static context
1667 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1668 ## of kindnames (the list should be identical to that provided in source.
1669 compiler.err.unexpected.type=\
1670 unexpected type\n\
1671 required: {0}\n\
1672 found: {1}
1674 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1675 ## The second argument {1} is the non-resolved symbol
1676 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1677 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1678 # 0: symbol kind, 1: name, 2: unused, 3: unused
1679 compiler.err.cant.resolve=\
1680 cannot find symbol\n\
1681 symbol: {0} {1}
1683 # 0: symbol kind, 1: name, 2: unused, 3: list of type
1684 compiler.err.cant.resolve.args=\
1685 cannot find symbol\n\
1686 symbol: {0} {1}({3})
1688 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
1689 compiler.err.cant.resolve.args.params=\
1690 cannot find symbol\n\
1691 symbol: {0} <{2}>{1}({3})
1693 ## arguments from {0} to {3} have the same meaning as above
1694 ## The fifth argument {4} is a location subdiagnostic (see below)
1695 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
1696 compiler.err.cant.resolve.location=\
1697 cannot find symbol\n\
1698 symbol: {0} {1}\n\
1699 location: {4}
1701 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1702 compiler.err.cant.resolve.location.args=\
1703 cannot find symbol\n\
1704 symbol: {0} {1}({3})\n\
1705 location: {4}
1707 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1708 compiler.err.cant.resolve.location.args.params=\
1709 cannot find symbol\n\
1710 symbol: {0} <{2}>{1}({3})\n\
1711 location: {4}
1713 ##a location subdiagnostic is composed as follows:
1714 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1715 ## The second argument {1} is the location name
1716 ## The third argument {2} is the location type (only when {1} is a variable name)
1718 # 0: symbol kind, 1: type or symbol, 2: unused
1719 compiler.misc.location=\
1720 {0} {1}
1722 # 0: symbol kind, 1: symbol, 2: type
1723 compiler.misc.location.1=\
1724 {0} {1} of type {2}
1726 ## The following are all possible string for "kindname".
1727 ## They should be called whatever the JLS calls them after it been translated
1728 ## to the appropriate language.
1729 # compiler.misc.kindname.constructor=\
1730 # static member
1731 compiler.misc.kindname.annotation=\
1732 @interface
1734 compiler.misc.kindname.constructor=\
1735 constructor
1737 compiler.misc.kindname.enum=\
1738 enum
1740 compiler.misc.kindname.interface=\
1741 interface
1743 compiler.misc.kindname.static=\
1744 static
1746 compiler.misc.kindname.type.variable=\
1747 type variable
1749 compiler.misc.kindname.type.variable.bound=\
1750 bound of type variable
1752 compiler.misc.kindname.variable=\
1753 variable
1755 compiler.misc.kindname.value=\
1756 value
1758 compiler.misc.kindname.method=\
1759 method
1761 compiler.misc.kindname.class=\
1762 class
1764 compiler.misc.kindname.package=\
1765 package
1767 compiler.misc.kindname.static.init=\
1768 static initializer
1770 compiler.misc.kindname.instance.init=\
1771 instance initializer
1773 #####
1775 compiler.misc.no.args=\
1776 no arguments
1778 # 0: message segment
1779 compiler.err.override.static=\
1780 {0}\n\
1781 overriding method is static
1783 # 0: message segment, 1: set of modifier
1784 compiler.err.override.meth=\
1785 {0}\n\
1786 overridden method is {1}
1788 # 0: message segment, 1: type
1789 compiler.err.override.meth.doesnt.throw=\
1790 {0}\n\
1791 overridden method does not throw {1}
1793 # In the following string {1} is a space separated list of Java Keywords, as
1794 # they would have been declared in the source code
1795 # 0: message segment, 1: set of modifier
1796 compiler.err.override.weaker.access=\
1797 {0}\n\
1798 attempting to assign weaker access privileges; was {1}
1800 # 0: message segment, 1: type, 2: type
1801 compiler.err.override.incompatible.ret=\
1802 {0}\n\
1803 return type {1} is not compatible with {2}
1805 # 0: message segment, 1: type, 2: type
1806 compiler.warn.override.unchecked.ret=\
1807 {0}\n\
1808 return type requires unchecked conversion from {1} to {2}
1810 # 0: message segment, 1: type
1811 compiler.warn.override.unchecked.thrown=\
1812 {0}\n\
1813 overridden method does not throw {1}
1815 ## The following are all possible strings for the first argument ({0}) of the
1816 ## above strings.
1817 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1818 compiler.misc.cant.override=\
1819 {0} in {1} cannot override {2} in {3}
1821 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1822 compiler.misc.cant.implement=\
1823 {0} in {1} cannot implement {2} in {3}
1825 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1826 compiler.misc.clashes.with=\
1827 {0} in {1} clashes with {2} in {3}
1829 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1830 compiler.misc.unchecked.override=\
1831 {0} in {1} overrides {2} in {3}
1833 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1834 compiler.misc.unchecked.implement=\
1835 {0} in {1} implements {2} in {3}
1837 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1838 compiler.misc.unchecked.clash.with=\
1839 {0} in {1} overrides {2} in {3}
1841 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1842 compiler.misc.varargs.override=\
1843 {0} in {1} overrides {2} in {3}
1845 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1846 compiler.misc.varargs.implement=\
1847 {0} in {1} implements {2} in {3}
1849 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1850 compiler.misc.varargs.clash.with=\
1851 {0} in {1} overrides {2} in {3}
1853 # 0: unused
1854 compiler.misc.diamond.and.anon.class=\
1855 cannot use ''<>'' with anonymous inner classes
1857 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
1858 compiler.misc.inapplicable.method=\
1859 {0} {1}.{2} is not applicable\n\
1860 ({3})
1862 ########################################
1863 # Diagnostics for language feature changes
1864 ########################################
1865 # 0: string
1866 compiler.err.unsupported.fp.lit=\
1867 hexadecimal floating point literals are not supported in -source {0}\n\
1868 (use -source 5 or higher to enable hexadecimal floating point literals)
1870 # 0: string
1871 compiler.err.unsupported.binary.lit=\
1872 binary literals are not supported in -source {0}\n\
1873 (use -source 7 or higher to enable binary literals)
1875 # 0: string
1876 compiler.err.unsupported.underscore.lit=\
1877 underscores in literals are not supported in -source {0}\n\
1878 (use -source 7 or higher to enable underscores in literals)
1880 # 0: string
1881 compiler.err.try.with.resources.not.supported.in.source=\
1882 try-with-resources is not supported in -source {0}\n\
1883 (use -source 7 or higher to enable try-with-resources)
1885 compiler.warn.enum.as.identifier=\
1886 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1887 (use -source 5 or higher to use ''enum'' as a keyword)
1889 compiler.warn.assert.as.identifier=\
1890 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1891 (use -source 1.4 or higher to use ''assert'' as a keyword)
1893 compiler.err.enum.as.identifier=\
1894 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1895 (use -source 1.4 or lower to use ''enum'' as an identifier)
1897 compiler.err.assert.as.identifier=\
1898 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1899 (use -source 1.3 or lower to use ''assert'' as an identifier)
1901 # 0: string
1902 compiler.err.generics.not.supported.in.source=\
1903 generics are not supported in -source {0}\n\
1904 (use -source 5 or higher to enable generics)
1906 # 0: string
1907 compiler.err.varargs.not.supported.in.source=\
1908 variable-arity methods are not supported in -source {0}\n\
1909 (use -source 5 or higher to enable variable-arity methods)
1911 # 0: string
1912 compiler.err.annotations.not.supported.in.source=\
1913 annotations are not supported in -source {0}\n\
1914 (use -source 5 or higher to enable annotations)
1916 #308 compiler.err.type.annotations.not.supported.in.source=\
1917 #308 type annotations are not supported in -source {0}\n\
1918 #308 (use -source 7 or higher to enable type annotations)
1920 # 0: string
1921 compiler.err.foreach.not.supported.in.source=\
1922 for-each loops are not supported in -source {0}\n\
1923 (use -source 5 or higher to enable for-each loops)
1925 # 0: string
1926 compiler.err.static.import.not.supported.in.source=\
1927 static import declarations are not supported in -source {0}\n\
1928 (use -source 5 or higher to enable static import declarations)
1930 # 0: string
1931 compiler.err.enums.not.supported.in.source=\
1932 enums are not supported in -source {0}\n\
1933 (use -source 5 or higher to enable enums)
1935 # 0: string
1936 compiler.err.diamond.not.supported.in.source=\
1937 diamond operator is not supported in -source {0}\n\
1938 (use -source 7 or higher to enable diamond operator)
1940 # 0: string
1941 compiler.err.multicatch.not.supported.in.source=\
1942 multi-catch statement is not supported in -source {0}\n\
1943 (use -source 7 or higher to enable multi-catch statement)
1945 # 0: string
1946 compiler.err.string.switch.not.supported.in.source=\
1947 strings in switch are not supported in -source {0}\n\
1948 (use -source 7 or higher to enable strings in switch)
1950 # 0: string
1951 compiler.err.lambda.not.supported.in.source=\
1952 lambda expressions are not supported in -source {0}\n\
1953 (use -source 8 or higher to enable lambda expressions)
1955 # 0: string
1956 compiler.err.method.references.not.supported.in.source=\
1957 method references are not supported in -source {0}\n\
1958 (use -source 8 or higher to enable method references)
1960 ########################################
1961 # Diagnostics for verbose resolution
1962 # used by Resolve (debug only)
1963 ########################################
1965 # 0: number, 1: symbol, 2: unused
1966 compiler.misc.applicable.method.found=\
1967 #{0} applicable method found: {1}
1969 # 0: number, 1: symbol, 2: message segment
1970 compiler.misc.applicable.method.found.1=\
1971 #{0} applicable method found: {1}\n\
1972 ({2})
1974 # 0: number, 1: symbol, 2: message segment
1975 compiler.misc.not.applicable.method.found=\
1976 #{0} not applicable method found: {1}\n\
1977 ({2})
1979 # 0: type
1980 compiler.misc.partial.inst.sig=\
1981 partially instantiated to: {0}
1983 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
1984 compiler.note.verbose.resolve.multi=\
1985 resolving method {0} in type {1} to candidate {2}\n\
1986 phase: {3}\n\
1987 with actuals: {4}\n\
1988 with type-args: {5}\n\
1989 candidates:
1991 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
1992 compiler.note.verbose.resolve.multi.1=\
1993 erroneous resolution for method {0} in type {1}\n\
1994 phase: {3}\n\
1995 with actuals: {4}\n\
1996 with type-args: {5}\n\
1997 candidates:
1999 # 0: symbol, 1: type, 2: type
2000 compiler.note.deferred.method.inst=\
2001 Deferred instantiation of method {0}\n\
2002 instantiated signature: {1}\n\
2003 target-type: {2}
2005 ########################################
2006 # Diagnostics for where clause implementation
2007 # used by the RichDiagnosticFormatter.
2008 ########################################
2010 compiler.misc.type.null=\
2011 <null>
2013 # X#n (where n is an int id) is disambiguated tvar name
2014 # 0: name, 1: number
2015 compiler.misc.type.var=\
2016 {0}#{1}
2018 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
2019 # 0: number
2020 compiler.misc.captured.type=\
2021 CAP#{0}
2023 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2024 # 0: number
2025 compiler.misc.intersection.type=\
2026 INT#{0}
2028 # where clause for captured type: contains upper ('extends {1}') and lower
2029 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
2030 # 0: type, 1: type, 2: type, 3: type
2031 compiler.misc.where.captured=\
2032 {0} extends {1} super: {2} from capture of {3}
2034 # compact where clause for captured type: contains upper ('extends {1}') along
2035 # with the wildcard that generated this captured type ({3})
2036 # 0: type, 1: type, 2: unused, 3: type
2037 compiler.misc.where.captured.1=\
2038 {0} extends {1} from capture of {3}
2040 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
2041 # the kindname ({2}) and location ({3}) in which the typevar has been declared
2042 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2043 compiler.misc.where.typevar=\
2044 {0} extends {1} declared in {2} {3}
2046 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
2047 # in which the typevar has been declared
2048 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2049 compiler.misc.where.typevar.1=\
2050 {0} declared in {2} {3}
2052 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2053 # Since a fresh type-variable is synthetic - there's no location/kindname here.
2054 # 0: type, 1: list of type
2055 compiler.misc.where.fresh.typevar=\
2056 {0} extends {1}
2058 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
2059 # of this intersection type
2060 # 0: type, 1: list of type
2061 compiler.misc.where.intersection=\
2062 {0} extends {1}
2064 ### Where clause headers ###
2065 compiler.misc.where.description.captured=\
2066 where {0} is a fresh type-variable:
2068 # 0: set of type
2069 compiler.misc.where.description.typevar=\
2070 where {0} is a type-variable:
2072 # 0: set of type
2073 compiler.misc.where.description.intersection=\
2074 where {0} is an intersection type:
2076 # 0: set of type
2077 compiler.misc.where.description.captured.1=\
2078 where {0} are fresh type-variables:
2080 # 0: set of type
2081 compiler.misc.where.description.typevar.1=\
2082 where {0} are type-variables:
2084 compiler.misc.where.description.intersection.1=\
2085 where {0} are intersection types: