Mon, 24 Jan 2011 15:45:24 +0000
6569633: Varargs: parser error when varargs element type is an array
Summary: explicit error message when old-style array syntax is mixed with varargs
Reviewed-by: jjg
1 #
2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
26 ##
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.err.array.and.varargs=\
67 cannot declare both {0} and {1} in {2}
68 compiler.err.array.dimension.missing=\
69 array dimension missing
70 compiler.err.array.req.but.found=\
71 array required, but {0} found
73 compiler.err.assignment.from.super-bound=\
74 assigning from wildcard {0}
75 compiler.err.assignment.to.extends-bound=\
76 assigning to wildcard {0}
77 compiler.err.attribute.value.must.be.constant=\
78 attribute value must be constant
80 compiler.err.break.outside.switch.loop=\
81 break outside switch or loop
83 compiler.err.call.must.be.first.stmt.in.ctor=\
84 call to {0} must be first statement in constructor
85 compiler.err.cant.apply.symbol=\
86 {0} {1} in {4} {5} cannot be applied to given types\n\
87 required: {2}\n\
88 found: {3}
89 compiler.err.cant.apply.symbol.1=\
90 {0} {1} in {4} {5} cannot be applied to given types;\n\
91 required: {2}\n\
92 found: {3}\n\
93 reason: {6}
94 compiler.err.cant.apply.symbols=\
95 no suitable {0} found for {1}({2})
96 compiler.err.cant.assign.val.to.final.var=\
97 cannot assign a value to final variable {0}
98 compiler.err.cant.deref=\
99 {0} cannot be dereferenced
100 compiler.err.cant.extend.intf.annotation=\
101 ''extends'' not allowed for @interfaces
102 compiler.err.cant.inherit.from.final=\
103 cannot inherit from final {0}
104 compiler.err.cant.ref.before.ctor.called=\
105 cannot reference {0} before supertype constructor has been called
106 compiler.err.cant.ret.val.from.meth.decl.void=\
107 cannot return a value from method whose result type is void
108 compiler.err.cant.select.static.class.from.param.type=\
109 cannot select a static class from a parameterized type
110 compiler.err.cant.inherit.diff.arg=\
111 {0} cannot be inherited with different arguments: <{1}> and <{2}>
112 compiler.err.catch.without.try=\
113 ''catch'' without ''try''
114 compiler.err.clash.with.pkg.of.same.name=\
115 {0} {1} clashes with package of same name
116 compiler.err.const.expr.req=\
117 constant expression required
118 compiler.err.cont.outside.loop=\
119 continue outside of loop
120 compiler.err.cyclic.inheritance=\
121 cyclic inheritance involving {0}
122 compiler.err.cyclic.annotation.element=\
123 cyclic annotation element type
124 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
125 call to super not allowed in enum constructor
126 compiler.err.no.superclass=\
127 {0} has no superclass
129 compiler.err.wrong.target.for.polymorphic.signature.definition=\
130 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
132 compiler.err.concrete.inheritance.conflict=\
133 methods {0} from {1} and {2} from {3} are inherited with the same signature
135 compiler.err.default.allowed.in.intf.annotation.member=\
136 default value only allowed in an @interface member
137 compiler.err.doesnt.exist=\
138 package {0} does not exist
139 compiler.err.duplicate.annotation=\
140 duplicate annotation
141 compiler.err.duplicate.annotation.member.value=\
142 duplicate annotation member value {0} in {1}
143 compiler.err.duplicate.class=\
144 duplicate class: {0}
145 compiler.err.duplicate.case.label=\
146 duplicate case label
147 compiler.err.duplicate.default.label=\
148 duplicate default label
150 compiler.err.else.without.if=\
151 ''else'' without ''if''
152 compiler.err.empty.char.lit=\
153 empty character literal
154 compiler.err.encl.class.required=\
155 an enclosing instance that contains {0} is required
156 compiler.err.enum.annotation.must.be.enum.constant=\
157 an enum annotation value must be an enum constant
159 compiler.err.enum.cant.be.instantiated=\
160 enum types may not be instantiated
161 compiler.err.enum.label.must.be.unqualified.enum=\
162 an enum switch case label must be the unqualified name of an enumeration constant
163 compiler.err.enum.no.subclassing=\
164 classes cannot directly extend java.lang.Enum
165 compiler.err.enum.types.not.extensible=\
166 enum types are not extensible
167 compiler.err.enum.no.finalize=\
168 enums cannot have finalize methods
169 compiler.err.error.reading.file=\
170 error reading {0}; {1}
171 compiler.err.except.already.caught=\
172 exception {0} has already been caught
173 compiler.err.except.never.thrown.in.try=\
174 exception {0} is never thrown in body of corresponding try statement
176 compiler.err.final.parameter.may.not.be.assigned=\
177 final parameter {0} may not be assigned
178 compiler.err.try.resource.may.not.be.assigned=\
179 auto-closeable resource {0} may not be assigned
180 compiler.err.multicatch.parameter.may.not.be.assigned=\
181 multi-catch parameter {0} may not be assigned
182 compiler.err.finally.without.try=\
183 ''finally'' without ''try''
184 compiler.err.foreach.not.applicable.to.type=\
185 for-each not applicable to expression type\n\
186 required: {1}\n\
187 found: {0}
188 compiler.err.fp.number.too.large=\
189 floating point number too large
190 compiler.err.fp.number.too.small=\
191 floating point number too small
193 compiler.err.generic.array.creation=\
194 generic array creation
195 compiler.err.generic.throwable=\
196 a generic class may not extend java.lang.Throwable
198 compiler.err.icls.cant.have.static.decl=\
199 Illegal static declaration in inner class {0}\n\
200 modifier \''static\'' is only allowed in constant variable declarations
201 compiler.err.illegal.char=\
202 illegal character: \\{0}
203 compiler.err.illegal.char.for.encoding=\
204 unmappable character for encoding {0}
205 compiler.err.illegal.combination.of.modifiers=\
206 illegal combination of modifiers: {0} and {1}
207 compiler.err.illegal.enum.static.ref=\
208 illegal reference to static field from initializer
209 compiler.err.illegal.esc.char=\
210 illegal escape character
211 compiler.err.illegal.forward.ref=\
212 illegal forward reference
213 compiler.warn.forward.ref=\
214 reference to variable ''{0}'' before it has been initialized
215 compiler.err.illegal.self.ref=\
216 self-reference in initializer
217 compiler.warn.self.ref=\
218 self-reference in initializer of variable ''{0}''
219 compiler.err.illegal.generic.type.for.instof=\
220 illegal generic type for instanceof
221 compiler.err.illegal.initializer.for.type=\
222 illegal initializer for {0}
223 compiler.err.illegal.line.end.in.char.lit=\
224 illegal line end in character literal
225 compiler.err.illegal.nonascii.digit=\
226 illegal non-ASCII digit
227 compiler.err.illegal.underscore=\
228 illegal underscore
229 compiler.err.illegal.qual.not.icls=\
230 illegal qualifier; {0} is not an inner class
231 compiler.err.illegal.start.of.expr=\
232 illegal start of expression
233 compiler.err.illegal.start.of.type=\
234 illegal start of type
235 compiler.err.illegal.unicode.esc=\
236 illegal unicode escape
237 compiler.err.import.requires.canonical=\
238 import requires canonical name for {0}
239 compiler.err.improperly.formed.type.param.missing=\
240 improperly formed type, some parameters are missing
241 compiler.err.improperly.formed.type.inner.raw.param=\
242 improperly formed type, type arguments given on a raw type
243 compiler.err.incomparable.types=\
244 incomparable types: {0} and {1}
245 compiler.err.int.number.too.large=\
246 integer number too large: {0}
247 compiler.err.internal.error.cant.instantiate=\
248 internal error; cannot instantiate {0} at {1} to ({2})
249 compiler.err.intf.annotation.members.cant.have.params=\
250 @interface members may not have parameters
251 compiler.err.intf.annotation.cant.have.type.params=\
252 @interface may not have type parameters
253 compiler.err.intf.annotation.members.cant.have.type.params=\
254 @interface members may not have type parameters
255 compiler.err.intf.annotation.member.clash=\
256 @interface member clashes with method ''{0}'' in {1}
257 compiler.err.intf.expected.here=\
258 interface expected here
259 compiler.err.intf.meth.cant.have.body=\
260 interface methods cannot have body
261 compiler.err.invalid.annotation.member.type=\
262 invalid type for annotation member
263 compiler.err.invalid.binary.number=\
264 binary numbers must contain at least one binary digit
265 compiler.err.invalid.hex.number=\
266 hexadecimal numbers must contain at least one hexadecimal digit
267 compiler.err.invalid.meth.decl.ret.type.req=\
268 invalid method declaration; return type required
269 compiler.err.varargs.and.old.array.syntax=\
270 legacy array notation not allowed on variable-arity parameter
272 compiler.err.label.already.in.use=\
273 label {0} already in use
274 compiler.err.local.var.accessed.from.icls.needs.final=\
275 local variable {0} is accessed from within inner class; needs to be declared final
276 compiler.err.local.enum=\
277 enum types must not be local
278 compiler.err.cannot.create.array.with.type.arguments=\
279 cannot create array with type arguments
281 #
282 # limits. We don't give the limits in the diagnostic because we expect
283 # them to change, yet we want to use the same diagnostic. These are all
284 # detected during code generation.
285 #
286 compiler.err.limit.code=\
287 code too large
288 compiler.err.limit.code.too.large.for.try.stmt=\
289 code too large for try statement
290 compiler.err.limit.dimensions=\
291 array type has too many dimensions
292 compiler.err.limit.locals=\
293 too many local variables
294 compiler.err.limit.parameters=\
295 too many parameters
296 compiler.err.limit.pool=\
297 too many constants
298 compiler.err.limit.pool.in.class=\
299 too many constants in class {0}
300 compiler.err.limit.stack=\
301 code requires too much stack
302 compiler.err.limit.string=\
303 constant string too long
304 compiler.err.limit.string.overflow=\
305 UTF8 representation for string \"{0}...\" is too long for the constant pool
307 compiler.err.malformed.fp.lit=\
308 malformed floating point literal
309 compiler.err.method.does.not.override.superclass=\
310 method does not override or implement a method from a supertype
311 compiler.err.missing.meth.body.or.decl.abstract=\
312 missing method body, or declare abstract
313 compiler.err.missing.ret.stmt=\
314 missing return statement
315 compiler.err.missing.ret.val=\
316 missing return value
317 compiler.err.mod.not.allowed.here=\
318 modifier {0} not allowed here
319 compiler.err.intf.not.allowed.here=\
320 interface not allowed here
321 compiler.err.enums.must.be.static=\
322 enum declarations allowed only in static contexts
324 compiler.err.name.clash.same.erasure=\
325 name clash: {0} and {1} have the same erasure
326 compiler.err.name.clash.same.erasure.no.override=\
327 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
328 compiler.err.name.reserved.for.internal.use=\
329 {0} is reserved for internal use
330 compiler.err.native.meth.cant.have.body=\
331 native methods cannot have a body
332 compiler.err.neither.conditional.subtype=\
333 incompatible types for ?: neither is a subtype of the other\n\
334 second operand: {0}\n\
335 third operand : {1}
336 compiler.err.new.not.allowed.in.annotation=\
337 ''new'' not allowed in an annotation
338 compiler.err.no.annotation.member=\
339 no annotation member {0} in {1}
340 compiler.err.no.encl.instance.of.type.in.scope=\
341 no enclosing instance of type {0} is in scope
342 compiler.err.no.intf.expected.here=\
343 no interface expected here
344 compiler.err.no.match.entry=\
345 {0} has no match in entry in {1}; required {2}
346 compiler.err.not.annotation.type=\
347 {0} is not an annotation type
348 compiler.err.not.def.access.class.intf.cant.access=\
349 {0} in {1} is defined in an inaccessible class or interface
350 compiler.err.not.def.public.cant.access=\
351 {0} is not public in {1}; cannot be accessed from outside package
352 compiler.err.not.loop.label=\
353 not a loop label: {0}
354 compiler.err.not.stmt=\
355 not a statement
356 compiler.err.not.encl.class=\
357 not an enclosing class: {0}
359 compiler.err.operator.cant.be.applied=\
360 bad operand type {1} for unary operator ''{0}''
361 compiler.err.operator.cant.be.applied.1=\
362 bad operand types for binary operator ''{0}''\n\
363 first type: {1}\n\
364 second type: {2}
366 compiler.err.pkg.annotations.sb.in.package-info.java=\
367 package annotations should be in file package-info.java
368 compiler.err.pkg.clashes.with.class.of.same.name=\
369 package {0} clashes with class of same name
371 compiler.err.warnings.and.werror=\
372 warnings found and -Werror specified
374 # Errors related to annotation processing
376 compiler.err.proc.cant.access=\
377 cannot access {0}\n\
378 {1}\n\
379 Consult the following stack trace for details.\n\
380 {2}
382 compiler.err.proc.cant.find.class=\
383 Could not find class file for ''{0}''.
385 # Print a client-generated error message; assumed to be localized, no translation required
386 compiler.err.proc.messager=\
387 {0}
389 compiler.err.proc.no.explicit.annotation.processing.requested=\
390 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
392 compiler.err.proc.no.service=\
393 A service loader class could not be found.\n\
394 Either java.util.ServiceLoader or sun.misc.Service must be available.
396 compiler.err.proc.processor.bad.option.name=\
397 Bad option name ''{0}'' provided by processor ''{1}''
399 compiler.err.proc.processor.cant.instantiate=\
400 Could not instantiate an instance of processor ''{0}''
402 compiler.err.proc.processor.constructor.error=\
403 Exception thrown while constructing Processor object: {0}
405 compiler.err.proc.processor.not.found=\
406 Annotation processor ''{0}'' not found
408 compiler.err.proc.processor.wrong.type=\
409 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
411 compiler.err.proc.service.problem=\
412 Error creating a service loader to load Processors.
414 compiler.err.proc.bad.config.file=\
415 Bad service configuration file, or exception thrown while constructing Processor object: {0}
417 compiler.err.proc.cant.create.loader=\
418 Could not create class loader for annotation processors: {0}
420 compiler.err.qualified.new.of.static.class=\
421 qualified new of static class
423 compiler.err.recursive.ctor.invocation=\
424 recursive constructor invocation
425 compiler.err.ref.ambiguous=\
426 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
427 compiler.err.repeated.annotation.target=\
428 repeated annotation target
429 compiler.err.repeated.interface=\
430 repeated interface
431 compiler.err.repeated.modifier=\
432 repeated modifier
433 compiler.err.report.access=\
434 {0} has {1} access in {2}
435 compiler.err.ret.outside.meth=\
436 return outside method
438 compiler.err.signature.doesnt.match.supertype=\
439 signature does not match {0}; incompatible supertype
440 compiler.err.signature.doesnt.match.intf=\
441 signature does not match {0}; incompatible interfaces
442 compiler.err.does.not.override.abstract=\
443 {0} is not abstract and does not override abstract method {1} in {2}
444 compiler.err.source.cant.overwrite.input.file=\
445 error writing source; cannot overwrite input file {0}
446 compiler.err.stack.sim.error=\
447 Internal error: stack sim error on {0}
448 compiler.err.static.imp.only.classes.and.interfaces=\
449 static import only from classes and interfaces
450 compiler.err.string.const.req=\
451 constant string expression required
452 compiler.err.synthetic.name.conflict=\
453 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
454 compiler.warn.synthetic.name.conflict=\
455 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
457 compiler.err.throws.not.allowed.in.intf.annotation=\
458 throws clause not allowed in @interface members
459 compiler.err.try.without.catch.or.finally=\
460 ''try'' without ''catch'' or ''finally''
461 compiler.err.try.without.catch.finally.or.resource.decls=\
462 ''try'' without ''catch'', ''finally'' or resource declarations
463 compiler.err.type.doesnt.take.params=\
464 type {0} does not take parameters
465 compiler.err.type.var.cant.be.deref=\
466 cannot select from a type variable
467 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
468 a type variable may not be followed by other bounds
469 compiler.err.type.var.more.than.once=\
470 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
471 compiler.err.type.var.more.than.once.in.result=\
472 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
473 compiler.err.types.incompatible.diff.ret=\
474 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
476 compiler.err.unclosed.char.lit=\
477 unclosed character literal
478 compiler.err.unclosed.comment=\
479 unclosed comment
480 compiler.err.unclosed.str.lit=\
481 unclosed string literal
482 compiler.err.unknown.enum.constant=\
483 in class file {0}: unknown enum constant {1}.{2}
484 compiler.err.unsupported.encoding=\
485 unsupported encoding: {0}
486 compiler.err.io.exception=\
487 error reading source file: {0}
488 compiler.err.undef.label=\
489 undefined label: {0}
490 compiler.err.undetermined.type=\
491 cannot infer type arguments for {0}
492 compiler.err.undetermined.type.1=\
493 cannot infer type arguments for {0};\n\
494 reason: {1}
495 compiler.err.invalid.inferred.types=\
496 invalid inferred types for {0}; {1}
497 compiler.err.cant.apply.diamond=\
498 cannot infer type arguments for {0}
499 compiler.err.cant.apply.diamond.1=\
500 cannot infer type arguments for {0};\n\
501 reason: {1}
502 compiler.err.unreachable.stmt=\
503 unreachable statement
504 compiler.err.initializer.must.be.able.to.complete.normally=\
505 initializer must be able to complete normally
506 compiler.err.unreported.exception.need.to.catch.or.throw=\
507 unreported exception {0}; must be caught or declared to be thrown
508 compiler.err.unreported.exception.default.constructor=\
509 unreported exception {0} in default constructor
510 compiler.err.unsupported.cross.fp.lit=\
511 hexadecimal floating-point literals are not supported on this VM
512 compiler.err.void.not.allowed.here=\
513 ''void'' type not allowed here
515 compiler.err.wrong.number.type.args=\
516 wrong number of type arguments; required {0}
518 compiler.err.var.might.already.be.assigned=\
519 variable {0} might already have been assigned
520 compiler.err.var.might.not.have.been.initialized=\
521 variable {0} might not have been initialized
522 compiler.err.var.might.be.assigned.in.loop=\
523 variable {0} might be assigned in loop
525 compiler.err.varargs.invalid.trustme.anno=\
526 Invalid {0} annotation. {1}
527 compiler.misc.varargs.trustme.on.reifiable.varargs=\
528 Varargs element type {0} is reifiable.
529 compiler.misc.varargs.trustme.on.non.varargs.meth=\
530 Method {0} is not a varargs method.
531 compiler.misc.varargs.trustme.on.virtual.varargs=\
532 Instance method {0} is not final.
534 # In the following string, {1} will always be the detail message from
535 # java.io.IOException.
536 compiler.err.class.cant.write=\
537 error while writing {0}: {1}
539 # In the following string, {0} is the name of the class in the Java source.
540 # It really should be used two times..
541 compiler.err.class.public.should.be.in.file=\
542 class {0} is public, should be declared in a file named {0}.java
544 ## All errors which do not refer to a particular line in the source code are
545 ## preceded by this string.
546 compiler.err.error=\
547 error:\u0020
549 # The following error messages do not refer to a line in the source code.
550 compiler.err.cant.read.file=\
551 cannot read: {0}
553 #####
555 # Fatal Errors
557 compiler.misc.fatal.err.no.java.lang=\
558 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
559 compiler.misc.fatal.err.cant.locate.meth=\
560 Fatal Error: Unable to find method {0}
561 compiler.misc.fatal.err.cant.locate.field=\
562 Fatal Error: Unable to find field {0}
563 compiler.misc.fatal.err.cant.locate.ctor=\
564 Fatal Error: Unable to find constructor for {0}
565 compiler.misc.fatal.err.cant.close.loader=\
566 Fatal Error: Cannot close class loader for annotation processors
568 #####
570 ##
571 ## miscellaneous strings
572 ##
574 compiler.misc.source.unavailable=\
575 (source unavailable)
576 compiler.misc.base.membership=\
577 all your base class are belong to us
578 compiler.misc.x.print.processor.info=\
579 Processor {0} matches {1} and returns {2}.
580 compiler.misc.x.print.rounds=\
581 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
583 #####
585 ## The following string will appear before all messages keyed as:
586 ## "compiler.note".
587 compiler.note.note=\
588 Note:\u0020
590 compiler.note.deprecated.filename=\
591 {0} uses or overrides a deprecated API.
592 compiler.note.deprecated.plural=\
593 Some input files use or override a deprecated API.
594 # The following string may appear after one of the above deprecation
595 # messages.
596 compiler.note.deprecated.recompile=\
597 Recompile with -Xlint:deprecation for details.
599 compiler.note.deprecated.filename.additional=\
600 {0} has additional uses or overrides of a deprecated API.
601 compiler.note.deprecated.plural.additional=\
602 Some input files additionally use or override a deprecated API.
604 compiler.note.unchecked.filename=\
605 {0} uses unchecked or unsafe operations.
606 compiler.note.unchecked.plural=\
607 Some input files use unchecked or unsafe operations.
608 # The following string may appear after one of the above deprecation
609 # messages.
610 compiler.note.unchecked.recompile=\
611 Recompile with -Xlint:unchecked for details.
613 compiler.note.unchecked.filename.additional=\
614 {0} has additional unchecked or unsafe operations.
615 compiler.note.unchecked.plural.additional=\
616 Some input files additionally use unchecked or unsafe operations.
618 compiler.note.sunapi.filename=\
619 {0} uses internal proprietary API that may be removed in a future release.
620 compiler.note.sunapi.plural=\
621 Some input files use internal proprietary API that may be removed in a future release.
622 # The following string may appear after one of the above sunapi messages.
623 compiler.note.sunapi.recompile=\
624 Recompile with -Xlint:sunapi for details.
626 compiler.note.sunapi.filename.additional=\
627 {0} uses additional internal proprietary API that may be removed in a future release.
628 compiler.note.sunapi.plural.additional=\
629 Some input files additionally use internal proprietary API that may be removed in a future release.
631 # Notes related to annotation processing
633 # Print a client-generated note; assumed to be localized, no translation required
634 compiler.note.proc.messager=\
635 {0}
637 #####
639 compiler.misc.count.error=\
640 {0} error
641 compiler.misc.count.error.plural=\
642 {0} errors
643 compiler.misc.count.warn=\
644 {0} warning
645 compiler.misc.count.warn.plural=\
646 {0} warnings
648 compiler.misc.version.not.available=\
649 (version info not available)
651 ## extra output when using -verbose (JavaCompiler)
653 compiler.misc.verbose.checking.attribution=\
654 [checking {0}]
655 compiler.misc.verbose.parsing.done=\
656 [parsing completed {0}ms]
657 compiler.misc.verbose.parsing.started=\
658 [parsing started {0}]
659 compiler.misc.verbose.total=\
660 [total {0}ms]
661 compiler.misc.verbose.wrote.file=\
662 [wrote {0}]
664 ## extra output when using -verbose (Retro)
665 compiler.misc.verbose.retro=\
666 [retrofitting {0}]
667 compiler.misc.verbose.retro.with=\
668 \tretrofitting {0} with {1}
669 compiler.misc.verbose.retro.with.list=\
670 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
672 ## extra output when using -verbose (code/ClassReader)
673 compiler.misc.verbose.loading=\
674 [loading {0}]
676 compiler.misc.verbose.sourcepath=\
677 [search path for source files: {0}]
679 compiler.misc.verbose.classpath=\
680 [search path for class files: {0}]
682 ## extra output when using -checkclassfile (code/ClassReader)
683 compiler.misc.ccf.found.later.version=\
684 class file has later version than expected: {0}
685 compiler.misc.ccf.unrecognized.attribute=\
686 unrecognized attribute: {0}
688 ## extra output when using -prompt (util/Log)
689 compiler.misc.resume.abort=\
690 R)esume, A)bort>
692 #####
694 ##
695 ## warnings
696 ##
698 ## All warning messages are preceded by the following string.
699 compiler.warn.warning=\
700 warning:\u0020
702 ## Warning messages may also include the following prefix to identify a
703 ## lint option
704 compiler.warn.lintOption=\
705 [{0}]\u0020
707 compiler.warn.constant.SVUID=\
708 serialVersionUID must be constant in class {0}
710 compiler.warn.dir.path.element.not.found=\
711 bad path element "{0}": no such directory
713 compiler.warn.finally.cannot.complete=\
714 finally clause cannot complete normally
716 compiler.warn.has.been.deprecated=\
717 {0} in {1} has been deprecated
719 compiler.warn.sun.proprietary=\
720 {0} is internal proprietary API and may be removed in a future release
722 compiler.warn.illegal.char.for.encoding=\
723 unmappable character for encoding {0}
725 compiler.warn.improper.SVUID=\
726 serialVersionUID must be declared static final in class {0}
728 compiler.warn.inexact.non-varargs.call=\
729 non-varargs call of varargs method with inexact argument type for last parameter;\n\
730 cast to {0} for a varargs call\n\
731 cast to {1} for a non-varargs call and to suppress this warning
733 compiler.warn.long.SVUID=\
734 serialVersionUID must be of type long in class {0}
736 compiler.warn.missing.SVUID=\
737 serializable class {0} has no definition of serialVersionUID
739 compiler.warn.override.varargs.missing=\
740 {0}; overridden method has no ''...''
741 compiler.warn.override.varargs.extra=\
742 {0}; overriding method is missing ''...''
743 compiler.warn.override.bridge=\
744 {0}; overridden method is a bridge method
746 compiler.warn.pkg-info.already.seen=\
747 a package-info.java file has already been seen for package {0}
749 compiler.warn.path.element.not.found=\
750 bad path element "{0}": no such file or directory
752 compiler.warn.possible.fall-through.into.case=\
753 possible fall-through into case
755 compiler.warn.redundant.cast=\
756 redundant cast to {0}
758 compiler.warn.position.overflow=\
759 Position encoding overflows at line {0}
761 compiler.warn.big.major.version=\
762 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
763 It is recommended that the compiler be upgraded.
765 compiler.warn.static.not.qualified.by.type=\
766 static {0} should be qualified by type name, {1}, instead of by an expression
768 compiler.warn.source.no.bootclasspath=\
769 bootstrap class path not set in conjunction with -source {0}
771 compiler.warn.future.attr=\
772 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
774 # Warnings related to annotation processing
775 compiler.warn.proc.package.does.not.exist=\
776 package {0} does not exist
777 compiler.warn.proc.file.reopening=\
778 Attempt to create a file for ''{0}'' multiple times
780 compiler.warn.proc.type.already.exists=\
781 A file for type ''{0}'' already exists on the sourcepath or classpath
783 compiler.warn.proc.type.recreate=\
784 Attempt to create a file for type ''{0}'' multiple times
786 compiler.warn.proc.illegal.file.name=\
787 Cannot create file for illegal name ''{0}''.
789 compiler.warn.proc.suspicious.class.name=\
790 Creating file for a type whose name ends in {1}: ''{0}''
792 compiler.warn.proc.file.create.last.round=\
793 File for type ''{0}'' created in the last round will not be subject to annotation processing.
795 compiler.warn.proc.malformed.supported.string=\
796 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
798 compiler.warn.proc.annotations.without.processors=\
799 No processor claimed any of these annotations: {0}
801 compiler.warn.proc.processor.incompatible.source.version=\
802 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
804 compiler.warn.proc.proc-only.requested.no.procs=\
805 Annotation processing without compilation requested but no processors were found.
807 compiler.warn.proc.use.implicit=\
808 Implicitly compiled files were not subject to annotation processing.\n\
809 Use -implicit to specify a policy for implicit compilation.
811 compiler.warn.proc.use.proc.or.implicit=\
812 Implicitly compiled files were not subject to annotation processing.\n\
813 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
815 # Print a client-generated warning; assumed to be localized, no translation required
816 compiler.warn.proc.messager=\
817 {0}
819 compiler.warn.proc.unclosed.type.files=\
820 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
822 compiler.warn.proc.unmatched.processor.options=\
823 The following options were not recognized by any processor: ''{0}''
825 compiler.warn.try.explicit.close.call=\
826 explicit call to close() on an auto-closeable resource
827 compiler.warn.try.resource.not.referenced=\
828 auto-closeable resource {0} is never referenced in body of corresponding try statement
829 compiler.warn.unchecked.assign=\
830 unchecked assignment: {0} to {1}
831 compiler.warn.unchecked.assign.to.var=\
832 unchecked assignment to variable {0} as member of raw type {1}
833 compiler.warn.unchecked.call.mbr.of.raw.type=\
834 unchecked call to {0} as a member of the raw type {1}
835 compiler.warn.unchecked.cast.to.type=\
836 unchecked cast to type {0}
837 compiler.warn.unchecked.meth.invocation.applied=\
838 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
839 required: {2}\n\
840 found: {3}
842 compiler.warn.unchecked.generic.array.creation=\
843 unchecked generic array creation for varargs parameter of type {0}
845 compiler.warn.unchecked.varargs.non.reifiable.type=\
846 Possible heap pollution from parameterized vararg type {0}
848 compiler.warn.varargs.unsafe.use.varargs.param=\
849 Varargs method could cause heap pollution from non-reifiable varargs parameter {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 arguments for generic class {1}
876 compiler.warn.diamond.redundant.args=\
877 redundant type arguments in new expression (use diamond operator instead).
878 compiler.warn.diamond.redundant.args.1=\
879 redundant type arguments in new expression (use diamond operator instead).\n\
880 explicit: {0}\n\
881 inferred: {1}
883 compiler.warn.varargs.redundant.trustme.anno=\
884 Redundant {0} annotation. {1}
886 #####
888 ## The following are tokens which are non-terminals in the language. They should
889 ## be named as JLS3 calls them when translated to the appropriate language.
890 compiler.misc.token.identifier=\
891 <identifier>
892 compiler.misc.token.character=\
893 <character>
894 compiler.misc.token.string=\
895 <string>
896 compiler.misc.token.integer=\
897 <integer>
898 compiler.misc.token.long-integer=\
899 <long integer>
900 compiler.misc.token.float=\
901 <float>
902 compiler.misc.token.double=\
903 <double>
904 compiler.misc.token.bad-symbol=\
905 <bad symbol>
906 compiler.misc.token.end-of-input=\
907 <end of input>
909 ## The argument to the following string will always be one of the following:
910 ## 1. one of the above non-terminals
911 ## 2. a keyword (JLS1.8)
912 ## 3. a boolean literal (JLS3.10.3)
913 ## 4. the null literal (JLS3.10.7)
914 ## 5. a Java separator (JLS3.11)
915 ## 6. an operator (JLS3.12)
916 ##
917 ## This is the only place these tokens will be used.
918 compiler.err.expected=\
919 {0} expected
920 compiler.err.expected2=\
921 {0} or {1} expected
922 compiler.err.expected3=\
923 {0}, {1}, or {2} expected
925 compiler.err.premature.eof=\
926 reached end of file while parsing
928 ## The following are related in form, but do not easily fit the above paradigm.
929 compiler.err.dot.class.expected=\
930 ''.class'' expected
932 ## The argument to this string will always be either 'case' or 'default'.
933 compiler.err.orphaned=\
934 orphaned {0}
936 compiler.misc.anonymous.class=\
937 <anonymous {0}>
939 compiler.misc.type.captureof=\
940 capture#{0} of {1}
942 compiler.misc.type.captureof.1=\
943 capture#{0}
945 compiler.misc.type.none=\
946 <none>
948 compiler.misc.unnamed.package=\
949 unnamed package
951 #####
953 compiler.err.cant.access=\
954 cannot access {0}\n\
955 {1}
957 compiler.misc.bad.class.file.header=\
958 bad class file: {0}\n\
959 {1}\n\
960 Please remove or make sure it appears in the correct subdirectory of the classpath.
961 compiler.misc.bad.source.file.header=\
962 bad source file: {0}\n\
963 {1}\n\
964 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
966 ## The following are all possible strings for the second argument ({1}) of the
967 ## above strings.
968 compiler.misc.bad.class.signature=\
969 bad class signature: {0}
970 compiler.misc.bad.enclosing.method=\
971 bad enclosing method attribute: {0}
972 compiler.misc.bad.runtime.invisible.param.annotations=\
973 bad RuntimeInvisibleParameterAnnotations attribute: {0}
974 compiler.misc.bad.const.pool.tag=\
975 bad constant pool tag: {0}
976 compiler.misc.bad.const.pool.tag.at=\
977 bad constant pool tag: {0} at {1}
978 compiler.misc.bad.signature=\
979 bad signature: {0}
980 compiler.misc.class.file.wrong.class=\
981 class file contains wrong class: {0}
982 compiler.misc.class.file.not.found=\
983 class file for {0} not found
984 compiler.misc.file.doesnt.contain.class=\
985 file does not contain class {0}
986 compiler.misc.file.does.not.contain.package=\
987 file does not contain package {0}
988 compiler.misc.illegal.start.of.class.file=\
989 illegal start of class file
990 compiler.misc.unable.to.access.file=\
991 unable to access file: {0}
992 compiler.misc.unicode.str.not.supported=\
993 unicode string in class file not supported
994 compiler.misc.undecl.type.var=\
995 undeclared type variable: {0}
996 compiler.misc.wrong.version=\
997 class file has wrong version {0}.{1}, should be {2}.{3}
999 #####
1001 compiler.err.not.within.bounds=\
1002 type argument {0} is not within bounds of type-variable {1}
1004 ## The following are all possible strings for the second argument ({1}) of the
1005 ## above string.
1007 ## none yet...
1009 #####
1011 compiler.err.prob.found.req=\
1012 {0}\n\
1013 required: {2}\n\
1014 found: {1}
1015 compiler.warn.prob.found.req=\
1016 {0}\n\
1017 required: {2}\n\
1018 found: {1}
1019 compiler.err.prob.found.req.1=\
1020 {0} {3}\n\
1021 required: {2}\n\
1022 found: {1}
1024 ## The following are all possible strings for the first argument ({0}) of the
1025 ## above strings.
1026 compiler.misc.incompatible.types=\
1027 incompatible types
1028 compiler.misc.incompatible.types.1=\
1029 incompatible types; {0}
1030 compiler.misc.inconvertible.types=\
1031 inconvertible types
1032 compiler.misc.possible.loss.of.precision=\
1033 possible loss of precision
1035 compiler.misc.unchecked.assign=\
1036 unchecked conversion
1037 # compiler.misc.storecheck=\
1038 # assignment might cause later store checks to fail
1039 # compiler.misc.unchecked=\
1040 # assigned array cannot dynamically check its stores
1041 compiler.misc.unchecked.cast.to.type=\
1042 unchecked cast
1044 compiler.misc.assignment.from.super-bound=\
1045 assignment from super-bound type {0}
1046 compiler.misc.assignment.to.extends-bound=\
1047 assignment to extends-bound type {0}
1048 # compiler.err.star.expected=\
1049 # ''*'' expected
1050 # compiler.err.no.elem.type=\
1051 # \[\*\] cannot have a type
1053 compiler.misc.try.not.applicable.to.type=\
1054 try-with-resources not applicable to variable type
1056 #####
1058 compiler.err.type.found.req=\
1059 unexpected type\n\
1060 required: {1}\n\
1061 found: {0}
1063 ## The following are all possible strings for the first argument ({0}) of the
1064 ## above string.
1065 compiler.misc.type.req.class=\
1066 class
1067 compiler.misc.type.req.class.array=\
1068 class or array
1069 compiler.misc.type.req.array.or.iterable=\
1070 array or java.lang.Iterable
1071 compiler.misc.type.req.ref=\
1072 reference
1073 compiler.misc.type.req.exact=\
1074 class or interface without bounds
1075 compiler.misc.type.parameter=\
1076 type parameter {0}
1078 #####
1080 ## The following are all possible strings for the last argument of all those
1081 ## diagnostics whose key ends in ".1"
1082 compiler.misc.undetermined.type=\
1083 undetermined type
1084 compiler.misc.type.variable.has.undetermined.type=\
1085 type variable {0} has undetermined type
1086 compiler.misc.no.unique.maximal.instance.exists=\
1087 no unique maximal instance exists for type variable {0} with upper bounds {1}
1088 compiler.misc.no.unique.minimal.instance.exists=\
1089 no unique minimal instance exists for type variable {0} with lower bounds {1}
1090 compiler.misc.infer.no.conforming.instance.exists=\
1091 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1092 compiler.misc.infer.no.conforming.assignment.exists=\
1093 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1094 compiler.misc.infer.arg.length.mismatch=\
1095 cannot instantiate from arguments because actual and formal argument lists differ in length
1096 compiler.misc.inferred.do.not.conform.to.bounds=\
1097 inferred type does not conform to declared bound(s)\n\
1098 inferred: {0}\n\
1099 bound(s): {1}
1100 compiler.misc.inferred.do.not.conform.to.params=\
1101 actual arguments do not conform to inferred formal arguments\n\
1102 required: {0}\n\
1103 found: {1}
1104 compiler.misc.diamond=\
1105 {0}<>
1106 compiler.misc.diamond.invalid.arg=\
1107 type argument {0} inferred for {1} is not allowed in this context
1108 compiler.misc.diamond.invalid.args=\
1109 type arguments {0} inferred for {1} are not allowed in this context
1111 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1112 explicit type argument {0} does not conform to declared bound(s) {1}
1114 compiler.misc.arg.length.mismatch=\
1115 actual and formal argument lists differ in length
1116 compiler.misc.no.conforming.assignment.exists=\
1117 actual argument {0} cannot be converted to {1} by method invocation conversion
1118 compiler.misc.varargs.argument.mismatch=\
1119 argument type {0} does not conform to vararg element type {1}
1120 #####
1122 ## The first argument ({0}) is a "kindname".
1123 compiler.err.abstract.cant.be.accessed.directly=\
1124 abstract {0} {1} in {2} cannot be accessed directly
1126 ## The first argument ({0}) is a "kindname".
1127 compiler.err.non-static.cant.be.ref=\
1128 non-static {0} {1} cannot be referenced from a static context
1130 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1131 ## of kindnames (the list should be identical to that provided in source.
1132 compiler.err.unexpected.type=\
1133 unexpected type\n\
1134 required: {0}\n\
1135 found: {1}
1137 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1138 ## The second argument {1} is the non-resolved symbol
1139 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1140 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1141 compiler.err.cant.resolve=\
1142 cannot find symbol\n\
1143 symbol: {0} {1}
1145 compiler.err.cant.resolve.args=\
1146 cannot find symbol\n\
1147 symbol: {0} {1}({3})
1149 compiler.err.cant.resolve.args.params=\
1150 cannot find symbol\n\
1151 symbol: {0} <{2}>{1}({3})
1153 ## arguments from {0} to {3} have the same meaning as above
1154 ## The fifth argument {4} is a location subdiagnostic (see below)
1155 compiler.err.cant.resolve.location=\
1156 cannot find symbol\n\
1157 symbol: {0} {1}\n\
1158 location: {4}
1160 compiler.err.cant.resolve.location.args=\
1161 cannot find symbol\n\
1162 symbol: {0} {1}({3})\n\
1163 location: {4}
1165 compiler.err.cant.resolve.location.args.params=\
1166 cannot find symbol\n\
1167 symbol: {0} <{2}>{1}({3})\n\
1168 location: {4}
1170 ##a location subdiagnostic is composed as follows:
1171 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1172 ## The second argument {1} is the location name
1173 ## The third argument {2} is the location type (only when {1} is a variable name)
1175 compiler.misc.location=\
1176 {0} {1}
1177 compiler.misc.location.1=\
1178 {0} {1} of type {2}
1180 ## The following are all possible string for "kindname".
1181 ## They should be called whatever the JLS calls them after it been translated
1182 ## to the appropriate language.
1183 # compiler.misc.kindname.constructor=\
1184 # static member
1185 compiler.misc.kindname.annotation=\
1186 @interface
1187 compiler.misc.kindname.constructor=\
1188 constructor
1189 compiler.misc.kindname.enum=\
1190 enum
1191 compiler.misc.kindname.interface=\
1192 interface
1193 compiler.misc.kindname.static=\
1194 static
1195 compiler.misc.kindname.type.variable=\
1196 type variable
1197 compiler.misc.kindname.type.variable.bound=\
1198 bound of type variable
1199 compiler.misc.kindname.variable=\
1200 variable
1201 compiler.misc.kindname.value=\
1202 value
1203 compiler.misc.kindname.method=\
1204 method
1205 compiler.misc.kindname.class=\
1206 class
1207 compiler.misc.kindname.package=\
1208 package
1209 #####
1211 compiler.misc.no.args=\
1212 no arguments
1214 compiler.err.override.static=\
1215 {0}\n\
1216 overriding method is static
1217 compiler.err.override.meth=\
1218 {0}\n\
1219 overridden method is {1}
1221 compiler.err.override.meth.doesnt.throw=\
1222 {0}\n\
1223 overridden method does not throw {1}
1225 # In the following string {1} is a space separated list of Java Keywords, as
1226 # they would have been declared in the source code
1227 compiler.err.override.weaker.access=\
1228 {0}\n\
1229 attempting to assign weaker access privileges; was {1}
1231 compiler.err.override.incompatible.ret=\
1232 {0}\n\
1233 return type {1} is not compatible with {2}
1235 compiler.warn.override.unchecked.ret=\
1236 {0}\n\
1237 return type requires unchecked conversion from {1} to {2}
1239 compiler.warn.override.unchecked.thrown=\
1240 {0}\n\
1241 overridden method does not throw {1}
1243 ## The following are all possible strings for the first argument ({0}) of the
1244 ## above strings.
1245 compiler.misc.cant.override=\
1246 {0} in {1} cannot override {2} in {3}
1247 compiler.misc.cant.implement=\
1248 {0} in {1} cannot implement {2} in {3}
1249 compiler.misc.clashes.with=\
1250 {0} in {1} clashes with {2} in {3}
1251 compiler.misc.unchecked.override=\
1252 {0} in {1} overrides {2} in {3}
1253 compiler.misc.unchecked.implement=\
1254 {0} in {1} implements {2} in {3}
1255 compiler.misc.unchecked.clash.with=\
1256 {0} in {1} overrides {2} in {3}
1257 compiler.misc.varargs.override=\
1258 {0} in {1} overrides {2} in {3}
1259 compiler.misc.varargs.implement=\
1260 {0} in {1} implements {2} in {3}
1261 compiler.misc.varargs.clash.with=\
1262 {0} in {1} overrides {2} in {3}
1263 compiler.misc.non.denotable.type=\
1264 Non-denotable type {0} not allowed here
1266 compiler.misc.inapplicable.method=\
1267 {0} {1}.{2} is not applicable\n\
1268 ({3})
1270 ########################################
1271 # Diagnostics for language feature changes
1272 ########################################
1273 compiler.err.unsupported.fp.lit=\
1274 hexadecimal floating point literals are not supported in -source {0}\n\
1275 (use -source 5 or higher to enable hexadecimal floating point literals)
1277 compiler.err.unsupported.binary.lit=\
1278 binary literals are not supported in -source {0}\n\
1279 (use -source 7 or higher to enable binary literals)
1281 compiler.err.unsupported.underscore.lit=\
1282 underscores in literals are not supported in -source {0}\n\
1283 (use -source 7 or higher to enable underscores in literals)
1285 compiler.err.try.with.resources.not.supported.in.source=\
1286 try-with-resources is not supported in -source {0}\n\
1287 (use -source 7 or higher to enable try-with-resources)
1289 compiler.warn.enum.as.identifier=\
1290 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1291 (use -source 5 or higher to use ''enum'' as a keyword)
1293 compiler.warn.assert.as.identifier=\
1294 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1295 (use -source 1.4 or higher to use ''assert'' as a keyword)
1297 compiler.err.enum.as.identifier=\
1298 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1299 (use -source 1.4 or lower to use ''enum'' as an identifier)
1301 compiler.err.assert.as.identifier=\
1302 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1303 (use -source 1.3 or lower to use ''assert'' as an identifier)
1305 compiler.err.generics.not.supported.in.source=\
1306 generics are not supported in -source {0}\n\
1307 (use -source 5 or higher to enable generics)
1309 compiler.err.varargs.not.supported.in.source=\
1310 variable-arity methods are not supported in -source {0}\n\
1311 (use -source 5 or higher to enable variable-arity methods)
1313 compiler.err.annotations.not.supported.in.source=\
1314 annotations are not supported in -source {0}\n\
1315 (use -source 5 or higher to enable annotations)
1317 #308 compiler.err.type.annotations.not.supported.in.source=\
1318 #308 type annotations are not supported in -source {0}\n\
1319 #308 (use -source 7 or higher to enable type annotations)
1321 compiler.err.foreach.not.supported.in.source=\
1322 for-each loops are not supported in -source {0}\n\
1323 (use -source 5 or higher to enable for-each loops)
1325 compiler.err.static.import.not.supported.in.source=\
1326 static import declarations are not supported in -source {0}\n\
1327 (use -source 5 or higher to enable static import declarations)
1329 compiler.err.enums.not.supported.in.source=\
1330 enums are not supported in -source {0}\n\
1331 (use -source 5 or higher to enable enums)
1333 compiler.err.diamond.not.supported.in.source=\
1334 diamond operator is not supported in -source {0}\n\
1335 (use -source 7 or higher to enable diamond operator)
1337 compiler.err.multicatch.not.supported.in.source=\
1338 multi-catch statement is not supported in -source {0}\n\
1339 (use -source 7 or higher to enable multi-catch statement)
1341 compiler.err.string.switch.not.supported.in.source=\
1342 strings in switch are not supported in -source {0}\n\
1343 (use -source 7 or higher to enable strings in switch)
1345 ########################################
1346 # Diagnostics for where clause implementation
1347 # used by the RichDiagnosticFormatter.
1348 ########################################
1350 compiler.misc.type.null=\
1351 <null>
1353 # X#n (where n is an int id) is disambiguated tvar name
1354 compiler.misc.type.var=\
1355 {0}#{1}
1357 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1358 compiler.misc.captured.type=\
1359 CAP#{0}
1361 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1362 compiler.misc.intersection.type=\
1363 INT#{0}
1365 # where clause for captured type: contains upper ('extends {1}') and lower
1366 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1367 compiler.misc.where.captured=\
1368 {0} extends {1} super: {2} from capture of {3}
1370 # compact where clause for captured type: contains upper ('extends {1}') along
1371 # with the wildcard that generated this captured type ({3})
1372 compiler.misc.where.captured.1=\
1373 {0} extends {1} from capture of {3}
1375 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1376 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1377 compiler.misc.where.typevar=\
1378 {0} extends {1} declared in {2} {3}
1380 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1381 # in which the typevar has been declared
1382 compiler.misc.where.typevar.1=\
1383 {0} declared in {2} {3}
1385 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1386 # of this intersection type
1387 compiler.misc.where.intersection=\
1388 {0} extends {1}
1390 ### Where clause headers ###
1391 compiler.misc.where.description.captured=\
1392 where {0} is a fresh type-variable:
1393 compiler.misc.where.description.typevar=\
1394 where {0} is a type-variable:
1395 compiler.misc.where.description.intersection=\
1396 where {0} is an intersection type:
1397 compiler.misc.where.description.captured.1=\
1398 where {0} are fresh type-variables:
1399 compiler.misc.where.description.typevar.1=\
1400 where {0} are type-variables:
1401 compiler.misc.where.description.intersection.1=\
1402 where {0} are intersection types: