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