Fri, 12 Nov 2010 12:34:18 +0000
6970016: Clean up ARM/try-with-resources implementation
Summary: changed Xlint option name from -Xlint:arm to -Xlint:try
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.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} clashes with package of same name
116 compiler.err.const.expr.req=\
117 constant expression required
118 compiler.err.enum.const.req=\
119 unqualified enumeration constant name required
120 compiler.err.cont.outside.loop=\
121 continue outside of loop
122 compiler.err.cyclic.inheritance=\
123 cyclic inheritance involving {0}
124 compiler.err.cyclic.annotation.element=\
125 cyclic annotation element type
126 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
127 call to super not allowed in enum constructor
128 compiler.err.no.superclass=\
129 {0} has no superclass
131 compiler.warn.type.parameter.on.polymorphic.signature=\
132 change obsolete notation for MethodHandle invocations from x.<T>invoke(y) to (T)x.invoke(y)
133 compiler.warn.wrong.target.for.polymorphic.signature.definition=\
134 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
136 compiler.err.concrete.inheritance.conflict=\
137 methods {0} from {1} and {2} from {3} are inherited with the same signature
139 compiler.err.default.allowed.in.intf.annotation.member=\
140 default value only allowed in an @interface member
141 compiler.err.doesnt.exist=\
142 package {0} does not exist
143 compiler.err.duplicate.annotation=\
144 duplicate annotation
145 compiler.err.duplicate.annotation.member.value=\
146 duplicate annotation member value {0} in {1}
147 compiler.err.duplicate.class=\
148 duplicate class: {0}
149 compiler.err.duplicate.case.label=\
150 duplicate case label
151 compiler.err.duplicate.default.label=\
152 duplicate default label
154 compiler.err.else.without.if=\
155 ''else'' without ''if''
156 compiler.err.empty.bytecode.ident=\
157 empty bytecode identifier
158 compiler.err.empty.char.lit=\
159 empty character literal
160 compiler.err.encl.class.required=\
161 an enclosing instance that contains {0} is required
162 compiler.err.enum.annotation.must.be.enum.constant=\
163 an enum annotation value must be an enum constant
165 compiler.err.enum.cant.be.instantiated=\
166 enum types may not be instantiated
167 compiler.err.enum.label.must.be.unqualified.enum=\
168 an enum switch case label must be the unqualified name of an enumeration constant
169 compiler.err.enum.no.subclassing=\
170 classes cannot directly extend java.lang.Enum
171 compiler.err.enum.types.not.extensible=\
172 enum types are not extensible
173 compiler.err.enum.no.finalize=\
174 enums cannot have finalize methods
175 compiler.err.error.reading.file=\
176 error reading {0}; {1}
177 compiler.err.except.already.caught=\
178 exception {0} has already been caught
179 compiler.err.except.never.thrown.in.try=\
180 exception {0} is never thrown in body of corresponding try statement
182 compiler.err.final.parameter.may.not.be.assigned=\
183 final parameter {0} may not be assigned
184 compiler.err.try.resource.may.not.be.assigned=\
185 auto-closeable resource {0} may not be assigned
186 compiler.err.multicatch.parameter.may.not.be.assigned=\
187 multi-catch parameter {0} may not be assigned
188 compiler.err.finally.without.try=\
189 ''finally'' without ''try''
190 compiler.err.foreach.not.applicable.to.type=\
191 foreach not applicable to expression type
192 compiler.err.fp.number.too.large=\
193 floating point number too large
194 compiler.err.fp.number.too.small=\
195 floating point number too small
197 compiler.err.generic.array.creation=\
198 generic array creation
199 compiler.err.generic.throwable=\
200 a generic class may not extend java.lang.Throwable
202 compiler.err.icls.cant.have.static.decl=\
203 inner classes cannot have static declarations
204 compiler.err.illegal.bytecode.ident.char=\
205 illegal bytecode identifier character: \\{0}
206 compiler.err.illegal.char=\
207 illegal character: \\{0}
208 compiler.err.illegal.char.for.encoding=\
209 unmappable character for encoding {0}
210 compiler.err.illegal.combination.of.modifiers=\
211 illegal combination of modifiers: {0} and {1}
212 compiler.err.illegal.enum.static.ref=\
213 illegal reference to static field from initializer
214 compiler.err.illegal.esc.char=\
215 illegal escape character
216 compiler.err.illegal.forward.ref=\
217 illegal forward reference
218 compiler.warn.forward.ref=\
219 reference to variable ''{0}'' before it has been initialized
220 compiler.err.illegal.self.ref=\
221 self-reference in initializer
222 compiler.warn.self.ref=\
223 self-reference in initializer of variable ''{0}''
224 compiler.err.illegal.generic.type.for.instof=\
225 illegal generic type for instanceof
226 compiler.err.illegal.initializer.for.type=\
227 illegal initializer for {0}
228 compiler.err.illegal.line.end.in.char.lit=\
229 illegal line end in character literal
230 compiler.err.illegal.nonascii.digit=\
231 illegal non-ASCII digit
232 compiler.err.illegal.underscore=\
233 illegal underscore
234 compiler.err.illegal.qual.not.icls=\
235 illegal qualifier; {0} is not an inner class
236 compiler.err.illegal.start.of.expr=\
237 illegal start of expression
238 compiler.err.illegal.start.of.type=\
239 illegal start of type
240 compiler.err.illegal.unicode.esc=\
241 illegal unicode escape
242 compiler.err.import.requires.canonical=\
243 import requires canonical name for {0}
244 compiler.err.improperly.formed.type.param.missing=\
245 improperly formed type, some parameters are missing
246 compiler.err.improperly.formed.type.inner.raw.param=\
247 improperly formed type, type parameters given on a raw type
248 compiler.err.incomparable.types=\
249 incomparable types: {0} and {1}
250 compiler.err.int.number.too.large=\
251 integer number too large: {0}
252 compiler.err.internal.error.cant.instantiate=\
253 internal error; cannot instantiate {0} at {1} to ({2})
254 compiler.err.intf.annotation.members.cant.have.params=\
255 @interface members may not have parameters
256 compiler.err.intf.annotation.cant.have.type.params=\
257 @interface may not have type parameters
258 compiler.err.intf.annotation.members.cant.have.type.params=\
259 @interface members may not have type parameters
260 compiler.err.intf.annotation.member.clash=\
261 @interface member clashes with method ''{0}'' in {1}
262 compiler.err.intf.expected.here=\
263 interface expected here
264 compiler.err.intf.meth.cant.have.body=\
265 interface methods cannot have body
266 compiler.err.invalid.annotation.member.type=\
267 invalid type for annotation member
268 compiler.err.invalid.binary.number=\
269 binary numbers must contain at least one binary digit
270 compiler.err.invalid.hex.number=\
271 hexadecimal numbers must contain at least one hexadecimal digit
272 compiler.err.invalid.meth.decl.ret.type.req=\
273 invalid method declaration; return type required
275 compiler.err.label.already.in.use=\
276 label {0} already in use
277 compiler.err.local.var.accessed.from.icls.needs.final=\
278 local variable {0} is accessed from within inner class; needs to be declared final
279 compiler.err.local.enum=\
280 enum types must not be local
281 compiler.err.cannot.create.array.with.type.arguments=\
282 cannot create array with type arguments
284 #
285 # limits. We don't give the limits in the diagnostic because we expect
286 # them to change, yet we want to use the same diagnostic. These are all
287 # detected during code generation.
288 #
289 compiler.err.limit.code=\
290 code too large
291 compiler.err.limit.code.too.large.for.try.stmt=\
292 code too large for try statement
293 compiler.err.limit.dimensions=\
294 array type has too many dimensions
295 compiler.err.limit.locals=\
296 too many local variables
297 compiler.err.limit.parameters=\
298 too many parameters
299 compiler.err.limit.pool=\
300 too many constants
301 compiler.err.limit.pool.in.class=\
302 too many constants in class {0}
303 compiler.err.limit.stack=\
304 code requires too much stack
305 compiler.err.limit.string=\
306 constant string too long
307 compiler.err.limit.string.overflow=\
308 UTF8 representation for string \"{0}...\" is too long for the constant pool
310 compiler.err.malformed.fp.lit=\
311 malformed floating point literal
312 compiler.err.method.does.not.override.superclass=\
313 method does not override or implement a method from a supertype
314 compiler.err.missing.meth.body.or.decl.abstract=\
315 missing method body, or declare abstract
316 compiler.err.missing.ret.stmt=\
317 missing return statement
318 compiler.err.missing.ret.val=\
319 missing return value
320 compiler.err.mod.not.allowed.here=\
321 modifier {0} not allowed here
322 compiler.err.intf.not.allowed.here=\
323 interface not allowed here
324 compiler.err.enums.must.be.static=\
325 enum declarations allowed only in static contexts
327 compiler.err.name.clash.same.erasure=\
328 name clash: {0} and {1} have the same erasure
329 compiler.err.name.clash.same.erasure.no.override=\
330 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
331 compiler.err.name.reserved.for.internal.use=\
332 {0} is reserved for internal use
333 compiler.err.native.meth.cant.have.body=\
334 native methods cannot have a body
335 compiler.err.neither.conditional.subtype=\
336 incompatible types for ?: neither is a subtype of the other\n\
337 second operand: {0}\n\
338 third operand : {1}
339 compiler.err.new.not.allowed.in.annotation=\
340 ''new'' not allowed in an annotation
341 compiler.err.no.annotation.member=\
342 no annotation member {0} in {1}
343 compiler.err.no.encl.instance.of.type.in.scope=\
344 no enclosing instance of type {0} is in scope
345 compiler.err.no.intf.expected.here=\
346 no interface expected here
347 compiler.err.no.match.entry=\
348 {0} has no match in entry in {1}; required {2}
349 compiler.err.not.annotation.type=\
350 {0} is not an annotation type
351 compiler.err.not.def.access.class.intf.cant.access=\
352 {0} in {1} is defined in an inaccessible class or interface
353 compiler.err.not.def.public.cant.access=\
354 {0} is not public in {1}; cannot be accessed from outside package
355 compiler.err.not.loop.label=\
356 not a loop label: {0}
357 compiler.err.not.stmt=\
358 not a statement
359 compiler.err.not.encl.class=\
360 not an enclosing class: {0}
362 compiler.err.operator.cant.be.applied=\
363 operator {0} cannot be applied to {1}
365 compiler.err.pkg.annotations.sb.in.package-info.java=\
366 package annotations should be in file package-info.java
367 compiler.err.pkg.clashes.with.class.of.same.name=\
368 package {0} clashes with class of same name
370 compiler.err.warnings.and.werror=\
371 warnings found and -Werror specified
373 # Errors related to annotation processing
375 compiler.err.proc.cant.access=\
376 cannot access {0}\n\
377 {1}\n\
378 Consult the following stack trace for details.\n\
379 {2}
381 compiler.err.proc.cant.find.class=\
382 Could not find class file for ''{0}''.
384 # Print a client-generated error message; assumed to be localized, no translation required
385 compiler.err.proc.messager=\
386 {0}
388 compiler.err.proc.no.explicit.annotation.processing.requested=\
389 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
391 compiler.err.proc.no.service=\
392 A service loader class could not be found.\n\
393 Either java.util.ServiceLoader or sun.misc.Service must be available.
395 compiler.err.proc.processor.bad.option.name=\
396 Bad option name ''{0}'' provided by processor ''{1}''
398 compiler.err.proc.processor.cant.instantiate=\
399 Could not instantiate an instance of processor ''{0}''
401 compiler.err.proc.processor.constructor.error=\
402 Exception thrown while constructing Processor object: {0}
404 compiler.err.proc.processor.not.found=\
405 Annotation processor ''{0}'' not found
407 compiler.err.proc.processor.wrong.type=\
408 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
410 compiler.err.proc.service.problem=\
411 Error creating a service loader to load Processors.
413 compiler.err.proc.bad.config.file=\
414 Bad service configuration file, or exception thrown while constructing Processor object: {0}
416 compiler.err.proc.cant.create.loader=\
417 Could not create class loader for annotation processors: {0}
419 compiler.err.qualified.new.of.static.class=\
420 qualified new of static class
422 compiler.err.recursive.ctor.invocation=\
423 recursive constructor invocation
424 compiler.err.ref.ambiguous=\
425 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
426 compiler.err.repeated.annotation.target=\
427 repeated annotation target
428 compiler.err.repeated.interface=\
429 repeated interface
430 compiler.err.repeated.modifier=\
431 repeated modifier
432 compiler.err.report.access=\
433 {0} has {1} access in {2}
434 compiler.err.ret.outside.meth=\
435 return outside method
437 compiler.err.signature.doesnt.match.supertype=\
438 signature does not match {0}; incompatible supertype
439 compiler.err.signature.doesnt.match.intf=\
440 signature does not match {0}; incompatible interfaces
441 compiler.err.does.not.override.abstract=\
442 {0} is not abstract and does not override abstract method {1} in {2}
443 compiler.err.source.cant.overwrite.input.file=\
444 error writing source; cannot overwrite input file {0}
445 compiler.err.stack.sim.error=\
446 Internal error: stack sim error on {0}
447 compiler.err.static.imp.only.classes.and.interfaces=\
448 static import only from classes and interfaces
449 compiler.err.string.const.req=\
450 constant string expression required
451 compiler.err.synthetic.name.conflict=\
452 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
453 compiler.warn.synthetic.name.conflict=\
454 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
456 compiler.err.throws.not.allowed.in.intf.annotation=\
457 throws clause not allowed in @interface members
458 compiler.err.try.without.catch.or.finally=\
459 ''try'' without ''catch'' or ''finally''
460 compiler.err.try.without.catch.finally.or.resource.decls=\
461 ''try'' without ''catch'', ''finally'' or resource declarations
462 compiler.err.type.doesnt.take.params=\
463 type {0} does not take parameters
464 compiler.err.type.var.cant.be.deref=\
465 cannot select from a type variable
466 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
467 a type variable may not be followed by other bounds
468 compiler.err.type.var.more.than.once=\
469 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
470 compiler.err.type.var.more.than.once.in.result=\
471 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
472 compiler.err.types.incompatible.diff.ret=\
473 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
475 compiler.err.unclosed.bytecode.ident=\
476 unclosed bytecode identifier
477 compiler.err.unclosed.char.lit=\
478 unclosed character literal
479 compiler.err.unclosed.comment=\
480 unclosed comment
481 compiler.err.unclosed.str.lit=\
482 unclosed string literal
483 compiler.err.unknown.enum.constant=\
484 in class file {0}: unknown enum constant {1}.{2}
485 compiler.err.unsupported.encoding=\
486 unsupported encoding: {0}
487 compiler.err.io.exception=\
488 error reading source file: {0}
489 compiler.err.undef.label=\
490 undefined label: {0}
491 compiler.err.undetermined.type=\
492 type parameters of {0} cannot be determined
493 compiler.err.undetermined.type.1=\
494 type parameters of {0} cannot be determined; {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 # In the following string, {1} will always be the detail message from
526 # java.io.IOException.
527 compiler.err.class.cant.write=\
528 error while writing {0}: {1}
530 # In the following string, {0} is the name of the class in the Java source.
531 # It really should be used two times..
532 compiler.err.class.public.should.be.in.file=\
533 class {0} is public, should be declared in a file named {0}.java
535 ## All errors which do not refer to a particular line in the source code are
536 ## preceded by this string.
537 compiler.err.error=\
538 error:\u0020
540 # The following error messages do not refer to a line in the source code.
541 compiler.err.cant.read.file=\
542 cannot read: {0}
544 #####
546 # Fatal Errors
548 compiler.misc.fatal.err.no.java.lang=\
549 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
550 compiler.misc.fatal.err.cant.locate.meth=\
551 Fatal Error: Unable to find method {0}
552 compiler.misc.fatal.err.cant.locate.field=\
553 Fatal Error: Unable to find field {0}
554 compiler.misc.fatal.err.cant.locate.ctor=\
555 Fatal Error: Unable to find constructor for {0}
556 compiler.misc.fatal.err.cant.close.loader=\
557 Fatal Error: Cannot close class loader for annotation processors
559 #####
561 ##
562 ## miscellaneous strings
563 ##
565 compiler.misc.source.unavailable=\
566 (source unavailable)
567 compiler.misc.base.membership=\
568 all your base class are belong to us
569 compiler.misc.x.print.processor.info=\
570 Processor {0} matches {1} and returns {2}.
571 compiler.misc.x.print.rounds=\
572 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
574 #####
576 ## The following string will appear before all messages keyed as:
577 ## "compiler.note".
578 compiler.note.note=\
579 Note:\u0020
581 compiler.note.deprecated.filename=\
582 {0} uses or overrides a deprecated API.
583 compiler.note.deprecated.plural=\
584 Some input files use or override a deprecated API.
585 # The following string may appear after one of the above deprecation
586 # messages.
587 compiler.note.deprecated.recompile=\
588 Recompile with -Xlint:deprecation for details.
590 compiler.note.deprecated.filename.additional=\
591 {0} has additional uses or overrides of a deprecated API.
592 compiler.note.deprecated.plural.additional=\
593 Some input files additionally use or override a deprecated API.
595 compiler.note.unchecked.filename=\
596 {0} uses unchecked or unsafe operations.
597 compiler.note.unchecked.plural=\
598 Some input files use unchecked or unsafe operations.
599 # The following string may appear after one of the above deprecation
600 # messages.
601 compiler.note.unchecked.recompile=\
602 Recompile with -Xlint:unchecked for details.
604 compiler.note.unchecked.filename.additional=\
605 {0} has additional unchecked or unsafe operations.
606 compiler.note.unchecked.plural.additional=\
607 Some input files additionally use unchecked or unsafe operations.
609 compiler.note.varargs.filename=\
610 {0} declares unsafe vararg methods.
611 compiler.note.varargs.plural=\
612 Some input files declare unsafe vararg methods.
613 # The following string may appear after one of the above unsafe varargs
614 # messages.
615 compiler.note.varargs.recompile=\
616 Recompile with -Xlint:varargs for details.
618 compiler.note.varargs.filename.additional=\
619 {0} declares additional unsafe vararg methods.
620 compiler.note.varargs.plural.additional=\
621 Some input files additionally declares unsafe vararg methods.
623 compiler.note.sunapi.filename=\
624 {0} uses internal proprietary API that may be removed in a future release.
625 compiler.note.sunapi.plural=\
626 Some input files use internal proprietary API that may be removed in a future release.
627 # The following string may appear after one of the above sunapi messages.
628 compiler.note.sunapi.recompile=\
629 Recompile with -Xlint:sunapi for details.
631 compiler.note.sunapi.filename.additional=\
632 {0} uses additional internal proprietary API that may be removed in a future release.
633 compiler.note.sunapi.plural.additional=\
634 Some input files additionally use internal proprietary API that may be removed in a future release.
636 # Notes related to annotation processing
638 # Print a client-generated note; assumed to be localized, no translation required
639 compiler.note.proc.messager=\
640 {0}
642 #####
644 compiler.misc.count.error=\
645 {0} error
646 compiler.misc.count.error.plural=\
647 {0} errors
648 compiler.misc.count.warn=\
649 {0} warning
650 compiler.misc.count.warn.plural=\
651 {0} warnings
653 compiler.misc.version.not.available=\
654 (version info not available)
656 ## extra output when using -verbose (JavaCompiler)
658 compiler.misc.verbose.checking.attribution=\
659 [checking {0}]
660 compiler.misc.verbose.parsing.done=\
661 [parsing completed {0}ms]
662 compiler.misc.verbose.parsing.started=\
663 [parsing started {0}]
664 compiler.misc.verbose.total=\
665 [total {0}ms]
666 compiler.misc.verbose.wrote.file=\
667 [wrote {0}]
669 ## extra output when using -verbose (Retro)
670 compiler.misc.verbose.retro=\
671 [retrofitting {0}]
672 compiler.misc.verbose.retro.with=\
673 \tretrofitting {0} with {1}
674 compiler.misc.verbose.retro.with.list=\
675 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
677 ## extra output when using -verbose (code/ClassReader)
678 compiler.misc.verbose.loading=\
679 [loading {0}]
681 compiler.misc.verbose.sourcepath=\
682 [search path for source files: {0}]
684 compiler.misc.verbose.classpath=\
685 [search path for class files: {0}]
687 ## extra output when using -checkclassfile (code/ClassReader)
688 compiler.misc.ccf.found.later.version=\
689 class file has later version than expected: {0}
690 compiler.misc.ccf.unrecognized.attribute=\
691 unrecognized attribute: {0}
693 ## extra output when using -prompt (util/Log)
694 compiler.misc.resume.abort=\
695 R)esume, A)bort>
697 #####
699 ##
700 ## warnings
701 ##
703 ## All warning messages are preceded by the following string.
704 compiler.warn.warning=\
705 warning:\u0020
707 ## Warning messages may also include the following prefix to identify a
708 ## lint option
709 compiler.warn.lintOption=\
710 [{0}]\u0020
712 compiler.warn.constant.SVUID=\
713 serialVersionUID must be constant in class {0}
715 compiler.warn.dir.path.element.not.found=\
716 bad path element "{0}": no such directory
718 compiler.warn.finally.cannot.complete=\
719 finally clause cannot complete normally
721 compiler.warn.has.been.deprecated=\
722 {0} in {1} has been deprecated
724 compiler.warn.sun.proprietary=\
725 {0} is internal proprietary API and may be removed in a future release
727 compiler.warn.illegal.char.for.encoding=\
728 unmappable character for encoding {0}
730 compiler.warn.improper.SVUID=\
731 serialVersionUID must be declared static final in class {0}
733 compiler.warn.inexact.non-varargs.call=\
734 non-varargs call of varargs method with inexact argument type for last parameter;\n\
735 cast to {0} for a varargs call\n\
736 cast to {1} for a non-varargs call and to suppress this warning
738 compiler.warn.long.SVUID=\
739 serialVersionUID must be of type long in class {0}
741 compiler.warn.missing.SVUID=\
742 serializable class {0} has no definition of serialVersionUID
744 compiler.warn.override.varargs.missing=\
745 {0}; overridden method has no ''...''
746 compiler.warn.override.varargs.extra=\
747 {0}; overriding method is missing ''...''
748 compiler.warn.override.bridge=\
749 {0}; overridden method is a bridge method
751 compiler.warn.pkg-info.already.seen=\
752 a package-info.java file has already been seen for package {0}
754 compiler.warn.path.element.not.found=\
755 bad path element "{0}": no such file or directory
757 compiler.warn.possible.fall-through.into.case=\
758 possible fall-through into case
760 compiler.warn.redundant.cast=\
761 redundant cast to {0}
763 compiler.warn.position.overflow=\
764 Position encoding overflows at line {0}
766 compiler.warn.big.major.version=\
767 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
768 It is recommended that the compiler be upgraded.
770 compiler.warn.static.not.qualified.by.type=\
771 static {0} should be qualified by type name, {1}, instead of by an expression
773 # Warnings related to annotation processing
774 compiler.warn.proc.package.does.not.exist=\
775 package {0} does not exist
776 compiler.warn.proc.file.reopening=\
777 Attempt to create a file for ''{0}'' multiple times
779 compiler.warn.proc.type.already.exists=\
780 A file for type ''{0}'' already exists on the sourcepath or classpath
782 compiler.warn.proc.type.recreate=\
783 Attempt to create a file for type ''{0}'' multiple times
785 compiler.warn.proc.illegal.file.name=\
786 Cannot create file for illegal name ''{0}''.
788 compiler.warn.proc.suspicious.class.name=\
789 Creating file for a type whose name ends in {1}: ''{0}''
791 compiler.warn.proc.file.create.last.round=\
792 File for type ''{0}'' created in the last round will not be subject to annotation processing.
794 compiler.warn.proc.malformed.supported.string=\
795 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
797 compiler.warn.proc.annotations.without.processors=\
798 No processor claimed any of these annotations: {0}
800 compiler.warn.proc.processor.incompatible.source.version=\
801 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
803 compiler.warn.proc.proc-only.requested.no.procs=\
804 Annotation processing without compilation requested but no processors were found.
806 compiler.warn.proc.use.implicit=\
807 Implicitly compiled files were not subject to annotation processing.\n\
808 Use -implicit to specify a policy for implicit compilation.
810 compiler.warn.proc.use.proc.or.implicit=\
811 Implicitly compiled files were not subject to annotation processing.\n\
812 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
814 # Print a client-generated warning; assumed to be localized, no translation required
815 compiler.warn.proc.messager=\
816 {0}
818 compiler.warn.proc.unclosed.type.files=\
819 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
821 compiler.warn.proc.unmatched.processor.options=\
822 The following options were not recognized by any processor: ''{0}''
824 compiler.warn.try.explicit.close.call=\
825 explicit call to close() on an auto-closeable resource
826 compiler.warn.try.resource.not.referenced=\
827 auto-closeable resource {0} is never referenced in body of corresponding try statement
828 compiler.warn.unchecked.assign=\
829 unchecked assignment: {0} to {1}
830 compiler.warn.unchecked.assign.to.var=\
831 unchecked assignment to variable {0} as member of raw type {1}
832 compiler.warn.unchecked.call.mbr.of.raw.type=\
833 unchecked call to {0} as a member of the raw type {1}
834 compiler.warn.unchecked.cast.to.type=\
835 unchecked cast to type {0}
836 compiler.warn.unchecked.meth.invocation.applied=\
837 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
838 required: {2}\n\
839 found: {3}
841 compiler.warn.unchecked.generic.array.creation=\
842 unchecked generic array creation for varargs parameter of type {0}
844 compiler.warn.varargs.non.reifiable.type=\
845 Possible heap pollution from parameterized vararg type {0}
847 compiler.warn.missing.deprecated.annotation=\
848 deprecated item is not annotated with @Deprecated
850 compiler.warn.invalid.archive.file=\
851 Unexpected file on path: {0}
853 compiler.warn.unexpected.archive.file=\
854 Unexpected extension for archive file: {0}
856 compiler.warn.div.zero=\
857 division by zero
859 compiler.warn.empty.if=\
860 empty statement after if
862 compiler.warn.annotation.method.not.found=\
863 Cannot find annotation method ''{1}()'' in type ''{0}''
865 compiler.warn.annotation.method.not.found.reason=\
866 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
868 compiler.warn.raw.class.use=\
869 found raw type: {0}\n\
870 missing type parameters for generic class {1}
872 compiler.warn.diamond.redundant.args=\
873 redundant type arguments in new expression (use diamond operator instead).
874 compiler.warn.diamond.redundant.args.1=\
875 redundant type arguments in new expression (use diamond operator instead).\n\
876 explicit: {0}\n\
877 inferred: {1}
879 #####
881 ## The following are tokens which are non-terminals in the language. They should
882 ## be named as JLS3 calls them when translated to the appropriate language.
883 compiler.misc.token.identifier=\
884 <identifier>
885 compiler.misc.token.character=\
886 <character>
887 compiler.misc.token.string=\
888 <string>
889 compiler.misc.token.integer=\
890 <integer>
891 compiler.misc.token.long-integer=\
892 <long integer>
893 compiler.misc.token.float=\
894 <float>
895 compiler.misc.token.double=\
896 <double>
897 compiler.misc.token.bad-symbol=\
898 <bad symbol>
899 compiler.misc.token.end-of-input=\
900 <end of input>
902 ## The argument to the following string will always be one of the following:
903 ## 1. one of the above non-terminals
904 ## 2. a keyword (JLS1.8)
905 ## 3. a boolean literal (JLS3.10.3)
906 ## 4. the null literal (JLS3.10.7)
907 ## 5. a Java separator (JLS3.11)
908 ## 6. an operator (JLS3.12)
909 ##
910 ## This is the only place these tokens will be used.
911 compiler.err.expected=\
912 {0} expected
913 compiler.err.expected2=\
914 {0} or {1} expected
915 compiler.err.expected3=\
916 {0}, {1}, or {2} expected
918 compiler.err.premature.eof=\
919 reached end of file while parsing
921 ## The following are related in form, but do not easily fit the above paradigm.
922 compiler.err.dot.class.expected=\
923 ''.class'' expected
925 ## The argument to this string will always be either 'case' or 'default'.
926 compiler.err.orphaned=\
927 orphaned {0}
929 compiler.misc.anonymous.class=\
930 <anonymous {0}>
932 compiler.misc.type.captureof=\
933 capture#{0} of {1}
935 compiler.misc.type.captureof.1=\
936 capture#{0}
938 compiler.misc.type.none=\
939 <none>
941 compiler.misc.unnamed.package=\
942 unnamed package
944 #####
946 compiler.err.cant.access=\
947 cannot access {0}\n\
948 {1}
950 compiler.misc.bad.class.file.header=\
951 bad class file: {0}\n\
952 {1}\n\
953 Please remove or make sure it appears in the correct subdirectory of the classpath.
954 compiler.misc.bad.source.file.header=\
955 bad source file: {0}\n\
956 {1}\n\
957 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
959 ## The following are all possible strings for the second argument ({1}) of the
960 ## above strings.
961 compiler.misc.bad.class.signature=\
962 bad class signature: {0}
963 compiler.misc.bad.enclosing.method=\
964 bad enclosing method attribute: {0}
965 compiler.misc.bad.runtime.invisible.param.annotations=\
966 bad RuntimeInvisibleParameterAnnotations attribute: {0}
967 compiler.misc.bad.const.pool.tag=\
968 bad constant pool tag: {0}
969 compiler.misc.bad.const.pool.tag.at=\
970 bad constant pool tag: {0} at {1}
971 compiler.misc.bad.signature=\
972 bad signature: {0}
973 compiler.misc.bad.type.annotation.value=\
974 bad type annotation target type value: {0}
975 compiler.misc.class.file.wrong.class=\
976 class file contains wrong class: {0}
977 compiler.misc.class.file.not.found=\
978 class file for {0} not found
979 compiler.misc.file.doesnt.contain.class=\
980 file does not contain class {0}
981 compiler.misc.file.does.not.contain.package=\
982 file does not contain package {0}
983 compiler.misc.illegal.start.of.class.file=\
984 illegal start of class file
985 compiler.misc.unable.to.access.file=\
986 unable to access file: {0}
987 compiler.misc.unicode.str.not.supported=\
988 unicode string in class file not supported
989 compiler.misc.undecl.type.var=\
990 undeclared type variable: {0}
991 compiler.misc.wrong.version=\
992 class file has wrong version {0}.{1}, should be {2}.{3}
994 #####
996 compiler.err.not.within.bounds=\
997 type parameter {0} is not within its bound
999 compiler.err.not.within.bounds.explain=\
1000 type parameter {0} is not within its bound; {1}
1002 ## The following are all possible strings for the second argument ({1}) of the
1003 ## above string.
1005 ## none yet...
1007 #####
1009 compiler.err.prob.found.req=\
1010 {0}\n\
1011 required: {2}\n\
1012 found: {1}
1013 compiler.warn.prob.found.req=\
1014 {0}\n\
1015 required: {2}\n\
1016 found: {1}
1017 compiler.err.prob.found.req.1=\
1018 {0} {3}\n\
1019 required: {2}\n\
1020 found: {1}
1022 ## The following are all possible strings for the first argument ({0}) of the
1023 ## above strings.
1024 compiler.misc.incompatible.types=\
1025 incompatible types
1026 compiler.misc.incompatible.types.1=\
1027 incompatible types; {0}
1028 compiler.misc.inconvertible.types=\
1029 inconvertible types
1030 compiler.misc.possible.loss.of.precision=\
1031 possible loss of precision
1033 compiler.misc.unchecked.assign=\
1034 unchecked conversion
1035 # compiler.misc.storecheck=\
1036 # assignment might cause later store checks to fail
1037 # compiler.misc.unchecked=\
1038 # assigned array cannot dynamically check its stores
1039 compiler.misc.unchecked.cast.to.type=\
1040 unchecked cast
1042 compiler.misc.assignment.from.super-bound=\
1043 assignment from super-bound type {0}
1044 compiler.misc.assignment.to.extends-bound=\
1045 assignment to extends-bound type {0}
1046 # compiler.err.star.expected=\
1047 # ''*'' expected
1048 # compiler.err.no.elem.type=\
1049 # \[\*\] cannot have a type
1051 compiler.misc.try.not.applicable.to.type=\
1052 try-with-resources not applicable to variable type
1054 #####
1056 compiler.err.type.found.req=\
1057 unexpected type\n\
1058 required: {1}\n\
1059 found: {0}
1061 ## The following are all possible strings for the first argument ({0}) of the
1062 ## above string.
1063 compiler.misc.type.req.class=\
1064 class
1065 compiler.misc.type.req.class.array=\
1066 class or array
1067 compiler.misc.type.req.ref=\
1068 reference
1069 compiler.misc.type.req.exact=\
1070 class or interface without bounds
1071 compiler.misc.type.parameter=\
1072 type parameter {0}
1074 #####
1076 ## The following are all possible strings for the last argument of all those
1077 ## diagnostics whose key ends in ".1"
1078 compiler.misc.undetermined.type=\
1079 undetermined type
1080 compiler.misc.type.variable.has.undetermined.type=\
1081 type variable {0} has undetermined type
1082 compiler.misc.no.unique.maximal.instance.exists=\
1083 no unique maximal instance exists for type variable {0} with upper bounds {1}
1084 compiler.misc.no.unique.minimal.instance.exists=\
1085 no unique minimal instance exists for type variable {0} with lower bounds {1}
1086 compiler.misc.infer.no.conforming.instance.exists=\
1087 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1088 compiler.misc.infer.no.conforming.assignment.exists=\
1089 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1090 compiler.misc.infer.arg.length.mismatch=\
1091 cannot instantiate from arguments because actual and formal argument lists differ in length
1092 compiler.misc.inferred.do.not.conform.to.bounds=\
1093 inferred type does not conform to declared bound(s)\n\
1094 inferred: {0}\n\
1095 bound(s): {1}
1096 compiler.misc.inferred.do.not.conform.to.params=\
1097 actual arguments do not conform to inferred formal arguments\n\
1098 required: {0}\n\
1099 found: {1}
1100 compiler.misc.diamond=\
1101 {0}<>
1102 compiler.misc.diamond.invalid.arg=\
1103 type argument {0} inferred for {1} is not allowed in this context
1104 compiler.misc.diamond.invalid.args=\
1105 type arguments {0} inferred for {1} are not allowed in this context
1107 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1108 explicit type argument {0} does not conform to declared bound(s) {1}
1110 compiler.misc.arg.length.mismatch=\
1111 actual and formal argument lists differ in length
1112 compiler.misc.no.conforming.assignment.exists=\
1113 actual argument {0} cannot be converted to {1} by method invocation conversion
1114 compiler.misc.varargs.argument.mismatch=\
1115 argument type {0} does not conform to vararg element type {1}
1116 #####
1118 ## The first argument ({0}) is a "kindname".
1119 compiler.err.abstract.cant.be.accessed.directly=\
1120 abstract {0} {1} in {2} cannot be accessed directly
1122 ## The first argument ({0}) is a "kindname".
1123 compiler.err.non-static.cant.be.ref=\
1124 non-static {0} {1} cannot be referenced from a static context
1126 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1127 ## of kindnames (the list should be identical to that provided in source.
1128 compiler.err.unexpected.type=\
1129 unexpected type\n\
1130 required: {0}\n\
1131 found: {1}
1133 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1134 ## The second argument {1} is the non-resolved symbol
1135 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1136 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1137 compiler.err.cant.resolve=\
1138 cannot find symbol\n\
1139 symbol: {0} {1}
1141 compiler.err.cant.resolve.args=\
1142 cannot find symbol\n\
1143 symbol: {0} {1}({3})
1145 compiler.err.cant.resolve.args.params=\
1146 cannot find symbol\n\
1147 symbol: {0} <{2}>{1}({3})
1149 ## arguments from {0} to {3} have the same meaning as above
1150 ## The fifth argument {4} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1151 ## The sixth argument {5} is the location type
1152 compiler.err.cant.resolve.location=\
1153 cannot find symbol\n\
1154 symbol: {0} {1}\n\
1155 location: {4} {5}
1157 compiler.err.cant.resolve.location.args=\
1158 cannot find symbol\n\
1159 symbol: {0} {1}({3})\n\
1160 location: {4} {5}
1162 compiler.err.cant.resolve.location.args.params=\
1163 cannot find symbol\n\
1164 symbol: {0} <{2}>{1}({3})\n\
1165 location: {4} {5}
1167 ## The following are all possible string for "kindname".
1168 ## They should be called whatever the JLS calls them after it been translated
1169 ## to the appropriate language.
1170 # compiler.misc.kindname.constructor=\
1171 # static member
1172 compiler.misc.kindname.annotation=\
1173 @interface
1174 compiler.misc.kindname.constructor=\
1175 constructor
1176 compiler.misc.kindname.enum=\
1177 enum
1178 compiler.misc.kindname.interface=\
1179 interface
1180 compiler.misc.kindname.static=\
1181 static
1182 compiler.misc.kindname.type.variable=\
1183 type variable
1184 compiler.misc.kindname.type.variable.bound=\
1185 bound of type variable
1186 compiler.misc.kindname.variable=\
1187 variable
1188 compiler.misc.kindname.value=\
1189 value
1190 compiler.misc.kindname.method=\
1191 method
1192 compiler.misc.kindname.class=\
1193 class
1194 compiler.misc.kindname.package=\
1195 package
1196 #####
1198 compiler.misc.no.args=\
1199 no arguments
1201 compiler.err.override.static=\
1202 {0}\n\
1203 overriding method is static
1204 compiler.err.override.meth=\
1205 {0}\n\
1206 overridden method is {1}
1208 compiler.err.override.meth.doesnt.throw=\
1209 {0}\n\
1210 overridden method does not throw {1}
1212 # In the following string {1} is a space separated list of Java Keywords, as
1213 # they would have been declared in the source code
1214 compiler.err.override.weaker.access=\
1215 {0}\n\
1216 attempting to assign weaker access privileges; was {1}
1218 compiler.err.override.incompatible.ret=\
1219 {0}\n\
1220 return type {1} is not compatible with {2}
1222 compiler.warn.override.unchecked.ret=\
1223 {0}\n\
1224 return type requires unchecked conversion from {1} to {2}
1226 compiler.warn.override.unchecked.thrown=\
1227 {0}\n\
1228 overridden method does not throw {1}
1230 ## The following are all possible strings for the first argument ({0}) of the
1231 ## above strings.
1232 compiler.misc.cant.override=\
1233 {0} in {1} cannot override {2} in {3}
1234 compiler.misc.cant.implement=\
1235 {0} in {1} cannot implement {2} in {3}
1236 compiler.misc.clashes.with=\
1237 {0} in {1} clashes with {2} in {3}
1238 compiler.misc.unchecked.override=\
1239 {0} in {1} overrides {2} in {3}
1240 compiler.misc.unchecked.implement=\
1241 {0} in {1} implements {2} in {3}
1242 compiler.misc.unchecked.clash.with=\
1243 {0} in {1} overrides {2} in {3}
1244 compiler.misc.varargs.override=\
1245 {0} in {1} overrides {2} in {3}
1246 compiler.misc.varargs.implement=\
1247 {0} in {1} implements {2} in {3}
1248 compiler.misc.varargs.clash.with=\
1249 {0} in {1} overrides {2} in {3}
1250 compiler.misc.non.denotable.type=\
1251 Non-denotable type {0} not allowed here
1253 compiler.misc.inapplicable.method=\
1254 {0} {1}.{2} is not applicable\n\
1255 ({3})
1257 ########################################
1258 # Diagnostics for language feature changes
1259 ########################################
1260 compiler.err.unsupported.fp.lit=\
1261 hexadecimal floating point literals are not supported in -source {0}\n\
1262 (use -source 5 or higher to enable hexadecimal floating point literals)
1264 compiler.err.unsupported.binary.lit=\
1265 binary literals are not supported in -source {0}\n\
1266 (use -source 7 or higher to enable binary literals)
1268 compiler.err.unsupported.underscore.lit=\
1269 underscores in literals are not supported in -source {0}\n\
1270 (use -source 7 or higher to enable underscores in literals)
1272 compiler.err.unsupported.exotic.id=\
1273 exotic identifiers #"___" are not supported in -source {0}\n\
1274 (use -source 7 or higher to enable exotic identifiers)
1276 compiler.err.try.with.resources.not.supported.in.source=\
1277 try-with-resources is not supported in -source {0}\n\
1278 (use -source 7 or higher to enable try-with-resources)
1280 compiler.warn.enum.as.identifier=\
1281 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1282 (use -source 5 or higher to use ''enum'' as a keyword)
1284 compiler.warn.assert.as.identifier=\
1285 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1286 (use -source 1.4 or higher to use ''assert'' as a keyword)
1288 compiler.err.enum.as.identifier=\
1289 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1290 (use -source 1.4 or lower to use ''enum'' as an identifier)
1292 compiler.err.assert.as.identifier=\
1293 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1294 (use -source 1.3 or lower to use ''assert'' as an identifier)
1296 compiler.err.generics.not.supported.in.source=\
1297 generics are not supported in -source {0}\n\
1298 (use -source 5 or higher to enable generics)
1300 compiler.err.varargs.not.supported.in.source=\
1301 variable-arity methods are not supported in -source {0}\n\
1302 (use -source 5 or higher to enable variable-arity methods)
1304 compiler.err.annotations.not.supported.in.source=\
1305 annotations are not supported in -source {0}\n\
1306 (use -source 5 or higher to enable annotations)
1308 #308 compiler.err.type.annotations.not.supported.in.source=\
1309 #308 type annotations are not supported in -source {0}\n\
1310 #308 (use -source 7 or higher to enable type annotations)
1312 compiler.err.foreach.not.supported.in.source=\
1313 for-each loops are not supported in -source {0}\n\
1314 (use -source 5 or higher to enable for-each loops)
1316 compiler.err.static.import.not.supported.in.source=\
1317 static import declarations are not supported in -source {0}\n\
1318 (use -source 5 or higher to enable static import declarations)
1320 compiler.err.enums.not.supported.in.source=\
1321 enums are not supported in -source {0}\n\
1322 (use -source 5 or higher to enable enums)
1324 compiler.err.diamond.not.supported.in.source=\
1325 diamond operator is not supported in -source {0}\n\
1326 (use -source 7 or higher to enable diamond operator)
1328 compiler.err.multicatch.not.supported.in.source=\
1329 multi-catch statement is not supported in -source {0}\n\
1330 (use -source 7 or higher to enable multi-catch statement)
1332 compiler.err.string.switch.not.supported.in.source=\
1333 strings in switch are not supported in -source {0}\n\
1334 (use -source 7 or higher to enable strings in switch)
1336 ########################################
1337 # Diagnostics for where clause implementation
1338 # used by the RichDiagnosticFormatter.
1339 ########################################
1341 compiler.misc.type.null=\
1342 <null>
1344 # X#n (where n is an int id) is disambiguated tvar name
1345 compiler.misc.type.var=\
1346 {0}#{1}
1348 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1349 compiler.misc.captured.type=\
1350 CAP#{0}
1352 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1353 compiler.misc.intersection.type=\
1354 INT#{0}
1356 # where clause for captured type: contains upper ('extends {1}') and lower
1357 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1358 compiler.misc.where.captured=\
1359 {0} extends {1} super: {2} from capture of {3}
1361 # compact where clause for captured type: contains upper ('extends {1}') along
1362 # with the wildcard that generated this captured type ({3})
1363 compiler.misc.where.captured.1=\
1364 {0} extends {1} from capture of {3}
1366 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1367 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1368 compiler.misc.where.typevar=\
1369 {0} extends {1} declared in {2} {3}
1371 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1372 # in which the typevar has been declared
1373 compiler.misc.where.typevar.1=\
1374 {0} declared in {2} {3}
1376 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1377 # of this intersection type
1378 compiler.misc.where.intersection=\
1379 {0} extends {1}
1381 ### Where clause headers ###
1382 compiler.misc.where.description.captured=\
1383 where {0} is a fresh type-variable:
1384 compiler.misc.where.description.typevar=\
1385 where {0} is a type-variable:
1386 compiler.misc.where.description.intersection=\
1387 where {0} is an intersection type:
1388 compiler.misc.where.description.captured.1=\
1389 where {0} are fresh type-variables:
1390 compiler.misc.where.description.typevar.1=\
1391 where {0} are type-variables:
1392 compiler.misc.where.description.intersection.1=\
1393 where {0} are intersection types: