Tue, 11 Aug 2009 01:11:37 +0100
6806876: ClassCastException occurs in assignment expressions without any heap pollutions
Summary: intersection types should be considered as non-reifiable by javac
Reviewed-by: jjg
1 #
2 # Copyright 1999-2009 Sun Microsystems, Inc. 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. Sun designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 # CA 95054 USA or visit www.sun.com if you need additional information or
23 # have any questions.
24 #
26 ##
27 ## errors
28 ##
30 compiler.err.abstract.cant.be.instantiated=\
31 {0} is abstract; cannot be instantiated
32 compiler.err.abstract.meth.cant.have.body=\
33 abstract methods cannot have a body
34 compiler.err.already.annotated=\
35 {0} {1} has already been annotated
36 compiler.err.already.defined=\
37 {0} is already defined in {1}
38 compiler.err.already.defined.single.import=\
39 {0} is already defined in a single-type import
40 compiler.err.already.defined.static.single.import=\
41 {0} is already defined in a static single-type import
42 compiler.err.already.defined.this.unit=\
43 {0} is already defined in this compilation unit
44 compiler.err.annotation.missing.default.value=\
45 annotation {0} is missing {1}
46 compiler.err.annotation.not.valid.for.type=\
47 annotation not valid for a value of type {0}
48 compiler.err.annotation.type.not.applicable=\
49 annotation type not applicable to this kind of declaration
50 compiler.err.annotation.value.must.be.annotation=\
51 annotation value must be an annotation
52 compiler.err.annotation.value.must.be.class.literal=\
53 annotation value must be a class literal
54 compiler.err.annotation.value.must.be.name.value=\
55 annotation values must be of the form ''name=value''
56 compiler.err.annotation.value.not.allowable.type=\
57 annotation value not of an allowable type
58 compiler.err.anon.class.impl.intf.no.args=\
59 anonymous class implements interface; cannot have arguments
60 compiler.err.anon.class.impl.intf.no.typeargs=\
61 anonymous class implements interface; cannot have type arguments
62 compiler.err.anon.class.impl.intf.no.qual.for.new=\
63 anonymous class implements interface; cannot have qualifier for new
64 compiler.err.array.and.varargs=\
65 cannot declare both {0} and {1} in {2}
66 compiler.err.array.dimension.missing=\
67 array dimension missing
68 compiler.err.array.req.but.found=\
69 array required, but {0} found
71 compiler.err.assignment.from.super-bound=\
72 assigning from wildcard {0}
73 compiler.err.assignment.to.extends-bound=\
74 assigning to wildcard {0}
75 compiler.err.attribute.value.must.be.constant=\
76 attribute value must be constant
78 compiler.err.break.outside.switch.loop=\
79 break outside switch or loop
81 compiler.err.call.must.be.first.stmt.in.ctor=\
82 call to {0} must be first statement in constructor
83 compiler.err.cant.apply.symbol=\
84 {0} {1} in {4} {5} cannot be applied to given types\n\
85 required: {2}\n\
86 found: {3}
87 compiler.err.cant.apply.symbol.1=\
88 {0} {1} in {4} {5} cannot be applied to given types;\n\
89 required: {2}\n\
90 found: {3}\n\
91 reason: {6}
92 compiler.err.cant.assign.val.to.final.var=\
93 cannot assign a value to final variable {0}
94 compiler.err.cant.deref=\
95 {0} cannot be dereferenced
96 compiler.err.cant.extend.intf.annotation=\
97 ''extends'' not allowed for @interfaces
98 compiler.err.cant.inherit.from.final=\
99 cannot inherit from final {0}
100 compiler.err.cant.ref.before.ctor.called=\
101 cannot reference {0} before supertype constructor has been called
102 compiler.err.cant.ret.val.from.meth.decl.void=\
103 cannot return a value from method whose result type is void
104 compiler.err.cant.select.static.class.from.param.type=\
105 cannot select a static class from a parameterized type
106 compiler.err.cant.inherit.diff.arg=\
107 {0} cannot be inherited with different arguments: <{1}> and <{2}>
108 compiler.err.catch.without.try=\
109 ''catch'' without ''try''
110 compiler.err.clash.with.pkg.of.same.name=\
111 {0} clashes with package of same name
112 compiler.err.const.expr.req=\
113 constant expression required
114 compiler.err.enum.const.req=\
115 unqualified enumeration constant name required
116 compiler.err.cont.outside.loop=\
117 continue outside of loop
118 compiler.err.cyclic.inheritance=\
119 cyclic inheritance involving {0}
120 compiler.err.cyclic.annotation.element=\
121 cyclic annotation element type
122 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
123 call to super not allowed in enum constructor
124 compiler.err.no.superclass=\
125 {0} has no superclass
127 compiler.err.concrete.inheritance.conflict=\
128 methods {0} from {1} and {2} from {3} are inherited with the same signature
130 compiler.err.default.allowed.in.intf.annotation.member=\
131 default value only allowed in an @interface member
132 compiler.err.doesnt.exist=\
133 package {0} does not exist
134 compiler.err.duplicate.annotation=\
135 duplicate annotation
136 compiler.err.duplicate.annotation.member.value=\
137 duplicate annotation member value {0} in {1}
138 compiler.err.duplicate.class=\
139 duplicate class: {0}
140 compiler.err.duplicate.case.label=\
141 duplicate case label
142 compiler.err.duplicate.default.label=\
143 duplicate default label
145 compiler.err.else.without.if=\
146 ''else'' without ''if''
147 compiler.err.empty.bytecode.ident=\
148 empty bytecode identifier
149 compiler.err.empty.char.lit=\
150 empty character literal
151 compiler.err.encl.class.required=\
152 an enclosing instance that contains {0} is required
153 compiler.err.enum.annotation.must.be.enum.constant=\
154 an enum annotation value must be an enum constant
156 compiler.err.enum.cant.be.instantiated=\
157 enum types may not be instantiated
158 compiler.err.enum.label.must.be.unqualified.enum=\
159 an enum switch case label must be the unqualified name of an enumeration constant
160 compiler.err.enum.no.subclassing=\
161 classes cannot directly extend java.lang.Enum
162 compiler.err.enum.types.not.extensible=\
163 enum types are not extensible
164 compiler.err.enum.no.finalize=\
165 enums cannot have finalize methods
166 compiler.err.error.reading.file=\
167 error reading {0}; {1}
168 compiler.err.except.already.caught=\
169 exception {0} has already been caught
170 compiler.err.except.never.thrown.in.try=\
171 exception {0} is never thrown in body of corresponding try statement
173 compiler.err.final.parameter.may.not.be.assigned=\
174 final parameter {0} may not be assigned
175 compiler.err.finally.without.try=\
176 ''finally'' without ''try''
177 compiler.err.foreach.not.applicable.to.type=\
178 foreach not applicable to expression type
179 compiler.err.fp.number.too.large=\
180 floating point number too large
181 compiler.err.fp.number.too.small=\
182 floating point number too small
184 compiler.err.generic.array.creation=\
185 generic array creation
186 compiler.err.generic.throwable=\
187 a generic class may not extend java.lang.Throwable
189 compiler.err.icls.cant.have.static.decl=\
190 inner classes cannot have static declarations
191 compiler.err.illegal.bytecode.ident.char=\
192 illegal bytecode identifier character: \\{0}
193 compiler.err.illegal.char=\
194 illegal character: \\{0}
195 compiler.err.illegal.char.for.encoding=\
196 unmappable character for encoding {0}
197 compiler.err.illegal.combination.of.modifiers=\
198 illegal combination of modifiers: {0} and {1}
199 compiler.err.illegal.enum.static.ref=\
200 illegal reference to static field from initializer
201 compiler.err.illegal.esc.char=\
202 illegal escape character
203 compiler.err.illegal.forward.ref=\
204 illegal forward reference
205 compiler.warn.forward.ref=\
206 reference to variable ''{0}'' before it has been initialized
207 compiler.err.illegal.self.ref=\
208 self-reference in initializer
209 compiler.warn.self.ref=\
210 self-reference in initializer of variable ''{0}''
211 compiler.err.illegal.generic.type.for.instof=\
212 illegal generic type for instanceof
213 compiler.err.illegal.initializer.for.type=\
214 illegal initializer for {0}
215 compiler.err.illegal.line.end.in.char.lit=\
216 illegal line end in character literal
217 compiler.err.illegal.nonascii.digit=\
218 illegal non-ASCII digit
219 compiler.err.illegal.qual.not.icls=\
220 illegal qualifier; {0} is not an inner class
221 compiler.err.illegal.start.of.expr=\
222 illegal start of expression
223 compiler.err.illegal.start.of.type=\
224 illegal start of type
225 compiler.err.illegal.unicode.esc=\
226 illegal unicode escape
227 compiler.err.import.requires.canonical=\
228 import requires canonical name for {0}
229 compiler.err.improperly.formed.type.param.missing=\
230 improperly formed type, some parameters are missing
231 compiler.err.improperly.formed.type.inner.raw.param=\
232 improperly formed type, type parameters given on a raw type
233 compiler.err.incomparable.types=\
234 incomparable types: {0} and {1}
235 compiler.err.int.number.too.large=\
236 integer number too large: {0}
237 compiler.err.internal.error.cant.instantiate=\
238 internal error; cannot instantiate {0} at {1} to ({2})
239 compiler.err.intf.annotation.members.cant.have.params=\
240 @interface members may not have parameters
241 compiler.err.intf.annotation.cant.have.type.params=\
242 @interface may not have type parameters
243 compiler.err.intf.annotation.members.cant.have.type.params=\
244 @interface members may not have type parameters
245 compiler.err.intf.annotation.member.clash=\
246 @interface member clashes with method ''{0}'' in {1}
247 compiler.err.intf.expected.here=\
248 interface expected here
249 compiler.err.intf.meth.cant.have.body=\
250 interface methods cannot have body
251 compiler.err.invalid.annotation.member.type=\
252 invalid type for annotation member
253 compiler.err.invalid.hex.number=\
254 hexadecimal numbers must contain at least one hexadecimal digit
255 compiler.err.invalid.meth.decl.ret.type.req=\
256 invalid method declaration; return type required
258 compiler.err.label.already.in.use=\
259 label {0} already in use
260 compiler.err.local.var.accessed.from.icls.needs.final=\
261 local variable {0} is accessed from within inner class; needs to be declared final
262 compiler.err.local.enum=\
263 enum types must not be local
264 compiler.err.cannot.create.array.with.type.arguments=\
265 cannot create array with type arguments
267 #
268 # limits. We don't give the limits in the diagnostic because we expect
269 # them to change, yet we want to use the same diagnostic. These are all
270 # detected during code generation.
271 #
272 compiler.err.limit.code=\
273 code too large
274 compiler.err.limit.code.too.large.for.try.stmt=\
275 code too large for try statement
276 compiler.err.limit.dimensions=\
277 array type has too many dimensions
278 compiler.err.limit.locals=\
279 too many local variables
280 compiler.err.limit.parameters=\
281 too many parameters
282 compiler.err.limit.pool=\
283 too many constants
284 compiler.err.limit.pool.in.class=\
285 too many constants in class {0}
286 compiler.err.limit.stack=\
287 code requires too much stack
288 compiler.err.limit.string=\
289 constant string too long
290 compiler.err.limit.string.overflow=\
291 UTF8 representation for string \"{0}...\" is too long for the constant pool
293 compiler.err.malformed.fp.lit=\
294 malformed floating point literal
295 compiler.err.method.does.not.override.superclass=\
296 method does not override or implement a method from a supertype
297 compiler.err.missing.meth.body.or.decl.abstract=\
298 missing method body, or declare abstract
299 compiler.err.missing.ret.stmt=\
300 missing return statement
301 compiler.err.missing.ret.val=\
302 missing return value
303 compiler.err.mod.not.allowed.here=\
304 modifier {0} not allowed here
305 compiler.err.intf.not.allowed.here=\
306 interface not allowed here
307 compiler.err.enums.must.be.static=\
308 enum declarations allowed only in static contexts
310 compiler.err.name.clash.same.erasure=\
311 name clash: {0} and {1} have the same erasure
312 compiler.err.name.clash.same.erasure.no.override=\
313 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
314 compiler.err.name.reserved.for.internal.use=\
315 {0} is reserved for internal use
316 compiler.err.native.meth.cant.have.body=\
317 native methods cannot have a body
318 compiler.err.neither.conditional.subtype=\
319 incompatible types for ?: neither is a subtype of the other\n\
320 second operand: {0}\n\
321 third operand : {1}
322 compiler.err.new.not.allowed.in.annotation=\
323 ''new'' not allowed in an annotation
324 compiler.err.no.annotation.member=\
325 no annotation member {0} in {1}
326 compiler.err.no.encl.instance.of.type.in.scope=\
327 no enclosing instance of type {0} is in scope
328 compiler.err.no.intf.expected.here=\
329 no interface expected here
330 compiler.err.no.match.entry=\
331 {0} has no match in entry in {1}; required {2}
332 compiler.err.not.annotation.type=\
333 {0} is not an annotation type
334 compiler.err.not.def.access.class.intf.cant.access=\
335 {0} in {1} is defined in an inaccessible class or interface
336 compiler.err.not.def.public.cant.access=\
337 {0} is not public in {1}; cannot be accessed from outside package
338 compiler.err.not.loop.label=\
339 not a loop label: {0}
340 compiler.err.not.stmt=\
341 not a statement
342 compiler.err.not.encl.class=\
343 not an enclosing class: {0}
345 compiler.err.operator.cant.be.applied=\
346 operator {0} cannot be applied to {1}
348 compiler.err.pkg.annotations.sb.in.package-info.java=\
349 package annotations should be in file package-info.java
350 compiler.err.pkg.clashes.with.class.of.same.name=\
351 package {0} clashes with class of same name
353 compiler.err.warnings.and.werror=\
354 warnings found and -Werror specified
356 # Errors related to annotation processing
358 compiler.err.proc.cant.access=\
359 cannot access {0}\n\
360 {1}\n\
361 Consult the following stack trace for details.\n\
362 {2}
364 compiler.err.proc.cant.find.class=\
365 Could not find class file for ''{0}''.
367 # Print a client-generated error message; assumed to be localized, no translation required
368 compiler.err.proc.messager=\
369 {0}
371 compiler.err.proc.no.explicit.annotation.processing.requested=\
372 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
374 compiler.err.proc.no.service=\
375 A service loader class could not be found.\n\
376 Either java.util.ServiceLoader or sun.misc.Service must be available.
378 compiler.err.proc.processor.bad.option.name=\
379 Bad option name ''{0}'' provided by processor ''{1}''
381 compiler.err.proc.processor.cant.instantiate=\
382 Could not instantiate an instance of processor ''{0}''
384 compiler.err.proc.processor.constructor.error=\
385 Exception thrown while constructing Processor object: {0}
387 compiler.err.proc.processor.not.found=\
388 Annotation processor ''{0}'' not found
390 compiler.err.proc.processor.wrong.type=\
391 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
393 compiler.err.proc.service.problem=\
394 Error creating a service loader to load Processors.
396 compiler.err.proc.bad.config.file=\
397 Bad service configuration file, or exception thrown while constructing Processor object: {0}
399 compiler.err.proc.cant.create.loader=\
400 Could not create class loader for annotation processors: {0}
402 compiler.err.qualified.new.of.static.class=\
403 qualified new of static class
405 compiler.err.recursive.ctor.invocation=\
406 recursive constructor invocation
407 compiler.err.ref.ambiguous=\
408 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
409 compiler.err.repeated.annotation.target=\
410 repeated annotation target
411 compiler.err.repeated.interface=\
412 repeated interface
413 compiler.err.repeated.modifier=\
414 repeated modifier
415 compiler.err.report.access=\
416 {0} has {1} access in {2}
417 compiler.err.ret.outside.meth=\
418 return outside method
420 compiler.err.signature.doesnt.match.supertype=\
421 signature does not match {0}; incompatible supertype
422 compiler.err.signature.doesnt.match.intf=\
423 signature does not match {0}; incompatible interfaces
424 compiler.err.does.not.override.abstract=\
425 {0} is not abstract and does not override abstract method {1} in {2}
426 compiler.err.source.cant.overwrite.input.file=\
427 error writing source; cannot overwrite input file {0}
428 compiler.err.stack.sim.error=\
429 Internal error: stack sim error on {0}
430 compiler.err.static.imp.only.classes.and.interfaces=\
431 static import only from classes and interfaces
432 compiler.err.synthetic.name.conflict=\
433 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
435 compiler.err.throws.not.allowed.in.intf.annotation=\
436 throws clause not allowed in @interface members
437 compiler.err.try.without.catch.or.finally=\
438 ''try'' without ''catch'' or ''finally''
439 compiler.err.type.doesnt.take.params=\
440 type {0} does not take parameters
441 compiler.err.type.var.cant.be.deref=\
442 cannot select from a type variable
443 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
444 a type variable may not be followed by other bounds
445 compiler.err.type.var.more.than.once=\
446 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
447 compiler.err.type.var.more.than.once.in.result=\
448 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
449 compiler.err.types.incompatible.diff.ret=\
450 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
452 compiler.err.unclosed.bytecode.ident=\
453 unclosed bytecode identifier
454 compiler.err.unclosed.char.lit=\
455 unclosed character literal
456 compiler.err.unclosed.comment=\
457 unclosed comment
458 compiler.err.unclosed.str.lit=\
459 unclosed string literal
460 compiler.err.unknown.enum.constant=\
461 in class file {0}: unknown enum constant {1}.{2}
462 compiler.err.unsupported.encoding=\
463 unsupported encoding: {0}
464 compiler.err.io.exception=\
465 error reading source file: {0}
466 compiler.err.undef.label=\
467 undefined label: {0}
468 compiler.err.undetermined.type=\
469 type parameters of {0} cannot be determined
470 compiler.err.undetermined.type.1=\
471 type parameters of {0} cannot be determined; {1}
472 compiler.err.invalid.inferred.types=\
473 invalid inferred types for {0}; {1}
474 compiler.err.unreachable.stmt=\
475 unreachable statement
476 compiler.err.initializer.must.be.able.to.complete.normally=\
477 initializer must be able to complete normally
478 compiler.err.unreported.exception.need.to.catch.or.throw=\
479 unreported exception {0}; must be caught or declared to be thrown
480 compiler.err.unreported.exception.default.constructor=\
481 unreported exception {0} in default constructor
482 compiler.err.unsupported.cross.fp.lit=\
483 hexadecimal floating-point literals are not supported on this VM
484 compiler.err.void.not.allowed.here=\
485 ''void'' type not allowed here
487 compiler.err.wrong.number.type.args=\
488 wrong number of type arguments; required {0}
490 compiler.err.var.might.already.be.assigned=\
491 variable {0} might already have been assigned
492 compiler.err.var.might.not.have.been.initialized=\
493 variable {0} might not have been initialized
494 compiler.err.var.might.be.assigned.in.loop=\
495 variable {0} might be assigned in loop
497 # In the following string, {1} will always be the detail message from
498 # java.io.IOException.
499 compiler.err.class.cant.write=\
500 error while writing {0}: {1}
502 # In the following string, {0} is the name of the class in the Java source.
503 # It really should be used two times..
504 compiler.err.class.public.should.be.in.file=\
505 class {0} is public, should be declared in a file named {0}.java
507 ## All errors which do not refer to a particular line in the source code are
508 ## preceded by this string.
509 compiler.err.error=\
510 error:\u0020
512 # The following error messages do not refer to a line in the source code.
513 compiler.err.cant.read.file=\
514 cannot read: {0}
516 #####
518 # Fatal Errors
520 compiler.misc.fatal.err.no.java.lang=\
521 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
522 compiler.misc.fatal.err.cant.locate.meth=\
523 Fatal Error: Unable to find method {0}
524 compiler.misc.fatal.err.cant.locate.field=\
525 Fatal Error: Unable to find field {0}
526 compiler.misc.fatal.err.cant.locate.ctor=\
527 Fatal Error: Unable to find constructor for {0}
529 #####
531 ##
532 ## miscellaneous strings
533 ##
535 compiler.misc.source.unavailable=\
536 (source unavailable)
537 compiler.misc.base.membership=\
538 all your base class are belong to us
539 compiler.misc.x.print.processor.info=\
540 Processor {0} matches {1} and returns {2}.
541 compiler.misc.x.print.rounds=\
542 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
544 #####
546 ## The following string will appear before all messages keyed as:
547 ## "compiler.note".
548 compiler.note.note=\
549 Note:\u0020
551 compiler.note.deprecated.filename=\
552 {0} uses or overrides a deprecated API.
553 compiler.note.deprecated.plural=\
554 Some input files use or override a deprecated API.
555 # The following string may appear after one of the above deprecation
556 # messages.
557 compiler.note.deprecated.recompile=\
558 Recompile with -Xlint:deprecation for details.
560 compiler.note.deprecated.filename.additional=\
561 {0} has additional uses or overrides of a deprecated API.
562 compiler.note.deprecated.plural.additional=\
563 Some input files additionally use or override a deprecated API.
565 # Notes related to annotation processing
567 # Print a client-generated note; assumed to be localized, no translation required
568 compiler.note.proc.messager=\
569 {0}
571 compiler.note.unchecked.filename=\
572 {0} uses unchecked or unsafe operations.
573 compiler.note.unchecked.plural=\
574 Some input files use unchecked or unsafe operations.
575 # The following string may appear after one of the above deprecation
576 # messages.
577 compiler.note.unchecked.recompile=\
578 Recompile with -Xlint:unchecked for details.
580 compiler.note.unchecked.filename.additional=\
581 {0} has additional unchecked or unsafe operations.
582 compiler.note.unchecked.plural.additional=\
583 Some input files additionally use unchecked or unsafe operations.
585 #####
587 compiler.misc.count.error=\
588 {0} error
589 compiler.misc.count.error.plural=\
590 {0} errors
591 compiler.misc.count.warn=\
592 {0} warning
593 compiler.misc.count.warn.plural=\
594 {0} warnings
596 ## extra output when using -verbose (JavaCompiler)
598 compiler.misc.verbose.checking.attribution=\
599 [checking {0}]
600 compiler.misc.verbose.parsing.done=\
601 [parsing completed {0}ms]
602 compiler.misc.verbose.parsing.started=\
603 [parsing started {0}]
604 compiler.misc.verbose.total=\
605 [total {0}ms]
606 compiler.misc.verbose.wrote.file=\
607 [wrote {0}]
609 ## extra output when using -verbose (Retro)
610 compiler.misc.verbose.retro=\
611 [retrofitting {0}]
612 compiler.misc.verbose.retro.with=\
613 \tretrofitting {0} with {1}
614 compiler.misc.verbose.retro.with.list=\
615 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
617 ## extra output when using -verbose (code/ClassReader)
618 compiler.misc.verbose.loading=\
619 [loading {0}]
621 compiler.misc.verbose.sourcepath=\
622 [search path for source files: {0}]
624 compiler.misc.verbose.classpath=\
625 [search path for class files: {0}]
627 ## extra output when using -checkclassfile (code/ClassReader)
628 compiler.misc.ccf.found.later.version=\
629 class file has later version than expected: {0}
630 compiler.misc.ccf.unrecognized.attribute=\
631 unrecognized attribute: {0}
633 ## extra output when using -prompt (util/Log)
634 compiler.misc.resume.abort=\
635 R)esume, A)bort>
637 #####
639 ##
640 ## warnings
641 ##
643 ## All warning messages are preceded by the following string.
644 compiler.warn.warning=\
645 warning:\u0020
647 compiler.warn.constant.SVUID=\
648 [serial] serialVersionUID must be constant in class {0}
650 compiler.warn.dir.path.element.not.found=\
651 [path] bad path element "{0}": no such directory
653 compiler.warn.finally.cannot.complete=\
654 [finally] finally clause cannot complete normally
656 compiler.warn.has.been.deprecated=\
657 [deprecation] {0} in {1} has been deprecated
659 compiler.warn.sun.proprietary=\
660 {0} is Sun proprietary API and may be removed in a future release
662 compiler.warn.illegal.char.for.encoding=\
663 unmappable character for encoding {0}
664 compiler.warn.improper.SVUID=\
665 [serial] serialVersionUID must be declared static final in class {0}
667 compiler.warn.inexact.non-varargs.call=\
668 non-varargs call of varargs method with inexact argument type for last parameter;\n\
669 cast to {0} for a varargs call\n\
670 cast to {1} for a non-varargs call and to suppress this warning
672 compiler.warn.long.SVUID=\
673 [serial] serialVersionUID must be of type long in class {0}
675 compiler.warn.missing.SVUID=\
676 [serial] serializable class {0} has no definition of serialVersionUID
678 compiler.warn.override.varargs.missing=\
679 {0}; overridden method has no ''...''
680 compiler.warn.override.varargs.extra=\
681 {0}; overriding method is missing ''...''
682 compiler.warn.override.bridge=\
683 {0}; overridden method is a bridge method
685 compiler.warn.pkg-info.already.seen=\
686 [package-info] a package-info.java file has already been seen for package {0}
687 compiler.warn.path.element.not.found=\
688 [path] bad path element "{0}": no such file or directory
689 compiler.warn.possible.fall-through.into.case=\
690 [fallthrough] possible fall-through into case
692 compiler.warn.redundant.cast=\
693 [cast] redundant cast to {0}
695 compiler.warn.position.overflow=\
696 Position encoding overflows at line {0}
698 compiler.warn.big.major.version=\
699 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
700 It is recommended that the compiler be upgraded.
702 # Warnings related to annotation processing
703 compiler.warn.proc.package.does.not.exist=\
704 package {0} does not exist
705 compiler.warn.proc.file.reopening=\
706 Attempt to create a file for ''{0}'' multiple times
708 compiler.warn.proc.type.already.exists=\
709 A file for type ''{0}'' already exists on the sourcepath or classpath
711 compiler.warn.proc.type.recreate=\
712 Attempt to create a file for type ''{0}'' multiple times
714 compiler.warn.proc.illegal.file.name=\
715 Cannot create file for illegal name ''{0}''.
717 compiler.warn.proc.file.create.last.round=\
718 File for type ''{0}'' created in the last round will not be subject to annotation processing.
720 compiler.warn.proc.malformed.supported.string=\
721 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
723 compiler.warn.proc.annotations.without.processors=\
724 No processor claimed any of these annotations: {0}
726 compiler.warn.proc.processor.incompatible.source.version=\
727 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
729 compiler.warn.proc.proc-only.requested.no.procs=\
730 Annotation processing without compilation requested but no processors were found.
732 compiler.warn.proc.use.implicit=\
733 Implicitly compiled files were not subject to annotation processing.\n\
734 Use -implicit to specify a policy for implicit compilation.
736 compiler.warn.proc.use.proc.or.implicit=\
737 Implicitly compiled files were not subject to annotation processing.\n\
738 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
740 # Print a client-generated warning; assumed to be localized, no translation required
741 compiler.warn.proc.messager=\
742 {0}
744 compiler.warn.proc.unclosed.type.files=\
745 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
747 compiler.warn.proc.unmatched.processor.options=\
748 The following options were not recognized by any processor: ''{0}''
750 compiler.warn.unchecked.assign=\
751 [unchecked] unchecked assignment: {0} to {1}
752 compiler.warn.unchecked.assign.to.var=\
753 [unchecked] unchecked assignment to variable {0} as member of raw type {1}
754 compiler.warn.unchecked.call.mbr.of.raw.type=\
755 [unchecked] unchecked call to {0} as a member of the raw type {1}
756 compiler.warn.unchecked.cast.to.type=\
757 [unchecked] unchecked cast to type {0}
758 compiler.warn.unchecked.meth.invocation.applied=\
759 [unchecked] unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
760 required: {2}\n\
761 found: {3}
763 compiler.warn.unchecked.generic.array.creation=\
764 [unchecked] unchecked generic array creation for varargs parameter of type {0}
766 compiler.warn.missing.deprecated.annotation=\
767 [dep-ann] deprecated item is not annotated with @Deprecated
769 compiler.warn.invalid.archive.file=\
770 [path] Unexpected file on path: {0}
772 compiler.warn.unexpected.archive.file=\
773 [path] Unexpected extension for archive file: {0}
775 compiler.warn.div.zero=\
776 [divzero] division by zero
778 compiler.warn.empty.if=\
779 [empty] empty statement after if
781 compiler.warn.annotation.method.not.found=\
782 Cannot find annotation method ''{1}()'' in type ''{0}''
784 compiler.warn.annotation.method.not.found.reason=\
785 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
787 compiler.warn.raw.class.use=\
788 [rawtypes] found raw type: {0}\n\
789 missing type parameters for generic class {1}
791 #####
793 ## The following are tokens which are non-terminals in the language. They should
794 ## be named as JLS3 calls them when translated to the appropriate language.
795 compiler.misc.token.identifier=\
796 <identifier>
797 compiler.misc.token.character=\
798 <character>
799 compiler.misc.token.string=\
800 <string>
801 compiler.misc.token.integer=\
802 <integer>
803 compiler.misc.token.long-integer=\
804 <long integer>
805 compiler.misc.token.float=\
806 <float>
807 compiler.misc.token.double=\
808 <double>
809 compiler.misc.token.bad-symbol=\
810 <bad symbol>
811 compiler.misc.token.end-of-input=\
812 <end of input>
814 ## The argument to the following string will always be one of the following:
815 ## 1. one of the above non-terminals
816 ## 2. a keyword (JLS1.8)
817 ## 3. a boolean literal (JLS3.10.3)
818 ## 4. the null literal (JLS3.10.7)
819 ## 5. a Java separator (JLS3.11)
820 ## 6. an operator (JLS3.12)
821 ##
822 ## This is the only place these tokens will be used.
823 compiler.err.expected=\
824 {0} expected
825 compiler.err.expected2=\
826 {0} or {1} expected
827 compiler.err.expected3=\
828 {0}, {1}, or {2} expected
830 compiler.err.premature.eof=\
831 reached end of file while parsing
833 ## The following are related in form, but do not easily fit the above paradigm.
834 compiler.err.dot.class.expected=\
835 ''.class'' expected
837 ## The argument to this string will always be either 'case' or 'default'.
838 compiler.err.orphaned=\
839 orphaned {0}
841 compiler.misc.anonymous.class=\
842 <anonymous {0}>
844 compiler.misc.type.captureof=\
845 capture#{0} of {1}
847 compiler.misc.type.captureof.1=\
848 capture#{0}
850 compiler.misc.type.none=\
851 <none>
853 compiler.misc.unnamed.package=\
854 unnamed package
856 #####
858 compiler.err.cant.access=\
859 cannot access {0}\n\
860 {1}
862 compiler.misc.bad.class.file.header=\
863 bad class file: {0}\n\
864 {1}\n\
865 Please remove or make sure it appears in the correct subdirectory of the classpath.
866 compiler.misc.bad.source.file.header=\
867 bad source file: {0}\n\
868 {1}\n\
869 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
871 ## The following are all possible strings for the second argument ({1}) of the
872 ## above strings.
873 compiler.misc.bad.class.signature=\
874 bad class signature: {0}
875 compiler.misc.bad.enclosing.method=\
876 bad enclosing method attribute: {0}
877 compiler.misc.bad.runtime.invisible.param.annotations=\
878 bad RuntimeInvisibleParameterAnnotations attribute: {0}
879 compiler.misc.bad.const.pool.tag=\
880 bad constant pool tag: {0}
881 compiler.misc.bad.const.pool.tag.at=\
882 bad constant pool tag: {0} at {1}
883 compiler.misc.bad.signature=\
884 bad signature: {0}
885 compiler.misc.bad.type.annotation.value=\
886 bad type annotation target type value: {0}
887 compiler.misc.class.file.wrong.class=\
888 class file contains wrong class: {0}
889 compiler.misc.class.file.not.found=\
890 class file for {0} not found
891 compiler.misc.file.doesnt.contain.class=\
892 file does not contain class {0}
893 compiler.misc.file.does.not.contain.package=\
894 file does not contain package {0}
895 compiler.misc.illegal.start.of.class.file=\
896 illegal start of class file
897 compiler.misc.unable.to.access.file=\
898 unable to access file: {0}
899 compiler.misc.unicode.str.not.supported=\
900 unicode string in class file not supported
901 compiler.misc.undecl.type.var=\
902 undeclared type variable: {0}
903 compiler.misc.wrong.version=\
904 class file has wrong version {0}.{1}, should be {2}.{3}
906 #####
908 compiler.err.not.within.bounds=\
909 type parameter {0} is not within its bound
911 compiler.err.not.within.bounds.explain=\
912 type parameter {0} is not within its bound; {1}
914 ## The following are all possible strings for the second argument ({1}) of the
915 ## above string.
917 ## none yet...
919 #####
921 compiler.err.prob.found.req=\
922 {0}\n\
923 required: {2}\n\
924 found: {1}
925 compiler.warn.prob.found.req=\
926 {0}\n\
927 required: {2}\n\
928 found: {1}
929 compiler.err.prob.found.req.1=\
930 {0} {3}\n\
931 required: {2}\n\
932 found: {1}
934 ## The following are all possible strings for the first argument ({0}) of the
935 ## above strings.
936 compiler.misc.incompatible.types=\
937 incompatible types
938 compiler.misc.incompatible.types.1=\
939 incompatible types; {0}
940 compiler.misc.inconvertible.types=\
941 inconvertible types
942 compiler.misc.possible.loss.of.precision=\
943 possible loss of precision
945 compiler.misc.unchecked.assign=\
946 [unchecked] unchecked conversion
947 # compiler.misc.storecheck=\
948 # [unchecked] assignment might cause later store checks to fail
949 # compiler.misc.unchecked=\
950 # [unchecked] assigned array cannot dynamically check its stores
951 compiler.misc.unchecked.cast.to.type=\
952 [unchecked] unchecked cast
954 compiler.misc.assignment.from.super-bound=\
955 assignment from super-bound type {0}
956 compiler.misc.assignment.to.extends-bound=\
957 assignment to extends-bound type {0}
958 # compiler.err.star.expected=\
959 # ''*'' expected
960 # compiler.err.no.elem.type=\
961 # \[\*\] cannot have a type
963 #####
965 compiler.err.type.found.req=\
966 unexpected type\n\
967 required: {1}\n\
968 found: {0}
970 ## The following are all possible strings for the first argument ({0}) of the
971 ## above string.
972 compiler.misc.type.req.class=\
973 class
974 compiler.misc.type.req.class.array=\
975 class or array
976 compiler.misc.type.req.ref=\
977 reference
978 compiler.misc.type.req.exact=\
979 class or interface without bounds
980 compiler.misc.type.parameter=\
981 type parameter {0}
983 #####
985 ## The following are all possible strings for the last argument of all those
986 ## diagnostics whose key ends in ".1"
987 compiler.misc.undetermined.type=\
988 undetermined type
989 ncompiler.misc.type.variable.has.undetermined.type=\
990 type variable {0} has undetermined type
991 compiler.misc.no.unique.maximal.instance.exists=\
992 no unique maximal instance exists for type variable {0} with upper bounds {1}
993 compiler.misc.no.unique.minimal.instance.exists=\
994 no unique minimal instance exists for type variable {0} with lower bounds {1}
995 compiler.misc.no.conforming.instance.exists=\
996 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
997 compiler.misc.no.conforming.assignment.exists=\
998 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
999 compiler.misc.arg.length.mismatch=\
1000 cannot instantiate from arguments because actual and formal argument lists differ in length
1001 compiler.misc.inferred.do.not.conform.to.bounds=\
1002 inferred type does not conform to declared bound(s)\n\
1003 inferred: {0}\n\
1004 bound(s): {1}
1005 compiler.misc.inferred.do.not.conform.to.params=\
1006 actual arguments do not conform to inferred formal arguments\n\
1007 required: {0}\n\
1008 found: {1}
1010 #####
1012 ## The first argument ({0}) is a "kindname".
1013 compiler.err.abstract.cant.be.accessed.directly=\
1014 abstract {0} {1} in {2} cannot be accessed directly
1016 ## The first argument ({0}) is a "kindname".
1017 compiler.err.non-static.cant.be.ref=\
1018 non-static {0} {1} cannot be referenced from a static context
1020 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1021 ## of kindnames (the list should be identical to that provided in source.
1022 compiler.err.unexpected.type=\
1023 unexpected type\n\
1024 required: {0}\n\
1025 found: {1}
1027 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1028 ## The second argument {1} is the non-resolved symbol
1029 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1030 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1031 compiler.err.cant.resolve=\
1032 cannot find symbol\n\
1033 symbol: {0} {1}
1035 compiler.err.cant.resolve.args=\
1036 cannot find symbol\n\
1037 symbol: {0} {1}({3})
1039 compiler.err.cant.resolve.args.params=\
1040 cannot find symbol\n\
1041 symbol: {0} <{2}>{1}({3})
1043 ## arguments from {0} to {3} have the same meaning as above
1044 ## The fifth argument {4} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1045 ## The sixth argument {5} is the location type
1046 compiler.err.cant.resolve.location=\
1047 cannot find symbol\n\
1048 symbol: {0} {1}\n\
1049 location: {4} {5}
1051 compiler.err.cant.resolve.location.args=\
1052 cannot find symbol\n\
1053 symbol: {0} {1}({3})\n\
1054 location: {4} {5}
1056 compiler.err.cant.resolve.location.args.params=\
1057 cannot find symbol\n\
1058 symbol: {0} <{2}>{1}({3})\n\
1059 location: {4} {5}
1061 ## The following are all possible string for "kindname".
1062 ## They should be called whatever the JLS calls them after it been translated
1063 ## to the appropriate language.
1064 # compiler.misc.kindname.constructor=\
1065 # static member
1066 compiler.misc.kindname.annotation=\
1067 @interface
1068 compiler.misc.kindname.constructor=\
1069 constructor
1070 compiler.misc.kindname.interface=\
1071 interface
1072 compiler.misc.kindname.static=\
1073 static
1074 compiler.misc.kindname.type.variable=\
1075 type variable
1076 compiler.misc.kindname.type.variable.bound=\
1077 bound of type variable
1078 compiler.misc.kindname.variable=\
1079 variable
1080 compiler.misc.kindname.value=\
1081 value
1082 compiler.misc.kindname.method=\
1083 method
1084 compiler.misc.kindname.class=\
1085 class
1086 compiler.misc.kindname.package=\
1087 package
1088 #####
1090 compiler.misc.no.args=\
1091 no arguments
1093 compiler.err.override.static=\
1094 {0}; overriding method is static
1095 compiler.err.override.meth=\
1096 {0}; overridden method is {1}
1098 compiler.err.override.meth.doesnt.throw=\
1099 {0}; overridden method does not throw {1}
1101 # In the following string {1} is a space separated list of Java Keywords, as
1102 # they would have been declared in the source code
1103 compiler.err.override.weaker.access=\
1104 {0}; attempting to assign weaker access privileges; was {1}
1106 compiler.misc.override.incompatible.ret=\
1107 {0}; attempting to use incompatible return type
1109 compiler.misc.override.unchecked.ret=\
1110 {0}; return type requires unchecked conversion
1112 ## The following are all possible strings for the first argument ({0}) of the
1113 ## above strings.
1114 compiler.misc.cant.override=\
1115 {0} in {1} cannot override {2} in {3}
1116 compiler.misc.cant.implement=\
1117 {0} in {1} cannot implement {2} in {3}
1118 compiler.misc.clashes.with=\
1119 {0} in {1} clashes with {2} in {3}
1120 compiler.misc.unchecked.override=\
1121 {0} in {1} overrides {2} in {3}
1122 compiler.misc.unchecked.implement=\
1123 {0} in {1} implements {2} in {3}
1124 compiler.misc.unchecked.clash.with=\
1125 {0} in {1} overrides {2} in {3}
1126 compiler.misc.varargs.override=\
1127 {0} in {1} overrides {2} in {3}
1128 compiler.misc.varargs.implement=\
1129 {0} in {1} implements {2} in {3}
1130 compiler.misc.varargs.clash.with=\
1131 {0} in {1} overrides {2} in {3}
1133 ########################################
1134 # Diagnostics for language feature changes
1135 ########################################
1136 compiler.err.unsupported.fp.lit=\
1137 hexadecimal floating-point literals are not supported before -source 5
1139 compiler.warn.enum.as.identifier=\
1140 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1141 (use -source 5 or higher to use ''enum'' as a keyword)
1143 compiler.warn.assert.as.identifier=\
1144 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1145 (use -source 1.4 or higher to use ''assert'' as a keyword)
1147 compiler.err.enum.as.identifier=\
1148 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1149 (use -source 1.4 or lower to use ''enum'' as an identifier)
1151 compiler.err.assert.as.identifier=\
1152 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1153 (use -source 1.3 or lower to use ''assert'' as an identifier)
1155 compiler.err.generics.not.supported.in.source=\
1156 generics are not supported in -source {0}\n\
1157 (use -source 5 or higher to enable generics)
1159 compiler.err.varargs.not.supported.in.source=\
1160 variable-arity methods are not supported in -source {0}\n\
1161 (use -source 5 or higher to enable variable-arity methods)
1163 compiler.err.annotations.not.supported.in.source=\
1164 annotations are not supported in -source {0}\n\
1165 (use -source 5 or higher to enable annotations)
1167 compiler.err.type.annotations.not.supported.in.source=\
1168 type annotations are not supported in -source {0}\n\
1169 (use -source 7 or higher to enable type annotations)
1171 compiler.err.foreach.not.supported.in.source=\
1172 for-each loops are not supported in -source {0}\n\
1173 (use -source 5 or higher to enable for-each loops)
1175 compiler.err.static.import.not.supported.in.source=\
1176 static import declarations are not supported in -source {0}\n\
1177 (use -source 5 or higher to enable static import declarations)
1179 compiler.err.enums.not.supported.in.source=\
1180 enums are not supported in -source {0}\n\
1181 (use -source 5 or higher to enable enums)
1183 ########################################
1184 # Diagnostics for where clause implementation
1185 # used by the RichDiagnosticFormatter.
1186 ########################################
1188 compiler.misc.type.null=\
1189 <null>
1191 # X#n (where n is an int id) is disambiguated tvar name
1192 compiler.misc.type.var=\
1193 {0}#{1}
1195 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1196 compiler.misc.captured.type=\
1197 CAP#{0}
1199 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1200 compiler.misc.intersection.type=\
1201 INT#{0}
1203 # where clause for captured type: contains upper ('extends {1}') and lower
1204 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1205 compiler.misc.where.captured=\
1206 {0} extends {1} super: {2} from capture of {3}
1208 # compact where clause for captured type: contains upper ('extends {1}') along
1209 # with the wildcard that generated this captured type ({3})
1210 compiler.misc.where.captured.1=\
1211 {0} extends {1} from capture of {3}
1213 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1214 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1215 compiler.misc.where.typevar=\
1216 {0} extends {1} declared in {2} {3}
1218 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1219 # in which the typevar has been declared
1220 compiler.misc.where.typevar.1=\
1221 {0} declared in {2} {3}
1223 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1224 # of this intersection type
1225 compiler.misc.where.intersection=\
1226 {0} extends {1}
1228 ### Where clause headers ###
1229 compiler.misc.where.description.captured=\
1230 where {0} is a fresh type-variable:
1231 compiler.misc.where.description.typevar=\
1232 where {0} is a type-variable:
1233 compiler.misc.where.description.intersection=\
1234 where {0} is an intersection type:
1235 compiler.misc.where.description.captured.1=\
1236 where {0} are fresh type-variables:
1237 compiler.misc.where.description.typevar.1=\
1238 where {0} are type-variables:
1239 compiler.misc.where.description.intersection.1=\
1240 where {0} are intersection types: