compiler.properties revision 3837:1089212e3333
1254721Semaste#
2254721Semaste# Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
3254721Semaste# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4254721Semaste#
5254721Semaste# This code is free software; you can redistribute it and/or modify it
6254721Semaste# under the terms of the GNU General Public License version 2 only, as
7254721Semaste# published by the Free Software Foundation.  Oracle designates this
8254721Semaste# particular file as subject to the "Classpath" exception as provided
9254721Semaste# by Oracle in the LICENSE file that accompanied this code.
10254721Semaste#
11254721Semaste# This code is distributed in the hope that it will be useful, but WITHOUT
12254721Semaste# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13254721Semaste# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14314564Sdim# version 2 for more details (a copy is included in the LICENSE file that
15254721Semaste# accompanied this code).
16254721Semaste#
17314564Sdim# You should have received a copy of the GNU General Public License version
18321369Sdim# 2 along with this work; if not, write to the Free Software Foundation,
19254721Semaste# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20254721Semaste#
21254721Semaste# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22254721Semaste# or visit www.oracle.com if you need additional information or have any
23314564Sdim# questions.
24314564Sdim#
25314564Sdim
26314564Sdim# Messages in this file which use "placeholders" for values (e.g. {0}, {1})
27314564Sdim# are preceded by a stylized comment describing the type of the corresponding
28254721Semaste# values.
29314564Sdim# The simple types currently in use are:
30314564Sdim#
31314564Sdim# boolean           true or false
32314564Sdim# diagnostic        a sub-message; see compiler.misc.*
33314564Sdim# fragment          similar to 'message segment', but with more specific type
34254721Semaste# modifier          a Java modifier; e.g. public, private, protected
35314564Sdim# file              a file URL
36314564Sdim# file object       a file URL - similar to 'file' but typically used for source/class files, hence more specific
37314564Sdim# name              a name, typically a Java identifier
38314564Sdim# number            an integer
39314564Sdim# option name       the name of a command line option
40314564Sdim# source version    a source version number, such as 1.5, 1.6, 1.7
41314564Sdim# string            a general string
42254721Semaste# symbol            the name of a declared type
43314564Sdim# symbol kind       the kind of a symbol (i.e. method, variable)
44314564Sdim# kind name         an informative description of the kind of a declaration; see compiler.misc.kindname.*
45314564Sdim# token             the name of a non-terminal in source code; see compiler.misc.token.*
46314564Sdim# type              a Java type; e.g. int, X, X<T>
47314564Sdim# object            a Java object (unspecified)
48254721Semaste# unused            the value is not used in this message
49314564Sdim#
50254721Semaste# The following compound types are also used:
51314564Sdim#
52314564Sdim# list of X         a comma-separated list of items; e.g. list of type
53254721Semaste# set of X          a comma-separated collection of items; e.g. set of modifier
54314564Sdim#
55254721Semaste# These may be composed:
56254721Semaste#
57321369Sdim# list of type or message segment
58321369Sdim#
59321369Sdim# The following type aliases are supported:
60314564Sdim#
61314564Sdim# message segment --> diagnostic or fragment
62314564Sdim# file name --> file or file object
63314564Sdim#
64314564Sdim# Custom comments are supported in parenthesis i.e.
65314564Sdim#
66314564Sdim# number (classfile major version)
67314564Sdim#
68314564Sdim# These comments are used internally in order to generate an enum-like class declaration containing
69314564Sdim# a method/field for each of the diagnostic keys listed here. Those methods/fields can then be used
70314564Sdim# by javac code to build diagnostics in a type-safe fashion.
71314564Sdim#
72314564Sdim# In addition, these comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
73314564Sdim# using info derived from the collected set of examples in test/tools/javac/diags/examples.
74314564Sdim# MessageInfo can also be run as a standalone utility providing more facilities
75314564Sdim# for manipulating this file. For more details, see MessageInfo.java.
76314564Sdim
77314564Sdim##
78314564Sdim## errors
79314564Sdim##
80314564Sdim
81314564Sdim# 0: symbol
82314564Sdimcompiler.err.abstract.cant.be.instantiated=\
83314564Sdim    {0} is abstract; cannot be instantiated
84314564Sdim
85314564Sdimcompiler.err.abstract.meth.cant.have.body=\
86314564Sdim    abstract methods cannot have a body
87254721Semaste
88314564Sdimcompiler.err.already.annotated=\
89314564Sdim    {0} {1} has already been annotated
90314564Sdim
91314564Sdim# 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol
92314564Sdimcompiler.err.already.defined=\
93314564Sdim    {0} {1} is already defined in {2} {3}
94314564Sdim
95314564Sdim# 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol
96314564Sdimcompiler.err.already.defined.in.clinit=\
97314564Sdim    {0} {1} is already defined in {2} of {3} {4}
98314564Sdim
99254721Semaste# 0: string
100254721Semastecompiler.err.already.defined.single.import=\
101314564Sdim    a type with the same simple name is already defined by the single-type-import of {0}
102314564Sdim
103254721Semaste# 0: string
104254721Semastecompiler.err.already.defined.static.single.import=\
105314564Sdim    a type with the same simple name is already defined by the static single-type-import of {0}
106314564Sdim
107314564Sdimcompiler.err.already.defined.this.unit=\
108314564Sdim    {0} is already defined in this compilation unit
109314564Sdim
110314564Sdim# 0: type, 1: list of name
111314564Sdimcompiler.err.annotation.missing.default.value=\
112314564Sdim    annotation @{0} is missing a default value for the element ''{1}''
113314564Sdim
114254721Semaste# 0: type, 1: list of name
115254721Semastecompiler.err.annotation.missing.default.value.1=\
116254721Semaste    annotation @{0} is missing default values for elements {1}
117314564Sdim
118314564Sdim# 0: type
119314564Sdimcompiler.err.annotation.not.valid.for.type=\
120314564Sdim    annotation not valid for an element of type {0}
121314564Sdim
122321369Sdimcompiler.err.annotation.type.not.applicable=\
123321369Sdim    annotation type not applicable to this kind of declaration
124314564Sdim
125314564Sdim# 0: type
126314564Sdimcompiler.err.annotation.type.not.applicable.to.type=\
127254721Semaste    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
827compiler.err.not.def.access.package.cant.access=\
828    {0} is not visible because package {1} is not visible
829
830# 0: symbol, 1: symbol
831compiler.err.not.def.access.class.intf.cant.access=\
832    {0} in {1} is defined in an inaccessible class or interface
833
834# 0: symbol, 1: symbol
835compiler.misc.not.def.access.class.intf.cant.access=\
836    {0} in {1} is defined in an inaccessible class or interface
837
838# 0: symbol, 1: list of type, 2: type
839compiler.misc.cant.access.inner.cls.constr=\
840    cannot access constructor {0}({1})\n\
841    an enclosing instance of type {2} is not in scope
842
843# 0: symbol, 1: symbol
844compiler.err.not.def.public.cant.access=\
845    {0} is not public in {1}; cannot be accessed from outside package
846
847# 0: symbol, 1: symbol
848compiler.misc.not.def.public.cant.access=\
849    {0} is not public in {1}; cannot be accessed from outside package
850
851# 0: name
852compiler.err.not.loop.label=\
853    not a loop label: {0}
854
855compiler.err.not.stmt=\
856    not a statement
857
858# 0: symbol
859compiler.err.not.encl.class=\
860    not an enclosing class: {0}
861
862# 0: name, 1: type
863compiler.err.operator.cant.be.applied=\
864    bad operand type {1} for unary operator ''{0}''
865
866# 0: name, 1: type, 2: type
867compiler.err.operator.cant.be.applied.1=\
868    bad operand types for binary operator ''{0}''\n\
869    first type:  {1}\n\
870    second type: {2}
871
872compiler.err.pkg.annotations.sb.in.package-info.java=\
873    package annotations should be in file package-info.java
874
875compiler.err.no.pkg.in.module-info.java=\
876    package clauses should not be in file module-info.java
877
878# 0: symbol
879compiler.err.pkg.clashes.with.class.of.same.name=\
880    package {0} clashes with class of same name
881
882compiler.err.warnings.and.werror=\
883    warnings found and -Werror specified
884
885# Errors related to annotation processing
886
887# 0: symbol, 1: string, 2: string (stack-trace)
888compiler.err.proc.cant.access=\
889    cannot access {0}\n\
890    {1}\n\
891    Consult the following stack trace for details.\n\
892    {2}
893
894# 0: symbol, 1: string
895compiler.err.proc.cant.access.1=\
896    cannot access {0}\n\
897    {1}
898
899# 0: string
900compiler.err.proc.cant.find.class=\
901    Could not find class file for ''{0}''.
902
903# Print a client-generated error message; assumed to be localized, no translation required
904# 0: string
905compiler.err.proc.messager=\
906    {0}
907
908# 0: list of string
909compiler.err.proc.no.explicit.annotation.processing.requested=\
910    Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
911
912compiler.err.proc.no.service=\
913    A ServiceLoader was not usable and is required for annotation processing.
914
915compiler.err.proc.processor.bad.option.name=\
916    Bad option name ''{0}'' provided by processor ''{1}''
917
918# 0: string
919compiler.err.proc.processor.cant.instantiate=\
920    Could not instantiate an instance of processor ''{0}''
921
922# 0: string
923compiler.err.proc.processor.not.found=\
924    Annotation processor ''{0}'' not found
925
926# 0: string
927compiler.err.proc.processor.wrong.type=\
928    Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
929
930compiler.err.proc.service.problem=\
931    Error creating a service loader to load Processors.
932
933compiler.err.proc.bad.config.file=\
934    Bad service configuration file, or exception thrown while constructing Processor object: {0}
935
936compiler.err.proc.cant.create.loader=\
937    Could not create class loader for annotation processors: {0}
938
939# 0: unused
940compiler.err.qualified.new.of.static.class=\
941    qualified new of static class
942
943compiler.err.recursive.ctor.invocation=\
944    recursive constructor invocation
945
946# 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
947compiler.err.ref.ambiguous=\
948    reference to {0} is ambiguous\n\
949    both {1} {2} in {3} and {4} {5} in {6} match
950
951# 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
952compiler.misc.ref.ambiguous=\
953    reference to {0} is ambiguous\n\
954    both {1} {2} in {3} and {4} {5} in {6} match
955
956compiler.err.repeated.annotation.target=\
957    repeated annotation target
958
959compiler.err.repeated.interface=\
960    repeated interface
961
962compiler.err.repeated.modifier=\
963    repeated modifier
964
965# 0: symbol, 1: set of modifier, 2: symbol
966compiler.err.report.access=\
967    {0} has {1} access in {2}
968
969# 0: symbol, 1: set of modifier, 2: symbol
970compiler.misc.report.access=\
971    {0} has {1} access in {2}
972
973compiler.err.ret.outside.meth=\
974    return outside method
975
976compiler.err.signature.doesnt.match.supertype=\
977    signature does not match {0}; incompatible supertype
978
979compiler.err.signature.doesnt.match.intf=\
980    signature does not match {0}; incompatible interfaces
981
982# 0: number, 1: number
983compiler.err.method.invoked.with.incorrect.number.arguments=\
984    method invoked with incorrect number of arguments; expected {0}, found {1}
985
986# 0: symbol, 1: symbol, 2: symbol
987compiler.err.does.not.override.abstract=\
988    {0} is not abstract and does not override abstract method {1} in {2}
989
990compiler.err.source.cant.overwrite.input.file=\
991    error writing source; cannot overwrite input file {0}
992
993compiler.err.stack.sim.error=\
994    Internal error: stack sim error on {0}
995
996compiler.err.static.imp.only.classes.and.interfaces=\
997    static import only from classes and interfaces
998
999compiler.err.string.const.req=\
1000    constant string expression required
1001
1002# 0: symbol, 1: symbol
1003compiler.err.synthetic.name.conflict=\
1004    the symbol {0} conflicts with a compiler-synthesized symbol in {1}
1005
1006compiler.err.throws.not.allowed.in.intf.annotation=\
1007    throws clause not allowed in @interface members
1008
1009compiler.err.try.without.catch.or.finally=\
1010    ''try'' without ''catch'' or ''finally''
1011
1012compiler.err.try.without.catch.finally.or.resource.decls=\
1013    ''try'' without ''catch'', ''finally'' or resource declarations
1014
1015# 0: symbol
1016compiler.err.type.doesnt.take.params=\
1017    type {0} does not take parameters
1018
1019compiler.err.type.var.cant.be.deref=\
1020    cannot select from a type variable
1021
1022compiler.err.type.var.may.not.be.followed.by.other.bounds=\
1023    a type variable may not be followed by other bounds
1024
1025compiler.err.type.var.more.than.once=\
1026    type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
1027
1028compiler.err.type.var.more.than.once.in.result=\
1029    type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
1030
1031# 0: type, 1: type, 2: string
1032compiler.err.types.incompatible.diff.ret=\
1033    types {0} and {1} are incompatible; both define {2}, but with unrelated return types
1034
1035# 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1036compiler.err.types.incompatible.unrelated.defaults=\
1037    {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
1038
1039# 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1040compiler.err.types.incompatible.abstract.default=\
1041    {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
1042
1043# 0: name, 1: kind name, 2: symbol
1044compiler.err.default.overrides.object.member=\
1045    default method {0} in {1} {2} overrides a member of java.lang.Object
1046
1047# 0: type
1048compiler.err.illegal.static.intf.meth.call=\
1049    illegal static interface method call\n\
1050    the receiver expression should be replaced with the type qualifier ''{0}''
1051
1052# 0: type, 1: message segment
1053compiler.err.illegal.default.super.call=\
1054    bad type qualifier {0} in default super call\n\
1055    {1}
1056
1057# 0: symbol, 1: type
1058compiler.misc.overridden.default=\
1059    method {0} is overridden in {1}
1060
1061# 0: symbol, 1: type or symbol
1062compiler.misc.redundant.supertype=\
1063    redundant interface {0} is extended by {1}
1064
1065compiler.err.unclosed.char.lit=\
1066    unclosed character literal
1067
1068compiler.err.unclosed.comment=\
1069    unclosed comment
1070
1071compiler.err.unclosed.str.lit=\
1072    unclosed string literal
1073
1074# 0: name
1075compiler.err.unsupported.encoding=\
1076    unsupported encoding: {0}
1077
1078compiler.err.io.exception=\
1079    error reading source file: {0}
1080
1081# 0: name
1082compiler.err.undef.label=\
1083    undefined label: {0}
1084
1085# 0: message segment, 1: unused
1086compiler.err.cant.apply.diamond=\
1087    cannot infer type arguments for {0}
1088
1089# 0: message segment or type, 1: message segment
1090compiler.err.cant.apply.diamond.1=\
1091    cannot infer type arguments for {0}\n\
1092    reason: {1}
1093
1094# 0: message segment or type, 1: message segment
1095compiler.misc.cant.apply.diamond.1=\
1096    cannot infer type arguments for {0}\n\
1097    reason: {1}
1098
1099compiler.err.unreachable.stmt=\
1100    unreachable statement
1101
1102compiler.err.initializer.must.be.able.to.complete.normally=\
1103    initializer must be able to complete normally
1104
1105compiler.err.initializer.not.allowed=\
1106    initializers not allowed in interfaces
1107
1108# 0: type
1109compiler.err.unreported.exception.need.to.catch.or.throw=\
1110    unreported exception {0}; must be caught or declared to be thrown
1111
1112# 0: type
1113compiler.err.unreported.exception.default.constructor=\
1114    unreported exception {0} in default constructor
1115
1116# 0: type, 1: name
1117compiler.err.unreported.exception.implicit.close=\
1118    unreported exception {0}; must be caught or declared to be thrown\n\
1119    exception thrown from implicit call to close() on resource variable ''{1}''
1120
1121compiler.err.unsupported.cross.fp.lit=\
1122    hexadecimal floating-point literals are not supported on this VM
1123
1124compiler.err.void.not.allowed.here=\
1125    ''void'' type not allowed here
1126
1127# 0: string
1128compiler.err.wrong.number.type.args=\
1129    wrong number of type arguments; required {0}
1130
1131# 0: symbol
1132compiler.err.var.might.already.be.assigned=\
1133    variable {0} might already have been assigned
1134
1135# 0: symbol
1136compiler.err.var.might.not.have.been.initialized=\
1137    variable {0} might not have been initialized
1138
1139# 0: symbol
1140compiler.err.var.not.initialized.in.default.constructor=\
1141    variable {0} not initialized in the default constructor
1142
1143# 0: symbol
1144compiler.err.var.might.be.assigned.in.loop=\
1145    variable {0} might be assigned in loop
1146
1147# 0: symbol, 1: message segment
1148compiler.err.varargs.invalid.trustme.anno=\
1149    Invalid {0} annotation. {1}
1150
1151# 0: type
1152compiler.misc.varargs.trustme.on.reifiable.varargs=\
1153    Varargs element type {0} is reifiable.
1154
1155# 0: symbol
1156compiler.misc.varargs.trustme.on.non.varargs.meth=\
1157    Method {0} is not a varargs method.
1158
1159# 0: symbol
1160compiler.misc.varargs.trustme.on.virtual.varargs=\
1161    Instance method {0} is neither final nor private.
1162
1163# 0: symbol
1164compiler.misc.varargs.trustme.on.virtual.varargs.final.only=\
1165    Instance method {0} is not final.
1166
1167# 0: type, 1: symbol kind, 2: symbol
1168compiler.misc.inaccessible.varargs.type=\
1169    formal varargs element type {0} is not accessible from {1} {2}
1170
1171# In the following string, {1} will always be the detail message from
1172# java.io.IOException.
1173# 0: symbol, 1: string
1174compiler.err.class.cant.write=\
1175    error while writing {0}: {1}
1176
1177# In the following string, {0} is the name of the class in the Java source.
1178# It really should be used two times..
1179# 0: name
1180compiler.err.class.public.should.be.in.file=\
1181    class {0} is public, should be declared in a file named {0}.java
1182
1183## All errors which do not refer to a particular line in the source code are
1184## preceded by this string.
1185compiler.err.error=\
1186    error:\u0020
1187
1188# The following error messages do not refer to a line in the source code.
1189compiler.err.cant.read.file=\
1190    cannot read: {0}
1191
1192# 0: string
1193compiler.err.plugin.not.found=\
1194    plug-in not found: {0}
1195
1196# 0: path
1197compiler.warn.locn.unknown.file.on.module.path=\
1198    unknown file on module path: {0}
1199
1200
1201# 0: path
1202compiler.err.locn.bad.module-info=\
1203    problem reading module-info.class in {0}
1204
1205# 0: path
1206compiler.err.locn.cant.read.directory=\
1207    cannot read directory {0}
1208
1209# 0: path
1210compiler.err.locn.cant.read.file=\
1211    cannot read file {0}
1212
1213# 0: path
1214compiler.err.locn.cant.get.module.name.for.jar=\
1215    cannot determine module name for {0}
1216
1217# 0: path
1218compiler.err.multi-module.outdir.cannot.be.exploded.module=\
1219    in multi-module mode, the output directory cannot be an exploded module: {0}
1220
1221# 0: path
1222compiler.warn.outdir.is.in.exploded.module=\
1223    the output directory is within an exploded module: {0}
1224
1225# 0: path
1226compiler.err.locn.module-info.not.allowed.on.patch.path=\
1227    module-info.class not allowed on patch path: {0}
1228
1229# 0: string
1230compiler.err.locn.invalid.arg.for.xpatch=\
1231    invalid argument for --patch-module option: {0}
1232
1233#####
1234
1235# Fatal Errors
1236
1237compiler.misc.fatal.err.no.java.lang=\
1238    Fatal Error: Unable to find package java.lang in classpath or bootclasspath
1239
1240compiler.misc.fatal.err.cant.locate.meth=\
1241    Fatal Error: Unable to find method {0}
1242
1243compiler.misc.fatal.err.cant.locate.field=\
1244    Fatal Error: Unable to find field {0}
1245
1246compiler.misc.fatal.err.cant.locate.ctor=\
1247    Fatal Error: Unable to find constructor for {0}
1248
1249compiler.misc.fatal.err.cant.close=\
1250    Fatal Error: Cannot close compiler resources
1251
1252#####
1253
1254##
1255## miscellaneous strings
1256##
1257
1258compiler.misc.diamond.anonymous.methods.implicitly.override=\
1259    (due to <>, every non-private method declared in this anonymous class must override or implement a method from a supertype)
1260
1261compiler.misc.source.unavailable=\
1262    (source unavailable)
1263
1264compiler.misc.base.membership=\
1265    all your base class are belong to us
1266
1267# 0: string, 1: string, 2: boolean
1268compiler.misc.x.print.processor.info=\
1269    Processor {0} matches {1} and returns {2}.
1270
1271# 0: number, 1: string, 2: set of symbol, 3: boolean
1272compiler.misc.x.print.rounds=\
1273    Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1274
1275# 0: file name
1276compiler.warn.file.from.future=\
1277    Modification date is in the future for file {0}
1278
1279#####
1280
1281## The following string will appear before all messages keyed as:
1282## "compiler.note".
1283
1284compiler.note.compressed.diags=\
1285    Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1286
1287# 0: boolean, 1: symbol
1288compiler.note.lambda.stat=\
1289    Translating lambda expression\n\
1290    alternate metafactory = {0}\n\
1291    synthetic method = {1}
1292
1293# 0: boolean, 1: unused
1294compiler.note.mref.stat=\
1295    Translating method reference\n\
1296    alternate metafactory = {0}\n\
1297
1298# 0: boolean, 1: symbol
1299compiler.note.mref.stat.1=\
1300    Translating method reference\n\
1301    alternate metafactory = {0}\n\
1302    bridge method = {1}
1303
1304compiler.note.note=\
1305    Note:\u0020
1306
1307# 0: file name
1308compiler.note.deprecated.filename=\
1309    {0} uses or overrides a deprecated API.
1310
1311compiler.note.deprecated.plural=\
1312    Some input files use or override a deprecated API.
1313
1314# The following string may appear after one of the above deprecation
1315# messages.
1316compiler.note.deprecated.recompile=\
1317    Recompile with -Xlint:deprecation for details.
1318
1319# 0: file name
1320compiler.note.deprecated.filename.additional=\
1321    {0} has additional uses or overrides of a deprecated API.
1322
1323compiler.note.deprecated.plural.additional=\
1324    Some input files additionally use or override a deprecated API.
1325
1326# 0: file name
1327compiler.note.removal.filename=\
1328    {0} uses or overrides a deprecated API that is marked for removal.
1329
1330compiler.note.removal.plural=\
1331    Some input files use or override a deprecated API that is marked for removal.
1332
1333# The following string may appear after one of the above removal messages.
1334compiler.note.removal.recompile=\
1335    Recompile with -Xlint:removal for details.
1336
1337# 0: file name
1338compiler.note.removal.filename.additional=\
1339    {0} has additional uses or overrides of a deprecated API that is marked for removal.
1340
1341compiler.note.removal.plural.additional=\
1342    Some input files additionally use or override a deprecated API that is marked for removal.
1343
1344# 0: file name
1345compiler.note.unchecked.filename=\
1346    {0} uses unchecked or unsafe operations.
1347
1348compiler.note.unchecked.plural=\
1349    Some input files use unchecked or unsafe operations.
1350
1351# The following string may appear after one of the above unchecked messages.
1352compiler.note.unchecked.recompile=\
1353    Recompile with -Xlint:unchecked for details.
1354
1355# 0: file name
1356compiler.note.unchecked.filename.additional=\
1357    {0} has additional unchecked or unsafe operations.
1358
1359compiler.note.unchecked.plural.additional=\
1360    Some input files additionally use unchecked or unsafe operations.
1361
1362# Notes related to annotation processing
1363
1364# Print a client-generated note; assumed to be localized, no translation required
1365# 0: string
1366compiler.note.proc.messager=\
1367    {0}
1368
1369#####
1370
1371# 0: number
1372compiler.misc.count.error=\
1373    {0} error
1374
1375# 0: number
1376compiler.misc.count.error.plural=\
1377    {0} errors
1378
1379# 0: number
1380compiler.misc.count.warn=\
1381    {0} warning
1382
1383# 0: number
1384compiler.misc.count.warn.plural=\
1385    {0} warnings
1386
1387compiler.misc.version.not.available=\
1388    (version info not available)
1389
1390## extra output when using -verbose (JavaCompiler)
1391
1392# 0: symbol
1393compiler.misc.verbose.checking.attribution=\
1394    [checking {0}]
1395
1396# 0: string
1397compiler.misc.verbose.parsing.done=\
1398    [parsing completed {0}ms]
1399
1400# 0: file name
1401compiler.misc.verbose.parsing.started=\
1402    [parsing started {0}]
1403
1404# 0: string
1405compiler.misc.verbose.total=\
1406    [total {0}ms]
1407
1408# 0: file name
1409compiler.misc.verbose.wrote.file=\
1410    [wrote {0}]
1411
1412## extra output when using -verbose (code/ClassReader)
1413# 0: string
1414compiler.misc.verbose.loading=\
1415    [loading {0}]
1416
1417# 0: string
1418compiler.misc.verbose.sourcepath=\
1419    [search path for source files: {0}]
1420
1421# 0: string
1422compiler.misc.verbose.classpath=\
1423    [search path for class files: {0}]
1424
1425## extra output when using -prompt (util/Log)
1426compiler.misc.resume.abort=\
1427    R)esume, A)bort>
1428
1429#####
1430
1431##
1432## warnings
1433##
1434
1435## All warning messages are preceded by the following string.
1436compiler.warn.warning=\
1437    warning:\u0020
1438
1439## Warning messages may also include the following prefix to identify a
1440## lint option
1441# 0: option name
1442compiler.warn.lintOption=\
1443    [{0}]\u0020
1444
1445# 0: symbol
1446compiler.warn.constant.SVUID=\
1447    serialVersionUID must be constant in class {0}
1448
1449# 0: file name
1450compiler.warn.dir.path.element.not.found=\
1451    bad path element "{0}": no such directory
1452
1453# 0: file name
1454compiler.warn.dir.path.element.not.directory=\
1455    bad path element "{0}": not a directory
1456
1457compiler.warn.finally.cannot.complete=\
1458    finally clause cannot complete normally
1459
1460# 0: name
1461compiler.warn.poor.choice.for.module.name=\
1462    module name {0} should avoid terminal digits
1463
1464# 0: symbol, 1: symbol
1465compiler.warn.has.been.deprecated=\
1466    {0} in {1} has been deprecated
1467
1468# 0: symbol, 1: symbol
1469compiler.warn.has.been.deprecated.for.removal=\
1470    {0} in {1} has been deprecated and marked for removal
1471
1472# 0: symbol
1473compiler.warn.has.been.deprecated.module=\
1474    module {0} has been deprecated
1475
1476# 0: symbol
1477compiler.warn.has.been.deprecated.for.removal.module=\
1478    module {0} has been deprecated and marked for removal
1479
1480# 0: symbol
1481compiler.warn.sun.proprietary=\
1482    {0} is internal proprietary API and may be removed in a future release
1483
1484compiler.warn.illegal.char.for.encoding=\
1485    unmappable character for encoding {0}
1486
1487# 0: symbol
1488compiler.warn.improper.SVUID=\
1489    serialVersionUID must be declared static final in class {0}
1490
1491# 0: type, 1: type
1492compiler.warn.inexact.non-varargs.call=\
1493    non-varargs call of varargs method with inexact argument type for last parameter;\n\
1494    cast to {0} for a varargs call\n\
1495    cast to {1} for a non-varargs call and to suppress this warning
1496
1497# 0: list of type
1498compiler.warn.unreachable.catch=\
1499    unreachable catch clause\n\
1500    thrown type {0} has already been caught
1501
1502# 0: list of type
1503compiler.warn.unreachable.catch.1=\
1504    unreachable catch clause\n\
1505    thrown types {0} have already been caught
1506
1507# 0: symbol
1508compiler.warn.long.SVUID=\
1509    serialVersionUID must be of type long in class {0}
1510
1511# 0: symbol
1512compiler.warn.missing.SVUID=\
1513    serializable class {0} has no definition of serialVersionUID
1514
1515# 0: symbol, 1: symbol, 2: symbol, 3: symbol
1516compiler.warn.potentially.ambiguous.overload=\
1517    {0} in {1} is potentially ambiguous with {2} in {3}
1518
1519# 0: message segment
1520compiler.warn.override.varargs.missing=\
1521    {0}; overridden method has no ''...''
1522
1523# 0: message segment
1524compiler.warn.override.varargs.extra=\
1525    {0}; overriding method is missing ''...''
1526
1527compiler.warn.override.bridge=\
1528    {0}; overridden method is a bridge method
1529
1530# 0: symbol
1531compiler.warn.pkg-info.already.seen=\
1532    a package-info.java file has already been seen for package {0}
1533
1534# 0: file name
1535compiler.warn.path.element.not.found=\
1536    bad path element "{0}": no such file or directory
1537
1538compiler.warn.possible.fall-through.into.case=\
1539    possible fall-through into case
1540
1541# 0: type
1542compiler.warn.redundant.cast=\
1543    redundant cast to {0}
1544
1545# 0: number
1546compiler.warn.position.overflow=\
1547    Position encoding overflows at line {0}
1548
1549# 0: file name, 1: number, 2: number
1550compiler.warn.big.major.version=\
1551    {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1552    It is recommended that the compiler be upgraded.
1553
1554# 0: symbol kind, 1: symbol
1555compiler.warn.static.not.qualified.by.type=\
1556    static {0} should be qualified by type name, {1}, instead of by an expression
1557
1558# 0: string
1559compiler.warn.source.no.bootclasspath=\
1560    bootstrap class path not set in conjunction with -source {0}
1561
1562# 0: string
1563compiler.warn.option.obsolete.source=\
1564    source value {0} is obsolete and will be removed in a future release
1565
1566# 0: string
1567compiler.warn.option.obsolete.target=\
1568    target value {0} is obsolete and will be removed in a future release
1569
1570# 0: string, 1: string
1571compiler.err.option.removed.source=\
1572    Source option {0} is no longer supported. Use {1} or later.
1573
1574# 0: string, 1: string
1575compiler.err.option.removed.target=\
1576    Target option {0} is no longer supported. Use {1} or later.
1577
1578compiler.warn.option.obsolete.suppression=\
1579    To suppress warnings about obsolete options, use -Xlint:-options.
1580
1581# 0: name, 1: number, 2: number, 3: number, 4: number
1582compiler.warn.future.attr=\
1583    {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1584
1585# Warnings related to annotation processing
1586# 0: string
1587compiler.warn.proc.package.does.not.exist=\
1588    package {0} does not exist
1589
1590# 0: name
1591compiler.warn.proc.file.reopening=\
1592    Attempt to create a file for ''{0}'' multiple times
1593
1594# 0: name
1595compiler.warn.proc.type.already.exists=\
1596    A file for type ''{0}'' already exists on the sourcepath or classpath
1597
1598# 0: name
1599compiler.warn.proc.type.recreate=\
1600    Attempt to create a file for type ''{0}'' multiple times
1601
1602# 0: string
1603compiler.warn.proc.illegal.file.name=\
1604    Cannot create file for illegal name ''{0}''.
1605
1606# 0: string, 1: string
1607compiler.warn.proc.suspicious.class.name=\
1608    Creating file for a type whose name ends in {1}: ''{0}''
1609
1610# 0: name
1611compiler.warn.proc.file.create.last.round=\
1612    File for type ''{0}'' created in the last round will not be subject to annotation processing.
1613
1614# 0: string, 1: string
1615compiler.warn.proc.malformed.supported.string=\
1616    Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1617
1618# 0: set of string
1619compiler.warn.proc.annotations.without.processors=\
1620    No processor claimed any of these annotations: {0}
1621
1622# 0: source version, 1: string, 2: string
1623compiler.warn.proc.processor.incompatible.source.version=\
1624    Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1625
1626compiler.warn.proc.proc-only.requested.no.procs=\
1627    Annotation processing without compilation requested but no processors were found.
1628
1629compiler.warn.proc.use.implicit=\
1630    Implicitly compiled files were not subject to annotation processing.\n\
1631    Use -implicit to specify a policy for implicit compilation.
1632
1633compiler.warn.proc.use.proc.or.implicit=\
1634    Implicitly compiled files were not subject to annotation processing.\n\
1635    Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1636
1637# Print a client-generated warning; assumed to be localized, no translation required
1638# 0: string
1639compiler.warn.proc.messager=\
1640    {0}
1641
1642# 0: set of name
1643compiler.warn.proc.unclosed.type.files=\
1644    Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1645
1646# 0: string
1647compiler.warn.proc.unmatched.processor.options=\
1648    The following options were not recognized by any processor: ''{0}''
1649
1650compiler.warn.try.explicit.close.call=\
1651    explicit call to close() on an auto-closeable resource
1652
1653# 0: symbol
1654compiler.warn.try.resource.not.referenced=\
1655    auto-closeable resource {0} is never referenced in body of corresponding try statement
1656
1657# 0: type
1658compiler.warn.try.resource.throws.interrupted.exc=\
1659    auto-closeable resource {0} has a member method close() that could throw InterruptedException
1660
1661compiler.warn.unchecked.assign=\
1662    unchecked assignment: {0} to {1}
1663
1664# 0: symbol, 1: type
1665compiler.warn.unchecked.assign.to.var=\
1666    unchecked assignment to variable {0} as member of raw type {1}
1667
1668# 0: symbol, 1: type
1669compiler.warn.unchecked.call.mbr.of.raw.type=\
1670    unchecked call to {0} as a member of the raw type {1}
1671
1672compiler.warn.unchecked.cast.to.type=\
1673    unchecked cast to type {0}
1674
1675# 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1676compiler.warn.unchecked.meth.invocation.applied=\
1677    unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1678    required: {2}\n\
1679    found: {3}
1680
1681# 0: type
1682compiler.warn.unchecked.generic.array.creation=\
1683    unchecked generic array creation for varargs parameter of type {0}
1684
1685# 0: type
1686compiler.warn.unchecked.varargs.non.reifiable.type=\
1687    Possible heap pollution from parameterized vararg type {0}
1688
1689# 0: symbol
1690compiler.warn.varargs.unsafe.use.varargs.param=\
1691    Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1692
1693compiler.warn.missing.deprecated.annotation=\
1694    deprecated item is not annotated with @Deprecated
1695
1696# 0: symbol kind
1697compiler.warn.deprecated.annotation.has.no.effect=\
1698    @Deprecated annotation has no effect on this {0} declaration
1699
1700compiler.warn.invalid.path=\
1701    Invalid filename: {0}
1702
1703compiler.warn.invalid.archive.file=\
1704    Unexpected file on path: {0}
1705
1706compiler.warn.unexpected.archive.file=\
1707    Unexpected extension for archive file: {0}
1708
1709# 0: path
1710compiler.err.no.zipfs.for.archive=\
1711    No file system provider is available to handle this file: {0}
1712
1713compiler.warn.div.zero=\
1714    division by zero
1715
1716compiler.warn.empty.if=\
1717    empty statement after if
1718
1719compiler.warn.annotation.method.not.found=\
1720    Cannot find annotation method ''{1}()'' in type ''{0}''
1721
1722compiler.warn.annotation.method.not.found.reason=\
1723    Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1724
1725# 0: symbol, 1: name
1726compiler.warn.unknown.enum.constant=\
1727    unknown enum constant {1}.{2}
1728
1729# 0: symbol, 1: name, 2: message segment
1730compiler.warn.unknown.enum.constant.reason=\
1731    unknown enum constant {1}.{2}\n\
1732    reason: {3}
1733
1734# 0: type, 1: type
1735compiler.warn.raw.class.use=\
1736    found raw type: {0}\n\
1737    missing type arguments for generic class {1}
1738
1739# 0: unused, 1: unused
1740compiler.warn.diamond.redundant.args=\
1741    Redundant type arguments in new expression (use diamond operator instead).
1742
1743compiler.warn.potential.lambda.found=\
1744    This anonymous inner class creation can be turned into a lambda expression.
1745
1746compiler.warn.method.redundant.typeargs=\
1747    Redundant type arguments in method call.
1748
1749# 0: symbol, 1: message segment
1750compiler.warn.varargs.redundant.trustme.anno=\
1751    Redundant {0} annotation. {1}
1752
1753# 0: symbol
1754compiler.warn.access.to.member.from.serializable.element=\
1755    access to member {0} from serializable element can be publicly accessible to untrusted code
1756
1757# 0: symbol
1758compiler.warn.access.to.member.from.serializable.lambda=\
1759    access to member {0} from serializable lambda can be publicly accessible to untrusted code
1760
1761#####
1762
1763## The following are tokens which are non-terminals in the language. They should
1764## be named as JLS3 calls them when translated to the appropriate language.
1765compiler.misc.token.identifier=\
1766    <identifier>
1767
1768compiler.misc.token.character=\
1769    <character>
1770
1771compiler.misc.token.string=\
1772    <string>
1773
1774compiler.misc.token.integer=\
1775    <integer>
1776
1777compiler.misc.token.long-integer=\
1778    <long integer>
1779
1780compiler.misc.token.float=\
1781    <float>
1782
1783compiler.misc.token.double=\
1784    <double>
1785
1786compiler.misc.token.bad-symbol=\
1787    <bad symbol>
1788
1789compiler.misc.token.end-of-input=\
1790    <end of input>
1791
1792## The argument to the following string will always be one of the following:
1793## 1. one of the above non-terminals
1794## 2. a keyword (JLS1.8)
1795## 3. a boolean literal (JLS3.10.3)
1796## 4. the null literal (JLS3.10.7)
1797## 5. a Java separator (JLS3.11)
1798## 6. an operator (JLS3.12)
1799##
1800## This is the only place these tokens will be used.
1801# 0: token
1802compiler.err.expected=\
1803    {0} expected
1804
1805# 0: token, 1: token
1806compiler.err.expected2=\
1807    {0} or {1} expected
1808
1809# 0: token, 1: token, 2: token
1810compiler.err.expected3=\
1811    {0}, {1}, or {2} expected
1812
1813compiler.err.premature.eof=\
1814    reached end of file while parsing
1815
1816## The following are related in form, but do not easily fit the above paradigm.
1817compiler.err.expected.module=\
1818    ''module'' expected
1819
1820compiler.err.dot.class.expected=\
1821    ''.class'' expected
1822
1823## The argument to this string will always be either 'case' or 'default'.
1824# 0: token
1825compiler.err.orphaned=\
1826    orphaned {0}
1827
1828# 0: name
1829compiler.misc.anonymous.class=\
1830    <anonymous {0}>
1831
1832# 0: name, 1: type
1833compiler.misc.type.captureof=\
1834    capture#{0} of {1}
1835
1836compiler.misc.type.captureof.1=\
1837    capture#{0}
1838
1839compiler.misc.type.none=\
1840    <none>
1841
1842compiler.misc.unnamed.package=\
1843    unnamed package
1844
1845compiler.misc.unnamed.module=\
1846    unnamed module
1847
1848#####
1849
1850# 0: symbol, 1: message segment
1851compiler.err.cant.access=\
1852    cannot access {0}\n\
1853    {1}
1854
1855# 0: name
1856compiler.misc.bad.class.file=\
1857    class file is invalid for class {0}
1858
1859# 0: file name, 1: string (expected constant pool entry type), 2: number (constant pool index)
1860compiler.misc.bad.const.pool.entry=\
1861    bad constant pool entry in {0}\n\
1862    expected {1} at index {2}
1863
1864# 0: file name, 1: message segment
1865compiler.misc.bad.class.file.header=\
1866    bad class file: {0}\n\
1867    {1}\n\
1868    Please remove or make sure it appears in the correct subdirectory of the classpath.
1869
1870# 0: file name, 1: message segment
1871compiler.misc.bad.source.file.header=\
1872    bad source file: {0}\n\
1873    {1}\n\
1874    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1875
1876## The following are all possible strings for the second argument ({1}) of the
1877## above strings.
1878compiler.misc.bad.class.signature=\
1879    bad class signature: {0}
1880
1881#0: symbol, 1: symbol
1882compiler.misc.bad.enclosing.class=\
1883    bad enclosing class for {0}: {1}
1884
1885# 0: symbol
1886compiler.misc.bad.enclosing.method=\
1887    bad enclosing method attribute for class {0}
1888
1889compiler.misc.bad.runtime.invisible.param.annotations=\
1890    bad RuntimeInvisibleParameterAnnotations attribute: {0}
1891
1892compiler.misc.bad.const.pool.tag=\
1893    bad constant pool tag: {0}
1894
1895compiler.misc.bad.const.pool.tag.at=\
1896    bad constant pool tag: {0} at {1}
1897
1898compiler.misc.bad.signature=\
1899    bad signature: {0}
1900
1901compiler.misc.bad.type.annotation.value=\
1902    bad type annotation target type value: {0}
1903
1904compiler.misc.bad.module-info.name=\
1905    bad class name
1906
1907compiler.misc.class.file.wrong.class=\
1908    class file contains wrong class: {0}
1909
1910compiler.misc.module.info.invalid.super.class=\
1911    module-info with invalid super class
1912
1913compiler.misc.class.file.not.found=\
1914    class file for {0} not found
1915
1916# 0: string (classfile major version), 1: string (classfile minor version)
1917compiler.misc.invalid.default.interface=\
1918    default method found in version {0}.{1} classfile
1919
1920# 0: string (classfile major version), 1: string (classfile minor version)
1921compiler.misc.invalid.static.interface=\
1922    static method found in version {0}.{1} classfile
1923
1924# 0: string (classfile major version), 1: string (classfile minor version)
1925compiler.misc.anachronistic.module.info=\
1926    module declaration found in version {0}.{1} classfile
1927
1928# 0: name
1929compiler.misc.file.doesnt.contain.class=\
1930    file does not contain class {0}
1931
1932compiler.misc.file.does.not.contain.package=\
1933    file does not contain package {0}
1934
1935compiler.misc.file.does.not.contain.module=\
1936    file does not contain module declaration
1937
1938compiler.misc.illegal.start.of.class.file=\
1939    illegal start of class file
1940
1941compiler.misc.unable.to.access.file=\
1942    unable to access file: {0}
1943
1944compiler.misc.unicode.str.not.supported=\
1945    unicode string in class file not supported
1946
1947compiler.misc.undecl.type.var=\
1948    undeclared type variable: {0}
1949
1950compiler.misc.malformed.vararg.method=\
1951    class file contains malformed variable arity method: {0}
1952
1953compiler.misc.wrong.version=\
1954    class file has wrong version {0}.{1}, should be {2}.{3}
1955
1956#####
1957
1958# 0: type, 1: type or symbol
1959compiler.err.not.within.bounds=\
1960    type argument {0} is not within bounds of type-variable {1}
1961
1962## The following are all possible strings for the second argument ({1}) of the
1963## above string.
1964
1965## none yet...
1966
1967#####
1968
1969# 0: message segment
1970compiler.err.prob.found.req=\
1971    incompatible types: {0}
1972
1973# 0: message segment
1974compiler.misc.prob.found.req=\
1975    incompatible types: {0}
1976
1977# 0: message segment, 1: type, 2: type
1978compiler.warn.prob.found.req=\
1979    {0}\n\
1980    required: {2}\n\
1981    found:    {1}
1982
1983# 0: type, 1: type
1984compiler.misc.inconvertible.types=\
1985    {0} cannot be converted to {1}
1986
1987# 0: type, 1: type
1988compiler.misc.possible.loss.of.precision=\
1989    possible lossy conversion from {0} to {1}
1990
1991compiler.misc.unchecked.assign=\
1992    unchecked conversion
1993
1994# compiler.misc.storecheck=\
1995#     assignment might cause later store checks to fail
1996# compiler.misc.unchecked=\
1997#     assigned array cannot dynamically check its stores
1998compiler.misc.unchecked.cast.to.type=\
1999    unchecked cast
2000
2001# compiler.err.star.expected=\
2002#     ''*'' expected
2003# compiler.err.no.elem.type=\
2004#     \[\*\] cannot have a type
2005
2006# 0: type
2007compiler.misc.try.not.applicable.to.type=\
2008    try-with-resources not applicable to variable type\n\
2009    ({0})
2010
2011#####
2012
2013# 0: message segment or type, 1: message segment
2014compiler.err.type.found.req=\
2015    unexpected type\n\
2016    required: {1}\n\
2017    found:    {0}
2018
2019## The following are all possible strings for the first argument ({0}) of the
2020## above string.
2021compiler.misc.type.req.class=\
2022    class
2023
2024compiler.misc.type.req.class.array=\
2025    class or array
2026
2027compiler.misc.type.req.array.or.iterable=\
2028    array or java.lang.Iterable
2029
2030compiler.misc.type.req.ref=\
2031    reference
2032
2033compiler.misc.type.req.exact=\
2034    class or interface without bounds
2035
2036# 0: type
2037compiler.misc.type.parameter=\
2038    type parameter {0}
2039
2040#####
2041
2042## The following are all possible strings for the last argument of all those
2043## diagnostics whose key ends in ".1"
2044
2045# 0: type, 1: list of type
2046compiler.misc.no.unique.maximal.instance.exists=\
2047    no unique maximal instance exists for type variable {0} with upper bounds {1}
2048
2049compiler.misc.no.unique.minimal.instance.exists=\
2050    no unique minimal instance exists for type variable {0} with lower bounds {1}
2051
2052# 0: type, 1: list of type
2053compiler.misc.incompatible.upper.bounds=\
2054    inference variable {0} has incompatible upper bounds {1}
2055
2056# 0: type, 1: list of type
2057compiler.misc.incompatible.eq.bounds=\
2058    inference variable {0} has incompatible equality constraints {1}
2059
2060# 0: type, 1: list of type, 2: list of type
2061compiler.misc.incompatible.eq.upper.bounds=\
2062    inference variable {0} has incompatible bounds\n\
2063    equality constraints: {1}\n\
2064    upper bounds: {2}
2065
2066# 0: type, 1: list of type, 2: list of type
2067compiler.misc.incompatible.upper.lower.bounds=\
2068    inference variable {0} has incompatible bounds\n\
2069    upper bounds: {1}\n\
2070    lower bounds: {2}
2071
2072# 0: type, 1: list of type, 2: list of type
2073compiler.misc.incompatible.eq.lower.bounds=\
2074    inference variable {0} has incompatible bounds\n\
2075    equality constraints: {1}\n\
2076    lower bounds: {2}
2077
2078# 0: list of type, 1: type, 2: type
2079compiler.misc.infer.no.conforming.instance.exists=\
2080    no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
2081
2082# 0: list of type, 1: message segment
2083compiler.misc.infer.no.conforming.assignment.exists=\
2084    cannot infer type-variable(s) {0}\n\
2085    (argument mismatch; {1})
2086
2087# 0: list of type
2088compiler.misc.infer.arg.length.mismatch=\
2089    cannot infer type-variable(s) {0}\n\
2090    (actual and formal argument lists differ in length)
2091
2092# 0: list of type, 1: message segment
2093compiler.misc.infer.varargs.argument.mismatch=\
2094    cannot infer type-variable(s) {0}\n\
2095    (varargs mismatch; {1})
2096
2097# 0: type, 1: list of type
2098compiler.misc.inferred.do.not.conform.to.upper.bounds=\
2099    inferred type does not conform to upper bound(s)\n\
2100    inferred: {0}\n\
2101    upper bound(s): {1}
2102
2103# 0: type, 1: list of type
2104compiler.misc.inferred.do.not.conform.to.lower.bounds=\
2105    inferred type does not conform to lower bound(s)\n\
2106    inferred: {0}\n\
2107    lower bound(s): {1}
2108
2109# 0: type, 1: list of type
2110compiler.misc.inferred.do.not.conform.to.eq.bounds=\
2111    inferred type does not conform to equality constraint(s)\n\
2112    inferred: {0}\n\
2113    equality constraints(s): {1}
2114
2115# 0: symbol
2116compiler.misc.diamond=\
2117    {0}<>
2118
2119# 0: type
2120compiler.misc.diamond.non.generic=\
2121    cannot use ''<>'' with non-generic class {0}
2122
2123# 0: list of type, 1: message segment
2124compiler.misc.diamond.invalid.arg=\
2125    type argument {0} inferred for {1} is not allowed in this context\n\
2126    inferred argument is not expressible in the Signature attribute
2127
2128# 0: list of type, 1: message segment
2129compiler.misc.diamond.invalid.args=\
2130    type arguments {0} inferred for {1} are not allowed in this context\n\
2131    inferred arguments are not expressible in the Signature attribute
2132
2133# 0: unused
2134compiler.misc.diamond.and.explicit.params=\
2135    cannot use ''<>'' with explicit type parameters for constructor
2136
2137# 0: unused
2138compiler.misc.mref.infer.and.explicit.params=\
2139    cannot use raw constructor reference with explicit type parameters for constructor
2140
2141# 0: type, 1: list of type
2142compiler.misc.explicit.param.do.not.conform.to.bounds=\
2143    explicit type argument {0} does not conform to declared bound(s) {1}
2144
2145compiler.misc.arg.length.mismatch=\
2146    actual and formal argument lists differ in length
2147
2148# 0: string
2149compiler.misc.wrong.number.type.args=\
2150    wrong number of type arguments; required {0}
2151
2152# 0: message segment
2153compiler.misc.no.conforming.assignment.exists=\
2154    argument mismatch; {0}
2155
2156# 0: message segment
2157compiler.misc.varargs.argument.mismatch=\
2158    varargs mismatch; {0}
2159
2160#####
2161
2162# 0: symbol or type, 1: file name
2163compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
2164    auxiliary class {0} in {1} should not be accessed from outside its own source file
2165
2166## The first argument ({0}) is a "kindname".
2167# 0: symbol kind, 1: symbol, 2: symbol
2168compiler.err.abstract.cant.be.accessed.directly=\
2169    abstract {0} {1} in {2} cannot be accessed directly
2170
2171## The first argument ({0}) is a "kindname".
2172# 0: symbol kind, 1: symbol
2173compiler.err.non-static.cant.be.ref=\
2174    non-static {0} {1} cannot be referenced from a static context
2175
2176# 0: symbol kind, 1: symbol
2177compiler.misc.bad.static.method.in.unbound.lookup=\
2178    unexpected static {0} {1} found in unbound lookup
2179
2180# 0: symbol kind, 1: symbol
2181compiler.misc.bad.instance.method.in.unbound.lookup=\
2182    unexpected instance {0} {1} found in unbound lookup
2183
2184# 0: symbol kind, 1: symbol
2185compiler.misc.bad.static.method.in.bound.lookup=\
2186    unexpected static {0} {1} found in bound lookup
2187
2188## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
2189## of kindnames (the list should be identical to that provided in source.
2190compiler.err.unexpected.type=\
2191    unexpected type\n\
2192    required: {0}\n\
2193    found:    {1}
2194
2195compiler.err.unexpected.lambda=\
2196   lambda expression not expected here
2197
2198compiler.err.unexpected.mref=\
2199   method reference not expected here
2200
2201## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
2202## The second argument {1} is the non-resolved symbol
2203## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
2204## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
2205# 0: symbol kind, 1: name, 2: unused, 3: unused
2206compiler.err.cant.resolve=\
2207    cannot find symbol\n\
2208    symbol: {0} {1}
2209
2210# 0: symbol kind, 1: name, 2: unused, 3: list of type
2211compiler.err.cant.resolve.args=\
2212    cannot find symbol\n\
2213    symbol: {0} {1}({3})
2214
2215# 0: symbol kind, 1: name, 2: list of type, 3: list of type
2216compiler.err.cant.resolve.args.params=\
2217    cannot find symbol\n\
2218    symbol: {0} <{2}>{1}({3})
2219
2220## arguments from {0} to {3} have the same meaning as above
2221## The fifth argument {4} is a location subdiagnostic (see below)
2222# 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
2223compiler.err.cant.resolve.location=\
2224    cannot find symbol\n\
2225    symbol:   {0} {1}\n\
2226    location: {4}
2227
2228# 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2229compiler.err.cant.resolve.location.args=\
2230    cannot find symbol\n\
2231    symbol:   {0} {1}({3})\n\
2232    location: {4}
2233
2234# 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2235compiler.err.cant.resolve.location.args.params=\
2236    cannot find symbol\n\
2237    symbol:   {0} <{2}>{1}({3})\n\
2238    location: {4}
2239
2240### Following are replicated/used for method reference diagnostics
2241
2242# 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
2243compiler.misc.cant.resolve.location.args=\
2244    cannot find symbol\n\
2245    symbol:   {0} {1}({3})\n\
2246    location: {4}
2247
2248# 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
2249compiler.misc.cant.resolve.location.args.params=\
2250    cannot find symbol\n\
2251    symbol:   {0} <{2}>{1}({3})\n\
2252    location: {4}
2253
2254##a location subdiagnostic is composed as follows:
2255## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
2256## The second argument {1} is the location name
2257## The third argument {2} is the location type (only when {1} is a variable name)
2258
2259# 0: symbol kind, 1: type or symbol, 2: unused
2260compiler.misc.location=\
2261    {0} {1}
2262
2263# 0: symbol kind, 1: symbol, 2: type
2264compiler.misc.location.1=\
2265    {0} {1} of type {2}
2266
2267## The following are all possible string for "kindname".
2268## They should be called whatever the JLS calls them after it been translated
2269## to the appropriate language.
2270# compiler.misc.kindname.constructor=\
2271#     static member
2272compiler.misc.kindname.annotation=\
2273    @interface
2274
2275compiler.misc.kindname.constructor=\
2276    constructor
2277
2278compiler.misc.kindname.enum=\
2279    enum
2280
2281compiler.misc.kindname.interface=\
2282    interface
2283
2284compiler.misc.kindname.static=\
2285    static
2286
2287compiler.misc.kindname.type.variable=\
2288    type variable
2289
2290compiler.misc.kindname.type.variable.bound=\
2291    bound of type variable
2292
2293compiler.misc.kindname.variable=\
2294    variable
2295
2296compiler.misc.kindname.value=\
2297    value
2298
2299compiler.misc.kindname.method=\
2300    method
2301
2302compiler.misc.kindname.class=\
2303    class
2304
2305compiler.misc.kindname.package=\
2306    package
2307
2308compiler.misc.kindname.module=\
2309    module
2310
2311compiler.misc.kindname.static.init=\
2312    static initializer
2313
2314compiler.misc.kindname.instance.init=\
2315    instance initializer
2316
2317#####
2318
2319compiler.misc.no.args=\
2320    no arguments
2321
2322# 0: message segment
2323compiler.err.override.static=\
2324    {0}\n\
2325    overriding method is static
2326
2327# 0: message segment, 1: set of modifier
2328compiler.err.override.meth=\
2329    {0}\n\
2330    overridden method is {1}
2331
2332# 0: message segment, 1: type
2333compiler.err.override.meth.doesnt.throw=\
2334    {0}\n\
2335    overridden method does not throw {1}
2336
2337# In the following string {1} is a space separated list of Java Keywords, as
2338# they would have been declared in the source code
2339# 0: message segment, 1: set of modifier
2340compiler.err.override.weaker.access=\
2341    {0}\n\
2342    attempting to assign weaker access privileges; was {1}
2343
2344# 0: message segment, 1: type, 2: type
2345compiler.err.override.incompatible.ret=\
2346    {0}\n\
2347    return type {1} is not compatible with {2}
2348
2349# 0: message segment, 1: type, 2: type
2350compiler.warn.override.unchecked.ret=\
2351    {0}\n\
2352    return type requires unchecked conversion from {1} to {2}
2353
2354# 0: message segment, 1: type
2355compiler.warn.override.unchecked.thrown=\
2356    {0}\n\
2357    overridden method does not throw {1}
2358
2359# 0: symbol
2360compiler.warn.override.equals.but.not.hashcode=\
2361    Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
2362
2363## The following are all possible strings for the first argument ({0}) of the
2364## above strings.
2365# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2366compiler.misc.cant.override=\
2367    {0} in {1} cannot override {2} in {3}
2368
2369# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2370compiler.misc.cant.hide=\
2371    {0} in {1} cannot hide {2} in {3}
2372
2373# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2374compiler.misc.cant.implement=\
2375    {0} in {1} cannot implement {2} in {3}
2376
2377# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2378compiler.misc.clashes.with=\
2379    {0} in {1} clashes with {2} in {3}
2380
2381# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2382compiler.misc.unchecked.override=\
2383    {0} in {1} overrides {2} in {3}
2384
2385# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2386compiler.misc.unchecked.implement=\
2387    {0} in {1} implements {2} in {3}
2388
2389# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2390compiler.misc.unchecked.clash.with=\
2391    {0} in {1} overrides {2} in {3}
2392
2393# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2394compiler.misc.varargs.override=\
2395    {0} in {1} overrides {2} in {3}
2396
2397# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2398compiler.misc.varargs.implement=\
2399    {0} in {1} implements {2} in {3}
2400
2401# 0: symbol, 1: symbol, 2: symbol, 3: symbol
2402compiler.misc.varargs.clash.with=\
2403    {0} in {1} overrides {2} in {3}
2404
2405# 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
2406compiler.misc.inapplicable.method=\
2407    {0} {1}.{2} is not applicable\n\
2408    ({3})
2409
2410########################################
2411# Diagnostics for language feature changes
2412########################################
2413
2414# 0: string
2415compiler.err.modules.not.supported.in.source=\
2416   modules are not supported in -source {0}\n\
2417    (use -source 9 or higher to enable modules)
2418
2419# 0: string
2420compiler.misc.diamond.and.anon.class.not.supported.in.source=\
2421    cannot use ''<>'' with anonymous inner classes in -source {0}\n\
2422    (use -source 9 or higher to enable ''<>'' with anonymous inner classes)
2423
2424# 0: string
2425compiler.err.unsupported.binary.lit=\
2426    binary literals are not supported in -source {0}\n\
2427    (use -source 7 or higher to enable binary literals)
2428
2429# 0: string
2430compiler.err.unsupported.underscore.lit=\
2431    underscores in literals are not supported in -source {0}\n\
2432    (use -source 7 or higher to enable underscores in literals)
2433
2434# 0: string
2435compiler.err.try.with.resources.not.supported.in.source=\
2436    try-with-resources is not supported in -source {0}\n\
2437    (use -source 7 or higher to enable try-with-resources)
2438
2439# 0: string
2440compiler.err.var.in.try.with.resources.not.supported.in.source=\
2441    variables in try-with-resources not supported in -source {0}\n\
2442    (use -source 9 or higher to enable variables in try-with-resources)
2443
2444compiler.warn.underscore.as.identifier=\
2445    as of release 9, ''_'' is a keyword, and may not be used as an identifier
2446
2447compiler.err.underscore.as.identifier=\
2448    as of release 9, ''_'' is a keyword, and may not be used as an identifier
2449
2450compiler.err.underscore.as.identifier.in.lambda=\
2451    ''_'' used as an identifier\n\
2452    (use of ''_'' as an identifier is forbidden for lambda parameters)
2453
2454compiler.err.enum.as.identifier=\
2455    as of release 5, ''enum'' is a keyword, and may not be used as an identifier
2456
2457compiler.err.assert.as.identifier=\
2458    as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
2459
2460# TODO 308: make a better error message
2461compiler.err.this.as.identifier=\
2462    as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
2463
2464# 0: symbol
2465compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
2466    receiver parameter not applicable for constructor of top-level class
2467
2468# TODO 308: make a better error message
2469# 0: symbol
2470compiler.err.cant.type.annotate.scoping.1=\
2471    scoping construct cannot be annotated with type-use annotation: {0}
2472
2473# TODO 308: make a better error message
2474# 0: list of symbol
2475compiler.err.cant.type.annotate.scoping=\
2476    scoping construct cannot be annotated with type-use annotations: {0}
2477
2478# 0: type, 1: type
2479compiler.err.incorrect.receiver.name=\
2480    the receiver name does not match the enclosing class type\n\
2481    required: {0}\n\
2482    found: {1}
2483
2484# 0: type, 1: type
2485compiler.err.incorrect.receiver.type=\
2486    the receiver type does not match the enclosing class type\n\
2487    required: {0}\n\
2488    found: {1}
2489
2490# 0: type, 1: type
2491compiler.err.incorrect.constructor.receiver.type=\
2492    the receiver type does not match the enclosing outer class type\n\
2493    required: {0}\n\
2494    found: {1}
2495
2496# 0: type, 1: type
2497compiler.err.incorrect.constructor.receiver.name=\
2498    the receiver name does not match the enclosing outer class type\n\
2499    required: {0}\n\
2500    found: {1}
2501
2502compiler.err.no.annotations.on.dot.class=\
2503    no annotations are allowed in the type of a class literal
2504
2505# 0: string
2506compiler.err.type.annotations.not.supported.in.source=\
2507    type annotations are not supported in -source {0}\n\
2508(use -source 8 or higher to enable type annotations)
2509
2510# 0: string
2511compiler.err.annotations.after.type.params.not.supported.in.source=\
2512    annotations after method type parameters are not supported in -source {0}\n\
2513(use -source 8 or higher to enable annotations after method type parameters)
2514
2515# 0: string
2516compiler.err.repeatable.annotations.not.supported.in.source=\
2517    repeated annotations are not supported in -source {0}\n\
2518(use -source 8 or higher to enable repeated annotations)
2519
2520# 0: string
2521compiler.err.diamond.not.supported.in.source=\
2522    diamond operator is not supported in -source {0}\n\
2523    (use -source 7 or higher to enable diamond operator)
2524
2525# 0: string
2526compiler.err.multicatch.not.supported.in.source=\
2527    multi-catch statement is not supported in -source {0}\n\
2528    (use -source 7 or higher to enable multi-catch statement)
2529
2530# 0: string
2531compiler.err.string.switch.not.supported.in.source=\
2532    strings in switch are not supported in -source {0}\n\
2533    (use -source 7 or higher to enable strings in switch)
2534
2535# 0: string
2536compiler.err.lambda.not.supported.in.source=\
2537    lambda expressions are not supported in -source {0}\n\
2538    (use -source 8 or higher to enable lambda expressions)
2539
2540# 0: string
2541compiler.err.method.references.not.supported.in.source=\
2542    method references are not supported in -source {0}\n\
2543    (use -source 8 or higher to enable method references)
2544
2545# 0: string
2546compiler.err.default.methods.not.supported.in.source=\
2547    default methods are not supported in -source {0}\n\
2548    (use -source 8 or higher to enable default methods)
2549
2550# 0: string
2551compiler.err.intersection.types.in.cast.not.supported.in.source=\
2552    intersection types in cast are not supported in -source {0}\n\
2553    (use -source 8 or higher to enable default methods)
2554
2555# 0: string
2556compiler.err.static.intf.methods.not.supported.in.source=\
2557    static interface methods are not supported in -source {0}\n\
2558    (use -source 8 or higher to enable static interface methods)
2559
2560# 0: string
2561compiler.err.static.intf.method.invoke.not.supported.in.source=\
2562    static interface method invocations are not supported in -source {0}\n\
2563    (use -source 8 or higher to enable static interface method invocations)
2564
2565# 0: string
2566compiler.err.private.intf.methods.not.supported.in.source=\
2567    private interface methods are not supported in -source {0}\n\
2568    (use -source 9 or higher to enable private interface methods)
2569
2570########################################
2571# Diagnostics for verbose resolution
2572# used by Resolve (debug only)
2573########################################
2574
2575# 0: number, 1: symbol, 2: unused
2576compiler.misc.applicable.method.found=\
2577    #{0} applicable method found: {1}
2578
2579# 0: number, 1: symbol, 2: message segment
2580compiler.misc.applicable.method.found.1=\
2581    #{0} applicable method found: {1}\n\
2582    ({2})
2583
2584# 0: number, 1: symbol, 2: message segment
2585compiler.misc.not.applicable.method.found=\
2586    #{0} not applicable method found: {1}\n\
2587    ({2})
2588
2589# 0: type
2590compiler.misc.partial.inst.sig=\
2591    partially instantiated to: {0}
2592
2593# 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
2594compiler.note.verbose.resolve.multi=\
2595    resolving method {0} in type {1} to candidate {2}\n\
2596    phase: {3}\n\
2597    with actuals: {4}\n\
2598    with type-args: {5}\n\
2599    candidates:
2600
2601# 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
2602compiler.note.verbose.resolve.multi.1=\
2603    erroneous resolution for method {0} in type {1}\n\
2604    phase: {3}\n\
2605    with actuals: {4}\n\
2606    with type-args: {5}\n\
2607    candidates:
2608
2609# 0: symbol, 1: type, 2: type
2610compiler.note.deferred.method.inst=\
2611    Deferred instantiation of method {0}\n\
2612    instantiated signature: {1}\n\
2613    target-type: {2}
2614
2615########################################
2616# Diagnostics for where clause implementation
2617# used by the RichDiagnosticFormatter.
2618########################################
2619
2620compiler.misc.type.null=\
2621    <null>
2622
2623# X#n (where n is an int id) is disambiguated tvar name
2624# 0: name, 1: number
2625compiler.misc.type.var=\
2626    {0}#{1}
2627
2628# CAP#n (where n is an int id) is an abbreviation for 'captured type'
2629# 0: number
2630compiler.misc.captured.type=\
2631    CAP#{0}
2632
2633# <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2634# 0: number
2635compiler.misc.intersection.type=\
2636    INT#{0}
2637
2638# where clause for captured type: contains upper ('extends {1}') and lower
2639# ('super {2}') bound along with the wildcard that generated this captured type ({3})
2640# 0: type, 1: type, 2: type, 3: type
2641compiler.misc.where.captured=\
2642    {0} extends {1} super: {2} from capture of {3}
2643
2644# compact where clause for captured type: contains upper ('extends {1}') along
2645# with the wildcard that generated this captured type ({3})
2646# 0: type, 1: type, 2: unused, 3: type
2647compiler.misc.where.captured.1=\
2648    {0} extends {1} from capture of {3}
2649
2650# where clause for type variable: contains upper bound(s) ('extends {1}') along with
2651# the kindname ({2}) and location ({3}) in which the typevar has been declared
2652# 0: type, 1: list of type, 2: symbol kind, 3: symbol
2653compiler.misc.where.typevar=\
2654    {0} extends {1} declared in {2} {3}
2655
2656# compact where clause for type variable: contains the kindname ({2}) and location ({3})
2657# in which the typevar has been declared
2658# 0: type, 1: list of type, 2: symbol kind, 3: symbol
2659compiler.misc.where.typevar.1=\
2660    {0} declared in {2} {3}
2661
2662# where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2663# Since a fresh type-variable is synthetic - there's no location/kindname here.
2664# 0: type, 1: list of type
2665compiler.misc.where.fresh.typevar=\
2666    {0} extends {1}
2667
2668# where clause for type variable: contains all the upper bound(s) ('extends {1}')
2669# of this intersection type
2670# 0: type, 1: list of type
2671compiler.misc.where.intersection=\
2672    {0} extends {1}
2673
2674### Where clause headers ###
2675compiler.misc.where.description.captured=\
2676    where {0} is a fresh type-variable:
2677
2678# 0: set of type
2679compiler.misc.where.description.typevar=\
2680    where {0} is a type-variable:
2681
2682# 0: set of type
2683compiler.misc.where.description.intersection=\
2684    where {0} is an intersection type:
2685
2686# 0: set of type
2687compiler.misc.where.description.captured.1=\
2688    where {0} are fresh type-variables:
2689
2690# 0: set of type
2691compiler.misc.where.description.typevar.1=\
2692    where {0} are type-variables:
2693
2694# 0: set of type
2695compiler.misc.where.description.intersection.1=\
2696    where {0} are intersection types:
2697
2698###
2699# errors related to doc comments
2700
2701compiler.err.dc.bad.entity=\
2702    bad HTML entity
2703
2704compiler.err.dc.bad.gt=\
2705    bad use of ''>''
2706
2707compiler.err.dc.bad.inline.tag=\
2708    incorrect use of inline tag
2709
2710compiler.err.dc.identifier.expected=\
2711    identifier expected
2712
2713compiler.err.dc.malformed.html=\
2714    malformed HTML
2715
2716compiler.err.dc.missing.semicolon=\
2717    semicolon missing
2718
2719compiler.err.dc.no.content=\
2720    no content
2721
2722compiler.err.dc.no.tag.name=\
2723    no tag name after '@'
2724
2725compiler.err.dc.gt.expected=\
2726    ''>'' expected
2727
2728compiler.err.dc.ref.bad.parens=\
2729    '')'' missing in reference
2730
2731compiler.err.dc.ref.syntax.error=\
2732    syntax error in reference
2733
2734compiler.err.dc.ref.unexpected.input=\
2735    unexpected text
2736
2737compiler.err.dc.unexpected.content=\
2738    unexpected content
2739
2740compiler.err.dc.unterminated.inline.tag=\
2741    unterminated inline tag
2742
2743compiler.err.dc.unterminated.signature=\
2744    unterminated signature
2745
2746compiler.err.dc.unterminated.string=\
2747    unterminated string
2748
2749###
2750# errors related to modules
2751
2752compiler.err.expected.module=\
2753    expected ''module''
2754
2755# 0: symbol
2756compiler.err.module.not.found=\
2757    module not found: {0}
2758
2759# 0: symbol
2760compiler.warn.module.not.found=\
2761    module not found: {0}
2762
2763compiler.err.too.many.modules=\
2764    too many module declarations found
2765
2766# 0: symbol
2767compiler.err.duplicate.module=\
2768    duplicate module: {0}
2769
2770# 0: symbol
2771compiler.err.duplicate.requires=\
2772    duplicate requires: {0}
2773
2774# 0: symbol
2775compiler.err.conflicting.exports=\
2776    duplicate or conflicting exports: {0}
2777
2778# 0: symbol
2779compiler.err.conflicting.opens=\
2780    duplicate or conflicting opens: {0}
2781
2782# 0: symbol
2783compiler.err.conflicting.exports.to.module=\
2784    duplicate or conflicting exports to module: {0}
2785
2786# 0: symbol
2787compiler.err.conflicting.opens.to.module=\
2788    duplicate or conflicting opens to module: {0}
2789
2790compiler.err.no.opens.unless.strong=\
2791    ''opens'' only allowed in strong modules
2792
2793# 0: symbol, 1: symbol
2794compiler.err.duplicate.provides=\
2795    duplicate provides: service {0}, implementation {1}
2796
2797# 0: symbol
2798compiler.err.duplicate.uses=\
2799    duplicate uses: {0}
2800
2801# 0: symbol
2802compiler.err.service.implementation.is.abstract=\
2803    the service implementation is an abstract class: {0}
2804
2805compiler.err.service.implementation.must.be.subtype.of.service.interface=\
2806    the service implementation type must be a subtype of the service interface type, or \
2807    have a public static no-args method named "provider" returning the service implementation
2808
2809compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface=\
2810    the "provider" method return type must be a subtype of the service interface type
2811
2812# 0: symbol
2813compiler.err.service.implementation.is.inner=\
2814    the service implementation is an inner class: {0}
2815
2816# 0: symbol
2817compiler.err.service.definition.is.enum=\
2818    the service definition is an enum: {0}
2819
2820# 0: symbol
2821compiler.err.service.implementation.doesnt.have.a.no.args.constructor=\
2822    the service implementation does not have a default constructor: {0}
2823
2824# 0: symbol
2825compiler.err.service.implementation.no.args.constructor.not.public=\
2826    the no arguments constructor of the service implementation is not public: {0}
2827
2828# 0: symbol
2829compiler.err.package.empty.or.not.found=\
2830    package is empty or does not exist: {0}
2831
2832compiler.err.no.output.dir=\
2833    no class output directory specified
2834
2835compiler.err.unnamed.pkg.not.allowed.named.modules=\
2836    unnamed package is not allowed in named modules
2837
2838# 0: name, 1: name
2839compiler.err.module.name.mismatch=\
2840    module name {0} does not match expected name {1}
2841
2842# 0: name, 1: name
2843compiler.misc.module.name.mismatch=\
2844    module name {0} does not match expected name {1}
2845
2846# 0: name
2847compiler.err.module.non.zero.opens=\
2848    open module {0} has non-zero opens_count
2849
2850# 0: name
2851compiler.misc.module.non.zero.opens=\
2852    open module {0} has non-zero opens_count
2853
2854compiler.err.module.decl.sb.in.module-info.java=\
2855    module declarations should be in a file named module-info.java
2856
2857compiler.err.module-info.with.xmodule.sourcepath=\
2858    illegal combination of -Xmodule and module-info on sourcepath
2859
2860compiler.err.module-info.with.xmodule.classpath=\
2861    illegal combination of -Xmodule and module-info on classpath
2862
2863compiler.err.xmodule.no.module.sourcepath=\
2864    illegal combination of -Xmodule and --module-source-path
2865
2866compiler.err.processorpath.no.processormodulepath=\
2867    illegal combination of -processorpath and --processor-module-path
2868
2869# 0: symbol
2870compiler.err.package.in.other.module=\
2871    package exists in another module: {0}
2872
2873# 0: symbol, 1: name, 2: symbol, 3: symbol
2874compiler.err.package.clash.from.requires=\
2875    module {0} reads package {1} from both {2} and {3}
2876
2877# 0: string
2878compiler.err.module.not.found.in.module.source.path=\
2879    module {0} not found in module source path
2880
2881compiler.err.output.dir.must.be.specified.with.dash.m.option=\
2882    class output directory must be specified if -m option is used
2883
2884compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=\
2885    module source path must be specified if -m option is used
2886
2887# 0: symbol
2888compiler.err.service.implementation.not.in.right.module=\
2889    service implementation must be defined in the same module as the provides directive
2890
2891# 0: symbol
2892compiler.err.cyclic.requires=\
2893    cyclic dependence involving {0}
2894
2895# 0: fragment, 1: name
2896compiler.err.duplicate.module.on.path=\
2897    duplicate module on {0}\nmodule in {1}
2898
2899# 0: option name, 1: string
2900compiler.warn.bad.name.for.option=\
2901    bad name in value for {0} option: ''{1}''
2902
2903# 0: option name, 1: string
2904compiler.err.bad.name.for.option=\
2905    bad name in value for {0} option: ''{1}''
2906
2907# 0: option name, 1: symbol
2908compiler.warn.module.for.option.not.found=\
2909    module name in {0} option not found: {1}
2910
2911compiler.err.addmods.all.module.path.invalid=\
2912    --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module
2913
2914compiler.warn.addopens.ignored=\
2915    --add-opens has no effect at compile time
2916
2917compiler.misc.locn.module_source_path=\
2918    module source path
2919
2920compiler.misc.locn.upgrade_module_path=\
2921    upgrade module path
2922
2923compiler.misc.locn.system_modules=\
2924    system modules
2925
2926compiler.misc.locn.module_path=\
2927    application module path
2928
2929compiler.misc.cant.resolve.modules=\
2930    cannot resolve modules
2931
2932# 0: string
2933compiler.err.invalid.module.specifier=\
2934    module specifier not allowed: {0}
2935
2936# 0: symbol
2937compiler.warn.service.provided.but.not.exported.or.used=\
2938    service interface provided but not exported or used
2939
2940# 0: kind name, 1: symbol, 2: symbol
2941compiler.warn.leaks.not.accessible=\
2942    {0} {1} in module {2} is not accessible to clients that require this module
2943# 0: kind name, 1: symbol, 2: symbol
2944compiler.warn.leaks.not.accessible.unexported=\
2945    {0} {1} in module {2} is not exported
2946# 0: kind name, 1: symbol, 2: symbol
2947compiler.warn.leaks.not.accessible.not.required.transitive=\
2948    {0} {1} in module {2} is not indirectly exported using 'requires transitive'
2949# 0: kind name, 1: symbol, 2: symbol
2950compiler.warn.leaks.not.accessible.unexported.qualified=\
2951    {0} {1} in module {2} may not be visible to all clients that require this module
2952
2953###
2954# errors related to options
2955
2956# 0: string, 1: string
2957compiler.err.illegal.argument.for.option=\
2958    illegal argument for {0}: {1}
2959