Fri, 14 Jan 2011 09:45:04 +0000
6992698: JSR 292: remove support for transient syntax in polymorphic signature calls
Summary: special syntax to denote indy return type through type parameters should be removed (and cast shall be used instead)
Reviewed-by: jjg, jrose
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} 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.wrong.target.for.polymorphic.signature.definition=\
132 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
134 compiler.err.concrete.inheritance.conflict=\
135 methods {0} from {1} and {2} from {3} are inherited with the same signature
137 compiler.err.default.allowed.in.intf.annotation.member=\
138 default value only allowed in an @interface member
139 compiler.err.doesnt.exist=\
140 package {0} does not exist
141 compiler.err.duplicate.annotation=\
142 duplicate annotation
143 compiler.err.duplicate.annotation.member.value=\
144 duplicate annotation member value {0} in {1}
145 compiler.err.duplicate.class=\
146 duplicate class: {0}
147 compiler.err.duplicate.case.label=\
148 duplicate case label
149 compiler.err.duplicate.default.label=\
150 duplicate default label
152 compiler.err.else.without.if=\
153 ''else'' without ''if''
154 compiler.err.empty.char.lit=\
155 empty character literal
156 compiler.err.encl.class.required=\
157 an enclosing instance that contains {0} is required
158 compiler.err.enum.annotation.must.be.enum.constant=\
159 an enum annotation value must be an enum constant
161 compiler.err.enum.cant.be.instantiated=\
162 enum types may not be instantiated
163 compiler.err.enum.label.must.be.unqualified.enum=\
164 an enum switch case label must be the unqualified name of an enumeration constant
165 compiler.err.enum.no.subclassing=\
166 classes cannot directly extend java.lang.Enum
167 compiler.err.enum.types.not.extensible=\
168 enum types are not extensible
169 compiler.err.enum.no.finalize=\
170 enums cannot have finalize methods
171 compiler.err.error.reading.file=\
172 error reading {0}; {1}
173 compiler.err.except.already.caught=\
174 exception {0} has already been caught
175 compiler.err.except.never.thrown.in.try=\
176 exception {0} is never thrown in body of corresponding try statement
178 compiler.err.final.parameter.may.not.be.assigned=\
179 final parameter {0} may not be assigned
180 compiler.err.try.resource.may.not.be.assigned=\
181 auto-closeable resource {0} may not be assigned
182 compiler.err.multicatch.parameter.may.not.be.assigned=\
183 multi-catch parameter {0} may not be assigned
184 compiler.err.finally.without.try=\
185 ''finally'' without ''try''
186 compiler.err.foreach.not.applicable.to.type=\
187 foreach not applicable to expression type
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 inner classes cannot have static declarations
200 compiler.err.illegal.char=\
201 illegal character: \\{0}
202 compiler.err.illegal.char.for.encoding=\
203 unmappable character for encoding {0}
204 compiler.err.illegal.combination.of.modifiers=\
205 illegal combination of modifiers: {0} and {1}
206 compiler.err.illegal.enum.static.ref=\
207 illegal reference to static field from initializer
208 compiler.err.illegal.esc.char=\
209 illegal escape character
210 compiler.err.illegal.forward.ref=\
211 illegal forward reference
212 compiler.warn.forward.ref=\
213 reference to variable ''{0}'' before it has been initialized
214 compiler.err.illegal.self.ref=\
215 self-reference in initializer
216 compiler.warn.self.ref=\
217 self-reference in initializer of variable ''{0}''
218 compiler.err.illegal.generic.type.for.instof=\
219 illegal generic type for instanceof
220 compiler.err.illegal.initializer.for.type=\
221 illegal initializer for {0}
222 compiler.err.illegal.line.end.in.char.lit=\
223 illegal line end in character literal
224 compiler.err.illegal.nonascii.digit=\
225 illegal non-ASCII digit
226 compiler.err.illegal.underscore=\
227 illegal underscore
228 compiler.err.illegal.qual.not.icls=\
229 illegal qualifier; {0} is not an inner class
230 compiler.err.illegal.start.of.expr=\
231 illegal start of expression
232 compiler.err.illegal.start.of.type=\
233 illegal start of type
234 compiler.err.illegal.unicode.esc=\
235 illegal unicode escape
236 compiler.err.import.requires.canonical=\
237 import requires canonical name for {0}
238 compiler.err.improperly.formed.type.param.missing=\
239 improperly formed type, some parameters are missing
240 compiler.err.improperly.formed.type.inner.raw.param=\
241 improperly formed type, type parameters given on a raw type
242 compiler.err.incomparable.types=\
243 incomparable types: {0} and {1}
244 compiler.err.int.number.too.large=\
245 integer number too large: {0}
246 compiler.err.internal.error.cant.instantiate=\
247 internal error; cannot instantiate {0} at {1} to ({2})
248 compiler.err.intf.annotation.members.cant.have.params=\
249 @interface members may not have parameters
250 compiler.err.intf.annotation.cant.have.type.params=\
251 @interface may not have type parameters
252 compiler.err.intf.annotation.members.cant.have.type.params=\
253 @interface members may not have type parameters
254 compiler.err.intf.annotation.member.clash=\
255 @interface member clashes with method ''{0}'' in {1}
256 compiler.err.intf.expected.here=\
257 interface expected here
258 compiler.err.intf.meth.cant.have.body=\
259 interface methods cannot have body
260 compiler.err.invalid.annotation.member.type=\
261 invalid type for annotation member
262 compiler.err.invalid.binary.number=\
263 binary numbers must contain at least one binary digit
264 compiler.err.invalid.hex.number=\
265 hexadecimal numbers must contain at least one hexadecimal digit
266 compiler.err.invalid.meth.decl.ret.type.req=\
267 invalid method declaration; return type required
269 compiler.err.label.already.in.use=\
270 label {0} already in use
271 compiler.err.local.var.accessed.from.icls.needs.final=\
272 local variable {0} is accessed from within inner class; needs to be declared final
273 compiler.err.local.enum=\
274 enum types must not be local
275 compiler.err.cannot.create.array.with.type.arguments=\
276 cannot create array with type arguments
278 #
279 # limits. We don't give the limits in the diagnostic because we expect
280 # them to change, yet we want to use the same diagnostic. These are all
281 # detected during code generation.
282 #
283 compiler.err.limit.code=\
284 code too large
285 compiler.err.limit.code.too.large.for.try.stmt=\
286 code too large for try statement
287 compiler.err.limit.dimensions=\
288 array type has too many dimensions
289 compiler.err.limit.locals=\
290 too many local variables
291 compiler.err.limit.parameters=\
292 too many parameters
293 compiler.err.limit.pool=\
294 too many constants
295 compiler.err.limit.pool.in.class=\
296 too many constants in class {0}
297 compiler.err.limit.stack=\
298 code requires too much stack
299 compiler.err.limit.string=\
300 constant string too long
301 compiler.err.limit.string.overflow=\
302 UTF8 representation for string \"{0}...\" is too long for the constant pool
304 compiler.err.malformed.fp.lit=\
305 malformed floating point literal
306 compiler.err.method.does.not.override.superclass=\
307 method does not override or implement a method from a supertype
308 compiler.err.missing.meth.body.or.decl.abstract=\
309 missing method body, or declare abstract
310 compiler.err.missing.ret.stmt=\
311 missing return statement
312 compiler.err.missing.ret.val=\
313 missing return value
314 compiler.err.mod.not.allowed.here=\
315 modifier {0} not allowed here
316 compiler.err.intf.not.allowed.here=\
317 interface not allowed here
318 compiler.err.enums.must.be.static=\
319 enum declarations allowed only in static contexts
321 compiler.err.name.clash.same.erasure=\
322 name clash: {0} and {1} have the same erasure
323 compiler.err.name.clash.same.erasure.no.override=\
324 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
325 compiler.err.name.reserved.for.internal.use=\
326 {0} is reserved for internal use
327 compiler.err.native.meth.cant.have.body=\
328 native methods cannot have a body
329 compiler.err.neither.conditional.subtype=\
330 incompatible types for ?: neither is a subtype of the other\n\
331 second operand: {0}\n\
332 third operand : {1}
333 compiler.err.new.not.allowed.in.annotation=\
334 ''new'' not allowed in an annotation
335 compiler.err.no.annotation.member=\
336 no annotation member {0} in {1}
337 compiler.err.no.encl.instance.of.type.in.scope=\
338 no enclosing instance of type {0} is in scope
339 compiler.err.no.intf.expected.here=\
340 no interface expected here
341 compiler.err.no.match.entry=\
342 {0} has no match in entry in {1}; required {2}
343 compiler.err.not.annotation.type=\
344 {0} is not an annotation type
345 compiler.err.not.def.access.class.intf.cant.access=\
346 {0} in {1} is defined in an inaccessible class or interface
347 compiler.err.not.def.public.cant.access=\
348 {0} is not public in {1}; cannot be accessed from outside package
349 compiler.err.not.loop.label=\
350 not a loop label: {0}
351 compiler.err.not.stmt=\
352 not a statement
353 compiler.err.not.encl.class=\
354 not an enclosing class: {0}
356 compiler.err.operator.cant.be.applied=\
357 operator {0} cannot be applied to {1}
359 compiler.err.pkg.annotations.sb.in.package-info.java=\
360 package annotations should be in file package-info.java
361 compiler.err.pkg.clashes.with.class.of.same.name=\
362 package {0} clashes with class of same name
364 compiler.err.warnings.and.werror=\
365 warnings found and -Werror specified
367 # Errors related to annotation processing
369 compiler.err.proc.cant.access=\
370 cannot access {0}\n\
371 {1}\n\
372 Consult the following stack trace for details.\n\
373 {2}
375 compiler.err.proc.cant.find.class=\
376 Could not find class file for ''{0}''.
378 # Print a client-generated error message; assumed to be localized, no translation required
379 compiler.err.proc.messager=\
380 {0}
382 compiler.err.proc.no.explicit.annotation.processing.requested=\
383 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
385 compiler.err.proc.no.service=\
386 A service loader class could not be found.\n\
387 Either java.util.ServiceLoader or sun.misc.Service must be available.
389 compiler.err.proc.processor.bad.option.name=\
390 Bad option name ''{0}'' provided by processor ''{1}''
392 compiler.err.proc.processor.cant.instantiate=\
393 Could not instantiate an instance of processor ''{0}''
395 compiler.err.proc.processor.constructor.error=\
396 Exception thrown while constructing Processor object: {0}
398 compiler.err.proc.processor.not.found=\
399 Annotation processor ''{0}'' not found
401 compiler.err.proc.processor.wrong.type=\
402 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
404 compiler.err.proc.service.problem=\
405 Error creating a service loader to load Processors.
407 compiler.err.proc.bad.config.file=\
408 Bad service configuration file, or exception thrown while constructing Processor object: {0}
410 compiler.err.proc.cant.create.loader=\
411 Could not create class loader for annotation processors: {0}
413 compiler.err.qualified.new.of.static.class=\
414 qualified new of static class
416 compiler.err.recursive.ctor.invocation=\
417 recursive constructor invocation
418 compiler.err.ref.ambiguous=\
419 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
420 compiler.err.repeated.annotation.target=\
421 repeated annotation target
422 compiler.err.repeated.interface=\
423 repeated interface
424 compiler.err.repeated.modifier=\
425 repeated modifier
426 compiler.err.report.access=\
427 {0} has {1} access in {2}
428 compiler.err.ret.outside.meth=\
429 return outside method
431 compiler.err.signature.doesnt.match.supertype=\
432 signature does not match {0}; incompatible supertype
433 compiler.err.signature.doesnt.match.intf=\
434 signature does not match {0}; incompatible interfaces
435 compiler.err.does.not.override.abstract=\
436 {0} is not abstract and does not override abstract method {1} in {2}
437 compiler.err.source.cant.overwrite.input.file=\
438 error writing source; cannot overwrite input file {0}
439 compiler.err.stack.sim.error=\
440 Internal error: stack sim error on {0}
441 compiler.err.static.imp.only.classes.and.interfaces=\
442 static import only from classes and interfaces
443 compiler.err.string.const.req=\
444 constant string expression required
445 compiler.err.synthetic.name.conflict=\
446 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
447 compiler.warn.synthetic.name.conflict=\
448 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
450 compiler.err.throws.not.allowed.in.intf.annotation=\
451 throws clause not allowed in @interface members
452 compiler.err.try.without.catch.or.finally=\
453 ''try'' without ''catch'' or ''finally''
454 compiler.err.try.without.catch.finally.or.resource.decls=\
455 ''try'' without ''catch'', ''finally'' or resource declarations
456 compiler.err.type.doesnt.take.params=\
457 type {0} does not take parameters
458 compiler.err.type.var.cant.be.deref=\
459 cannot select from a type variable
460 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
461 a type variable may not be followed by other bounds
462 compiler.err.type.var.more.than.once=\
463 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
464 compiler.err.type.var.more.than.once.in.result=\
465 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
466 compiler.err.types.incompatible.diff.ret=\
467 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
469 compiler.err.unclosed.char.lit=\
470 unclosed character literal
471 compiler.err.unclosed.comment=\
472 unclosed comment
473 compiler.err.unclosed.str.lit=\
474 unclosed string literal
475 compiler.err.unknown.enum.constant=\
476 in class file {0}: unknown enum constant {1}.{2}
477 compiler.err.unsupported.encoding=\
478 unsupported encoding: {0}
479 compiler.err.io.exception=\
480 error reading source file: {0}
481 compiler.err.undef.label=\
482 undefined label: {0}
483 compiler.err.undetermined.type=\
484 type parameters of {0} cannot be determined
485 compiler.err.undetermined.type.1=\
486 type parameters of {0} cannot be determined; {1}
487 compiler.err.invalid.inferred.types=\
488 invalid inferred types for {0}; {1}
489 compiler.err.cant.apply.diamond=\
490 cannot infer type arguments for {0}
491 compiler.err.cant.apply.diamond.1=\
492 cannot infer type arguments for {0};\n\
493 reason: {1}
494 compiler.err.unreachable.stmt=\
495 unreachable statement
496 compiler.err.initializer.must.be.able.to.complete.normally=\
497 initializer must be able to complete normally
498 compiler.err.unreported.exception.need.to.catch.or.throw=\
499 unreported exception {0}; must be caught or declared to be thrown
500 compiler.err.unreported.exception.default.constructor=\
501 unreported exception {0} in default constructor
502 compiler.err.unsupported.cross.fp.lit=\
503 hexadecimal floating-point literals are not supported on this VM
504 compiler.err.void.not.allowed.here=\
505 ''void'' type not allowed here
507 compiler.err.wrong.number.type.args=\
508 wrong number of type arguments; required {0}
510 compiler.err.var.might.already.be.assigned=\
511 variable {0} might already have been assigned
512 compiler.err.var.might.not.have.been.initialized=\
513 variable {0} might not have been initialized
514 compiler.err.var.might.be.assigned.in.loop=\
515 variable {0} might be assigned in loop
517 compiler.err.varargs.invalid.trustme.anno=\
518 Invalid {0} annotation. {1}
519 compiler.misc.varargs.trustme.on.reifiable.varargs=\
520 Varargs element type {0} is reifiable.
521 compiler.misc.varargs.trustme.on.non.varargs.meth=\
522 Method {0} is not a varargs method.
523 compiler.misc.varargs.trustme.on.virtual.varargs=\
524 Instance method {0} is not final.
526 # In the following string, {1} will always be the detail message from
527 # java.io.IOException.
528 compiler.err.class.cant.write=\
529 error while writing {0}: {1}
531 # In the following string, {0} is the name of the class in the Java source.
532 # It really should be used two times..
533 compiler.err.class.public.should.be.in.file=\
534 class {0} is public, should be declared in a file named {0}.java
536 ## All errors which do not refer to a particular line in the source code are
537 ## preceded by this string.
538 compiler.err.error=\
539 error:\u0020
541 # The following error messages do not refer to a line in the source code.
542 compiler.err.cant.read.file=\
543 cannot read: {0}
545 #####
547 # Fatal Errors
549 compiler.misc.fatal.err.no.java.lang=\
550 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
551 compiler.misc.fatal.err.cant.locate.meth=\
552 Fatal Error: Unable to find method {0}
553 compiler.misc.fatal.err.cant.locate.field=\
554 Fatal Error: Unable to find field {0}
555 compiler.misc.fatal.err.cant.locate.ctor=\
556 Fatal Error: Unable to find constructor for {0}
557 compiler.misc.fatal.err.cant.close.loader=\
558 Fatal Error: Cannot close class loader for annotation processors
560 #####
562 ##
563 ## miscellaneous strings
564 ##
566 compiler.misc.source.unavailable=\
567 (source unavailable)
568 compiler.misc.base.membership=\
569 all your base class are belong to us
570 compiler.misc.x.print.processor.info=\
571 Processor {0} matches {1} and returns {2}.
572 compiler.misc.x.print.rounds=\
573 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
575 #####
577 ## The following string will appear before all messages keyed as:
578 ## "compiler.note".
579 compiler.note.note=\
580 Note:\u0020
582 compiler.note.deprecated.filename=\
583 {0} uses or overrides a deprecated API.
584 compiler.note.deprecated.plural=\
585 Some input files use or override a deprecated API.
586 # The following string may appear after one of the above deprecation
587 # messages.
588 compiler.note.deprecated.recompile=\
589 Recompile with -Xlint:deprecation for details.
591 compiler.note.deprecated.filename.additional=\
592 {0} has additional uses or overrides of a deprecated API.
593 compiler.note.deprecated.plural.additional=\
594 Some input files additionally use or override a deprecated API.
596 compiler.note.unchecked.filename=\
597 {0} uses unchecked or unsafe operations.
598 compiler.note.unchecked.plural=\
599 Some input files use unchecked or unsafe operations.
600 # The following string may appear after one of the above deprecation
601 # messages.
602 compiler.note.unchecked.recompile=\
603 Recompile with -Xlint:unchecked for details.
605 compiler.note.unchecked.filename.additional=\
606 {0} has additional unchecked or unsafe operations.
607 compiler.note.unchecked.plural.additional=\
608 Some input files additionally use unchecked or unsafe operations.
610 compiler.note.sunapi.filename=\
611 {0} uses internal proprietary API that may be removed in a future release.
612 compiler.note.sunapi.plural=\
613 Some input files use internal proprietary API that may be removed in a future release.
614 # The following string may appear after one of the above sunapi messages.
615 compiler.note.sunapi.recompile=\
616 Recompile with -Xlint:sunapi for details.
618 compiler.note.sunapi.filename.additional=\
619 {0} uses additional internal proprietary API that may be removed in a future release.
620 compiler.note.sunapi.plural.additional=\
621 Some input files additionally use internal proprietary API that may be removed in a future release.
623 # Notes related to annotation processing
625 # Print a client-generated note; assumed to be localized, no translation required
626 compiler.note.proc.messager=\
627 {0}
629 #####
631 compiler.misc.count.error=\
632 {0} error
633 compiler.misc.count.error.plural=\
634 {0} errors
635 compiler.misc.count.warn=\
636 {0} warning
637 compiler.misc.count.warn.plural=\
638 {0} warnings
640 compiler.misc.version.not.available=\
641 (version info not available)
643 ## extra output when using -verbose (JavaCompiler)
645 compiler.misc.verbose.checking.attribution=\
646 [checking {0}]
647 compiler.misc.verbose.parsing.done=\
648 [parsing completed {0}ms]
649 compiler.misc.verbose.parsing.started=\
650 [parsing started {0}]
651 compiler.misc.verbose.total=\
652 [total {0}ms]
653 compiler.misc.verbose.wrote.file=\
654 [wrote {0}]
656 ## extra output when using -verbose (Retro)
657 compiler.misc.verbose.retro=\
658 [retrofitting {0}]
659 compiler.misc.verbose.retro.with=\
660 \tretrofitting {0} with {1}
661 compiler.misc.verbose.retro.with.list=\
662 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
664 ## extra output when using -verbose (code/ClassReader)
665 compiler.misc.verbose.loading=\
666 [loading {0}]
668 compiler.misc.verbose.sourcepath=\
669 [search path for source files: {0}]
671 compiler.misc.verbose.classpath=\
672 [search path for class files: {0}]
674 ## extra output when using -checkclassfile (code/ClassReader)
675 compiler.misc.ccf.found.later.version=\
676 class file has later version than expected: {0}
677 compiler.misc.ccf.unrecognized.attribute=\
678 unrecognized attribute: {0}
680 ## extra output when using -prompt (util/Log)
681 compiler.misc.resume.abort=\
682 R)esume, A)bort>
684 #####
686 ##
687 ## warnings
688 ##
690 ## All warning messages are preceded by the following string.
691 compiler.warn.warning=\
692 warning:\u0020
694 ## Warning messages may also include the following prefix to identify a
695 ## lint option
696 compiler.warn.lintOption=\
697 [{0}]\u0020
699 compiler.warn.constant.SVUID=\
700 serialVersionUID must be constant in class {0}
702 compiler.warn.dir.path.element.not.found=\
703 bad path element "{0}": no such directory
705 compiler.warn.finally.cannot.complete=\
706 finally clause cannot complete normally
708 compiler.warn.has.been.deprecated=\
709 {0} in {1} has been deprecated
711 compiler.warn.sun.proprietary=\
712 {0} is internal proprietary API and may be removed in a future release
714 compiler.warn.illegal.char.for.encoding=\
715 unmappable character for encoding {0}
717 compiler.warn.improper.SVUID=\
718 serialVersionUID must be declared static final in class {0}
720 compiler.warn.inexact.non-varargs.call=\
721 non-varargs call of varargs method with inexact argument type for last parameter;\n\
722 cast to {0} for a varargs call\n\
723 cast to {1} for a non-varargs call and to suppress this warning
725 compiler.warn.long.SVUID=\
726 serialVersionUID must be of type long in class {0}
728 compiler.warn.missing.SVUID=\
729 serializable class {0} has no definition of serialVersionUID
731 compiler.warn.override.varargs.missing=\
732 {0}; overridden method has no ''...''
733 compiler.warn.override.varargs.extra=\
734 {0}; overriding method is missing ''...''
735 compiler.warn.override.bridge=\
736 {0}; overridden method is a bridge method
738 compiler.warn.pkg-info.already.seen=\
739 a package-info.java file has already been seen for package {0}
741 compiler.warn.path.element.not.found=\
742 bad path element "{0}": no such file or directory
744 compiler.warn.possible.fall-through.into.case=\
745 possible fall-through into case
747 compiler.warn.redundant.cast=\
748 redundant cast to {0}
750 compiler.warn.position.overflow=\
751 Position encoding overflows at line {0}
753 compiler.warn.big.major.version=\
754 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
755 It is recommended that the compiler be upgraded.
757 compiler.warn.static.not.qualified.by.type=\
758 static {0} should be qualified by type name, {1}, instead of by an expression
760 compiler.warn.source.no.bootclasspath=\
761 bootstrap class path not set in conjunction with -source {0}
763 compiler.warn.future.attr=\
764 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
766 # Warnings related to annotation processing
767 compiler.warn.proc.package.does.not.exist=\
768 package {0} does not exist
769 compiler.warn.proc.file.reopening=\
770 Attempt to create a file for ''{0}'' multiple times
772 compiler.warn.proc.type.already.exists=\
773 A file for type ''{0}'' already exists on the sourcepath or classpath
775 compiler.warn.proc.type.recreate=\
776 Attempt to create a file for type ''{0}'' multiple times
778 compiler.warn.proc.illegal.file.name=\
779 Cannot create file for illegal name ''{0}''.
781 compiler.warn.proc.suspicious.class.name=\
782 Creating file for a type whose name ends in {1}: ''{0}''
784 compiler.warn.proc.file.create.last.round=\
785 File for type ''{0}'' created in the last round will not be subject to annotation processing.
787 compiler.warn.proc.malformed.supported.string=\
788 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
790 compiler.warn.proc.annotations.without.processors=\
791 No processor claimed any of these annotations: {0}
793 compiler.warn.proc.processor.incompatible.source.version=\
794 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
796 compiler.warn.proc.proc-only.requested.no.procs=\
797 Annotation processing without compilation requested but no processors were found.
799 compiler.warn.proc.use.implicit=\
800 Implicitly compiled files were not subject to annotation processing.\n\
801 Use -implicit to specify a policy for implicit compilation.
803 compiler.warn.proc.use.proc.or.implicit=\
804 Implicitly compiled files were not subject to annotation processing.\n\
805 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
807 # Print a client-generated warning; assumed to be localized, no translation required
808 compiler.warn.proc.messager=\
809 {0}
811 compiler.warn.proc.unclosed.type.files=\
812 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
814 compiler.warn.proc.unmatched.processor.options=\
815 The following options were not recognized by any processor: ''{0}''
817 compiler.warn.try.explicit.close.call=\
818 explicit call to close() on an auto-closeable resource
819 compiler.warn.try.resource.not.referenced=\
820 auto-closeable resource {0} is never referenced in body of corresponding try statement
821 compiler.warn.unchecked.assign=\
822 unchecked assignment: {0} to {1}
823 compiler.warn.unchecked.assign.to.var=\
824 unchecked assignment to variable {0} as member of raw type {1}
825 compiler.warn.unchecked.call.mbr.of.raw.type=\
826 unchecked call to {0} as a member of the raw type {1}
827 compiler.warn.unchecked.cast.to.type=\
828 unchecked cast to type {0}
829 compiler.warn.unchecked.meth.invocation.applied=\
830 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
831 required: {2}\n\
832 found: {3}
834 compiler.warn.unchecked.generic.array.creation=\
835 unchecked generic array creation for varargs parameter of type {0}
837 compiler.warn.unchecked.varargs.non.reifiable.type=\
838 Possible heap pollution from parameterized vararg type {0}
840 compiler.warn.varargs.unsafe.use.varargs.param=\
841 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
843 compiler.warn.missing.deprecated.annotation=\
844 deprecated item is not annotated with @Deprecated
846 compiler.warn.invalid.archive.file=\
847 Unexpected file on path: {0}
849 compiler.warn.unexpected.archive.file=\
850 Unexpected extension for archive file: {0}
852 compiler.warn.div.zero=\
853 division by zero
855 compiler.warn.empty.if=\
856 empty statement after if
858 compiler.warn.annotation.method.not.found=\
859 Cannot find annotation method ''{1}()'' in type ''{0}''
861 compiler.warn.annotation.method.not.found.reason=\
862 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
864 compiler.warn.raw.class.use=\
865 found raw type: {0}\n\
866 missing type parameters for generic class {1}
868 compiler.warn.diamond.redundant.args=\
869 redundant type arguments in new expression (use diamond operator instead).
870 compiler.warn.diamond.redundant.args.1=\
871 redundant type arguments in new expression (use diamond operator instead).\n\
872 explicit: {0}\n\
873 inferred: {1}
875 compiler.warn.varargs.redundant.trustme.anno=\
876 Redundant {0} annotation. {1}
878 #####
880 ## The following are tokens which are non-terminals in the language. They should
881 ## be named as JLS3 calls them when translated to the appropriate language.
882 compiler.misc.token.identifier=\
883 <identifier>
884 compiler.misc.token.character=\
885 <character>
886 compiler.misc.token.string=\
887 <string>
888 compiler.misc.token.integer=\
889 <integer>
890 compiler.misc.token.long-integer=\
891 <long integer>
892 compiler.misc.token.float=\
893 <float>
894 compiler.misc.token.double=\
895 <double>
896 compiler.misc.token.bad-symbol=\
897 <bad symbol>
898 compiler.misc.token.end-of-input=\
899 <end of input>
901 ## The argument to the following string will always be one of the following:
902 ## 1. one of the above non-terminals
903 ## 2. a keyword (JLS1.8)
904 ## 3. a boolean literal (JLS3.10.3)
905 ## 4. the null literal (JLS3.10.7)
906 ## 5. a Java separator (JLS3.11)
907 ## 6. an operator (JLS3.12)
908 ##
909 ## This is the only place these tokens will be used.
910 compiler.err.expected=\
911 {0} expected
912 compiler.err.expected2=\
913 {0} or {1} expected
914 compiler.err.expected3=\
915 {0}, {1}, or {2} expected
917 compiler.err.premature.eof=\
918 reached end of file while parsing
920 ## The following are related in form, but do not easily fit the above paradigm.
921 compiler.err.dot.class.expected=\
922 ''.class'' expected
924 ## The argument to this string will always be either 'case' or 'default'.
925 compiler.err.orphaned=\
926 orphaned {0}
928 compiler.misc.anonymous.class=\
929 <anonymous {0}>
931 compiler.misc.type.captureof=\
932 capture#{0} of {1}
934 compiler.misc.type.captureof.1=\
935 capture#{0}
937 compiler.misc.type.none=\
938 <none>
940 compiler.misc.unnamed.package=\
941 unnamed package
943 #####
945 compiler.err.cant.access=\
946 cannot access {0}\n\
947 {1}
949 compiler.misc.bad.class.file.header=\
950 bad class file: {0}\n\
951 {1}\n\
952 Please remove or make sure it appears in the correct subdirectory of the classpath.
953 compiler.misc.bad.source.file.header=\
954 bad source file: {0}\n\
955 {1}\n\
956 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
958 ## The following are all possible strings for the second argument ({1}) of the
959 ## above strings.
960 compiler.misc.bad.class.signature=\
961 bad class signature: {0}
962 compiler.misc.bad.enclosing.method=\
963 bad enclosing method attribute: {0}
964 compiler.misc.bad.runtime.invisible.param.annotations=\
965 bad RuntimeInvisibleParameterAnnotations attribute: {0}
966 compiler.misc.bad.const.pool.tag=\
967 bad constant pool tag: {0}
968 compiler.misc.bad.const.pool.tag.at=\
969 bad constant pool tag: {0} at {1}
970 compiler.misc.bad.signature=\
971 bad signature: {0}
972 compiler.misc.class.file.wrong.class=\
973 class file contains wrong class: {0}
974 compiler.misc.class.file.not.found=\
975 class file for {0} not found
976 compiler.misc.file.doesnt.contain.class=\
977 file does not contain class {0}
978 compiler.misc.file.does.not.contain.package=\
979 file does not contain package {0}
980 compiler.misc.illegal.start.of.class.file=\
981 illegal start of class file
982 compiler.misc.unable.to.access.file=\
983 unable to access file: {0}
984 compiler.misc.unicode.str.not.supported=\
985 unicode string in class file not supported
986 compiler.misc.undecl.type.var=\
987 undeclared type variable: {0}
988 compiler.misc.wrong.version=\
989 class file has wrong version {0}.{1}, should be {2}.{3}
991 #####
993 compiler.err.not.within.bounds=\
994 type parameter {0} is not within its bound
996 compiler.err.not.within.bounds.explain=\
997 type parameter {0} is not within its bound; {1}
999 ## The following are all possible strings for the second argument ({1}) of the
1000 ## above string.
1002 ## none yet...
1004 #####
1006 compiler.err.prob.found.req=\
1007 {0}\n\
1008 required: {2}\n\
1009 found: {1}
1010 compiler.warn.prob.found.req=\
1011 {0}\n\
1012 required: {2}\n\
1013 found: {1}
1014 compiler.err.prob.found.req.1=\
1015 {0} {3}\n\
1016 required: {2}\n\
1017 found: {1}
1019 ## The following are all possible strings for the first argument ({0}) of the
1020 ## above strings.
1021 compiler.misc.incompatible.types=\
1022 incompatible types
1023 compiler.misc.incompatible.types.1=\
1024 incompatible types; {0}
1025 compiler.misc.inconvertible.types=\
1026 inconvertible types
1027 compiler.misc.possible.loss.of.precision=\
1028 possible loss of precision
1030 compiler.misc.unchecked.assign=\
1031 unchecked conversion
1032 # compiler.misc.storecheck=\
1033 # assignment might cause later store checks to fail
1034 # compiler.misc.unchecked=\
1035 # assigned array cannot dynamically check its stores
1036 compiler.misc.unchecked.cast.to.type=\
1037 unchecked cast
1039 compiler.misc.assignment.from.super-bound=\
1040 assignment from super-bound type {0}
1041 compiler.misc.assignment.to.extends-bound=\
1042 assignment to extends-bound type {0}
1043 # compiler.err.star.expected=\
1044 # ''*'' expected
1045 # compiler.err.no.elem.type=\
1046 # \[\*\] cannot have a type
1048 compiler.misc.try.not.applicable.to.type=\
1049 try-with-resources not applicable to variable type
1051 #####
1053 compiler.err.type.found.req=\
1054 unexpected type\n\
1055 required: {1}\n\
1056 found: {0}
1058 ## The following are all possible strings for the first argument ({0}) of the
1059 ## above string.
1060 compiler.misc.type.req.class=\
1061 class
1062 compiler.misc.type.req.class.array=\
1063 class or array
1064 compiler.misc.type.req.ref=\
1065 reference
1066 compiler.misc.type.req.exact=\
1067 class or interface without bounds
1068 compiler.misc.type.parameter=\
1069 type parameter {0}
1071 #####
1073 ## The following are all possible strings for the last argument of all those
1074 ## diagnostics whose key ends in ".1"
1075 compiler.misc.undetermined.type=\
1076 undetermined type
1077 compiler.misc.type.variable.has.undetermined.type=\
1078 type variable {0} has undetermined type
1079 compiler.misc.no.unique.maximal.instance.exists=\
1080 no unique maximal instance exists for type variable {0} with upper bounds {1}
1081 compiler.misc.no.unique.minimal.instance.exists=\
1082 no unique minimal instance exists for type variable {0} with lower bounds {1}
1083 compiler.misc.infer.no.conforming.instance.exists=\
1084 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1085 compiler.misc.infer.no.conforming.assignment.exists=\
1086 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1087 compiler.misc.infer.arg.length.mismatch=\
1088 cannot instantiate from arguments because actual and formal argument lists differ in length
1089 compiler.misc.inferred.do.not.conform.to.bounds=\
1090 inferred type does not conform to declared bound(s)\n\
1091 inferred: {0}\n\
1092 bound(s): {1}
1093 compiler.misc.inferred.do.not.conform.to.params=\
1094 actual arguments do not conform to inferred formal arguments\n\
1095 required: {0}\n\
1096 found: {1}
1097 compiler.misc.diamond=\
1098 {0}<>
1099 compiler.misc.diamond.invalid.arg=\
1100 type argument {0} inferred for {1} is not allowed in this context
1101 compiler.misc.diamond.invalid.args=\
1102 type arguments {0} inferred for {1} are not allowed in this context
1104 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1105 explicit type argument {0} does not conform to declared bound(s) {1}
1107 compiler.misc.arg.length.mismatch=\
1108 actual and formal argument lists differ in length
1109 compiler.misc.no.conforming.assignment.exists=\
1110 actual argument {0} cannot be converted to {1} by method invocation conversion
1111 compiler.misc.varargs.argument.mismatch=\
1112 argument type {0} does not conform to vararg element type {1}
1113 #####
1115 ## The first argument ({0}) is a "kindname".
1116 compiler.err.abstract.cant.be.accessed.directly=\
1117 abstract {0} {1} in {2} cannot be accessed directly
1119 ## The first argument ({0}) is a "kindname".
1120 compiler.err.non-static.cant.be.ref=\
1121 non-static {0} {1} cannot be referenced from a static context
1123 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
1124 ## of kindnames (the list should be identical to that provided in source.
1125 compiler.err.unexpected.type=\
1126 unexpected type\n\
1127 required: {0}\n\
1128 found: {1}
1130 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1131 ## The second argument {1} is the non-resolved symbol
1132 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1133 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1134 compiler.err.cant.resolve=\
1135 cannot find symbol\n\
1136 symbol: {0} {1}
1138 compiler.err.cant.resolve.args=\
1139 cannot find symbol\n\
1140 symbol: {0} {1}({3})
1142 compiler.err.cant.resolve.args.params=\
1143 cannot find symbol\n\
1144 symbol: {0} <{2}>{1}({3})
1146 ## arguments from {0} to {3} have the same meaning as above
1147 ## The fifth argument {4} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1148 ## The sixth argument {5} is the location type
1149 compiler.err.cant.resolve.location=\
1150 cannot find symbol\n\
1151 symbol: {0} {1}\n\
1152 location: {4} {5}
1154 compiler.err.cant.resolve.location.args=\
1155 cannot find symbol\n\
1156 symbol: {0} {1}({3})\n\
1157 location: {4} {5}
1159 compiler.err.cant.resolve.location.args.params=\
1160 cannot find symbol\n\
1161 symbol: {0} <{2}>{1}({3})\n\
1162 location: {4} {5}
1164 ## The following are all possible string for "kindname".
1165 ## They should be called whatever the JLS calls them after it been translated
1166 ## to the appropriate language.
1167 # compiler.misc.kindname.constructor=\
1168 # static member
1169 compiler.misc.kindname.annotation=\
1170 @interface
1171 compiler.misc.kindname.constructor=\
1172 constructor
1173 compiler.misc.kindname.enum=\
1174 enum
1175 compiler.misc.kindname.interface=\
1176 interface
1177 compiler.misc.kindname.static=\
1178 static
1179 compiler.misc.kindname.type.variable=\
1180 type variable
1181 compiler.misc.kindname.type.variable.bound=\
1182 bound of type variable
1183 compiler.misc.kindname.variable=\
1184 variable
1185 compiler.misc.kindname.value=\
1186 value
1187 compiler.misc.kindname.method=\
1188 method
1189 compiler.misc.kindname.class=\
1190 class
1191 compiler.misc.kindname.package=\
1192 package
1193 #####
1195 compiler.misc.no.args=\
1196 no arguments
1198 compiler.err.override.static=\
1199 {0}\n\
1200 overriding method is static
1201 compiler.err.override.meth=\
1202 {0}\n\
1203 overridden method is {1}
1205 compiler.err.override.meth.doesnt.throw=\
1206 {0}\n\
1207 overridden method does not throw {1}
1209 # In the following string {1} is a space separated list of Java Keywords, as
1210 # they would have been declared in the source code
1211 compiler.err.override.weaker.access=\
1212 {0}\n\
1213 attempting to assign weaker access privileges; was {1}
1215 compiler.err.override.incompatible.ret=\
1216 {0}\n\
1217 return type {1} is not compatible with {2}
1219 compiler.warn.override.unchecked.ret=\
1220 {0}\n\
1221 return type requires unchecked conversion from {1} to {2}
1223 compiler.warn.override.unchecked.thrown=\
1224 {0}\n\
1225 overridden method does not throw {1}
1227 ## The following are all possible strings for the first argument ({0}) of the
1228 ## above strings.
1229 compiler.misc.cant.override=\
1230 {0} in {1} cannot override {2} in {3}
1231 compiler.misc.cant.implement=\
1232 {0} in {1} cannot implement {2} in {3}
1233 compiler.misc.clashes.with=\
1234 {0} in {1} clashes with {2} in {3}
1235 compiler.misc.unchecked.override=\
1236 {0} in {1} overrides {2} in {3}
1237 compiler.misc.unchecked.implement=\
1238 {0} in {1} implements {2} in {3}
1239 compiler.misc.unchecked.clash.with=\
1240 {0} in {1} overrides {2} in {3}
1241 compiler.misc.varargs.override=\
1242 {0} in {1} overrides {2} in {3}
1243 compiler.misc.varargs.implement=\
1244 {0} in {1} implements {2} in {3}
1245 compiler.misc.varargs.clash.with=\
1246 {0} in {1} overrides {2} in {3}
1247 compiler.misc.non.denotable.type=\
1248 Non-denotable type {0} not allowed here
1250 compiler.misc.inapplicable.method=\
1251 {0} {1}.{2} is not applicable\n\
1252 ({3})
1254 ########################################
1255 # Diagnostics for language feature changes
1256 ########################################
1257 compiler.err.unsupported.fp.lit=\
1258 hexadecimal floating point literals are not supported in -source {0}\n\
1259 (use -source 5 or higher to enable hexadecimal floating point literals)
1261 compiler.err.unsupported.binary.lit=\
1262 binary literals are not supported in -source {0}\n\
1263 (use -source 7 or higher to enable binary literals)
1265 compiler.err.unsupported.underscore.lit=\
1266 underscores in literals are not supported in -source {0}\n\
1267 (use -source 7 or higher to enable underscores in literals)
1269 compiler.err.try.with.resources.not.supported.in.source=\
1270 try-with-resources is not supported in -source {0}\n\
1271 (use -source 7 or higher to enable try-with-resources)
1273 compiler.warn.enum.as.identifier=\
1274 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1275 (use -source 5 or higher to use ''enum'' as a keyword)
1277 compiler.warn.assert.as.identifier=\
1278 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1279 (use -source 1.4 or higher to use ''assert'' as a keyword)
1281 compiler.err.enum.as.identifier=\
1282 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1283 (use -source 1.4 or lower to use ''enum'' as an identifier)
1285 compiler.err.assert.as.identifier=\
1286 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1287 (use -source 1.3 or lower to use ''assert'' as an identifier)
1289 compiler.err.generics.not.supported.in.source=\
1290 generics are not supported in -source {0}\n\
1291 (use -source 5 or higher to enable generics)
1293 compiler.err.varargs.not.supported.in.source=\
1294 variable-arity methods are not supported in -source {0}\n\
1295 (use -source 5 or higher to enable variable-arity methods)
1297 compiler.err.annotations.not.supported.in.source=\
1298 annotations are not supported in -source {0}\n\
1299 (use -source 5 or higher to enable annotations)
1301 #308 compiler.err.type.annotations.not.supported.in.source=\
1302 #308 type annotations are not supported in -source {0}\n\
1303 #308 (use -source 7 or higher to enable type annotations)
1305 compiler.err.foreach.not.supported.in.source=\
1306 for-each loops are not supported in -source {0}\n\
1307 (use -source 5 or higher to enable for-each loops)
1309 compiler.err.static.import.not.supported.in.source=\
1310 static import declarations are not supported in -source {0}\n\
1311 (use -source 5 or higher to enable static import declarations)
1313 compiler.err.enums.not.supported.in.source=\
1314 enums are not supported in -source {0}\n\
1315 (use -source 5 or higher to enable enums)
1317 compiler.err.diamond.not.supported.in.source=\
1318 diamond operator is not supported in -source {0}\n\
1319 (use -source 7 or higher to enable diamond operator)
1321 compiler.err.multicatch.not.supported.in.source=\
1322 multi-catch statement is not supported in -source {0}\n\
1323 (use -source 7 or higher to enable multi-catch statement)
1325 compiler.err.string.switch.not.supported.in.source=\
1326 strings in switch are not supported in -source {0}\n\
1327 (use -source 7 or higher to enable strings in switch)
1329 ########################################
1330 # Diagnostics for where clause implementation
1331 # used by the RichDiagnosticFormatter.
1332 ########################################
1334 compiler.misc.type.null=\
1335 <null>
1337 # X#n (where n is an int id) is disambiguated tvar name
1338 compiler.misc.type.var=\
1339 {0}#{1}
1341 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1342 compiler.misc.captured.type=\
1343 CAP#{0}
1345 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1346 compiler.misc.intersection.type=\
1347 INT#{0}
1349 # where clause for captured type: contains upper ('extends {1}') and lower
1350 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1351 compiler.misc.where.captured=\
1352 {0} extends {1} super: {2} from capture of {3}
1354 # compact where clause for captured type: contains upper ('extends {1}') along
1355 # with the wildcard that generated this captured type ({3})
1356 compiler.misc.where.captured.1=\
1357 {0} extends {1} from capture of {3}
1359 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1360 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1361 compiler.misc.where.typevar=\
1362 {0} extends {1} declared in {2} {3}
1364 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1365 # in which the typevar has been declared
1366 compiler.misc.where.typevar.1=\
1367 {0} declared in {2} {3}
1369 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1370 # of this intersection type
1371 compiler.misc.where.intersection=\
1372 {0} extends {1}
1374 ### Where clause headers ###
1375 compiler.misc.where.description.captured=\
1376 where {0} is a fresh type-variable:
1377 compiler.misc.where.description.typevar=\
1378 where {0} is a type-variable:
1379 compiler.misc.where.description.intersection=\
1380 where {0} is an intersection type:
1381 compiler.misc.where.description.captured.1=\
1382 where {0} are fresh type-variables:
1383 compiler.misc.where.description.typevar.1=\
1384 where {0} are type-variables:
1385 compiler.misc.where.description.intersection.1=\
1386 where {0} are intersection types: