compiler.properties revision 2758:3c1b5fcf6fad
1#
2# Copyright (c) 1999, 2014, 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#
25
26# Messages in this file which use "placeholders" for values (e.g. {0}, {1})
27# are preceded by a stylized comment describing the type of the corresponding
28# values.
29# The types currently in use are
30#
31# boolean           true or false
32# file name         the name of an input file; e.g.   MyFile.java
33# message segment   a sub-message; see compiler.misc.*
34# modifier          a Java modifier; e.g. public, private, protected
35# name              a name, typically a Java identifier
36# number            an integer
37# option name       the name of a command line option
38# source version    a source version number, such as 1.5, 1.6, 1.7
39# string            a general string
40# symbol            the name of a declared type
41# symbol kind       a description of the kind of a declaration; see compiler.misc.kindname.*
42# token             the name of a non-terminal in source code; see compiler.misc.token.*
43# type              a Java type; e.g. int, X, X<T>
44# unused            the value is not used in this message
45#
46# list of X         a comma-separated list of items; e.g. list of type
47# X or Y            alternation; e.g. message segment or type
48# set of X          a comma-separated collection of items; e.g. set of modifier
49#
50# These may be composed: e.g.   list of type or message segment
51#
52# These comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
53# using info derived from the collected set of examples in test/tools/javac/diags/examples.
54# MessageInfo can also be run as a standalone utility providing more facilities
55# for manipulating this file. For more details, see MessageInfo.java.
56
57##
58## errors
59##
60
61# 0: symbol
62compiler.err.abstract.cant.be.instantiated=\
63    {0} is abstract; cannot be instantiated
64
65compiler.err.abstract.meth.cant.have.body=\
66    abstract methods cannot have a body
67
68compiler.err.already.annotated=\
69    {0} {1} has already been annotated
70
71# 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol
72compiler.err.already.defined=\
73    {0} {1} is already defined in {2} {3}
74
75# 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol
76compiler.err.already.defined.in.clinit=\
77    {0} {1} is already defined in {2} of {3} {4}
78
79# 0: string
80compiler.err.already.defined.single.import=\
81    a type with the same simple name is already defined by the single-type-import of {0}
82
83# 0: string
84compiler.err.already.defined.static.single.import=\
85    a type with the same simple name is already defined by the static single-type-import of {0}
86
87compiler.err.already.defined.this.unit=\
88    {0} is already defined in this compilation unit
89
90# 0: type, 1: list of name
91compiler.err.annotation.missing.default.value=\
92    annotation @{0} is missing a default value for the element ''{1}''
93
94# 0: type, 1: list of name
95compiler.err.annotation.missing.default.value.1=\
96    annotation @{0} is missing default values for elements {1}
97
98# 0: type
99compiler.err.annotation.not.valid.for.type=\
100    annotation not valid for an element of type {0}
101
102compiler.err.annotation.type.not.applicable=\
103    annotation type not applicable to this kind of declaration
104
105compiler.err.annotation.value.must.be.annotation=\
106    annotation value must be an annotation
107
108compiler.err.annotation.value.must.be.class.literal=\
109    annotation value must be a class literal
110
111compiler.err.annotation.value.must.be.name.value=\
112    annotation values must be of the form ''name=value''
113
114compiler.err.annotation.value.not.allowable.type=\
115    annotation value not of an allowable type
116
117compiler.err.anon.class.impl.intf.no.args=\
118    anonymous class implements interface; cannot have arguments
119
120compiler.err.anon.class.impl.intf.no.typeargs=\
121    anonymous class implements interface; cannot have type arguments
122
123compiler.err.anon.class.impl.intf.no.qual.for.new=\
124    anonymous class implements interface; cannot have qualifier for new
125
126compiler.err.cant.inherit.from.anon=\
127    cannot inherit from anonymous class
128
129# 0: symbol, 1: symbol, 2: symbol
130compiler.err.array.and.varargs=\
131    cannot declare both {0} and {1} in {2}
132
133compiler.err.array.dimension.missing=\
134    array dimension missing
135
136# 0: type
137compiler.err.array.req.but.found=\
138    array required, but {0} found
139
140compiler.err.attribute.value.must.be.constant=\
141    element value must be a constant expression
142
143# 0: statement type
144compiler.err.bad.initializer=\
145    bad initializer for {0}
146
147compiler.err.break.outside.switch.loop=\
148    break outside switch or loop
149
150# 0: name
151compiler.err.call.must.be.first.stmt.in.ctor=\
152    call to {0} must be first statement in constructor
153
154# 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
155compiler.err.cant.apply.symbol=\
156    {0} {1} in {4} {5} cannot be applied to given types;\n\
157    required: {2}\n\
158    found: {3}\n\
159    reason: {6}
160
161# 0: symbol kind, 1: name, 2: list of type
162compiler.err.cant.apply.symbols=\
163    no suitable {0} found for {1}({2})
164
165# 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
166compiler.misc.cant.apply.symbol=\
167    {0} {1} in {4} {5} cannot be applied to given types\n\
168    required: {2}\n\
169    found: {3}\n\
170    reason: {6}
171
172# 0: symbol kind, 1: name, 2: list of type
173compiler.misc.cant.apply.symbols=\
174    no suitable {0} found for {1}({2})
175
176# 0: symbol kind, 1: symbol
177compiler.misc.no.abstracts=\
178    no abstract method found in {0} {1}
179
180# 0: symbol kind, 1: symbol
181compiler.misc.incompatible.abstracts=\
182    multiple non-overriding abstract methods found in {0} {1}
183
184compiler.err.bad.functional.intf.anno=\
185    Unexpected @FunctionalInterface annotation
186
187# 0: message segment
188compiler.err.bad.functional.intf.anno.1=\
189    Unexpected @FunctionalInterface annotation\n\
190    {0}
191
192# 0: symbol
193compiler.misc.not.a.functional.intf=\
194    {0} is not a functional interface
195
196# 0: symbol, 1: message segment
197compiler.misc.not.a.functional.intf.1=\
198    {0} is not a functional interface\n\
199    {1}
200
201# 0: symbol, 1: symbol kind, 2: symbol
202compiler.misc.invalid.generic.lambda.target=\
203    invalid functional descriptor for lambda expression\n\
204    method {0} in {1} {2} is generic
205
206# 0: symbol kind, 1: symbol
207compiler.misc.incompatible.descs.in.functional.intf=\
208    incompatible function descriptors found in {0} {1}
209
210# 0: name, 1: list of type, 2: type, 3: list of type
211compiler.misc.descriptor=\
212    descriptor: {2} {0}({1})
213
214# 0: name, 1: list of type, 2: type, 3: list of type
215compiler.misc.descriptor.throws=\
216    descriptor: {2} {0}({1}) throws {3}
217
218# 0: type
219compiler.misc.no.suitable.functional.intf.inst=\
220    cannot infer functional interface descriptor for {0}
221
222# 0: message segment
223compiler.misc.bad.intersection.target.for.functional.expr=\
224    bad intersection type target for lambda or method reference\n\
225    {0}
226
227# 0: symbol or type
228compiler.misc.not.an.intf.component=\
229    component type {0} is not an interface
230
231# 0: symbol kind, 1: message segment
232compiler.err.invalid.mref=\
233    invalid {0} reference\n\
234    {1}
235
236# 0: symbol kind, 1: message segment
237compiler.misc.invalid.mref=\
238    invalid {0} reference\n\
239    {1}
240
241compiler.misc.static.mref.with.targs=\
242    parameterized qualifier on static method reference
243
244compiler.misc.static.bound.mref=\
245    static bound method reference
246
247# 0: symbol
248compiler.err.cant.assign.val.to.final.var=\
249    cannot assign a value to final variable {0}
250
251# 0: symbol, 1: message segment
252compiler.err.cant.ref.non.effectively.final.var=\
253    local variables referenced from {1} must be final or effectively final
254
255compiler.err.try.with.resources.expr.needs.var=\
256    the try-with-resources resource must either be a variable declaration or an expression denoting \
257a reference to a final or effectively final variable
258
259# 0: symbol
260compiler.err.try.with.resources.expr.effectively.final.var=\
261    variable {0} used as a try-with-resources resource neither final nor effectively final
262
263
264compiler.misc.lambda=\
265    a lambda expression
266
267compiler.misc.inner.cls=\
268    an inner class
269
270# 0: type
271compiler.err.cant.deref=\
272    {0} cannot be dereferenced
273
274compiler.err.cant.extend.intf.annotation=\
275    ''extends'' not allowed for @interfaces
276
277# 0: symbol
278compiler.err.cant.inherit.from.final=\
279    cannot inherit from final {0}
280
281# 0: symbol
282compiler.err.cant.ref.before.ctor.called=\
283    cannot reference {0} before supertype constructor has been called
284
285compiler.err.cant.select.static.class.from.param.type=\
286    cannot select a static class from a parameterized type
287
288# 0: symbol, 1: string, 2: string
289compiler.err.cant.inherit.diff.arg=\
290    {0} cannot be inherited with different arguments: <{1}> and <{2}>
291
292compiler.err.catch.without.try=\
293    ''catch'' without ''try''
294
295# 0: symbol kind, 1: symbol
296compiler.err.clash.with.pkg.of.same.name=\
297    {0} {1} clashes with package of same name
298
299compiler.err.class.not.allowed=\
300    class, interface or enum declaration not allowed here
301
302compiler.err.const.expr.req=\
303    constant expression required
304
305compiler.err.cont.outside.loop=\
306    continue outside of loop
307
308# 0: symbol
309compiler.err.cyclic.inheritance=\
310    cyclic inheritance involving {0}
311
312# 0: symbol
313compiler.err.cyclic.annotation.element=\
314    type of element {0} is cyclic
315
316# 0: unused
317compiler.err.call.to.super.not.allowed.in.enum.ctor=\
318    call to super not allowed in enum constructor
319
320# 0: type
321compiler.err.no.superclass=\
322    {0} has no superclass.
323
324# 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
325compiler.err.concrete.inheritance.conflict=\
326    methods {0} from {1} and {2} from {3} are inherited with the same signature
327
328compiler.err.default.allowed.in.intf.annotation.member=\
329    default value only allowed in an annotation type declaration
330
331# 0: symbol
332compiler.err.doesnt.exist=\
333    package {0} does not exist
334
335# 0: type
336compiler.err.duplicate.annotation.invalid.repeated=\
337    annotation {0} is not a valid repeatable annotation
338
339# 0: name, 1: type
340compiler.err.duplicate.annotation.member.value=\
341    duplicate element ''{0}'' in annotation @{1}.
342
343# 0: name, 1: unused
344compiler.err.duplicate.annotation.missing.container=\
345    {0} is not a repeatable annotation type
346
347# 0: type, 1: unused
348compiler.err.invalid.repeatable.annotation=\
349    duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
350
351# 0: symbol or type
352compiler.err.invalid.repeatable.annotation.no.value=\
353    {0} is not a valid @Repeatable, no value element method declared
354
355# 0: type, 1: number
356compiler.err.invalid.repeatable.annotation.multiple.values=\
357    {0} is not a valid @Repeatable, {1} element methods named ''value'' declared
358
359# 0: type
360compiler.err.invalid.repeatable.annotation.invalid.value=\
361    {0} is not a valid @Repeatable: invalid value element
362
363# 0: symbol type, 1: unused, 2: type
364compiler.err.invalid.repeatable.annotation.value.return=\
365    containing annotation type ({0}) must declare an element named ''value'' of type {2}
366
367# 0: symbol or type, 1: symbol
368compiler.err.invalid.repeatable.annotation.elem.nondefault=\
369    containing annotation type ({0}) does not have a default value for element {1}
370
371# 0: symbol, 1: unused, 2: symbol, 3: unused
372compiler.err.invalid.repeatable.annotation.retention=\
373    retention of containing annotation type ({0}) is shorter than the retention of repeatable annotation type ({2})
374
375# 0: symbol, 1: symbol
376compiler.err.invalid.repeatable.annotation.not.documented=\
377    repeatable annotation type ({1}) is @Documented while containing annotation type ({0}) is not
378
379# 0: symbol, 1: symbol
380compiler.err.invalid.repeatable.annotation.not.inherited=\
381    repeatable annotation type ({1}) is @Inherited while containing annotation type ({0}) is not
382
383# 0: symbol, 1: symbol
384compiler.err.invalid.repeatable.annotation.incompatible.target=\
385    containing annotation type ({0}) is applicable to more targets than repeatable annotation type ({1})
386
387# 0: symbol
388compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
389    container {0} must not be present at the same time as the element it contains
390
391# 0: name
392compiler.err.duplicate.class=\
393    duplicate class: {0}
394
395compiler.err.duplicate.case.label=\
396    duplicate case label
397
398compiler.err.duplicate.default.label=\
399    duplicate default label
400
401compiler.err.else.without.if=\
402    ''else'' without ''if''
403
404compiler.err.empty.char.lit=\
405    empty character literal
406
407# 0: symbol
408compiler.err.encl.class.required=\
409    an enclosing instance that contains {0} is required
410
411compiler.err.enum.annotation.must.be.enum.constant=\
412    an enum annotation value must be an enum constant
413
414compiler.err.enum.cant.be.instantiated=\
415    enum types may not be instantiated
416
417compiler.err.enum.label.must.be.unqualified.enum=\
418    an enum switch case label must be the unqualified name of an enumeration constant
419
420compiler.err.enum.no.subclassing=\
421    classes cannot directly extend java.lang.Enum
422
423compiler.err.enum.types.not.extensible=\
424    enum types are not extensible
425
426compiler.err.enum.no.finalize=\
427    enums cannot have finalize methods
428
429# 0: file name, 1: string
430compiler.err.error.reading.file=\
431    error reading {0}; {1}
432
433# 0: type
434compiler.err.except.already.caught=\
435    exception {0} has already been caught
436
437# 0: type
438compiler.err.except.never.thrown.in.try=\
439    exception {0} is never thrown in body of corresponding try statement
440
441# 0: symbol
442compiler.err.final.parameter.may.not.be.assigned=\
443    final parameter {0} may not be assigned
444
445# 0: symbol
446compiler.err.try.resource.may.not.be.assigned=\
447    auto-closeable resource {0} may not be assigned
448
449# 0: symbol
450compiler.err.multicatch.parameter.may.not.be.assigned=\
451    multi-catch parameter {0} may not be assigned
452
453# 0: type, 1: type
454compiler.err.multicatch.types.must.be.disjoint=\
455    Alternatives in a multi-catch statement cannot be related by subclassing\n\
456    Alternative {0} is a subclass of alternative {1}
457
458compiler.err.finally.without.try=\
459    ''finally'' without ''try''
460
461# 0: type, 1: message segment
462compiler.err.foreach.not.applicable.to.type=\
463    for-each not applicable to expression type\n\
464    required: {1}\n\
465    found:    {0}
466
467compiler.err.fp.number.too.large=\
468    floating point number too large
469
470compiler.err.fp.number.too.small=\
471    floating point number too small
472
473compiler.err.generic.array.creation=\
474    generic array creation
475
476compiler.err.generic.throwable=\
477    a generic class may not extend java.lang.Throwable
478
479# 0: symbol
480compiler.err.icls.cant.have.static.decl=\
481    Illegal static declaration in inner class {0}\n\
482    modifier \''static\'' is only allowed in constant variable declarations
483
484# 0: string
485compiler.err.illegal.char=\
486    illegal character: ''{0}''
487
488compiler.err.illegal.char.for.encoding=\
489    unmappable character for encoding {0}
490
491# 0: set of modifier, 1: set of modifier
492compiler.err.illegal.combination.of.modifiers=\
493    illegal combination of modifiers: {0} and {1}
494
495compiler.err.illegal.enum.static.ref=\
496    illegal reference to static field from initializer
497
498compiler.err.illegal.esc.char=\
499    illegal escape character
500
501compiler.err.illegal.forward.ref=\
502    illegal forward reference
503
504# 0: symbol, 1: string
505compiler.err.not.in.profile=\
506    {0} is not available in profile ''{1}''
507
508# 0: symbol
509compiler.warn.forward.ref=\
510    reference to variable ''{0}'' before it has been initialized
511
512compiler.err.illegal.self.ref=\
513    self-reference in initializer
514
515# 0: symbol
516compiler.warn.self.ref=\
517    self-reference in initializer of variable ''{0}''
518
519compiler.err.illegal.generic.type.for.instof=\
520    illegal generic type for instanceof
521
522# 0: type
523compiler.err.illegal.initializer.for.type=\
524    illegal initializer for {0}
525
526compiler.err.illegal.line.end.in.char.lit=\
527    illegal line end in character literal
528
529compiler.err.illegal.nonascii.digit=\
530    illegal non-ASCII digit
531
532compiler.err.illegal.underscore=\
533    illegal underscore
534
535compiler.err.illegal.dot=\
536    illegal ''.''
537
538# 0: symbol
539compiler.err.illegal.qual.not.icls=\
540    illegal qualifier; {0} is not an inner class
541
542compiler.err.illegal.start.of.expr=\
543    illegal start of expression
544
545compiler.err.illegal.start.of.stmt=\
546    illegal start of statement
547
548compiler.err.illegal.start.of.type=\
549    illegal start of type
550
551compiler.err.illegal.unicode.esc=\
552    illegal unicode escape
553
554# 0: symbol
555compiler.err.import.requires.canonical=\
556    import requires canonical name for {0}
557
558compiler.err.improperly.formed.type.param.missing=\
559    improperly formed type, some parameters are missing
560
561compiler.err.improperly.formed.type.inner.raw.param=\
562    improperly formed type, type arguments given on a raw type
563
564# 0: type, 1: type
565compiler.err.incomparable.types=\
566    incomparable types: {0} and {1}
567
568# 0: number
569compiler.err.int.number.too.large=\
570    integer number too large: {0}
571
572compiler.err.intf.annotation.members.cant.have.params=\
573    elements in annotation type declarations cannot declare formal parameters
574
575# 0: symbol
576compiler.err.intf.annotation.cant.have.type.params=\
577    annotation type {0} cannot be generic
578
579compiler.err.intf.annotation.members.cant.have.type.params=\
580    elements in annotation type declarations cannot be generic methods
581
582# 0: symbol, 1: type
583compiler.err.intf.annotation.member.clash=\
584    annotation type {1} declares an element with the same name as method {0}
585
586compiler.err.intf.expected.here=\
587    interface expected here
588
589compiler.err.intf.meth.cant.have.body=\
590    interface abstract methods cannot have body
591
592# 0: symbol
593compiler.err.invalid.annotation.member.type=\
594    invalid type for element {0} of annotation type
595
596compiler.err.invalid.binary.number=\
597    binary numbers must contain at least one binary digit
598
599compiler.err.invalid.hex.number=\
600    hexadecimal numbers must contain at least one hexadecimal digit
601
602compiler.err.invalid.meth.decl.ret.type.req=\
603    invalid method declaration; return type required
604
605compiler.err.varargs.and.old.array.syntax=\
606    legacy array notation not allowed on variable-arity parameter
607
608compiler.err.varargs.and.receiver =\
609    varargs notation not allowed on receiver parameter
610
611compiler.err.varargs.must.be.last =\
612    varargs parameter must be the last parameter
613
614compiler.err.array.and.receiver =\
615    legacy array notation not allowed on receiver parameter
616
617compiler.err.variable.not.allowed=\
618    variable declaration not allowed here
619
620# 0: name
621compiler.err.label.already.in.use=\
622    label {0} already in use
623
624# 0: symbol
625compiler.err.local.var.accessed.from.icls.needs.final=\
626    local variable {0} is accessed from within inner class; needs to be declared final
627
628compiler.err.local.enum=\
629    enum types must not be local
630
631compiler.err.cannot.create.array.with.type.arguments=\
632    cannot create array with type arguments
633
634compiler.err.cannot.create.array.with.diamond=\
635    cannot create array with ''<>''
636
637#
638# limits.  We don't give the limits in the diagnostic because we expect
639# them to change, yet we want to use the same diagnostic.  These are all
640# detected during code generation.
641#
642compiler.err.limit.code=\
643    code too large
644
645compiler.err.limit.code.too.large.for.try.stmt=\
646    code too large for try statement
647
648compiler.err.limit.dimensions=\
649    array type has too many dimensions
650
651compiler.err.limit.locals=\
652    too many local variables
653
654compiler.err.limit.parameters=\
655    too many parameters
656
657compiler.err.limit.pool=\
658    too many constants
659
660compiler.err.limit.pool.in.class=\
661    too many constants in class {0}
662
663compiler.err.limit.stack=\
664    code requires too much stack
665
666compiler.err.limit.string=\
667    constant string too long
668
669compiler.err.limit.string.overflow=\
670    UTF8 representation for string \"{0}...\" is too long for the constant pool
671
672compiler.err.malformed.fp.lit=\
673    malformed floating point literal
674
675compiler.err.method.does.not.override.superclass=\
676    method does not override or implement a method from a supertype
677
678compiler.err.missing.meth.body.or.decl.abstract=\
679    missing method body, or declare abstract
680
681compiler.err.missing.ret.stmt=\
682    missing return statement
683
684# 0: unused
685compiler.misc.missing.ret.val=\
686    missing return value
687
688compiler.misc.unexpected.ret.val=\
689    unexpected return value
690
691# 0: set of modifier
692compiler.err.mod.not.allowed.here=\
693    modifier {0} not allowed here
694
695compiler.err.intf.not.allowed.here=\
696    interface not allowed here
697
698compiler.err.enums.must.be.static=\
699    enum declarations allowed only in static contexts
700
701# 0: symbol, 1: symbol
702compiler.err.name.clash.same.erasure=\
703    name clash: {0} and {1} have the same erasure
704
705# 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
706compiler.err.name.clash.same.erasure.no.override=\
707    name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
708
709# 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
710compiler.err.name.clash.same.erasure.no.override.1=\
711    name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
712    first method:  {2} in {3}\n\
713    second method: {4} in {5}
714
715# 0: symbol, 1: symbol, 2: symbol, 3: symbol
716compiler.err.name.clash.same.erasure.no.hide=\
717    name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
718
719compiler.err.name.reserved.for.internal.use=\
720    {0} is reserved for internal use
721
722compiler.err.native.meth.cant.have.body=\
723    native methods cannot have a body
724
725# 0: type, 1: type
726compiler.err.neither.conditional.subtype=\
727    incompatible types for ?: neither is a subtype of the other\n\
728    second operand: {0}\n\
729    third operand : {1}
730
731
732# 0: message segment
733compiler.misc.incompatible.type.in.conditional=\
734    bad type in conditional expression\n\
735    {0}
736
737compiler.misc.conditional.target.cant.be.void=\
738    target-type for conditional expression cannot be void
739
740# 0: type
741compiler.misc.incompatible.ret.type.in.lambda=\
742    bad return type in lambda expression\n\
743    {0}
744
745# 0: type
746compiler.misc.incompatible.ret.type.in.mref=\
747    bad return type in method reference\n\
748    {0}
749
750compiler.err.lambda.body.neither.value.nor.void.compatible=\
751    lambda body is neither value nor void compatible
752
753# 0: list of type
754compiler.err.incompatible.thrown.types.in.mref=\
755    incompatible thrown types {0} in method reference
756
757compiler.misc.incompatible.arg.types.in.lambda=\
758    incompatible parameter types in lambda expression
759
760compiler.misc.incompatible.arg.types.in.mref=\
761    incompatible parameter types in method reference
762
763compiler.err.new.not.allowed.in.annotation=\
764    ''new'' not allowed in an annotation
765
766compiler.err.no.annotation.member=\
767    no annotation member {0} in {1}
768
769compiler.err.no.encl.instance.of.type.in.scope=\
770    no enclosing instance of type {0} is in scope
771
772compiler.err.no.intf.expected.here=\
773    no interface expected here
774
775compiler.err.no.match.entry=\
776    {0} has no match in entry in {1}; required {2}
777
778compiler.err.not.annotation.type=\
779    {0} is not an annotation type
780
781# 0: symbol, 1: symbol
782compiler.err.not.def.access.class.intf.cant.access=\
783    {0} in {1} is defined in an inaccessible class or interface
784
785# 0: symbol, 1: symbol
786compiler.misc.not.def.access.class.intf.cant.access=\
787    {0} in {1} is defined in an inaccessible class or interface
788
789# 0: symbol, 1: list of type, 2: type
790compiler.misc.cant.access.inner.cls.constr=\
791    cannot access constructor {0}({1})\n\
792    an enclosing instance of type {2} is not in scope
793
794# 0: symbol, 1: symbol
795compiler.err.not.def.public.cant.access=\
796    {0} is not public in {1}; cannot be accessed from outside package
797
798# 0: symbol, 1: symbol
799compiler.misc.not.def.public.cant.access=\
800    {0} is not public in {1}; cannot be accessed from outside package
801
802# 0: name
803compiler.err.not.loop.label=\
804    not a loop label: {0}
805
806compiler.err.not.stmt=\
807    not a statement
808
809# 0: symbol
810compiler.err.not.encl.class=\
811    not an enclosing class: {0}
812
813# 0: name, 1: type, 2: unused
814compiler.err.operator.cant.be.applied=\
815    bad operand type {1} for unary operator ''{0}''
816
817# 0: name, 1: type, 2: type
818compiler.err.operator.cant.be.applied.1=\
819    bad operand types for binary operator ''{0}''\n\
820    first type:  {1}\n\
821    second type: {2}
822
823compiler.err.pkg.annotations.sb.in.package-info.java=\
824    package annotations should be in file package-info.java
825
826# 0: symbol
827compiler.err.pkg.clashes.with.class.of.same.name=\
828    package {0} clashes with class of same name
829
830compiler.err.warnings.and.werror=\
831    warnings found and -Werror specified
832
833# Errors related to annotation processing
834
835# 0: symbol, 1: string, 2: stack-trace
836compiler.err.proc.cant.access=\
837    cannot access {0}\n\
838    {1}\n\
839    Consult the following stack trace for details.\n\
840    {2}
841
842# 0: symbol, 1: string
843compiler.err.proc.cant.access.1=\
844    cannot access {0}\n\
845    {1}
846
847# 0: string
848compiler.err.proc.cant.find.class=\
849    Could not find class file for ''{0}''.
850
851# Print a client-generated error message; assumed to be localized, no translation required
852# 0: string
853compiler.err.proc.messager=\
854    {0}
855
856# 0: list of string
857compiler.err.proc.no.explicit.annotation.processing.requested=\
858    Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
859
860compiler.err.proc.no.service=\
861    A ServiceLoader was not usable and is required for annotation processing.
862
863compiler.err.proc.processor.bad.option.name=\
864    Bad option name ''{0}'' provided by processor ''{1}''
865
866# 0: string
867compiler.err.proc.processor.cant.instantiate=\
868    Could not instantiate an instance of processor ''{0}''
869
870# 0: string
871compiler.err.proc.processor.not.found=\
872    Annotation processor ''{0}'' not found
873
874# 0: string
875compiler.err.proc.processor.wrong.type=\
876    Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
877
878compiler.err.proc.service.problem=\
879    Error creating a service loader to load Processors.
880
881compiler.err.proc.bad.config.file=\
882    Bad service configuration file, or exception thrown while constructing Processor object: {0}
883
884compiler.err.proc.cant.create.loader=\
885    Could not create class loader for annotation processors: {0}
886
887# 0: unused
888compiler.err.qualified.new.of.static.class=\
889    qualified new of static class
890
891compiler.err.recursive.ctor.invocation=\
892    recursive constructor invocation
893
894# 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
895compiler.err.ref.ambiguous=\
896    reference to {0} is ambiguous\n\
897    both {1} {2} in {3} and {4} {5} in {6} match
898
899# 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
900compiler.misc.ref.ambiguous=\
901    reference to {0} is ambiguous\n\
902    both {1} {2} in {3} and {4} {5} in {6} match
903
904compiler.err.repeated.annotation.target=\
905    repeated annotation target
906
907compiler.err.repeated.interface=\
908    repeated interface
909
910compiler.err.repeated.modifier=\
911    repeated modifier
912
913# 0: symbol, 1: set of modifier, 2: symbol
914compiler.err.report.access=\
915    {0} has {1} access in {2}
916
917# 0: symbol, 1: set of modifier, 2: symbol
918compiler.misc.report.access=\
919    {0} has {1} access in {2}
920
921compiler.err.ret.outside.meth=\
922    return outside method
923
924compiler.err.signature.doesnt.match.supertype=\
925    signature does not match {0}; incompatible supertype
926
927compiler.err.signature.doesnt.match.intf=\
928    signature does not match {0}; incompatible interfaces
929
930# 0: number, 1: number
931compiler.err.method.invoked.with.incorrect.number.arguments=\
932    method invoked with incorrect number of arguments; expected {0}, found {1}
933
934# 0: symbol, 1: symbol, 2: symbol
935compiler.err.does.not.override.abstract=\
936    {0} is not abstract and does not override abstract method {1} in {2}
937
938compiler.err.source.cant.overwrite.input.file=\
939    error writing source; cannot overwrite input file {0}
940
941compiler.err.stack.sim.error=\
942    Internal error: stack sim error on {0}
943
944compiler.err.static.imp.only.classes.and.interfaces=\
945    static import only from classes and interfaces
946
947compiler.err.string.const.req=\
948    constant string expression required
949
950# 0: symbol, 1: symbol
951compiler.err.synthetic.name.conflict=\
952    the symbol {0} conflicts with a compiler-synthesized symbol in {1}
953
954# 0: symbol, 1: symbol
955compiler.warn.synthetic.name.conflict=\
956    the symbol {0} conflicts with a compiler-synthesized symbol in {1}
957
958compiler.err.throws.not.allowed.in.intf.annotation=\
959    throws clause not allowed in @interface members
960
961compiler.err.try.without.catch.or.finally=\
962    ''try'' without ''catch'' or ''finally''
963
964compiler.err.try.without.catch.finally.or.resource.decls=\
965    ''try'' without ''catch'', ''finally'' or resource declarations
966
967# 0: symbol
968compiler.err.type.doesnt.take.params=\
969    type {0} does not take parameters
970
971compiler.err.type.var.cant.be.deref=\
972    cannot select from a type variable
973
974compiler.err.type.var.may.not.be.followed.by.other.bounds=\
975    a type variable may not be followed by other bounds
976
977compiler.err.type.var.more.than.once=\
978    type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
979
980compiler.err.type.var.more.than.once.in.result=\
981    type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
982
983# 0: type, 1: type, 2: string
984compiler.err.types.incompatible.diff.ret=\
985    types {0} and {1} are incompatible; both define {2}, but with unrelated return types
986
987# 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
988compiler.err.types.incompatible.unrelated.defaults=\
989    {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
990
991# 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
992compiler.err.types.incompatible.abstract.default=\
993    {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
994
995# 0: name, 1: kind, 2: symbol
996compiler.err.default.overrides.object.member=\
997    default method {0} in {1} {2} overrides a member of java.lang.Object
998
999# 0: type
1000compiler.err.illegal.static.intf.meth.call=\
1001    illegal static interface method call\n\
1002    the receiver expression should be replaced with the type qualifier ''{0}''
1003
1004# 0: type, 1: message segment
1005compiler.err.illegal.default.super.call=\
1006    bad type qualifier {0} in default super call\n\
1007    {1}
1008
1009# 0: symbol, 1: type
1010compiler.misc.overridden.default=\
1011    method {0} is overridden in {1}
1012
1013# 0: symbol, 1: type or symbol
1014compiler.misc.redundant.supertype=\
1015    redundant interface {0} is extended by {1}
1016
1017compiler.err.unclosed.char.lit=\
1018    unclosed character literal
1019
1020compiler.err.unclosed.comment=\
1021    unclosed comment
1022
1023compiler.err.unclosed.str.lit=\
1024    unclosed string literal
1025
1026# 0: name
1027compiler.err.unsupported.encoding=\
1028    unsupported encoding: {0}
1029
1030compiler.err.io.exception=\
1031    error reading source file: {0}
1032
1033# 0: name
1034compiler.err.undef.label=\
1035    undefined label: {0}
1036
1037# 0: message segment, 1: unused
1038compiler.err.cant.apply.diamond=\
1039    cannot infer type arguments for {0}
1040
1041# 0: message segment or type, 1: message segment
1042compiler.err.cant.apply.diamond.1=\
1043    cannot infer type arguments for {0}\n\
1044    reason: {1}
1045
1046# 0: message segment or type, 1: message segment
1047compiler.misc.cant.apply.diamond.1=\
1048    cannot infer type arguments for {0}\n\
1049    reason: {1}
1050
1051compiler.err.unreachable.stmt=\
1052    unreachable statement
1053
1054compiler.err.initializer.must.be.able.to.complete.normally=\
1055    initializer must be able to complete normally
1056
1057compiler.err.initializer.not.allowed=\
1058    initializers not allowed in interfaces
1059
1060# 0: type
1061compiler.err.unreported.exception.need.to.catch.or.throw=\
1062    unreported exception {0}; must be caught or declared to be thrown
1063
1064# 0: type
1065compiler.err.unreported.exception.default.constructor=\
1066    unreported exception {0} in default constructor
1067
1068# 0: type, 1: name
1069compiler.err.unreported.exception.implicit.close=\
1070    unreported exception {0}; must be caught or declared to be thrown\n\
1071    exception thrown from implicit call to close() on resource variable ''{1}''
1072
1073compiler.err.unsupported.cross.fp.lit=\
1074    hexadecimal floating-point literals are not supported on this VM
1075
1076compiler.err.void.not.allowed.here=\
1077    ''void'' type not allowed here
1078
1079# 0: string
1080compiler.err.wrong.number.type.args=\
1081    wrong number of type arguments; required {0}
1082
1083# 0: symbol
1084compiler.err.var.might.already.be.assigned=\
1085    variable {0} might already have been assigned
1086
1087# 0: symbol
1088compiler.err.var.might.not.have.been.initialized=\
1089    variable {0} might not have been initialized
1090
1091# 0: symbol
1092compiler.err.var.not.initialized.in.default.constructor=\
1093    variable {0} not initialized in the default constructor
1094
1095# 0: symbol
1096compiler.err.var.might.be.assigned.in.loop=\
1097    variable {0} might be assigned in loop
1098
1099# 0: symbol, 1: message segment
1100compiler.err.varargs.invalid.trustme.anno=\
1101    Invalid {0} annotation. {1}
1102
1103# 0: type
1104compiler.misc.varargs.trustme.on.reifiable.varargs=\
1105    Varargs element type {0} is reifiable.
1106
1107# 0: symbol
1108compiler.misc.varargs.trustme.on.non.varargs.meth=\
1109    Method {0} is not a varargs method.
1110
1111# 0: symbol
1112compiler.misc.varargs.trustme.on.virtual.varargs=\
1113    Instance method {0} is neither final nor private.
1114
1115# 0: symbol
1116compiler.misc.varargs.trustme.on.virtual.varargs.final.only=\
1117    Instance method {0} is not final.
1118
1119# 0: type, 1: symbol kind, 2: symbol
1120compiler.misc.inaccessible.varargs.type=\
1121    formal varargs element type {0} is not accessible from {1} {2}
1122
1123# In the following string, {1} will always be the detail message from
1124# java.io.IOException.
1125# 0: symbol, 1: string
1126compiler.err.class.cant.write=\
1127    error while writing {0}: {1}
1128
1129# In the following string, {0} is the name of the class in the Java source.
1130# It really should be used two times..
1131# 0: name
1132compiler.err.class.public.should.be.in.file=\
1133    class {0} is public, should be declared in a file named {0}.java
1134
1135## All errors which do not refer to a particular line in the source code are
1136## preceded by this string.
1137compiler.err.error=\
1138    error:\u0020
1139
1140# The following error messages do not refer to a line in the source code.
1141compiler.err.cant.read.file=\
1142    cannot read: {0}
1143
1144# 0: string
1145compiler.err.plugin.not.found=\
1146    plug-in not found: {0}
1147
1148#####
1149
1150# Fatal Errors
1151
1152compiler.misc.fatal.err.no.java.lang=\
1153    Fatal Error: Unable to find package java.lang in classpath or bootclasspath
1154
1155compiler.misc.fatal.err.cant.locate.meth=\
1156    Fatal Error: Unable to find method {0}
1157
1158compiler.misc.fatal.err.cant.locate.field=\
1159    Fatal Error: Unable to find field {0}
1160
1161compiler.misc.fatal.err.cant.locate.ctor=\
1162    Fatal Error: Unable to find constructor for {0}
1163
1164compiler.misc.fatal.err.cant.close=\
1165    Fatal Error: Cannot close compiler resources
1166
1167#####
1168
1169##
1170## miscellaneous strings
1171##
1172
1173compiler.misc.source.unavailable=\
1174    (source unavailable)
1175
1176compiler.misc.base.membership=\
1177    all your base class are belong to us
1178
1179# 0: string, 1: string, 2: boolean
1180compiler.misc.x.print.processor.info=\
1181    Processor {0} matches {1} and returns {2}.
1182
1183# 0: number, 1: string, 2: set of symbol, 3: boolean
1184compiler.misc.x.print.rounds=\
1185    Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1186
1187# 0: file name
1188compiler.warn.file.from.future=\
1189    Modification date is in the future for file {0}
1190
1191#####
1192
1193## The following string will appear before all messages keyed as:
1194## "compiler.note".
1195
1196compiler.note.compressed.diags=\
1197    Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1198
1199# 0: boolean, 1: symbol
1200compiler.note.lambda.stat=\
1201    Translating lambda expression\n\
1202    alternate metafactory = {0}\n\
1203    synthetic method = {1}
1204
1205# 0: boolean, 1: unused
1206compiler.note.mref.stat=\
1207    Translating method reference\n\
1208    alternate metafactory = {0}\n\
1209
1210# 0: boolean, 1: symbol
1211compiler.note.mref.stat.1=\
1212    Translating method reference\n\
1213    alternate metafactory = {0}\n\
1214    bridge method = {1}
1215
1216compiler.note.note=\
1217    Note:\u0020
1218
1219# 0: file name
1220compiler.note.deprecated.filename=\
1221    {0} uses or overrides a deprecated API.
1222
1223compiler.note.deprecated.plural=\
1224    Some input files use or override a deprecated API.
1225
1226# The following string may appear after one of the above deprecation
1227# messages.
1228compiler.note.deprecated.recompile=\
1229    Recompile with -Xlint:deprecation for details.
1230
1231# 0: file name
1232compiler.note.deprecated.filename.additional=\
1233    {0} has additional uses or overrides of a deprecated API.
1234
1235compiler.note.deprecated.plural.additional=\
1236    Some input files additionally use or override a deprecated API.
1237
1238# 0: file name
1239compiler.note.unchecked.filename=\
1240    {0} uses unchecked or unsafe operations.
1241
1242compiler.note.unchecked.plural=\
1243    Some input files use unchecked or unsafe operations.
1244
1245# The following string may appear after one of the above deprecation
1246# messages.
1247compiler.note.unchecked.recompile=\
1248    Recompile with -Xlint:unchecked for details.
1249
1250# 0: file name
1251compiler.note.unchecked.filename.additional=\
1252    {0} has additional unchecked or unsafe operations.
1253
1254compiler.note.unchecked.plural.additional=\
1255    Some input files additionally use unchecked or unsafe operations.
1256
1257# 0: file name
1258compiler.note.sunapi.filename=\
1259    {0} uses internal proprietary API that may be removed in a future release.
1260
1261compiler.note.sunapi.plural=\
1262    Some input files use internal proprietary API that may be removed in a future release.
1263
1264# The following string may appear after one of the above sunapi messages.
1265compiler.note.sunapi.recompile=\
1266    Recompile with -Xlint:sunapi for details.
1267
1268# 0: file name
1269compiler.note.sunapi.filename.additional=\
1270    {0} uses additional internal proprietary API that may be removed in a future release.
1271
1272compiler.note.sunapi.plural.additional=\
1273    Some input files additionally use internal proprietary API that may be removed in a future release.
1274
1275# Notes related to annotation processing
1276
1277# Print a client-generated note; assumed to be localized, no translation required
1278# 0: string
1279compiler.note.proc.messager=\
1280    {0}
1281
1282#####
1283
1284# 0: number
1285compiler.misc.count.error=\
1286    {0} error
1287
1288# 0: number
1289compiler.misc.count.error.plural=\
1290    {0} errors
1291
1292# 0: number
1293compiler.misc.count.warn=\
1294    {0} warning
1295
1296# 0: number
1297compiler.misc.count.warn.plural=\
1298    {0} warnings
1299
1300compiler.misc.version.not.available=\
1301    (version info not available)
1302
1303## extra output when using -verbose (JavaCompiler)
1304
1305# 0: symbol
1306compiler.misc.verbose.checking.attribution=\
1307    [checking {0}]
1308
1309# 0: string
1310compiler.misc.verbose.parsing.done=\
1311    [parsing completed {0}ms]
1312
1313# 0: file name
1314compiler.misc.verbose.parsing.started=\
1315    [parsing started {0}]
1316
1317# 0: string
1318compiler.misc.verbose.total=\
1319    [total {0}ms]
1320
1321# 0: file name
1322compiler.misc.verbose.wrote.file=\
1323    [wrote {0}]
1324
1325## extra output when using -verbose (Retro)
1326compiler.misc.verbose.retro=\
1327    [retrofitting {0}]
1328
1329compiler.misc.verbose.retro.with=\
1330    \tretrofitting {0} with {1}
1331
1332compiler.misc.verbose.retro.with.list=\
1333    \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1334
1335## extra output when using -verbose (code/ClassReader)
1336# 0: string
1337compiler.misc.verbose.loading=\
1338    [loading {0}]
1339
1340# 0: string
1341compiler.misc.verbose.sourcepath=\
1342    [search path for source files: {0}]
1343
1344# 0: string
1345compiler.misc.verbose.classpath=\
1346    [search path for class files: {0}]
1347
1348## extra output when using -checkclassfile (code/ClassReader)
1349compiler.misc.ccf.found.later.version=\
1350    class file has later version than expected: {0}
1351
1352compiler.misc.ccf.unrecognized.attribute=\
1353    unrecognized attribute: {0}
1354
1355## extra output when using -prompt (util/Log)
1356compiler.misc.resume.abort=\
1357    R)esume, A)bort>
1358
1359#####
1360
1361##
1362## warnings
1363##
1364
1365## All warning messages are preceded by the following string.
1366compiler.warn.warning=\
1367    warning:\u0020
1368
1369## Warning messages may also include the following prefix to identify a
1370## lint option
1371# 0: option name
1372compiler.warn.lintOption=\
1373    [{0}]\u0020
1374
1375# 0: symbol
1376compiler.warn.constant.SVUID=\
1377    serialVersionUID must be constant in class {0}
1378
1379# 0: file name
1380compiler.warn.dir.path.element.not.found=\
1381    bad path element "{0}": no such directory
1382
1383compiler.warn.finally.cannot.complete=\
1384    finally clause cannot complete normally
1385
1386# 0: symbol, 1: symbol
1387compiler.warn.has.been.deprecated=\
1388    {0} in {1} has been deprecated
1389
1390# 0: symbol
1391compiler.warn.sun.proprietary=\
1392    {0} is internal proprietary API and may be removed in a future release
1393
1394compiler.warn.illegal.char.for.encoding=\
1395    unmappable character for encoding {0}
1396
1397# 0: symbol
1398compiler.warn.improper.SVUID=\
1399    serialVersionUID must be declared static final in class {0}
1400
1401# 0: type, 1: type
1402compiler.warn.inexact.non-varargs.call=\
1403    non-varargs call of varargs method with inexact argument type for last parameter;\n\
1404    cast to {0} for a varargs call\n\
1405    cast to {1} for a non-varargs call and to suppress this warning
1406
1407# 0: list of type
1408compiler.warn.unreachable.catch=\
1409    unreachable catch clause\n\
1410    thrown type {0} has already been caught
1411
1412# 0: list of type
1413compiler.warn.unreachable.catch.1=\
1414    unreachable catch clause\n\
1415    thrown types {0} have already been caught
1416
1417# 0: symbol
1418compiler.warn.long.SVUID=\
1419    serialVersionUID must be of type long in class {0}
1420
1421# 0: symbol
1422compiler.warn.missing.SVUID=\
1423    serializable class {0} has no definition of serialVersionUID
1424
1425# 0: symbol, 1: symbol, 2: symbol, 3: symbol
1426compiler.warn.potentially.ambiguous.overload=\
1427    {0} in {1} is potentially ambiguous with {2} in {3}
1428
1429# 0: message segment
1430compiler.warn.override.varargs.missing=\
1431    {0}; overridden method has no ''...''
1432
1433# 0: message segment
1434compiler.warn.override.varargs.extra=\
1435    {0}; overriding method is missing ''...''
1436
1437compiler.warn.override.bridge=\
1438    {0}; overridden method is a bridge method
1439
1440# 0: symbol
1441compiler.warn.pkg-info.already.seen=\
1442    a package-info.java file has already been seen for package {0}
1443
1444# 0: file name
1445compiler.warn.path.element.not.found=\
1446    bad path element "{0}": no such file or directory
1447
1448compiler.warn.possible.fall-through.into.case=\
1449    possible fall-through into case
1450
1451# 0: type
1452compiler.warn.redundant.cast=\
1453    redundant cast to {0}
1454
1455# 0: number
1456compiler.warn.position.overflow=\
1457    Position encoding overflows at line {0}
1458
1459# 0: file name, 1: number, 2: number
1460compiler.warn.big.major.version=\
1461    {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1462    It is recommended that the compiler be upgraded.
1463
1464# 0: symbol kind, 1: symbol
1465compiler.warn.static.not.qualified.by.type=\
1466    static {0} should be qualified by type name, {1}, instead of by an expression
1467
1468# 0: string
1469compiler.warn.source.no.bootclasspath=\
1470    bootstrap class path not set in conjunction with -source {0}
1471
1472# 0: string
1473compiler.warn.option.obsolete.source=\
1474    source value {0} is obsolete and will be removed in a future release
1475
1476# 0: string
1477compiler.warn.option.obsolete.target=\
1478    target value {0} is obsolete and will be removed in a future release
1479
1480# 0: string, 1: string
1481compiler.err.option.removed.source=\
1482    Source option {0} is no longer supported. Use {1} or later.
1483
1484# 0: string, 1: string
1485compiler.err.option.removed.target=\
1486    Target option {0} is no longer supported. Use {1} or later.
1487
1488compiler.warn.option.obsolete.suppression=\
1489    To suppress warnings about obsolete options, use -Xlint:-options.
1490
1491# 0: name, 1: number, 2: number, 3: number, 4: number
1492compiler.warn.future.attr=\
1493    {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1494
1495# Warnings related to annotation processing
1496# 0: name
1497compiler.warn.proc.package.does.not.exist=\
1498    package {0} does not exist
1499
1500# 0: name
1501compiler.warn.proc.file.reopening=\
1502    Attempt to create a file for ''{0}'' multiple times
1503
1504# 0: name
1505compiler.warn.proc.type.already.exists=\
1506    A file for type ''{0}'' already exists on the sourcepath or classpath
1507
1508# 0: name
1509compiler.warn.proc.type.recreate=\
1510    Attempt to create a file for type ''{0}'' multiple times
1511
1512# 0: string
1513compiler.warn.proc.illegal.file.name=\
1514    Cannot create file for illegal name ''{0}''.
1515
1516# 0: string, 1: string
1517compiler.warn.proc.suspicious.class.name=\
1518    Creating file for a type whose name ends in {1}: ''{0}''
1519
1520# 0: name
1521compiler.warn.proc.file.create.last.round=\
1522    File for type ''{0}'' created in the last round will not be subject to annotation processing.
1523
1524# 0: string, 1: string
1525compiler.warn.proc.malformed.supported.string=\
1526    Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1527
1528# 0: set of string
1529compiler.warn.proc.annotations.without.processors=\
1530    No processor claimed any of these annotations: {0}
1531
1532# 0: source version, 1: string, 2: string
1533compiler.warn.proc.processor.incompatible.source.version=\
1534    Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1535
1536compiler.warn.proc.proc-only.requested.no.procs=\
1537    Annotation processing without compilation requested but no processors were found.
1538
1539compiler.warn.proc.use.implicit=\
1540    Implicitly compiled files were not subject to annotation processing.\n\
1541    Use -implicit to specify a policy for implicit compilation.
1542
1543compiler.warn.proc.use.proc.or.implicit=\
1544    Implicitly compiled files were not subject to annotation processing.\n\
1545    Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1546
1547# Print a client-generated warning; assumed to be localized, no translation required
1548# 0: string
1549compiler.warn.proc.messager=\
1550    {0}
1551
1552# 0: set of name
1553compiler.warn.proc.unclosed.type.files=\
1554    Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1555
1556# 0: string
1557compiler.warn.proc.unmatched.processor.options=\
1558    The following options were not recognized by any processor: ''{0}''
1559
1560compiler.warn.try.explicit.close.call=\
1561    explicit call to close() on an auto-closeable resource
1562
1563# 0: symbol
1564compiler.warn.try.resource.not.referenced=\
1565    auto-closeable resource {0} is never referenced in body of corresponding try statement
1566
1567# 0: type
1568compiler.warn.try.resource.throws.interrupted.exc=\
1569    auto-closeable resource {0} has a member method close() that could throw InterruptedException
1570
1571compiler.warn.unchecked.assign=\
1572    unchecked assignment: {0} to {1}
1573
1574# 0: symbol, 1: type
1575compiler.warn.unchecked.assign.to.var=\
1576    unchecked assignment to variable {0} as member of raw type {1}
1577
1578# 0: symbol, 1: type
1579compiler.warn.unchecked.call.mbr.of.raw.type=\
1580    unchecked call to {0} as a member of the raw type {1}
1581
1582compiler.warn.unchecked.cast.to.type=\
1583    unchecked cast to type {0}
1584
1585# 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1586compiler.warn.unchecked.meth.invocation.applied=\
1587    unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1588    required: {2}\n\
1589    found: {3}
1590
1591# 0: type
1592compiler.warn.unchecked.generic.array.creation=\
1593    unchecked generic array creation for varargs parameter of type {0}
1594
1595# 0: type
1596compiler.warn.unchecked.varargs.non.reifiable.type=\
1597    Possible heap pollution from parameterized vararg type {0}
1598
1599# 0: symbol
1600compiler.warn.varargs.unsafe.use.varargs.param=\
1601    Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1602
1603compiler.warn.missing.deprecated.annotation=\
1604    deprecated item is not annotated with @Deprecated
1605
1606compiler.warn.invalid.archive.file=\
1607    Unexpected file on path: {0}
1608
1609compiler.warn.unexpected.archive.file=\
1610    Unexpected extension for archive file: {0}
1611
1612compiler.warn.div.zero=\
1613    division by zero
1614
1615compiler.warn.empty.if=\
1616    empty statement after if
1617
1618compiler.warn.annotation.method.not.found=\
1619    Cannot find annotation method ''{1}()'' in type ''{0}''
1620
1621compiler.warn.annotation.method.not.found.reason=\
1622    Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1623
1624# 0: symbol, 1: name
1625compiler.warn.unknown.enum.constant=\
1626    unknown enum constant {1}.{2}
1627
1628# 0: symbol, 1: name, 2: message segment
1629compiler.warn.unknown.enum.constant.reason=\
1630    unknown enum constant {1}.{2}\n\
1631    reason: {3}
1632
1633# 0: type, 1: type
1634compiler.warn.raw.class.use=\
1635    found raw type: {0}\n\
1636    missing type arguments for generic class {1}
1637
1638# 0: unused, 1: unused
1639compiler.warn.diamond.redundant.args=\
1640    Redundant type arguments in new expression (use diamond operator instead).
1641
1642# 0: type, 1: list of type
1643compiler.warn.diamond.redundant.args.1=\
1644    Redundant type arguments in new expression (use diamond operator instead).\n\
1645    explicit: {0}\n\
1646    inferred: {1}
1647
1648compiler.warn.potential.lambda.found=\
1649    This anonymous inner class creation can be turned into a lambda expression.
1650
1651compiler.warn.method.redundant.typeargs=\
1652    Redundant type arguments in method call.
1653
1654# 0: symbol, 1: message segment
1655compiler.warn.varargs.redundant.trustme.anno=\
1656    Redundant {0} annotation. {1}
1657
1658# 0: symbol
1659compiler.warn.access.to.sensitive.member.from.serializable.element=\
1660    access to sensitive member {0} from serializable element can be publicly accessible to untrusted code
1661
1662#####
1663
1664## The following are tokens which are non-terminals in the language. They should
1665## be named as JLS3 calls them when translated to the appropriate language.
1666compiler.misc.token.identifier=\
1667    <identifier>
1668
1669compiler.misc.token.character=\
1670    <character>
1671
1672compiler.misc.token.string=\
1673    <string>
1674
1675compiler.misc.token.integer=\
1676    <integer>
1677
1678compiler.misc.token.long-integer=\
1679    <long integer>
1680
1681compiler.misc.token.float=\
1682    <float>
1683
1684compiler.misc.token.double=\
1685    <double>
1686
1687compiler.misc.token.bad-symbol=\
1688    <bad symbol>
1689
1690compiler.misc.token.end-of-input=\
1691    <end of input>
1692
1693## The argument to the following string will always be one of the following:
1694## 1. one of the above non-terminals
1695## 2. a keyword (JLS1.8)
1696## 3. a boolean literal (JLS3.10.3)
1697## 4. the null literal (JLS3.10.7)
1698## 5. a Java separator (JLS3.11)
1699## 6. an operator (JLS3.12)
1700##
1701## This is the only place these tokens will be used.
1702# 0: token
1703compiler.err.expected=\
1704    {0} expected
1705
1706# 0: token, 1: token
1707compiler.err.expected2=\
1708    {0} or {1} expected
1709
1710# 0: token, 1: token, 2: token
1711compiler.err.expected3=\
1712    {0}, {1}, or {2} expected
1713
1714compiler.err.premature.eof=\
1715    reached end of file while parsing
1716
1717## The following are related in form, but do not easily fit the above paradigm.
1718compiler.err.dot.class.expected=\
1719    ''.class'' expected
1720
1721## The argument to this string will always be either 'case' or 'default'.
1722# 0: token
1723compiler.err.orphaned=\
1724    orphaned {0}
1725
1726# 0: name
1727compiler.misc.anonymous.class=\
1728    <anonymous {0}>
1729
1730# 0: name, 1: type
1731compiler.misc.type.captureof=\
1732    capture#{0} of {1}
1733
1734compiler.misc.type.captureof.1=\
1735    capture#{0}
1736
1737compiler.misc.type.none=\
1738    <none>
1739
1740compiler.misc.unnamed.package=\
1741    unnamed package
1742
1743#####
1744
1745# 0: symbol, 1: message segment
1746compiler.err.cant.access=\
1747    cannot access {0}\n\
1748    {1}
1749
1750# 0: class name
1751compiler.misc.bad.class.file=\
1752    class file is invalid for class {0}
1753
1754# 0: file name, 1: expected CP entry type, 2: constant pool index
1755compiler.misc.bad.const.pool.entry=\
1756    bad constant pool entry in {0}\n\
1757    expected {1} at index {2}
1758
1759# 0: file name, 1: message segment
1760compiler.misc.bad.class.file.header=\
1761    bad class file: {0}\n\
1762    {1}\n\
1763    Please remove or make sure it appears in the correct subdirectory of the classpath.
1764
1765# 0: file name, 1: message segment
1766compiler.misc.bad.source.file.header=\
1767    bad source file: {0}\n\
1768    {1}\n\
1769    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1770
1771## The following are all possible strings for the second argument ({1}) of the
1772## above strings.
1773compiler.misc.bad.class.signature=\
1774    bad class signature: {0}
1775
1776#0: symbol, 1: symbol
1777compiler.misc.bad.enclosing.class=\
1778    bad enclosing class for {0}: {1}
1779
1780# 0: symbol
1781compiler.misc.bad.enclosing.method=\
1782    bad enclosing method attribute for class {0}
1783
1784compiler.misc.bad.runtime.invisible.param.annotations=\
1785    bad RuntimeInvisibleParameterAnnotations attribute: {0}
1786
1787compiler.misc.bad.const.pool.tag=\
1788    bad constant pool tag: {0}
1789
1790compiler.misc.bad.const.pool.tag.at=\
1791    bad constant pool tag: {0} at {1}
1792
1793compiler.misc.bad.signature=\
1794    bad signature: {0}
1795
1796compiler.misc.bad.type.annotation.value=\
1797    bad type annotation target type value: {0}
1798
1799compiler.misc.class.file.wrong.class=\
1800    class file contains wrong class: {0}
1801
1802compiler.misc.class.file.not.found=\
1803    class file for {0} not found
1804
1805# 0: classfile major version, 1: classfile minor version
1806compiler.misc.invalid.default.interface=\
1807    default method found in version {0}.{1} classfile
1808
1809# 0: classfile major version, 1: classfile minor version
1810compiler.misc.invalid.static.interface=\
1811    static method found in version {0}.{1} classfile
1812
1813# 0: name
1814compiler.misc.file.doesnt.contain.class=\
1815    file does not contain class {0}
1816
1817compiler.misc.file.does.not.contain.package=\
1818    file does not contain package {0}
1819
1820compiler.misc.illegal.start.of.class.file=\
1821    illegal start of class file
1822
1823compiler.misc.unable.to.access.file=\
1824    unable to access file: {0}
1825
1826compiler.misc.unicode.str.not.supported=\
1827    unicode string in class file not supported
1828
1829compiler.misc.undecl.type.var=\
1830    undeclared type variable: {0}
1831
1832compiler.misc.wrong.version=\
1833    class file has wrong version {0}.{1}, should be {2}.{3}
1834
1835#####
1836
1837# 0: type, 1: type or symbol
1838compiler.err.not.within.bounds=\
1839    type argument {0} is not within bounds of type-variable {1}
1840
1841## The following are all possible strings for the second argument ({1}) of the
1842## above string.
1843
1844## none yet...
1845
1846#####
1847
1848# 0: message segment
1849compiler.err.prob.found.req=\
1850    incompatible types: {0}
1851
1852# 0: message segment
1853compiler.misc.prob.found.req=\
1854    incompatible types: {0}
1855
1856# 0: message segment, 1: type, 2: type
1857compiler.warn.prob.found.req=\
1858    {0}\n\
1859    required: {2}\n\
1860    found:    {1}
1861
1862# 0: type, 1: type
1863compiler.misc.inconvertible.types=\
1864    {0} cannot be converted to {1}
1865
1866# 0: type, 1: type
1867compiler.misc.possible.loss.of.precision=\
1868    possible lossy conversion from {0} to {1}
1869
1870compiler.misc.unchecked.assign=\
1871    unchecked conversion
1872
1873# compiler.misc.storecheck=\
1874#     assignment might cause later store checks to fail
1875# compiler.misc.unchecked=\
1876#     assigned array cannot dynamically check its stores
1877compiler.misc.unchecked.cast.to.type=\
1878    unchecked cast
1879
1880# compiler.err.star.expected=\
1881#     ''*'' expected
1882# compiler.err.no.elem.type=\
1883#     \[\*\] cannot have a type
1884
1885# 0: type
1886compiler.misc.try.not.applicable.to.type=\
1887    try-with-resources not applicable to variable type\n\
1888    ({0})
1889
1890#####
1891
1892# 0: message segment or type, 1: message segment
1893compiler.err.type.found.req=\
1894    unexpected type\n\
1895    required: {1}\n\
1896    found:    {0}
1897
1898## The following are all possible strings for the first argument ({0}) of the
1899## above string.
1900compiler.misc.type.req.class=\
1901    class
1902
1903compiler.misc.type.req.class.array=\
1904    class or array
1905
1906compiler.misc.type.req.array.or.iterable=\
1907    array or java.lang.Iterable
1908
1909compiler.misc.type.req.ref=\
1910    reference
1911
1912compiler.misc.type.req.exact=\
1913    class or interface without bounds
1914
1915# 0: type
1916compiler.misc.type.parameter=\
1917    type parameter {0}
1918
1919#####
1920
1921## The following are all possible strings for the last argument of all those
1922## diagnostics whose key ends in ".1"
1923
1924# 0: type, 1: list of type
1925compiler.misc.no.unique.maximal.instance.exists=\
1926    no unique maximal instance exists for type variable {0} with upper bounds {1}
1927
1928compiler.misc.no.unique.minimal.instance.exists=\
1929    no unique minimal instance exists for type variable {0} with lower bounds {1}
1930
1931# 0: type, 1: list of type
1932compiler.misc.incompatible.upper.bounds=\
1933    inference variable {0} has incompatible upper bounds {1}
1934
1935# 0: type, 1: list of type, 2: list of type
1936compiler.misc.incompatible.eq.upper.bounds=\
1937    inference variable {0} has incompatible bounds\n\
1938    equality constraints: {1}\n\
1939    upper bounds: {2}
1940
1941# 0: type, 1: list of type, 2: list of type
1942compiler.misc.incompatible.eq.lower.bounds=\
1943    inference variable {0} has incompatible bounds\n\
1944    equality constraints: {1}\n\
1945    lower bounds: {2}
1946
1947# 0: list of type, 1: type, 2: type
1948compiler.misc.infer.no.conforming.instance.exists=\
1949    no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1950
1951# 0: list of type, 1: message segment
1952compiler.misc.infer.no.conforming.assignment.exists=\
1953    cannot infer type-variable(s) {0}\n\
1954    (argument mismatch; {1})
1955
1956# 0: list of type
1957compiler.misc.infer.arg.length.mismatch=\
1958    cannot infer type-variable(s) {0}\n\
1959    (actual and formal argument lists differ in length)
1960
1961# 0: list of type, 1: message segment
1962compiler.misc.infer.varargs.argument.mismatch=\
1963    cannot infer type-variable(s) {0}\n\
1964    (varargs mismatch; {1})
1965
1966# 0: type, 1: list of type
1967compiler.misc.inferred.do.not.conform.to.upper.bounds=\
1968    inferred type does not conform to upper bound(s)\n\
1969    inferred: {0}\n\
1970    upper bound(s): {1}
1971
1972# 0: type, 1: list of type
1973compiler.misc.inferred.do.not.conform.to.lower.bounds=\
1974    inferred type does not conform to lower bound(s)\n\
1975    inferred: {0}\n\
1976    lower bound(s): {1}
1977
1978# 0: type, 1: list of type
1979compiler.misc.inferred.do.not.conform.to.eq.bounds=\
1980    inferred type does not conform to equality constraint(s)\n\
1981    inferred: {0}\n\
1982    equality constraints(s): {1}
1983
1984# 0: symbol
1985compiler.misc.diamond=\
1986    {0}<>
1987
1988# 0: type
1989compiler.misc.diamond.non.generic=\
1990    cannot use ''<>'' with non-generic class {0}
1991
1992# 0: unused
1993compiler.misc.diamond.and.explicit.params=\
1994    cannot use ''<>'' with explicit type parameters for constructor
1995
1996# 0: unused
1997compiler.misc.mref.infer.and.explicit.params=\
1998    cannot use raw constructor reference with explicit type parameters for constructor
1999
2000# 0: type, 1: list of type
2001compiler.misc.explicit.param.do.not.conform.to.bounds=\
2002    explicit type argument {0} does not conform to declared bound(s) {1}
2003
2004compiler.misc.arg.length.mismatch=\
2005    actual and formal argument lists differ in length
2006
2007# 0: message segment
2008compiler.misc.no.conforming.assignment.exists=\
2009    argument mismatch; {0}
2010
2011# 0: message segment
2012compiler.misc.varargs.argument.mismatch=\
2013    varargs mismatch; {0}
2014
2015#####
2016
2017# 0: symbol or type, 1: file name
2018compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
2019    auxiliary class {0} in {1} should not be accessed from outside its own source file
2020
2021## The first argument ({0}) is a "kindname".
2022# 0: symbol kind, 1: symbol, 2: symbol
2023compiler.err.abstract.cant.be.accessed.directly=\
2024    abstract {0} {1} in {2} cannot be accessed directly
2025
2026## The first argument ({0}) is a "kindname".
2027# 0: symbol kind, 1: symbol
2028compiler.err.non-static.cant.be.ref=\
2029    non-static {0} {1} cannot be referenced from a static context
2030
2031# 0: symbol kind, 1: symbol
2032compiler.misc.non-static.cant.be.ref=\
2033    non-static {0} {1} cannot be referenced from a static context
2034
2035# 0: symbol kind, 1: symbol
2036compiler.misc.static.method.in.unbound.lookup=\
2037    static {0} {1} found in unbound lookup
2038
2039## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
2040## of kindnames (the list should be identical to that provided in source.
2041compiler.err.unexpected.type=\
2042    unexpected type\n\
2043    required: {0}\n\
2044    found:    {1}
2045
2046compiler.err.unexpected.lambda=\
2047   lambda expression not expected here
2048
2049compiler.err.unexpected.mref=\
2050   method reference not expected here
2051
2052## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
2053## The second argument {1} is the non-resolved symbol
2054## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
2055## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
2056# 0: symbol kind, 1: name, 2: unused, 3: unused
2057compiler.err.cant.resolve=\
2058    cannot find symbol\n\
2059    symbol: {0} {1}
2060
2061# 0: symbol kind, 1: name, 2: unused, 3: list of type
2062compiler.err.cant.resolve.args=\
2063    cannot find symbol\n\
2064    symbol: {0} {1}({3})
2065
2066# 0: symbol kind, 1: name, 2: list of type, 3: list of type
2067compiler.err.cant.resolve.args.params=\
2068    cannot find symbol\n\
2069    symbol: {0} <{2}>{1}({3})
2070
2071## arguments from {0} to {3} have the same meaning as above
2072## The fifth argument {4} is a location subdiagnostic (see below)
2073# 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
2074compiler.err.cant.resolve.location=\
2075    cannot find symbol\n\
2076    symbol:   {0} {1}\n\
2077    location: {4}
2078
2079# 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2080compiler.err.cant.resolve.location.args=\
2081    cannot find symbol\n\
2082    symbol:   {0} {1}({3})\n\
2083    location: {4}
2084
2085# 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2086compiler.err.cant.resolve.location.args.params=\
2087    cannot find symbol\n\
2088    symbol:   {0} <{2}>{1}({3})\n\
2089    location: {4}
2090
2091### Following are replicated/used for method reference diagnostics
2092
2093# 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2094compiler.misc.cant.resolve.location.args=\
2095    cannot find symbol\n\
2096    symbol:   {0} {1}({3})\n\
2097    location: {4}
2098
2099# 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2100compiler.misc.cant.resolve.location.args.params=\
2101    cannot find symbol\n\
2102    symbol:   {0} <{2}>{1}({3})\n\
2103    location: {4}
2104
2105##a location subdiagnostic is composed as follows:
2106## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
2107## The second argument {1} is the location name
2108## The third argument {2} is the location type (only when {1} is a variable name)
2109
2110# 0: symbol kind, 1: type or symbol, 2: unused
2111compiler.misc.location=\
2112    {0} {1}
2113
2114# 0: symbol kind, 1: symbol, 2: type
2115compiler.misc.location.1=\
2116    {0} {1} of type {2}
2117
2118## The following are all possible string for "kindname".
2119## They should be called whatever the JLS calls them after it been translated
2120## to the appropriate language.
2121# compiler.misc.kindname.constructor=\
2122#     static member
2123compiler.misc.kindname.annotation=\
2124    @interface
2125
2126compiler.misc.kindname.constructor=\
2127    constructor
2128
2129compiler.misc.kindname.enum=\
2130    enum
2131
2132compiler.misc.kindname.interface=\
2133    interface
2134
2135compiler.misc.kindname.static=\
2136    static
2137
2138compiler.misc.kindname.type.variable=\
2139    type variable
2140
2141compiler.misc.kindname.type.variable.bound=\
2142    bound of type variable
2143
2144compiler.misc.kindname.variable=\
2145    variable
2146
2147compiler.misc.kindname.value=\
2148    value
2149
2150compiler.misc.kindname.method=\
2151    method
2152
2153compiler.misc.kindname.class=\
2154    class
2155
2156compiler.misc.kindname.package=\
2157    package
2158
2159compiler.misc.kindname.static.init=\
2160    static initializer
2161
2162compiler.misc.kindname.instance.init=\
2163    instance initializer
2164
2165#####
2166
2167compiler.misc.no.args=\
2168    no arguments
2169
2170# 0: message segment
2171compiler.err.override.static=\
2172    {0}\n\
2173    overriding method is static
2174
2175# 0: message segment, 1: set of modifier
2176compiler.err.override.meth=\
2177    {0}\n\
2178    overridden method is {1}
2179
2180# 0: message segment, 1: type
2181compiler.err.override.meth.doesnt.throw=\
2182    {0}\n\
2183    overridden method does not throw {1}
2184
2185# In the following string {1} is a space separated list of Java Keywords, as
2186# they would have been declared in the source code
2187# 0: message segment, 1: set of modifier
2188compiler.err.override.weaker.access=\
2189    {0}\n\
2190    attempting to assign weaker access privileges; was {1}
2191
2192# 0: message segment, 1: type, 2: type
2193compiler.err.override.incompatible.ret=\
2194    {0}\n\
2195    return type {1} is not compatible with {2}
2196
2197# 0: message segment, 1: type, 2: type
2198compiler.warn.override.unchecked.ret=\
2199    {0}\n\
2200    return type requires unchecked conversion from {1} to {2}
2201
2202# 0: message segment, 1: type
2203compiler.warn.override.unchecked.thrown=\
2204    {0}\n\
2205    overridden method does not throw {1}
2206
2207# 0: symbol
2208compiler.warn.override.equals.but.not.hashcode=\
2209    Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
2210
2211## The following are all possible strings for the first argument ({0}) of the
2212## above strings.
2213# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2214compiler.misc.cant.override=\
2215    {0} in {1} cannot override {2} in {3}
2216
2217# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2218compiler.misc.cant.implement=\
2219    {0} in {1} cannot implement {2} in {3}
2220
2221# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2222compiler.misc.clashes.with=\
2223    {0} in {1} clashes with {2} in {3}
2224
2225# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2226compiler.misc.unchecked.override=\
2227    {0} in {1} overrides {2} in {3}
2228
2229# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2230compiler.misc.unchecked.implement=\
2231    {0} in {1} implements {2} in {3}
2232
2233# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2234compiler.misc.unchecked.clash.with=\
2235    {0} in {1} overrides {2} in {3}
2236
2237# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2238compiler.misc.varargs.override=\
2239    {0} in {1} overrides {2} in {3}
2240
2241# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2242compiler.misc.varargs.implement=\
2243    {0} in {1} implements {2} in {3}
2244
2245# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2246compiler.misc.varargs.clash.with=\
2247    {0} in {1} overrides {2} in {3}
2248
2249# 0: unused
2250compiler.misc.diamond.and.anon.class=\
2251    cannot use ''<>'' with anonymous inner classes
2252
2253# 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
2254compiler.misc.inapplicable.method=\
2255    {0} {1}.{2} is not applicable\n\
2256    ({3})
2257
2258########################################
2259# Diagnostics for language feature changes
2260########################################
2261# 0: string
2262compiler.err.unsupported.binary.lit=\
2263    binary literals are not supported in -source {0}\n\
2264    (use -source 7 or higher to enable binary literals)
2265
2266# 0: string
2267compiler.err.unsupported.underscore.lit=\
2268    underscores in literals are not supported in -source {0}\n\
2269    (use -source 7 or higher to enable underscores in literals)
2270
2271# 0: string
2272compiler.err.try.with.resources.not.supported.in.source=\
2273    try-with-resources is not supported in -source {0}\n\
2274    (use -source 7 or higher to enable try-with-resources)
2275
2276# 0: string
2277compiler.err.var.in.try.with.resources.not.supported.in.source=\
2278    variables in try-with-resources not supported in -source {0}\n\
2279    (use -source 9 or higher to enable variables in try-with-resources)
2280
2281compiler.warn.underscore.as.identifier=\
2282    as of release 9, ''_'' is a keyword, and may not be used as an identifier
2283
2284compiler.err.underscore.as.identifier=\
2285    as of release 9, ''_'' is a keyword, and may not be used as an identifier
2286
2287compiler.err.underscore.as.identifier.in.lambda=\
2288    ''_'' used as an identifier\n\
2289    (use of ''_'' as an identifier is forbidden for lambda parameters)
2290
2291compiler.err.enum.as.identifier=\
2292    as of release 5, ''enum'' is a keyword, and may not be used as an identifier
2293
2294compiler.err.assert.as.identifier=\
2295    as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
2296
2297# TODO 308: make a better error message
2298compiler.err.this.as.identifier=\
2299    as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
2300
2301# 0: symbol
2302compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
2303    receiver parameter not applicable for constructor of top-level class
2304
2305# TODO 308: make a better error message
2306# 0: symbol
2307compiler.err.cant.type.annotate.scoping.1=\
2308    scoping construct cannot be annotated with type-use annotation: {0}
2309
2310# TODO 308: make a better error message
2311# 0: list of symbol
2312compiler.err.cant.type.annotate.scoping=\
2313    scoping construct cannot be annotated with type-use annotations: {0}
2314
2315# 0: type, 1: type
2316compiler.err.incorrect.receiver.name=\
2317    the receiver name does not match the enclosing class type\n\
2318    required: {0}\n\
2319    found: {1}
2320
2321# 0: type, 1: type
2322compiler.err.incorrect.receiver.type=\
2323    the receiver type does not match the enclosing class type\n\
2324    required: {0}\n\
2325    found: {1}
2326
2327# 0: type, 1: type
2328compiler.err.incorrect.constructor.receiver.type=\
2329    the receiver type does not match the enclosing outer class type\n\
2330    required: {0}\n\
2331    found: {1}
2332
2333# 0: type, 1: type
2334compiler.err.incorrect.constructor.receiver.name=\
2335    the receiver name does not match the enclosing outer class type\n\
2336    required: {0}\n\
2337    found: {1}
2338
2339compiler.err.no.annotations.on.dot.class=\
2340    no annotations are allowed in the type of a class literal
2341
2342# 0: string
2343compiler.err.type.annotations.not.supported.in.source=\
2344    type annotations are not supported in -source {0}\n\
2345(use -source 8 or higher to enable type annotations)
2346
2347# 0: string
2348compiler.err.annotations.after.type.params.not.supported.in.source=\
2349    annotations after method type parameters are not supported in -source {0}\n\
2350(use -source 8 or higher to enable annotations after method type parameters)
2351
2352# 0: string
2353compiler.err.repeatable.annotations.not.supported.in.source=\
2354    repeated annotations are not supported in -source {0}\n\
2355(use -source 8 or higher to enable repeated annotations)
2356
2357# 0: string
2358compiler.err.diamond.not.supported.in.source=\
2359    diamond operator is not supported in -source {0}\n\
2360    (use -source 7 or higher to enable diamond operator)
2361
2362# 0: string
2363compiler.err.multicatch.not.supported.in.source=\
2364    multi-catch statement is not supported in -source {0}\n\
2365    (use -source 7 or higher to enable multi-catch statement)
2366
2367# 0: string
2368compiler.err.string.switch.not.supported.in.source=\
2369    strings in switch are not supported in -source {0}\n\
2370    (use -source 7 or higher to enable strings in switch)
2371
2372# 0: string
2373compiler.err.lambda.not.supported.in.source=\
2374    lambda expressions are not supported in -source {0}\n\
2375    (use -source 8 or higher to enable lambda expressions)
2376
2377# 0: string
2378compiler.err.method.references.not.supported.in.source=\
2379    method references are not supported in -source {0}\n\
2380    (use -source 8 or higher to enable method references)
2381
2382# 0: string
2383compiler.err.default.methods.not.supported.in.source=\
2384    default methods are not supported in -source {0}\n\
2385    (use -source 8 or higher to enable default methods)
2386
2387# 0: string
2388compiler.err.intersection.types.in.cast.not.supported.in.source=\
2389    intersection types in cast are not supported in -source {0}\n\
2390    (use -source 8 or higher to enable default methods)
2391
2392# 0: string
2393compiler.err.static.intf.methods.not.supported.in.source=\
2394    static interface methods are not supported in -source {0}\n\
2395    (use -source 8 or higher to enable static interface methods)
2396
2397# 0: string
2398compiler.err.static.intf.method.invoke.not.supported.in.source=\
2399    static interface method invocations are not supported in -source {0}\n\
2400    (use -source 8 or higher to enable static interface method invocations)
2401
2402########################################
2403# Diagnostics for verbose resolution
2404# used by Resolve (debug only)
2405########################################
2406
2407# 0: number, 1: symbol, 2: unused
2408compiler.misc.applicable.method.found=\
2409    #{0} applicable method found: {1}
2410
2411# 0: number, 1: symbol, 2: message segment
2412compiler.misc.applicable.method.found.1=\
2413    #{0} applicable method found: {1}\n\
2414    ({2})
2415
2416# 0: number, 1: symbol, 2: message segment
2417compiler.misc.not.applicable.method.found=\
2418    #{0} not applicable method found: {1}\n\
2419    ({2})
2420
2421# 0: type
2422compiler.misc.partial.inst.sig=\
2423    partially instantiated to: {0}
2424
2425# 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2426compiler.note.verbose.resolve.multi=\
2427    resolving method {0} in type {1} to candidate {2}\n\
2428    phase: {3}\n\
2429    with actuals: {4}\n\
2430    with type-args: {5}\n\
2431    candidates:
2432
2433# 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
2434compiler.note.verbose.resolve.multi.1=\
2435    erroneous resolution for method {0} in type {1}\n\
2436    phase: {3}\n\
2437    with actuals: {4}\n\
2438    with type-args: {5}\n\
2439    candidates:
2440
2441# 0: symbol, 1: type, 2: type
2442compiler.note.deferred.method.inst=\
2443    Deferred instantiation of method {0}\n\
2444    instantiated signature: {1}\n\
2445    target-type: {2}
2446
2447########################################
2448# Diagnostics for where clause implementation
2449# used by the RichDiagnosticFormatter.
2450########################################
2451
2452compiler.misc.type.null=\
2453    <null>
2454
2455# X#n (where n is an int id) is disambiguated tvar name
2456# 0: name, 1: number
2457compiler.misc.type.var=\
2458    {0}#{1}
2459
2460# CAP#n (where n is an int id) is an abbreviation for 'captured type'
2461# 0: number
2462compiler.misc.captured.type=\
2463    CAP#{0}
2464
2465# <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2466# 0: number
2467compiler.misc.intersection.type=\
2468    INT#{0}
2469
2470# where clause for captured type: contains upper ('extends {1}') and lower
2471# ('super {2}') bound along with the wildcard that generated this captured type ({3})
2472# 0: type, 1: type, 2: type, 3: type
2473compiler.misc.where.captured=\
2474    {0} extends {1} super: {2} from capture of {3}
2475
2476# compact where clause for captured type: contains upper ('extends {1}') along
2477# with the wildcard that generated this captured type ({3})
2478# 0: type, 1: type, 2: unused, 3: type
2479compiler.misc.where.captured.1=\
2480    {0} extends {1} from capture of {3}
2481
2482# where clause for type variable: contains upper bound(s) ('extends {1}') along with
2483# the kindname ({2}) and location ({3}) in which the typevar has been declared
2484# 0: type, 1: list of type, 2: symbol kind, 3: symbol
2485compiler.misc.where.typevar=\
2486    {0} extends {1} declared in {2} {3}
2487
2488# compact where clause for type variable: contains the kindname ({2}) and location ({3})
2489# in which the typevar has been declared
2490# 0: type, 1: list of type, 2: symbol kind, 3: symbol
2491compiler.misc.where.typevar.1=\
2492    {0} declared in {2} {3}
2493
2494# where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2495# Since a fresh type-variable is synthetic - there's no location/kindname here.
2496# 0: type, 1: list of type
2497compiler.misc.where.fresh.typevar=\
2498    {0} extends {1}
2499
2500# where clause for type variable: contains all the upper bound(s) ('extends {1}')
2501# of this intersection type
2502# 0: type, 1: list of type
2503compiler.misc.where.intersection=\
2504    {0} extends {1}
2505
2506### Where clause headers ###
2507compiler.misc.where.description.captured=\
2508    where {0} is a fresh type-variable:
2509
2510# 0: set of type
2511compiler.misc.where.description.typevar=\
2512    where {0} is a type-variable:
2513
2514# 0: set of type
2515compiler.misc.where.description.intersection=\
2516    where {0} is an intersection type:
2517
2518# 0: set of type
2519compiler.misc.where.description.captured.1=\
2520    where {0} are fresh type-variables:
2521
2522# 0: set of type
2523compiler.misc.where.description.typevar.1=\
2524    where {0} are type-variables:
2525
2526compiler.misc.where.description.intersection.1=\
2527    where {0} are intersection types:
2528
2529###
2530# errors related to doc comments
2531
2532compiler.err.dc.bad.entity=\
2533    bad HTML entity
2534
2535compiler.err.dc.bad.gt=\
2536    bad use of ''>''
2537
2538compiler.err.dc.bad.inline.tag=\
2539    incorrect use of inline tag
2540
2541compiler.err.dc.identifier.expected=\
2542    identifier expected
2543
2544compiler.err.dc.malformed.html=\
2545    malformed HTML
2546
2547compiler.err.dc.missing.semicolon=\
2548    semicolon missing
2549
2550compiler.err.dc.no.content=\
2551    no content
2552
2553compiler.err.dc.no.tag.name=\
2554    no tag name after '@'
2555
2556compiler.err.dc.gt.expected=\
2557    ''>'' expected
2558
2559compiler.err.dc.ref.bad.parens=\
2560    '')'' missing in reference
2561
2562compiler.err.dc.ref.syntax.error=\
2563    syntax error in reference
2564
2565compiler.err.dc.ref.unexpected.input=\
2566    unexpected text
2567
2568compiler.err.dc.unexpected.content=\
2569    unexpected content
2570
2571compiler.err.dc.unterminated.inline.tag=\
2572    unterminated inline tag
2573
2574compiler.err.dc.unterminated.signature=\
2575    unterminated signature
2576
2577compiler.err.dc.unterminated.string=\
2578    unterminated string
2579
2580
2581