Thu, 24 Jul 2008 19:06:57 +0100
6717241: some diagnostic argument is prematurely converted into a String object
Summary: removed early toString() conversions applied to diagnostic arguments
Reviewed-by: jjg
1 #
2 # Copyright 1999-2008 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.char.lit=\
148 empty character literal
149 compiler.err.encl.class.required=\
150 an enclosing instance that contains {0} is required
151 compiler.err.enum.annotation.must.be.enum.constant=\
152 an enum annotation value must be an enum constant
154 compiler.err.enum.cant.be.instantiated=\
155 enum types may not be instantiated
156 compiler.err.enum.label.must.be.unqualified.enum=\
157 an enum switch case label must be the unqualified name of an enumeration constant
158 compiler.err.enum.no.subclassing=\
159 classes cannot directly extend java.lang.Enum
160 compiler.err.enum.types.not.extensible=\
161 enum types are not extensible
162 compiler.err.enum.no.finalize=\
163 enums cannot have finalize methods
164 compiler.err.error.reading.file=\
165 error reading {0}; {1}
166 compiler.err.except.already.caught=\
167 exception {0} has already been caught
168 compiler.err.except.never.thrown.in.try=\
169 exception {0} is never thrown in body of corresponding try statement
171 compiler.err.final.parameter.may.not.be.assigned=\
172 final parameter {0} may not be assigned
173 compiler.err.finally.without.try=\
174 ''finally'' without ''try''
175 compiler.err.foreach.not.applicable.to.type=\
176 foreach not applicable to expression type
177 compiler.err.fp.number.too.large=\
178 floating point number too large
179 compiler.err.fp.number.too.small=\
180 floating point number too small
182 compiler.err.generic.array.creation=\
183 generic array creation
184 compiler.err.generic.throwable=\
185 a generic class may not extend java.lang.Throwable
187 compiler.err.icls.cant.have.static.decl=\
188 inner classes cannot have static declarations
189 compiler.err.illegal.char=\
190 illegal character: \\{0}
191 compiler.err.illegal.char.for.encoding=\
192 unmappable character for encoding {0}
193 compiler.err.illegal.combination.of.modifiers=\
194 illegal combination of modifiers: {0} and {1}
195 compiler.err.illegal.enum.static.ref=\
196 illegal reference to static field from initializer
197 compiler.err.illegal.esc.char=\
198 illegal escape character
199 compiler.err.illegal.forward.ref=\
200 illegal forward reference
201 compiler.warn.forward.ref=\
202 reference to variable ''{0}'' before it has been initialized
203 compiler.err.illegal.generic.type.for.instof=\
204 illegal generic type for instanceof
205 compiler.err.illegal.initializer.for.type=\
206 illegal initializer for {0}
207 compiler.err.illegal.line.end.in.char.lit=\
208 illegal line end in character literal
209 compiler.err.illegal.nonascii.digit=\
210 illegal non-ASCII digit
211 compiler.err.illegal.qual.not.icls=\
212 illegal qualifier; {0} is not an inner class
213 compiler.err.illegal.start.of.expr=\
214 illegal start of expression
215 compiler.err.illegal.start.of.type=\
216 illegal start of type
217 compiler.err.illegal.unicode.esc=\
218 illegal unicode escape
219 compiler.err.import.requires.canonical=\
220 import requires canonical name for {0}
221 compiler.err.improperly.formed.type.param.missing=\
222 improperly formed type, some parameters are missing
223 compiler.err.improperly.formed.type.inner.raw.param=\
224 improperly formed type, type parameters given on a raw type
225 compiler.err.incomparable.types=\
226 incomparable types: {0} and {1}
227 compiler.err.int.number.too.large=\
228 integer number too large: {0}
229 compiler.err.internal.error.cant.instantiate=\
230 internal error; cannot instantiate {0} at {1} to ({2})
231 compiler.err.intf.annotation.members.cant.have.params=\
232 @interface members may not have parameters
233 compiler.err.intf.annotation.cant.have.type.params=\
234 @interface may not have type parameters
235 compiler.err.intf.annotation.members.cant.have.type.params=\
236 @interface members may not have type parameters
237 compiler.err.intf.annotation.member.clash=\
238 @interface member clashes with method ''{0}'' in {1}
239 compiler.err.intf.expected.here=\
240 interface expected here
241 compiler.err.intf.meth.cant.have.body=\
242 interface methods cannot have body
243 compiler.err.invalid.annotation.member.type=\
244 invalid type for annotation member
245 compiler.err.invalid.hex.number=\
246 hexadecimal numbers must contain at least one hexadecimal digit
247 compiler.err.invalid.meth.decl.ret.type.req=\
248 invalid method declaration; return type required
250 compiler.err.label.already.in.use=\
251 label {0} already in use
252 compiler.err.local.var.accessed.from.icls.needs.final=\
253 local variable {0} is accessed from within inner class; needs to be declared final
254 compiler.err.local.enum=\
255 enum types must not be local
256 compiler.err.cannot.create.array.with.type.arguments=\
257 cannot create array with type arguments
259 #
260 # limits. We don't give the limits in the diagnostic because we expect
261 # them to change, yet we want to use the same diagnostic. These are all
262 # detected during code generation.
263 #
264 compiler.err.limit.code=\
265 code too large
266 compiler.err.limit.code.too.large.for.try.stmt=\
267 code too large for try statement
268 compiler.err.limit.dimensions=\
269 array type has too many dimensions
270 compiler.err.limit.locals=\
271 too many local variables
272 compiler.err.limit.parameters=\
273 too many parameters
274 compiler.err.limit.pool=\
275 too many constants
276 compiler.err.limit.pool.in.class=\
277 too many constants in class {0}
278 compiler.err.limit.stack=\
279 code requires too much stack
280 compiler.err.limit.string=\
281 constant string too long
282 compiler.err.limit.string.overflow=\
283 UTF8 representation for string \"{0}...\" is too long for the constant pool
285 compiler.err.malformed.fp.lit=\
286 malformed floating point literal
287 compiler.err.method.does.not.override.superclass=\
288 method does not override or implement a method from a supertype
289 compiler.err.missing.meth.body.or.decl.abstract=\
290 missing method body, or declare abstract
291 compiler.err.missing.ret.stmt=\
292 missing return statement
293 compiler.err.missing.ret.val=\
294 missing return value
295 compiler.err.mod.not.allowed.here=\
296 modifier {0} not allowed here
297 compiler.err.intf.not.allowed.here=\
298 interface not allowed here
299 compiler.err.enums.must.be.static=\
300 enum declarations allowed only in static contexts
302 compiler.err.name.clash.same.erasure=\
303 name clash: {0} and {1} have the same erasure
304 compiler.err.name.clash.same.erasure.no.override=\
305 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
306 compiler.err.name.reserved.for.internal.use=\
307 {0} is reserved for internal use
308 compiler.err.native.meth.cant.have.body=\
309 native methods cannot have a body
310 compiler.err.neither.conditional.subtype=\
311 incompatible types for ?: neither is a subtype of the other\n\
312 second operand: {0}\n\
313 third operand : {1}
314 compiler.err.new.not.allowed.in.annotation=\
315 ''new'' not allowed in an annotation
316 compiler.err.no.annotation.member=\
317 no annotation member {0} in {1}
318 compiler.err.no.encl.instance.of.type.in.scope=\
319 no enclosing instance of type {0} is in scope
320 compiler.err.no.intf.expected.here=\
321 no interface expected here
322 compiler.err.no.match.entry=\
323 {0} has no match in entry in {1}; required {2}
324 compiler.err.not.annotation.type=\
325 {0} is not an annotation type
326 compiler.err.not.def.access.class.intf.cant.access=\
327 {0} in {1} is defined in an inaccessible class or interface
328 compiler.err.not.def.public.cant.access=\
329 {0} is not public in {1}; cannot be accessed from outside package
330 compiler.err.not.loop.label=\
331 not a loop label: {0}
332 compiler.err.not.stmt=\
333 not a statement
334 compiler.err.not.encl.class=\
335 not an enclosing class: {0}
337 compiler.err.operator.cant.be.applied=\
338 operator {0} cannot be applied to {1}
340 compiler.err.pkg.annotations.sb.in.package-info.java=\
341 package annotations should be in file package-info.java
342 compiler.err.pkg.clashes.with.class.of.same.name=\
343 package {0} clashes with class of same name
345 # Errors related to annotation processing
347 compiler.err.proc.cant.access=\
348 cannot access {0}\n\
349 {1}\n\
350 Consult the following stack trace for details.\n\
351 {2}
353 compiler.err.proc.cant.find.class=\
354 Could not find class file for ''{0}''.
356 # Print a client-generated error message; assumed to be localized, no translation required
357 compiler.err.proc.messager=\
358 {0}
360 compiler.err.proc.no.explicit.annotation.processing.requested=\
361 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
363 compiler.err.proc.no.service=\
364 A service loader class could not be found.\n\
365 Either java.util.ServiceLoader or sun.misc.Service must be available.
367 compiler.err.proc.processor.bad.option.name=\
368 Bad option name ''{0}'' provided by processor ''{1}''
370 compiler.err.proc.processor.cant.instantiate=\
371 Could not instantiate an instance of processor ''{0}''
373 compiler.err.proc.processor.constructor.error=\
374 Exception thrown while constructing Processor object: {0}
376 compiler.err.proc.processor.not.found=\
377 Annotation processor ''{0}'' not found
379 compiler.err.proc.processor.wrong.type=\
380 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
382 compiler.err.proc.service.problem=\
383 Error creating a service loader to load Processors.
385 compiler.err.proc.bad.config.file=\
386 Bad service configuration file, or exception thrown while constructing Processor object: {0}
388 compiler.err.proc.cant.create.loader=\
389 Could not create class loader for annotation processors: {0}
391 compiler.err.qualified.new.of.static.class=\
392 qualified new of static class
394 compiler.err.recursive.ctor.invocation=\
395 recursive constructor invocation
396 compiler.err.ref.ambiguous=\
397 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
398 compiler.err.repeated.annotation.target=\
399 repeated annotation target
400 compiler.err.repeated.interface=\
401 repeated interface
402 compiler.err.repeated.modifier=\
403 repeated modifier
404 compiler.err.report.access=\
405 {0} has {1} access in {2}
406 compiler.err.ret.outside.meth=\
407 return outside method
409 compiler.err.signature.doesnt.match.supertype=\
410 signature does not match {0}; incompatible supertype
411 compiler.err.signature.doesnt.match.intf=\
412 signature does not match {0}; incompatible interfaces
413 compiler.err.does.not.override.abstract=\
414 {0} is not abstract and does not override abstract method {1} in {2}
415 compiler.err.source.cant.overwrite.input.file=\
416 error writing source; cannot overwrite input file {0}
417 compiler.err.stack.sim.error=\
418 Internal error: stack sim error on {0}
419 compiler.err.static.imp.only.classes.and.interfaces=\
420 static import only from classes and interfaces
421 compiler.err.synthetic.name.conflict=\
422 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
424 compiler.err.throws.not.allowed.in.intf.annotation=\
425 throws clause not allowed in @interface members
426 compiler.err.try.without.catch.or.finally=\
427 ''try'' without ''catch'' or ''finally''
428 compiler.err.type.doesnt.take.params=\
429 type {0} does not take parameters
430 compiler.err.type.var.cant.be.deref=\
431 cannot select from a type variable
432 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
433 a type variable may not be followed by other bounds
434 compiler.err.type.var.more.than.once=\
435 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
436 compiler.err.type.var.more.than.once.in.result=\
437 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
438 compiler.err.types.incompatible.diff.ret=\
439 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
441 compiler.err.unclosed.char.lit=\
442 unclosed character literal
443 compiler.err.unclosed.comment=\
444 unclosed comment
445 compiler.err.unclosed.str.lit=\
446 unclosed string literal
447 compiler.err.unknown.enum.constant=\
448 in class file {0}: unknown enum constant {1}.{2}
449 compiler.err.unsupported.encoding=\
450 unsupported encoding: {0}
451 compiler.err.io.exception=\
452 error reading source file: {0}
453 compiler.err.undef.label=\
454 undefined label: {0}
455 compiler.err.undetermined.type=\
456 type parameters of {0} cannot be determined
457 compiler.err.undetermined.type.1=\
458 type parameters of {0} cannot be determined; {1}
459 compiler.err.unreachable.stmt=\
460 unreachable statement
461 compiler.err.initializer.must.be.able.to.complete.normally=\
462 initializer must be able to complete normally
463 compiler.err.unreported.exception.need.to.catch.or.throw=\
464 unreported exception {0}; must be caught or declared to be thrown
465 compiler.err.unreported.exception.default.constructor=\
466 unreported exception {0} in default constructor
467 compiler.err.unsupported.cross.fp.lit=\
468 hexadecimal floating-point literals are not supported on this VM
469 compiler.err.void.not.allowed.here=\
470 ''void'' type not allowed here
472 compiler.err.wrong.number.type.args=\
473 wrong number of type arguments; required {0}
475 compiler.err.var.might.already.be.assigned=\
476 variable {0} might already have been assigned
477 compiler.err.var.might.not.have.been.initialized=\
478 variable {0} might not have been initialized
479 compiler.err.var.might.be.assigned.in.loop=\
480 variable {0} might be assigned in loop
482 # In the following string, {1} will always be the detail message from
483 # java.io.IOException.
484 compiler.err.class.cant.write=\
485 error while writing {0}: {1}
487 # In the following string, {0} is the name of the class in the Java source.
488 # It really should be used two times..
489 compiler.err.class.public.should.be.in.file=\
490 class {0} is public, should be declared in a file named {0}.java
492 ## All errors which do not refer to a particular line in the source code are
493 ## preceded by this string.
494 compiler.err.error=\
495 error:\u0020
497 # The following error messages do not refer to a line in the source code.
498 compiler.err.cant.read.file=\
499 cannot read: {0}
501 #####
503 # Fatal Errors
505 compiler.misc.fatal.err.no.java.lang=\
506 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
507 compiler.misc.fatal.err.cant.locate.meth=\
508 Fatal Error: Unable to find method {0}
509 compiler.misc.fatal.err.cant.locate.field=\
510 Fatal Error: Unable to find field {0}
511 compiler.misc.fatal.err.cant.locate.ctor=\
512 Fatal Error: Unable to find constructor for {0}
514 #####
516 ##
517 ## miscellaneous strings
518 ##
520 compiler.misc.source.unavailable=\
521 (source unavailable)
522 compiler.misc.base.membership=\
523 all your base class are belong to us
524 compiler.misc.x.print.processor.info=\
525 Processor {0} matches {1} and returns {2}.
526 compiler.misc.x.print.rounds=\
527 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
529 #####
531 ## The following string will appear before all messages keyed as:
532 ## "compiler.note".
533 compiler.note.note=\
534 Note:\u0020
536 compiler.note.deprecated.filename=\
537 {0} uses or overrides a deprecated API.
538 compiler.note.deprecated.plural=\
539 Some input files use or override a deprecated API.
540 # The following string may appear after one of the above deprecation
541 # messages.
542 compiler.note.deprecated.recompile=\
543 Recompile with -Xlint:deprecation for details.
545 compiler.note.deprecated.filename.additional=\
546 {0} has additional uses or overrides of a deprecated API.
547 compiler.note.deprecated.plural.additional=\
548 Some input files additionally use or override a deprecated API.
550 # Notes related to annotation processing
552 # Print a client-generated note; assumed to be localized, no translation required
553 compiler.note.proc.messager=\
554 {0}
556 compiler.note.unchecked.filename=\
557 {0} uses unchecked or unsafe operations.
558 compiler.note.unchecked.plural=\
559 Some input files use unchecked or unsafe operations.
560 # The following string may appear after one of the above deprecation
561 # messages.
562 compiler.note.unchecked.recompile=\
563 Recompile with -Xlint:unchecked for details.
565 compiler.note.unchecked.filename.additional=\
566 {0} has additional unchecked or unsafe operations.
567 compiler.note.unchecked.plural.additional=\
568 Some input files additionally use unchecked or unsafe operations.
570 #####
572 compiler.misc.count.error=\
573 {0} error
574 compiler.misc.count.error.plural=\
575 {0} errors
576 compiler.misc.count.warn=\
577 {0} warning
578 compiler.misc.count.warn.plural=\
579 {0} warnings
581 ## extra output when using -verbose (JavaCompiler)
583 compiler.misc.verbose.checking.attribution=\
584 [checking {0}]
585 compiler.misc.verbose.parsing.done=\
586 [parsing completed {0}ms]
587 compiler.misc.verbose.parsing.started=\
588 [parsing started {0}]
589 compiler.misc.verbose.total=\
590 [total {0}ms]
591 compiler.misc.verbose.wrote.file=\
592 [wrote {0}]
594 ## extra output when using -verbose (Retro)
595 compiler.misc.verbose.retro=\
596 [retrofitting {0}]
597 compiler.misc.verbose.retro.with=\
598 \tretrofitting {0} with {1}
599 compiler.misc.verbose.retro.with.list=\
600 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
602 ## extra output when using -verbose (code/ClassReader)
603 compiler.misc.verbose.loading=\
604 [loading {0}]
606 compiler.misc.verbose.sourcepath=\
607 [search path for source files: {0}]
609 compiler.misc.verbose.classpath=\
610 [search path for class files: {0}]
612 ## extra output when using -checkclassfile (code/ClassReader)
613 compiler.misc.ccf.found.later.version=\
614 class file has later version than expected: {0}
615 compiler.misc.ccf.unrecognized.attribute=\
616 unrecognized attribute: {0}
618 ## extra output when using -prompt (util/Log)
619 compiler.misc.resume.abort=\
620 R)esume, A)bort>
622 #####
624 ##
625 ## warnings
626 ##
628 ## All warning messages are preceded by the following string.
629 compiler.warn.warning=\
630 warning:\u0020
632 compiler.warn.constant.SVUID=\
633 [serial] serialVersionUID must be constant in class {0}
635 compiler.warn.dir.path.element.not.found=\
636 [path] bad path element "{0}": no such directory
638 compiler.warn.finally.cannot.complete=\
639 [finally] finally clause cannot complete normally
641 compiler.warn.has.been.deprecated=\
642 [deprecation] {0} in {1} has been deprecated
644 compiler.warn.sun.proprietary=\
645 {0} is Sun proprietary API and may be removed in a future release
647 compiler.warn.illegal.char.for.encoding=\
648 unmappable character for encoding {0}
649 compiler.warn.improper.SVUID=\
650 [serial] serialVersionUID must be declared static final in class {0}
652 compiler.warn.inexact.non-varargs.call=\
653 non-varargs call of varargs method with inexact argument type for last parameter;\n\
654 cast to {0} for a varargs call\n\
655 cast to {1} for a non-varargs call and to suppress this warning
657 compiler.warn.long.SVUID=\
658 [serial] serialVersionUID must be of type long in class {0}
660 compiler.warn.missing.SVUID=\
661 [serial] serializable class {0} has no definition of serialVersionUID
663 compiler.warn.override.varargs.missing=\
664 {0}; overridden method has no ''...''
665 compiler.warn.override.varargs.extra=\
666 {0}; overriding method is missing ''...''
667 compiler.warn.override.bridge=\
668 {0}; overridden method is a bridge method
670 compiler.warn.pkg-info.already.seen=\
671 [package-info] a package-info.java file has already been seen for package {0}
672 compiler.warn.path.element.not.found=\
673 [path] bad path element "{0}": no such file or directory
674 compiler.warn.possible.fall-through.into.case=\
675 [fallthrough] possible fall-through into case
677 compiler.warn.redundant.cast=\
678 [cast] redundant cast to {0}
680 compiler.warn.position.overflow=\
681 Position encoding overflows at line {0}
683 compiler.warn.big.major.version=\
684 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
685 It is recommended that the compiler be upgraded.
687 # Warnings related to annotation processing
688 compiler.warn.proc.package.does.not.exist=\
689 package {0} does not exist
690 compiler.warn.proc.file.reopening=\
691 Attempt to create a file for ''{0}'' multiple times
693 compiler.warn.proc.type.already.exists=\
694 A file for type ''{0}'' already exists on the sourcepath or classpath
696 compiler.warn.proc.type.recreate=\
697 Attempt to create a file for type ''{0}'' multiple times
699 compiler.warn.proc.illegal.file.name=\
700 Cannot create file for illegal name ''{0}''.
702 compiler.warn.proc.file.create.last.round=\
703 File for type ''{0}'' created in the last round will not be subject to annotation processing.
705 compiler.warn.proc.malformed.supported.string=\
706 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
708 compiler.warn.proc.annotations.without.processors=\
709 No processor claimed any of these annotations: {0}
711 compiler.warn.proc.processor.incompatible.source.version=\
712 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
714 compiler.warn.proc.proc-only.requested.no.procs=\
715 Annotation processing without compilation requested but no processors were found.
717 compiler.warn.proc.use.implicit=\
718 Implicitly compiled files were not subject to annotation processing.\n\
719 Use -implicit to specify a policy for implicit compilation.
721 compiler.warn.proc.use.proc.or.implicit=\
722 Implicitly compiled files were not subject to annotation processing.\n\
723 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
725 # Print a client-generated warning; assumed to be localized, no translation required
726 compiler.warn.proc.messager=\
727 {0}
729 compiler.warn.proc.unclosed.type.files=\
730 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
732 compiler.warn.proc.unmatched.processor.options=\
733 The following options were not recognized by any processor: ''{0}''
735 compiler.warn.unchecked.assign=\
736 [unchecked] unchecked assignment: {0} to {1}
737 compiler.warn.unchecked.assign.to.var=\
738 [unchecked] unchecked assignment to variable {0} as member of raw type {1}
739 compiler.warn.unchecked.call.mbr.of.raw.type=\
740 [unchecked] unchecked call to {0} as a member of the raw type {1}
741 compiler.warn.unchecked.cast.to.type=\
742 [unchecked] unchecked cast to type {0}
743 compiler.warn.unchecked.meth.invocation.applied=\
744 [unchecked] unchecked method invocation: {0} in {1} is applied to {2}({3})
745 compiler.warn.unchecked.generic.array.creation=\
746 [unchecked] unchecked generic array creation of type {0} for varargs parameter
748 compiler.warn.missing.deprecated.annotation=\
749 [dep-ann] deprecated item is not annotated with @Deprecated
751 compiler.warn.invalid.archive.file=\
752 [path] Unexpected file on path: {0}
754 compiler.warn.unexpected.archive.file=\
755 [path] Unexpected extension for archive file: {0}
757 compiler.warn.div.zero=\
758 [divzero] division by zero
760 compiler.warn.empty.if=\
761 [empty] empty statement after if
763 compiler.warn.annotation.method.not.found=\
764 Cannot find annotation method ''{1}()'' in type ''{0}''
766 compiler.warn.annotation.method.not.found.reason=\
767 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
769 #####
771 ## The following are tokens which are non-terminals in the language. They should
772 ## be named as JLS3 calls them when translated to the appropriate language.
773 compiler.misc.token.identifier=\
774 <identifier>
775 compiler.misc.token.character=\
776 <character>
777 compiler.misc.token.string=\
778 <string>
779 compiler.misc.token.integer=\
780 <integer>
781 compiler.misc.token.long-integer=\
782 <long integer>
783 compiler.misc.token.float=\
784 <float>
785 compiler.misc.token.double=\
786 <double>
787 compiler.misc.token.bad-symbol=\
788 <bad symbol>
789 compiler.misc.token.end-of-input=\
790 <end of input>
792 ## The argument to the following string will always be one of the following:
793 ## 1. one of the above non-terminals
794 ## 2. a keyword (JLS1.8)
795 ## 3. a boolean literal (JLS3.10.3)
796 ## 4. the null literal (JLS3.10.7)
797 ## 5. a Java separator (JLS3.11)
798 ## 6. an operator (JLS3.12)
799 ##
800 ## This is the only place these tokens will be used.
801 compiler.err.expected=\
802 {0} expected
803 compiler.err.expected2=\
804 {0} or {1} expected
805 compiler.err.expected3=\
806 {0}, {1}, or {2} expected
808 compiler.err.premature.eof=\
809 reached end of file while parsing
811 ## The following are related in form, but do not easily fit the above paradigm.
812 compiler.err.dot.class.expected=\
813 ''.class'' expected
815 ## The argument to this string will always be either 'case' or 'default'.
816 compiler.err.orphaned=\
817 orphaned {0}
819 compiler.misc.anonymous.class=\
820 <anonymous {0}>
822 compiler.misc.unnamed.package=\
823 unnamed package
825 #####
827 compiler.err.cant.access=\
828 cannot access {0}\n\
829 {1}
831 compiler.misc.bad.class.file.header=\
832 bad class file: {0}\n\
833 {1}\n\
834 Please remove or make sure it appears in the correct subdirectory of the classpath.
835 compiler.misc.bad.source.file.header=\
836 bad source file: {0}\n\
837 {1}\n\
838 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
840 ## The following are all possible strings for the second argument ({1}) of the
841 ## above strings.
842 compiler.misc.bad.class.signature=\
843 bad class signature: {0}
844 compiler.misc.bad.enclosing.method=\
845 bad enclosing method attribute: {0}
846 compiler.misc.bad.runtime.invisible.param.annotations=\
847 bad RuntimeInvisibleParameterAnnotations attribute: {0}
848 compiler.misc.bad.const.pool.tag=\
849 bad constant pool tag: {0}
850 compiler.misc.bad.const.pool.tag.at=\
851 bad constant pool tag: {0} at {1}
852 compiler.misc.bad.signature=\
853 bad signature: {0}
854 compiler.misc.class.file.wrong.class=\
855 class file contains wrong class: {0}
856 compiler.misc.class.file.not.found=\
857 class file for {0} not found
858 compiler.misc.file.doesnt.contain.class=\
859 file does not contain class {0}
860 compiler.misc.file.does.not.contain.package=\
861 file does not contain package {0}
862 compiler.misc.illegal.start.of.class.file=\
863 illegal start of class file
864 compiler.misc.unable.to.access.file=\
865 unable to access file: {0}
866 compiler.misc.unicode.str.not.supported=\
867 unicode string in class file not supported
868 compiler.misc.undecl.type.var=\
869 undeclared type variable: {0}
870 compiler.misc.wrong.version=\
871 class file has wrong version {0}.{1}, should be {2}.{3}
873 #####
875 compiler.err.not.within.bounds=\
876 type parameter {0} is not within its bound
878 compiler.err.not.within.bounds.explain=\
879 type parameter {0} is not within its bound; {1}
881 ## The following are all possible strings for the second argument ({1}) of the
882 ## above string.
884 ## none yet...
886 #####
888 compiler.err.prob.found.req=\
889 {0}\n\
890 found : {1}\n\
891 required: {2}
892 compiler.warn.prob.found.req=\
893 {0}\n\
894 found : {1}\n\
895 required: {2}
896 compiler.err.prob.found.req.1=\
897 {0} {3}\n\
898 found : {1}\n\
899 required: {2}
901 ## The following are all possible strings for the first argument ({0}) of the
902 ## above strings.
903 compiler.misc.incompatible.types=\
904 incompatible types
905 compiler.misc.incompatible.types.1=\
906 incompatible types; {0}
907 compiler.misc.inconvertible.types=\
908 inconvertible types
909 compiler.misc.possible.loss.of.precision=\
910 possible loss of precision
912 compiler.misc.unchecked.assign=\
913 [unchecked] unchecked conversion
914 # compiler.misc.storecheck=\
915 # [unchecked] assignment might cause later store checks to fail
916 # compiler.misc.unchecked=\
917 # [unchecked] assigned array cannot dynamically check its stores
918 compiler.misc.unchecked.cast.to.type=\
919 [unchecked] unchecked cast
921 compiler.misc.assignment.from.super-bound=\
922 assignment from super-bound type {0}
923 compiler.misc.assignment.to.extends-bound=\
924 assignment to extends-bound type {0}
925 # compiler.err.star.expected=\
926 # ''*'' expected
927 # compiler.err.no.elem.type=\
928 # \[\*\] cannot have a type
930 #####
932 compiler.err.type.found.req=\
933 unexpected type\n\
934 found : {0}\n\
935 required: {1}
937 ## The following are all possible strings for the first argument ({0}) of the
938 ## above string.
939 compiler.misc.type.req.class=\
940 class
941 compiler.misc.type.req.class.array=\
942 class or array
943 compiler.misc.type.req.ref=\
944 reference
945 compiler.misc.type.req.exact=\
946 class or interface without bounds
947 compiler.misc.type.parameter=\
948 type parameter {0}
950 #####
952 ## The following are all possible strings for the last argument of all those
953 ## diagnostics whose key ends in ".1"
954 compiler.misc.undetermined.type=\
955 undetermined type
956 ncompiler.misc.type.variable.has.undetermined.type=\
957 type variable {0} has undetermined type
958 compiler.misc.no.unique.maximal.instance.exists=\
959 no unique maximal instance exists for type variable {0} with upper bounds {1}
960 compiler.misc.no.unique.minimal.instance.exists=\
961 no unique minimal instance exists for type variable {0} with lower bounds {1}
962 compiler.misc.no.conforming.instance.exists=\
963 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
964 compiler.misc.no.conforming.assignment.exists=\
965 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
966 compiler.misc.arg.length.mismatch=\
967 cannot instantiate from arguments because actual and formal argument lists differ in length
968 compiler.misc.inferred.do.not.conform.to.bounds=\
969 inferred type argument(s) {0} do not conform to bounds of type variable(s) {1}
971 #####
973 ## The first argument ({0}) is a "kindname".
974 compiler.err.abstract.cant.be.accessed.directly=\
975 abstract {0} {1} in {2} cannot be accessed directly
977 ## The first argument ({0}) is a "kindname".
978 compiler.err.non-static.cant.be.ref=\
979 non-static {0} {1} cannot be referenced from a static context
981 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
982 ## of kindnames (the list should be identical to that provided in source.
983 compiler.err.unexpected.type=\
984 unexpected type\n\
985 required: {0}\n\
986 found : {1}
988 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
989 ## The second argument {1} is the non-resolved symbol
990 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
991 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
992 compiler.err.cant.resolve=\
993 cannot find symbol\n\
994 symbol: {0} {1}
996 compiler.err.cant.resolve.args=\
997 cannot find symbol\n\
998 symbol: {0} {1}({3})
1000 compiler.err.cant.resolve.args.params=\
1001 cannot find symbol\n\
1002 symbol: {0} <{2}>{1}({3})
1004 ## arguments from {0} to {3} have the same meaning as above
1005 ## The fifth argument {4} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1006 ## The sixth argument {5} is the location type
1007 compiler.err.cant.resolve.location=\
1008 cannot find symbol\n\
1009 symbol : {0} {1}\n\
1010 location: {4} {5}
1012 compiler.err.cant.resolve.location.args=\
1013 cannot find symbol\n\
1014 symbol : {0} {1}({3})\n\
1015 location: {4} {5}
1017 compiler.err.cant.resolve.location.args.params=\
1018 cannot find symbol\n\
1019 symbol : {0} <{2}>{1}({3})\n\
1020 location: {4} {5}
1022 ## The following are all possible string for "kindname".
1023 ## They should be called whatever the JLS calls them after it been translated
1024 ## to the appropriate language.
1025 # compiler.misc.kindname.constructor=\
1026 # static member
1027 compiler.misc.kindname.annotation=\
1028 @interface
1029 compiler.misc.kindname.constructor=\
1030 constructor
1031 compiler.misc.kindname.interface=\
1032 interface
1033 compiler.misc.kindname.static=\
1034 static
1035 compiler.misc.kindname.type.variable=\
1036 type variable
1037 compiler.misc.kindname.type.variable.bound=\
1038 bound of type variable
1039 compiler.misc.kindname.variable=\
1040 variable
1041 compiler.misc.kindname.value=\
1042 value
1043 compiler.misc.kindname.method=\
1044 method
1045 compiler.misc.kindname.class=\
1046 class
1047 compiler.misc.kindname.package=\
1048 package
1049 #####
1051 compiler.err.override.static=\
1052 {0}; overriding method is static
1053 compiler.err.override.meth=\
1054 {0}; overridden method is {1}
1056 compiler.err.override.meth.doesnt.throw=\
1057 {0}; overridden method does not throw {1}
1059 # In the following string {1} is a space separated list of Java Keywords, as
1060 # they would have been declared in the source code
1061 compiler.err.override.weaker.access=\
1062 {0}; attempting to assign weaker access privileges; was {1}
1064 compiler.misc.override.incompatible.ret=\
1065 {0}; attempting to use incompatible return type
1067 compiler.misc.override.unchecked.ret=\
1068 {0}; return type requires unchecked conversion
1070 ## The following are all possible strings for the first argument ({0}) of the
1071 ## above strings.
1072 compiler.misc.cant.override=\
1073 {0} in {1} cannot override {2} in {3}
1074 compiler.misc.cant.implement=\
1075 {0} in {1} cannot implement {2} in {3}
1076 compiler.misc.clashes.with=\
1077 {0} in {1} clashes with {2} in {3}
1078 compiler.misc.unchecked.override=\
1079 {0} in {1} overrides {2} in {3}
1080 compiler.misc.unchecked.implement=\
1081 {0} in {1} implements {2} in {3}
1082 compiler.misc.unchecked.clash.with=\
1083 {0} in {1} overrides {2} in {3}
1084 compiler.misc.varargs.override=\
1085 {0} in {1} overrides {2} in {3}
1086 compiler.misc.varargs.implement=\
1087 {0} in {1} implements {2} in {3}
1088 compiler.misc.varargs.clash.with=\
1089 {0} in {1} overrides {2} in {3}
1091 ########################################
1092 # Diagnostics for language feature changes
1093 ########################################
1094 compiler.err.unsupported.fp.lit=\
1095 hexadecimal floating-point literals are not supported before -source 5
1097 compiler.warn.enum.as.identifier=\
1098 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1099 (use -source 5 or higher to use ''enum'' as a keyword)
1101 compiler.warn.assert.as.identifier=\
1102 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1103 (use -source 1.4 or higher to use ''assert'' as a keyword)
1105 compiler.err.enum.as.identifier=\
1106 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1107 (use -source 1.4 or lower to use ''enum'' as an identifier)
1109 compiler.err.assert.as.identifier=\
1110 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1111 (use -source 1.3 or lower to use ''assert'' as an identifier)
1113 compiler.err.generics.not.supported.in.source=\
1114 generics are not supported in -source {0}\n\
1115 (use -source 5 or higher to enable generics)
1117 compiler.err.varargs.not.supported.in.source=\
1118 variable-arity methods are not supported in -source {0}\n\
1119 (use -source 5 or higher to enable variable-arity methods)
1121 compiler.err.annotations.not.supported.in.source=\
1122 annotations are not supported in -source {0}\n\
1123 (use -source 5 or higher to enable annotations)
1125 compiler.err.foreach.not.supported.in.source=\
1126 for-each loops are not supported in -source {0}\n\
1127 (use -source 5 or higher to enable for-each loops)
1129 compiler.err.static.import.not.supported.in.source=\
1130 static import declarations are not supported in -source {0}\n\
1131 (use -source 5 or higher to enable static import declarations)
1133 compiler.err.enums.not.supported.in.source=\
1134 enums are not supported in -source {0}\n\
1135 (use -source 5 or higher to enable enums)