Sat, 18 Sep 2010 09:56:23 -0700
5088624: cannot find symbol message should be more intelligent
Summary: Resolve.java should keep track of all candidates found during a method resolution sweep to generate more meaningful diagnostics
Reviewed-by: jjg
1 #
2 # Copyright (c) 1999, 2009, 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 ##
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 value for the attribute {1}
46 compiler.err.annotation.missing.default.value.1=\
47 annotation {0} is missing values for attributes {1}
48 compiler.err.annotation.not.valid.for.type=\
49 annotation not valid for a value of type {0}
50 compiler.err.annotation.type.not.applicable=\
51 annotation type not applicable to this kind of declaration
52 compiler.err.annotation.value.must.be.annotation=\
53 annotation value must be an annotation
54 compiler.err.annotation.value.must.be.class.literal=\
55 annotation value must be a class literal
56 compiler.err.annotation.value.must.be.name.value=\
57 annotation values must be of the form ''name=value''
58 compiler.err.annotation.value.not.allowable.type=\
59 annotation value not of an allowable type
60 compiler.err.anon.class.impl.intf.no.args=\
61 anonymous class implements interface; cannot have arguments
62 compiler.err.anon.class.impl.intf.no.typeargs=\
63 anonymous class implements interface; cannot have type arguments
64 compiler.err.anon.class.impl.intf.no.qual.for.new=\
65 anonymous class implements interface; cannot have qualifier for new
66 compiler.misc.twr.not.applicable.to.type=\
67 automatic resource management not applicable to variable type
68 compiler.err.array.and.varargs=\
69 cannot declare both {0} and {1} in {2}
70 compiler.err.array.dimension.missing=\
71 array dimension missing
72 compiler.err.array.req.but.found=\
73 array required, but {0} found
75 compiler.err.assignment.from.super-bound=\
76 assigning from wildcard {0}
77 compiler.err.assignment.to.extends-bound=\
78 assigning to wildcard {0}
79 compiler.err.attribute.value.must.be.constant=\
80 attribute value must be constant
82 compiler.err.break.outside.switch.loop=\
83 break outside switch or loop
85 compiler.err.call.must.be.first.stmt.in.ctor=\
86 call to {0} must be first statement in constructor
87 compiler.err.cant.apply.symbol=\
88 {0} {1} in {4} {5} cannot be applied to given types\n\
89 required: {2}\n\
90 found: {3}
91 compiler.err.cant.apply.symbol.1=\
92 {0} {1} in {4} {5} cannot be applied to given types;\n\
93 required: {2}\n\
94 found: {3}\n\
95 reason: {6}
96 compiler.err.cant.apply.symbols=\
97 no suitable {0} found for {1}({2})
98 compiler.err.cant.assign.val.to.final.var=\
99 cannot assign a value to final variable {0}
100 compiler.err.cant.deref=\
101 {0} cannot be dereferenced
102 compiler.err.cant.extend.intf.annotation=\
103 ''extends'' not allowed for @interfaces
104 compiler.err.cant.inherit.from.final=\
105 cannot inherit from final {0}
106 compiler.err.cant.ref.before.ctor.called=\
107 cannot reference {0} before supertype constructor has been called
108 compiler.err.cant.ret.val.from.meth.decl.void=\
109 cannot return a value from method whose result type is void
110 compiler.err.cant.select.static.class.from.param.type=\
111 cannot select a static class from a parameterized type
112 compiler.err.cant.inherit.diff.arg=\
113 {0} cannot be inherited with different arguments: <{1}> and <{2}>
114 compiler.err.catch.without.try=\
115 ''catch'' without ''try''
116 compiler.err.clash.with.pkg.of.same.name=\
117 {0} clashes with package of same name
118 compiler.err.const.expr.req=\
119 constant expression required
120 compiler.err.enum.const.req=\
121 unqualified enumeration constant name required
122 compiler.err.cont.outside.loop=\
123 continue outside of loop
124 compiler.err.cyclic.inheritance=\
125 cyclic inheritance involving {0}
126 compiler.err.cyclic.annotation.element=\
127 cyclic annotation element type
128 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
129 call to super not allowed in enum constructor
130 compiler.err.no.superclass=\
131 {0} has no superclass
133 compiler.warn.type.parameter.on.polymorphic.signature=\
134 change obsolete notation for MethodHandle invocations from x.<T>invoke(y) to (T)x.invoke(y)
135 compiler.warn.wrong.target.for.polymorphic.signature.definition=\
136 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
138 compiler.err.concrete.inheritance.conflict=\
139 methods {0} from {1} and {2} from {3} are inherited with the same signature
141 compiler.err.default.allowed.in.intf.annotation.member=\
142 default value only allowed in an @interface member
143 compiler.err.doesnt.exist=\
144 package {0} does not exist
145 compiler.err.duplicate.annotation=\
146 duplicate annotation
147 compiler.err.duplicate.annotation.member.value=\
148 duplicate annotation member value {0} in {1}
149 compiler.err.duplicate.class=\
150 duplicate class: {0}
151 compiler.err.duplicate.case.label=\
152 duplicate case label
153 compiler.err.duplicate.default.label=\
154 duplicate default label
156 compiler.err.else.without.if=\
157 ''else'' without ''if''
158 compiler.err.empty.bytecode.ident=\
159 empty bytecode identifier
160 compiler.err.empty.char.lit=\
161 empty character literal
162 compiler.err.encl.class.required=\
163 an enclosing instance that contains {0} is required
164 compiler.err.enum.annotation.must.be.enum.constant=\
165 an enum annotation value must be an enum constant
167 compiler.err.enum.cant.be.instantiated=\
168 enum types may not be instantiated
169 compiler.err.enum.label.must.be.unqualified.enum=\
170 an enum switch case label must be the unqualified name of an enumeration constant
171 compiler.err.enum.no.subclassing=\
172 classes cannot directly extend java.lang.Enum
173 compiler.err.enum.types.not.extensible=\
174 enum types are not extensible
175 compiler.err.enum.no.finalize=\
176 enums cannot have finalize methods
177 compiler.err.error.reading.file=\
178 error reading {0}; {1}
179 compiler.err.except.already.caught=\
180 exception {0} has already been caught
181 compiler.err.except.never.thrown.in.try=\
182 exception {0} is never thrown in body of corresponding try statement
184 compiler.err.final.parameter.may.not.be.assigned=\
185 final parameter {0} may not be assigned
186 compiler.err.twr.resource.may.not.be.assigned=\
187 automatic resource {0} may not be assigned
188 compiler.err.multicatch.parameter.may.not.be.assigned=\
189 multi-catch parameter {0} may not be assigned
190 compiler.err.multicatch.param.must.be.final=\
191 multi-catch parameter {0} must be final
192 compiler.err.finally.without.try=\
193 ''finally'' without ''try''
194 compiler.err.foreach.not.applicable.to.type=\
195 foreach not applicable to expression type
196 compiler.err.fp.number.too.large=\
197 floating point number too large
198 compiler.err.fp.number.too.small=\
199 floating point number too small
201 compiler.err.generic.array.creation=\
202 generic array creation
203 compiler.err.generic.throwable=\
204 a generic class may not extend java.lang.Throwable
206 compiler.err.icls.cant.have.static.decl=\
207 inner classes cannot have static declarations
208 compiler.err.illegal.bytecode.ident.char=\
209 illegal bytecode identifier character: \\{0}
210 compiler.err.illegal.char=\
211 illegal character: \\{0}
212 compiler.err.illegal.char.for.encoding=\
213 unmappable character for encoding {0}
214 compiler.err.illegal.combination.of.modifiers=\
215 illegal combination of modifiers: {0} and {1}
216 compiler.err.illegal.enum.static.ref=\
217 illegal reference to static field from initializer
218 compiler.err.illegal.esc.char=\
219 illegal escape character
220 compiler.err.illegal.forward.ref=\
221 illegal forward reference
222 compiler.warn.forward.ref=\
223 reference to variable ''{0}'' before it has been initialized
224 compiler.err.illegal.self.ref=\
225 self-reference in initializer
226 compiler.warn.self.ref=\
227 self-reference in initializer of variable ''{0}''
228 compiler.err.illegal.generic.type.for.instof=\
229 illegal generic type for instanceof
230 compiler.err.illegal.initializer.for.type=\
231 illegal initializer for {0}
232 compiler.err.illegal.line.end.in.char.lit=\
233 illegal line end in character literal
234 compiler.err.illegal.nonascii.digit=\
235 illegal non-ASCII digit
236 compiler.err.illegal.underscore=\
237 illegal underscore
238 compiler.err.illegal.qual.not.icls=\
239 illegal qualifier; {0} is not an inner class
240 compiler.err.illegal.start.of.expr=\
241 illegal start of expression
242 compiler.err.illegal.start.of.type=\
243 illegal start of type
244 compiler.err.illegal.unicode.esc=\
245 illegal unicode escape
246 compiler.err.import.requires.canonical=\
247 import requires canonical name for {0}
248 compiler.err.improperly.formed.type.param.missing=\
249 improperly formed type, some parameters are missing
250 compiler.err.improperly.formed.type.inner.raw.param=\
251 improperly formed type, type parameters given on a raw type
252 compiler.err.incomparable.types=\
253 incomparable types: {0} and {1}
254 compiler.err.int.number.too.large=\
255 integer number too large: {0}
256 compiler.err.internal.error.cant.instantiate=\
257 internal error; cannot instantiate {0} at {1} to ({2})
258 compiler.err.intf.annotation.members.cant.have.params=\
259 @interface members may not have parameters
260 compiler.err.intf.annotation.cant.have.type.params=\
261 @interface may not have type parameters
262 compiler.err.intf.annotation.members.cant.have.type.params=\
263 @interface members may not have type parameters
264 compiler.err.intf.annotation.member.clash=\
265 @interface member clashes with method ''{0}'' in {1}
266 compiler.err.intf.expected.here=\
267 interface expected here
268 compiler.err.intf.meth.cant.have.body=\
269 interface methods cannot have body
270 compiler.err.invalid.annotation.member.type=\
271 invalid type for annotation member
272 compiler.err.invalid.binary.number=\
273 binary numbers must contain at least one binary digit
274 compiler.err.invalid.hex.number=\
275 hexadecimal numbers must contain at least one hexadecimal digit
276 compiler.err.invalid.meth.decl.ret.type.req=\
277 invalid method declaration; return type required
279 compiler.err.label.already.in.use=\
280 label {0} already in use
281 compiler.err.local.var.accessed.from.icls.needs.final=\
282 local variable {0} is accessed from within inner class; needs to be declared final
283 compiler.err.local.enum=\
284 enum types must not be local
285 compiler.err.cannot.create.array.with.type.arguments=\
286 cannot create array with type arguments
288 #
289 # limits. We don't give the limits in the diagnostic because we expect
290 # them to change, yet we want to use the same diagnostic. These are all
291 # detected during code generation.
292 #
293 compiler.err.limit.code=\
294 code too large
295 compiler.err.limit.code.too.large.for.try.stmt=\
296 code too large for try statement
297 compiler.err.limit.dimensions=\
298 array type has too many dimensions
299 compiler.err.limit.locals=\
300 too many local variables
301 compiler.err.limit.parameters=\
302 too many parameters
303 compiler.err.limit.pool=\
304 too many constants
305 compiler.err.limit.pool.in.class=\
306 too many constants in class {0}
307 compiler.err.limit.stack=\
308 code requires too much stack
309 compiler.err.limit.string=\
310 constant string too long
311 compiler.err.limit.string.overflow=\
312 UTF8 representation for string \"{0}...\" is too long for the constant pool
314 compiler.err.malformed.fp.lit=\
315 malformed floating point literal
316 compiler.err.method.does.not.override.superclass=\
317 method does not override or implement a method from a supertype
318 compiler.err.missing.meth.body.or.decl.abstract=\
319 missing method body, or declare abstract
320 compiler.err.missing.ret.stmt=\
321 missing return statement
322 compiler.err.missing.ret.val=\
323 missing return value
324 compiler.err.mod.not.allowed.here=\
325 modifier {0} not allowed here
326 compiler.err.intf.not.allowed.here=\
327 interface not allowed here
328 compiler.err.enums.must.be.static=\
329 enum declarations allowed only in static contexts
331 compiler.err.name.clash.same.erasure=\
332 name clash: {0} and {1} have the same erasure
333 compiler.err.name.clash.same.erasure.no.override=\
334 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
335 compiler.err.name.reserved.for.internal.use=\
336 {0} is reserved for internal use
337 compiler.err.native.meth.cant.have.body=\
338 native methods cannot have a body
339 compiler.err.neither.conditional.subtype=\
340 incompatible types for ?: neither is a subtype of the other\n\
341 second operand: {0}\n\
342 third operand : {1}
343 compiler.err.new.not.allowed.in.annotation=\
344 ''new'' not allowed in an annotation
345 compiler.err.no.annotation.member=\
346 no annotation member {0} in {1}
347 compiler.err.no.encl.instance.of.type.in.scope=\
348 no enclosing instance of type {0} is in scope
349 compiler.err.no.intf.expected.here=\
350 no interface expected here
351 compiler.err.no.match.entry=\
352 {0} has no match in entry in {1}; required {2}
353 compiler.err.not.annotation.type=\
354 {0} is not an annotation type
355 compiler.err.not.def.access.class.intf.cant.access=\
356 {0} in {1} is defined in an inaccessible class or interface
357 compiler.err.not.def.public.cant.access=\
358 {0} is not public in {1}; cannot be accessed from outside package
359 compiler.err.not.loop.label=\
360 not a loop label: {0}
361 compiler.err.not.stmt=\
362 not a statement
363 compiler.err.not.encl.class=\
364 not an enclosing class: {0}
366 compiler.err.operator.cant.be.applied=\
367 operator {0} cannot be applied to {1}
369 compiler.err.pkg.annotations.sb.in.package-info.java=\
370 package annotations should be in file package-info.java
371 compiler.err.pkg.clashes.with.class.of.same.name=\
372 package {0} clashes with class of same name
374 compiler.err.warnings.and.werror=\
375 warnings found and -Werror specified
377 # Errors related to annotation processing
379 compiler.err.proc.cant.access=\
380 cannot access {0}\n\
381 {1}\n\
382 Consult the following stack trace for details.\n\
383 {2}
385 compiler.err.proc.cant.find.class=\
386 Could not find class file for ''{0}''.
388 # Print a client-generated error message; assumed to be localized, no translation required
389 compiler.err.proc.messager=\
390 {0}
392 compiler.err.proc.no.explicit.annotation.processing.requested=\
393 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
395 compiler.err.proc.no.service=\
396 A service loader class could not be found.\n\
397 Either java.util.ServiceLoader or sun.misc.Service must be available.
399 compiler.err.proc.processor.bad.option.name=\
400 Bad option name ''{0}'' provided by processor ''{1}''
402 compiler.err.proc.processor.cant.instantiate=\
403 Could not instantiate an instance of processor ''{0}''
405 compiler.err.proc.processor.constructor.error=\
406 Exception thrown while constructing Processor object: {0}
408 compiler.err.proc.processor.not.found=\
409 Annotation processor ''{0}'' not found
411 compiler.err.proc.processor.wrong.type=\
412 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
414 compiler.err.proc.service.problem=\
415 Error creating a service loader to load Processors.
417 compiler.err.proc.bad.config.file=\
418 Bad service configuration file, or exception thrown while constructing Processor object: {0}
420 compiler.err.proc.cant.create.loader=\
421 Could not create class loader for annotation processors: {0}
423 compiler.err.qualified.new.of.static.class=\
424 qualified new of static class
426 compiler.err.recursive.ctor.invocation=\
427 recursive constructor invocation
428 compiler.err.ref.ambiguous=\
429 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
430 compiler.err.repeated.annotation.target=\
431 repeated annotation target
432 compiler.err.repeated.interface=\
433 repeated interface
434 compiler.err.repeated.modifier=\
435 repeated modifier
436 compiler.err.report.access=\
437 {0} has {1} access in {2}
438 compiler.err.ret.outside.meth=\
439 return outside method
441 compiler.err.signature.doesnt.match.supertype=\
442 signature does not match {0}; incompatible supertype
443 compiler.err.signature.doesnt.match.intf=\
444 signature does not match {0}; incompatible interfaces
445 compiler.err.does.not.override.abstract=\
446 {0} is not abstract and does not override abstract method {1} in {2}
447 compiler.err.source.cant.overwrite.input.file=\
448 error writing source; cannot overwrite input file {0}
449 compiler.err.stack.sim.error=\
450 Internal error: stack sim error on {0}
451 compiler.err.static.imp.only.classes.and.interfaces=\
452 static import only from classes and interfaces
453 compiler.err.string.const.req=\
454 constant string expression required
455 compiler.err.synthetic.name.conflict=\
456 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
457 compiler.warn.synthetic.name.conflict=\
458 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
460 compiler.err.throws.not.allowed.in.intf.annotation=\
461 throws clause not allowed in @interface members
462 compiler.err.try.without.catch.or.finally=\
463 ''try'' without ''catch'' or ''finally''
464 compiler.err.try.without.catch.finally.or.resource.decls=\
465 ''try'' without ''catch'', ''finally'' or resource declarations
466 compiler.err.type.doesnt.take.params=\
467 type {0} does not take parameters
468 compiler.err.type.var.cant.be.deref=\
469 cannot select from a type variable
470 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
471 a type variable may not be followed by other bounds
472 compiler.err.type.var.more.than.once=\
473 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
474 compiler.err.type.var.more.than.once.in.result=\
475 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
476 compiler.err.types.incompatible.diff.ret=\
477 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
479 compiler.err.unclosed.bytecode.ident=\
480 unclosed bytecode identifier
481 compiler.err.unclosed.char.lit=\
482 unclosed character literal
483 compiler.err.unclosed.comment=\
484 unclosed comment
485 compiler.err.unclosed.str.lit=\
486 unclosed string literal
487 compiler.err.unknown.enum.constant=\
488 in class file {0}: unknown enum constant {1}.{2}
489 compiler.err.unsupported.encoding=\
490 unsupported encoding: {0}
491 compiler.err.io.exception=\
492 error reading source file: {0}
493 compiler.err.undef.label=\
494 undefined label: {0}
495 compiler.err.undetermined.type=\
496 type parameters of {0} cannot be determined
497 compiler.err.undetermined.type.1=\
498 type parameters of {0} cannot be determined; {1}
499 compiler.err.invalid.inferred.types=\
500 invalid inferred types for {0}; {1}
501 compiler.err.cant.apply.diamond=\
502 cannot infer type arguments for {0}
503 compiler.err.cant.apply.diamond.1=\
504 cannot infer type arguments for {0};\n\
505 reason: {1}
506 compiler.err.unreachable.stmt=\
507 unreachable statement
508 compiler.err.initializer.must.be.able.to.complete.normally=\
509 initializer must be able to complete normally
510 compiler.err.unreported.exception.need.to.catch.or.throw=\
511 unreported exception {0}; must be caught or declared to be thrown
512 compiler.err.unreported.exception.default.constructor=\
513 unreported exception {0} in default constructor
514 compiler.err.unsupported.cross.fp.lit=\
515 hexadecimal floating-point literals are not supported on this VM
516 compiler.err.void.not.allowed.here=\
517 ''void'' type not allowed here
519 compiler.err.wrong.number.type.args=\
520 wrong number of type arguments; required {0}
522 compiler.err.var.might.already.be.assigned=\
523 variable {0} might already have been assigned
524 compiler.err.var.might.not.have.been.initialized=\
525 variable {0} might not have been initialized
526 compiler.err.var.might.be.assigned.in.loop=\
527 variable {0} might be assigned in loop
529 # In the following string, {1} will always be the detail message from
530 # java.io.IOException.
531 compiler.err.class.cant.write=\
532 error while writing {0}: {1}
534 # In the following string, {0} is the name of the class in the Java source.
535 # It really should be used two times..
536 compiler.err.class.public.should.be.in.file=\
537 class {0} is public, should be declared in a file named {0}.java
539 ## All errors which do not refer to a particular line in the source code are
540 ## preceded by this string.
541 compiler.err.error=\
542 error:\u0020
544 # The following error messages do not refer to a line in the source code.
545 compiler.err.cant.read.file=\
546 cannot read: {0}
548 #####
550 # Fatal Errors
552 compiler.misc.fatal.err.no.java.lang=\
553 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
554 compiler.misc.fatal.err.cant.locate.meth=\
555 Fatal Error: Unable to find method {0}
556 compiler.misc.fatal.err.cant.locate.field=\
557 Fatal Error: Unable to find field {0}
558 compiler.misc.fatal.err.cant.locate.ctor=\
559 Fatal Error: Unable to find constructor for {0}
560 compiler.misc.fatal.err.cant.close.loader=\
561 Fatal Error: Cannot close class loader for annotation processors
563 #####
565 ##
566 ## miscellaneous strings
567 ##
569 compiler.misc.source.unavailable=\
570 (source unavailable)
571 compiler.misc.base.membership=\
572 all your base class are belong to us
573 compiler.misc.x.print.processor.info=\
574 Processor {0} matches {1} and returns {2}.
575 compiler.misc.x.print.rounds=\
576 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
578 #####
580 ## The following string will appear before all messages keyed as:
581 ## "compiler.note".
582 compiler.note.note=\
583 Note:\u0020
585 compiler.note.deprecated.filename=\
586 {0} uses or overrides a deprecated API.
587 compiler.note.deprecated.plural=\
588 Some input files use or override a deprecated API.
589 # The following string may appear after one of the above deprecation
590 # messages.
591 compiler.note.deprecated.recompile=\
592 Recompile with -Xlint:deprecation for details.
594 compiler.note.deprecated.filename.additional=\
595 {0} has additional uses or overrides of a deprecated API.
596 compiler.note.deprecated.plural.additional=\
597 Some input files additionally use or override a deprecated API.
599 compiler.note.unchecked.filename=\
600 {0} uses unchecked or unsafe operations.
601 compiler.note.unchecked.plural=\
602 Some input files use unchecked or unsafe operations.
603 # The following string may appear after one of the above deprecation
604 # messages.
605 compiler.note.unchecked.recompile=\
606 Recompile with -Xlint:unchecked for details.
608 compiler.note.unchecked.filename.additional=\
609 {0} has additional unchecked or unsafe operations.
610 compiler.note.unchecked.plural.additional=\
611 Some input files additionally use unchecked or unsafe operations.
613 compiler.note.varargs.filename=\
614 {0} declares unsafe vararg methods.
615 compiler.note.varargs.plural=\
616 Some input files declare unsafe vararg methods.
617 # The following string may appear after one of the above unsafe varargs
618 # messages.
619 compiler.note.varargs.recompile=\
620 Recompile with -Xlint:varargs for details.
622 compiler.note.varargs.filename.additional=\
623 {0} declares additional unsafe vararg methods.
624 compiler.note.varargs.plural.additional=\
625 Some input files additionally declares unsafe vararg methods.
627 compiler.note.sunapi.filename=\
628 {0} uses internal proprietary API that may be removed in a future release.
629 compiler.note.sunapi.plural=\
630 Some input files use internal proprietary API that may be removed in a future release.
631 # The following string may appear after one of the above sunapi messages.
632 compiler.note.sunapi.recompile=\
633 Recompile with -Xlint:sunapi for details.
635 compiler.note.sunapi.filename.additional=\
636 {0} uses additional internal proprietary API that may be removed in a future release.
637 compiler.note.sunapi.plural.additional=\
638 Some input files additionally use internal proprietary API that may be removed in a future release.
640 # Notes related to annotation processing
642 # Print a client-generated note; assumed to be localized, no translation required
643 compiler.note.proc.messager=\
644 {0}
646 #####
648 compiler.misc.count.error=\
649 {0} error
650 compiler.misc.count.error.plural=\
651 {0} errors
652 compiler.misc.count.warn=\
653 {0} warning
654 compiler.misc.count.warn.plural=\
655 {0} warnings
657 compiler.misc.version.not.available=\
658 (version info not available)
660 ## extra output when using -verbose (JavaCompiler)
662 compiler.misc.verbose.checking.attribution=\
663 [checking {0}]
664 compiler.misc.verbose.parsing.done=\
665 [parsing completed {0}ms]
666 compiler.misc.verbose.parsing.started=\
667 [parsing started {0}]
668 compiler.misc.verbose.total=\
669 [total {0}ms]
670 compiler.misc.verbose.wrote.file=\
671 [wrote {0}]
673 ## extra output when using -verbose (Retro)
674 compiler.misc.verbose.retro=\
675 [retrofitting {0}]
676 compiler.misc.verbose.retro.with=\
677 \tretrofitting {0} with {1}
678 compiler.misc.verbose.retro.with.list=\
679 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
681 ## extra output when using -verbose (code/ClassReader)
682 compiler.misc.verbose.loading=\
683 [loading {0}]
685 compiler.misc.verbose.sourcepath=\
686 [search path for source files: {0}]
688 compiler.misc.verbose.classpath=\
689 [search path for class files: {0}]
691 ## extra output when using -checkclassfile (code/ClassReader)
692 compiler.misc.ccf.found.later.version=\
693 class file has later version than expected: {0}
694 compiler.misc.ccf.unrecognized.attribute=\
695 unrecognized attribute: {0}
697 ## extra output when using -prompt (util/Log)
698 compiler.misc.resume.abort=\
699 R)esume, A)bort>
701 #####
703 ##
704 ## warnings
705 ##
707 ## All warning messages are preceded by the following string.
708 compiler.warn.warning=\
709 warning:\u0020
711 ## Warning messages may also include the following prefix to identify a
712 ## lint option
713 compiler.warn.lintOption=\
714 [{0}]\u0020
716 compiler.warn.constant.SVUID=\
717 serialVersionUID must be constant in class {0}
719 compiler.warn.dir.path.element.not.found=\
720 bad path element "{0}": no such directory
722 compiler.warn.finally.cannot.complete=\
723 finally clause cannot complete normally
725 compiler.warn.has.been.deprecated=\
726 {0} in {1} has been deprecated
728 compiler.warn.sun.proprietary=\
729 {0} is internal proprietary API and may be removed in a future release
731 compiler.warn.illegal.char.for.encoding=\
732 unmappable character for encoding {0}
734 compiler.warn.improper.SVUID=\
735 serialVersionUID must be declared static final in class {0}
737 compiler.warn.inexact.non-varargs.call=\
738 non-varargs call of varargs method with inexact argument type for last parameter;\n\
739 cast to {0} for a varargs call\n\
740 cast to {1} for a non-varargs call and to suppress this warning
742 compiler.warn.long.SVUID=\
743 serialVersionUID must be of type long in class {0}
745 compiler.warn.missing.SVUID=\
746 serializable class {0} has no definition of serialVersionUID
748 compiler.warn.override.varargs.missing=\
749 {0}; overridden method has no ''...''
750 compiler.warn.override.varargs.extra=\
751 {0}; overriding method is missing ''...''
752 compiler.warn.override.bridge=\
753 {0}; overridden method is a bridge method
755 compiler.warn.pkg-info.already.seen=\
756 a package-info.java file has already been seen for package {0}
758 compiler.warn.path.element.not.found=\
759 bad path element "{0}": no such file or directory
761 compiler.warn.possible.fall-through.into.case=\
762 possible fall-through into case
764 compiler.warn.redundant.cast=\
765 redundant cast to {0}
767 compiler.warn.position.overflow=\
768 Position encoding overflows at line {0}
770 compiler.warn.big.major.version=\
771 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
772 It is recommended that the compiler be upgraded.
774 compiler.warn.static.not.qualified.by.type=\
775 static {0} should be qualified by type name, {1}, instead of by an expression
777 # Warnings related to annotation processing
778 compiler.warn.proc.package.does.not.exist=\
779 package {0} does not exist
780 compiler.warn.proc.file.reopening=\
781 Attempt to create a file for ''{0}'' multiple times
783 compiler.warn.proc.type.already.exists=\
784 A file for type ''{0}'' already exists on the sourcepath or classpath
786 compiler.warn.proc.type.recreate=\
787 Attempt to create a file for type ''{0}'' multiple times
789 compiler.warn.proc.illegal.file.name=\
790 Cannot create file for illegal name ''{0}''.
792 compiler.warn.proc.suspicious.class.name=\
793 Creating file for a type whose name ends in {1}: ''{0}''
795 compiler.warn.proc.file.create.last.round=\
796 File for type ''{0}'' created in the last round will not be subject to annotation processing.
798 compiler.warn.proc.malformed.supported.string=\
799 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
801 compiler.warn.proc.annotations.without.processors=\
802 No processor claimed any of these annotations: {0}
804 compiler.warn.proc.processor.incompatible.source.version=\
805 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
807 compiler.warn.proc.proc-only.requested.no.procs=\
808 Annotation processing without compilation requested but no processors were found.
810 compiler.warn.proc.use.implicit=\
811 Implicitly compiled files were not subject to annotation processing.\n\
812 Use -implicit to specify a policy for implicit compilation.
814 compiler.warn.proc.use.proc.or.implicit=\
815 Implicitly compiled files were not subject to annotation processing.\n\
816 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
818 # Print a client-generated warning; assumed to be localized, no translation required
819 compiler.warn.proc.messager=\
820 {0}
822 compiler.warn.proc.unclosed.type.files=\
823 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
825 compiler.warn.proc.unmatched.processor.options=\
826 The following options were not recognized by any processor: ''{0}''
828 compiler.warn.twr.explicit.close.call=\
829 [arm] explicit call to close() on an automatic resource
830 compiler.warn.automatic.resource.not.referenced=\
831 [arm] automatic resource {0} is never referenced in body of corresponding try statement
832 compiler.warn.unchecked.assign=\
833 unchecked assignment: {0} to {1}
834 compiler.warn.unchecked.assign.to.var=\
835 unchecked assignment to variable {0} as member of raw type {1}
836 compiler.warn.unchecked.call.mbr.of.raw.type=\
837 unchecked call to {0} as a member of the raw type {1}
838 compiler.warn.unchecked.cast.to.type=\
839 unchecked cast to type {0}
840 compiler.warn.unchecked.meth.invocation.applied=\
841 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
842 required: {2}\n\
843 found: {3}
845 compiler.warn.unchecked.generic.array.creation=\
846 unchecked generic array creation for varargs parameter of type {0}
848 compiler.warn.varargs.non.reifiable.type=\
849 Possible heap pollution from parameterized vararg type {0}
851 compiler.warn.missing.deprecated.annotation=\
852 deprecated item is not annotated with @Deprecated
854 compiler.warn.invalid.archive.file=\
855 Unexpected file on path: {0}
857 compiler.warn.unexpected.archive.file=\
858 Unexpected extension for archive file: {0}
860 compiler.warn.div.zero=\
861 division by zero
863 compiler.warn.empty.if=\
864 empty statement after if
866 compiler.warn.annotation.method.not.found=\
867 Cannot find annotation method ''{1}()'' in type ''{0}''
869 compiler.warn.annotation.method.not.found.reason=\
870 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
872 compiler.warn.raw.class.use=\
873 found raw type: {0}\n\
874 missing type parameters for generic class {1}
876 #####
878 ## The following are tokens which are non-terminals in the language. They should
879 ## be named as JLS3 calls them when translated to the appropriate language.
880 compiler.misc.token.identifier=\
881 <identifier>
882 compiler.misc.token.character=\
883 <character>
884 compiler.misc.token.string=\
885 <string>
886 compiler.misc.token.integer=\
887 <integer>
888 compiler.misc.token.long-integer=\
889 <long integer>
890 compiler.misc.token.float=\
891 <float>
892 compiler.misc.token.double=\
893 <double>
894 compiler.misc.token.bad-symbol=\
895 <bad symbol>
896 compiler.misc.token.end-of-input=\
897 <end of input>
899 ## The argument to the following string will always be one of the following:
900 ## 1. one of the above non-terminals
901 ## 2. a keyword (JLS1.8)
902 ## 3. a boolean literal (JLS3.10.3)
903 ## 4. the null literal (JLS3.10.7)
904 ## 5. a Java separator (JLS3.11)
905 ## 6. an operator (JLS3.12)
906 ##
907 ## This is the only place these tokens will be used.
908 compiler.err.expected=\
909 {0} expected
910 compiler.err.expected2=\
911 {0} or {1} expected
912 compiler.err.expected3=\
913 {0}, {1}, or {2} expected
915 compiler.err.premature.eof=\
916 reached end of file while parsing
918 ## The following are related in form, but do not easily fit the above paradigm.
919 compiler.err.dot.class.expected=\
920 ''.class'' expected
922 ## The argument to this string will always be either 'case' or 'default'.
923 compiler.err.orphaned=\
924 orphaned {0}
926 compiler.misc.anonymous.class=\
927 <anonymous {0}>
929 compiler.misc.type.captureof=\
930 capture#{0} of {1}
932 compiler.misc.type.captureof.1=\
933 capture#{0}
935 compiler.misc.type.none=\
936 <none>
938 compiler.misc.unnamed.package=\
939 unnamed package
941 #####
943 compiler.err.cant.access=\
944 cannot access {0}\n\
945 {1}
947 compiler.misc.bad.class.file.header=\
948 bad class file: {0}\n\
949 {1}\n\
950 Please remove or make sure it appears in the correct subdirectory of the classpath.
951 compiler.misc.bad.source.file.header=\
952 bad source file: {0}\n\
953 {1}\n\
954 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
956 ## The following are all possible strings for the second argument ({1}) of the
957 ## above strings.
958 compiler.misc.bad.class.signature=\
959 bad class signature: {0}
960 compiler.misc.bad.enclosing.method=\
961 bad enclosing method attribute: {0}
962 compiler.misc.bad.runtime.invisible.param.annotations=\
963 bad RuntimeInvisibleParameterAnnotations attribute: {0}
964 compiler.misc.bad.const.pool.tag=\
965 bad constant pool tag: {0}
966 compiler.misc.bad.const.pool.tag.at=\
967 bad constant pool tag: {0} at {1}
968 compiler.misc.bad.signature=\
969 bad signature: {0}
970 compiler.misc.bad.type.annotation.value=\
971 bad type annotation target type value: {0}
972 compiler.misc.class.file.wrong.class=\
973 class file contains wrong class: {0}
974 compiler.misc.class.file.not.found=\
975 class file for {0} not found
976 compiler.misc.file.doesnt.contain.class=\
977 file does not contain class {0}
978 compiler.misc.file.does.not.contain.package=\
979 file does not contain package {0}
980 compiler.misc.illegal.start.of.class.file=\
981 illegal start of class file
982 compiler.misc.unable.to.access.file=\
983 unable to access file: {0}
984 compiler.misc.unicode.str.not.supported=\
985 unicode string in class file not supported
986 compiler.misc.undecl.type.var=\
987 undeclared type variable: {0}
988 compiler.misc.wrong.version=\
989 class file has wrong version {0}.{1}, should be {2}.{3}
991 #####
993 compiler.err.not.within.bounds=\
994 type parameter {0} is not within its bound
996 compiler.err.not.within.bounds.explain=\
997 type parameter {0} is not within its bound; {1}
999 ## The following are all possible strings for the second argument ({1}) of the
1000 ## above string.
1002 ## none yet...
1004 #####
1006 compiler.err.prob.found.req=\
1007 {0}\n\
1008 required: {2}\n\
1009 found: {1}
1010 compiler.warn.prob.found.req=\
1011 {0}\n\
1012 required: {2}\n\
1013 found: {1}
1014 compiler.err.prob.found.req.1=\
1015 {0} {3}\n\
1016 required: {2}\n\
1017 found: {1}
1019 ## The following are all possible strings for the first argument ({0}) of the
1020 ## above strings.
1021 compiler.misc.incompatible.types=\
1022 incompatible types
1023 compiler.misc.incompatible.types.1=\
1024 incompatible types; {0}
1025 compiler.misc.inconvertible.types=\
1026 inconvertible types
1027 compiler.misc.possible.loss.of.precision=\
1028 possible loss of precision
1030 compiler.misc.unchecked.assign=\
1031 unchecked conversion
1032 # compiler.misc.storecheck=\
1033 # assignment might cause later store checks to fail
1034 # compiler.misc.unchecked=\
1035 # assigned array cannot dynamically check its stores
1036 compiler.misc.unchecked.cast.to.type=\
1037 unchecked cast
1039 compiler.misc.assignment.from.super-bound=\
1040 assignment from super-bound type {0}
1041 compiler.misc.assignment.to.extends-bound=\
1042 assignment to extends-bound type {0}
1043 # compiler.err.star.expected=\
1044 # ''*'' expected
1045 # compiler.err.no.elem.type=\
1046 # \[\*\] cannot have a type
1048 #####
1050 compiler.err.type.found.req=\
1051 unexpected type\n\
1052 required: {1}\n\
1053 found: {0}
1055 ## The following are all possible strings for the first argument ({0}) of the
1056 ## above string.
1057 compiler.misc.type.req.class=\
1058 class
1059 compiler.misc.type.req.class.array=\
1060 class or array
1061 compiler.misc.type.req.ref=\
1062 reference
1063 compiler.misc.type.req.exact=\
1064 class or interface without bounds
1065 compiler.misc.type.parameter=\
1066 type parameter {0}
1068 #####
1070 ## The following are all possible strings for the last argument of all those
1071 ## diagnostics whose key ends in ".1"
1072 compiler.misc.undetermined.type=\
1073 undetermined type
1074 compiler.misc.type.variable.has.undetermined.type=\
1075 type variable {0} has undetermined type
1076 compiler.misc.no.unique.maximal.instance.exists=\
1077 no unique maximal instance exists for type variable {0} with upper bounds {1}
1078 compiler.misc.no.unique.minimal.instance.exists=\
1079 no unique minimal instance exists for type variable {0} with lower bounds {1}
1080 compiler.misc.infer.no.conforming.instance.exists=\
1081 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1082 compiler.misc.infer.no.conforming.assignment.exists=\
1083 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1084 compiler.misc.infer.arg.length.mismatch=\
1085 cannot instantiate from arguments because actual and formal argument lists differ in length
1086 compiler.misc.inferred.do.not.conform.to.bounds=\
1087 inferred type does not conform to declared bound(s)\n\
1088 inferred: {0}\n\
1089 bound(s): {1}
1090 compiler.misc.inferred.do.not.conform.to.params=\
1091 actual arguments do not conform to inferred formal arguments\n\
1092 required: {0}\n\
1093 found: {1}
1094 compiler.misc.diamond=\
1095 {0}<>
1096 compiler.misc.diamond.invalid.arg=\
1097 type argument {0} inferred for {1} is not allowed in this context
1098 compiler.misc.diamond.invalid.args=\
1099 type arguments {0} inferred for {1} are not allowed in this context
1101 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1102 explicit type argument {0} does not conform to declared bound(s) {1}
1104 compiler.misc.arg.length.mismatch=\
1105 actual and formal argument lists differ in length
1106 compiler.misc.no.conforming.assignment.exists=\
1107 actual argument {0} cannot be converted to {1} by method invocation conversion
1108 compiler.misc.varargs.argument.mismatch=\
1109 argument type {0} does not conform to vararg element type {1}
1110 #####
1112 ## The first argument ({0}) is a "kindname".
1113 compiler.err.abstract.cant.be.accessed.directly=\
1114 abstract {0} {1} in {2} cannot be accessed directly
1116 ## The first argument ({0}) is a "kindname".
1117 compiler.err.non-static.cant.be.ref=\
1118 non-static {0} {1} cannot be referenced from a static context
1120 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1121 ## of kindnames (the list should be identical to that provided in source.
1122 compiler.err.unexpected.type=\
1123 unexpected type\n\
1124 required: {0}\n\
1125 found: {1}
1127 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1128 ## The second argument {1} is the non-resolved symbol
1129 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1130 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1131 compiler.err.cant.resolve=\
1132 cannot find symbol\n\
1133 symbol: {0} {1}
1135 compiler.err.cant.resolve.args=\
1136 cannot find symbol\n\
1137 symbol: {0} {1}({3})
1139 compiler.err.cant.resolve.args.params=\
1140 cannot find symbol\n\
1141 symbol: {0} <{2}>{1}({3})
1143 ## arguments from {0} to {3} have the same meaning as above
1144 ## The fifth argument {4} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1145 ## The sixth argument {5} is the location type
1146 compiler.err.cant.resolve.location=\
1147 cannot find symbol\n\
1148 symbol: {0} {1}\n\
1149 location: {4} {5}
1151 compiler.err.cant.resolve.location.args=\
1152 cannot find symbol\n\
1153 symbol: {0} {1}({3})\n\
1154 location: {4} {5}
1156 compiler.err.cant.resolve.location.args.params=\
1157 cannot find symbol\n\
1158 symbol: {0} <{2}>{1}({3})\n\
1159 location: {4} {5}
1161 ## The following are all possible string for "kindname".
1162 ## They should be called whatever the JLS calls them after it been translated
1163 ## to the appropriate language.
1164 # compiler.misc.kindname.constructor=\
1165 # static member
1166 compiler.misc.kindname.annotation=\
1167 @interface
1168 compiler.misc.kindname.constructor=\
1169 constructor
1170 compiler.misc.kindname.enum=\
1171 enum
1172 compiler.misc.kindname.interface=\
1173 interface
1174 compiler.misc.kindname.static=\
1175 static
1176 compiler.misc.kindname.type.variable=\
1177 type variable
1178 compiler.misc.kindname.type.variable.bound=\
1179 bound of type variable
1180 compiler.misc.kindname.variable=\
1181 variable
1182 compiler.misc.kindname.value=\
1183 value
1184 compiler.misc.kindname.method=\
1185 method
1186 compiler.misc.kindname.class=\
1187 class
1188 compiler.misc.kindname.package=\
1189 package
1190 #####
1192 compiler.misc.no.args=\
1193 no arguments
1195 compiler.err.override.static=\
1196 {0}\n\
1197 overriding method is static
1198 compiler.err.override.meth=\
1199 {0}\n\
1200 overridden method is {1}
1202 compiler.err.override.meth.doesnt.throw=\
1203 {0}\n\
1204 overridden method does not throw {1}
1206 # In the following string {1} is a space separated list of Java Keywords, as
1207 # they would have been declared in the source code
1208 compiler.err.override.weaker.access=\
1209 {0}\n\
1210 attempting to assign weaker access privileges; was {1}
1212 compiler.err.override.incompatible.ret=\
1213 {0}\n\
1214 return type {1} is not compatible with {2}
1216 compiler.warn.override.unchecked.ret=\
1217 {0}\n\
1218 return type requires unchecked conversion from {1} to {2}
1220 compiler.warn.override.unchecked.thrown=\
1221 {0}\n\
1222 overridden method does not throw {1}
1224 ## The following are all possible strings for the first argument ({0}) of the
1225 ## above strings.
1226 compiler.misc.cant.override=\
1227 {0} in {1} cannot override {2} in {3}
1228 compiler.misc.cant.implement=\
1229 {0} in {1} cannot implement {2} in {3}
1230 compiler.misc.clashes.with=\
1231 {0} in {1} clashes with {2} in {3}
1232 compiler.misc.unchecked.override=\
1233 {0} in {1} overrides {2} in {3}
1234 compiler.misc.unchecked.implement=\
1235 {0} in {1} implements {2} in {3}
1236 compiler.misc.unchecked.clash.with=\
1237 {0} in {1} overrides {2} in {3}
1238 compiler.misc.varargs.override=\
1239 {0} in {1} overrides {2} in {3}
1240 compiler.misc.varargs.implement=\
1241 {0} in {1} implements {2} in {3}
1242 compiler.misc.varargs.clash.with=\
1243 {0} in {1} overrides {2} in {3}
1244 compiler.misc.non.denotable.type=\
1245 Non-denotable type {0} not allowed here
1247 compiler.misc.inapplicable.method=\
1248 {0} {1}.{2} is not applicable\n\
1249 ({3})
1251 ########################################
1252 # Diagnostics for language feature changes
1253 ########################################
1254 compiler.err.unsupported.fp.lit=\
1255 hexadecimal floating point literals are not supported in -source {0}\n\
1256 (use -source 5 or higher to enable hexadecimal floating point literals)
1258 compiler.err.unsupported.binary.lit=\
1259 binary literals are not supported in -source {0}\n\
1260 (use -source 7 or higher to enable binary literals)
1262 compiler.err.unsupported.underscore.lit=\
1263 underscores in literals are not supported in -source {0}\n\
1264 (use -source 7 or higher to enable underscores in literals)
1266 compiler.err.unsupported.exotic.id=\
1267 exotic identifiers #"___" are not supported in -source {0}\n\
1268 (use -source 7 or higher to enable exotic identifiers)
1270 compiler.err.automatic.resource.management.not.supported.in.source=\
1271 automatic resource management is not supported in -source {0}\n\
1272 (use -source 7 or higher to enable automatic resource management)
1274 compiler.warn.enum.as.identifier=\
1275 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1276 (use -source 5 or higher to use ''enum'' as a keyword)
1278 compiler.warn.assert.as.identifier=\
1279 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1280 (use -source 1.4 or higher to use ''assert'' as a keyword)
1282 compiler.err.enum.as.identifier=\
1283 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1284 (use -source 1.4 or lower to use ''enum'' as an identifier)
1286 compiler.err.assert.as.identifier=\
1287 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1288 (use -source 1.3 or lower to use ''assert'' as an identifier)
1290 compiler.err.generics.not.supported.in.source=\
1291 generics are not supported in -source {0}\n\
1292 (use -source 5 or higher to enable generics)
1294 compiler.err.varargs.not.supported.in.source=\
1295 variable-arity methods are not supported in -source {0}\n\
1296 (use -source 5 or higher to enable variable-arity methods)
1298 compiler.err.annotations.not.supported.in.source=\
1299 annotations are not supported in -source {0}\n\
1300 (use -source 5 or higher to enable annotations)
1302 compiler.err.type.annotations.not.supported.in.source=\
1303 type annotations are not supported in -source {0}\n\
1304 (use -source 7 or higher to enable type annotations)
1306 compiler.err.foreach.not.supported.in.source=\
1307 for-each loops are not supported in -source {0}\n\
1308 (use -source 5 or higher to enable for-each loops)
1310 compiler.err.static.import.not.supported.in.source=\
1311 static import declarations are not supported in -source {0}\n\
1312 (use -source 5 or higher to enable static import declarations)
1314 compiler.err.enums.not.supported.in.source=\
1315 enums are not supported in -source {0}\n\
1316 (use -source 5 or higher to enable enums)
1318 compiler.err.diamond.not.supported.in.source=\
1319 diamond operator is not supported in -source {0}\n\
1320 (use -source 7 or higher to enable diamond operator)
1322 compiler.err.multicatch.not.supported.in.source=\
1323 multi-catch statement is not supported in -source {0}\n\
1324 (use -source 7 or higher to enable multi-catch statement)
1326 compiler.err.string.switch.not.supported.in.source=\
1327 strings in switch are not supported in -source {0}\n\
1328 (use -source 7 or higher to enable strings in switch)
1330 ########################################
1331 # Diagnostics for where clause implementation
1332 # used by the RichDiagnosticFormatter.
1333 ########################################
1335 compiler.misc.type.null=\
1336 <null>
1338 # X#n (where n is an int id) is disambiguated tvar name
1339 compiler.misc.type.var=\
1340 {0}#{1}
1342 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1343 compiler.misc.captured.type=\
1344 CAP#{0}
1346 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1347 compiler.misc.intersection.type=\
1348 INT#{0}
1350 # where clause for captured type: contains upper ('extends {1}') and lower
1351 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1352 compiler.misc.where.captured=\
1353 {0} extends {1} super: {2} from capture of {3}
1355 # compact where clause for captured type: contains upper ('extends {1}') along
1356 # with the wildcard that generated this captured type ({3})
1357 compiler.misc.where.captured.1=\
1358 {0} extends {1} from capture of {3}
1360 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1361 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1362 compiler.misc.where.typevar=\
1363 {0} extends {1} declared in {2} {3}
1365 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1366 # in which the typevar has been declared
1367 compiler.misc.where.typevar.1=\
1368 {0} declared in {2} {3}
1370 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1371 # of this intersection type
1372 compiler.misc.where.intersection=\
1373 {0} extends {1}
1375 ### Where clause headers ###
1376 compiler.misc.where.description.captured=\
1377 where {0} is a fresh type-variable:
1378 compiler.misc.where.description.typevar=\
1379 where {0} is a type-variable:
1380 compiler.misc.where.description.intersection=\
1381 where {0} is an intersection type:
1382 compiler.misc.where.description.captured.1=\
1383 where {0} are fresh type-variables:
1384 compiler.misc.where.description.typevar.1=\
1385 where {0} are type-variables:
1386 compiler.misc.where.description.intersection.1=\
1387 where {0} are intersection types: