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