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