1 #
2 # Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
27 # are preceded by a stylized comment describing the type of the corresponding
28 # values.
29 # The simple types currently in use are:
30 #
31 # annotation annotation compound
32 # boolean true or false
33 # diagnostic a sub-message; see compiler.misc.*
34 # fragment similar to 'message segment', but with more specific type
35 # modifier a Java modifier; e.g. public, private, protected
36 # file a file URL
37 # file object a file URL - similar to 'file' but typically used for source/class files, hence more specific
38 # flag a Flags.Flag instance
39 # name a name, typically a Java identifier
40 # number an integer
41 # option name the name of a command line option
42 # path a path
43 # profile a profile name
44 # source a source version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.code.Source
45 # source version a source version number, such as 1.5, 1.6, 1.7, taken from a javax.lang.model.SourceVersion
46 # string a general string
47 # symbol the name of a declared type
48 # symbol kind the kind of a symbol (i.e. method, variable)
49 # kind name an informative description of the kind of a declaration; see compiler.misc.kindname.*
50 # target a target version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.jvm.Target
51 # token the name of a non-terminal in source code; see compiler.misc.token.*
52 # tree tag the name of a non-terminal in source code; see compiler.misc.token.*
53 # type a Java type; e.g. int, X, X<T>
54 # url a URL
55 # object a Java object (unspecified)
56 # unused the value is not used in this message
57 #
58 # The following compound types are also used:
59 #
60 # collection of X a comma-separated collection of items; e.g. collection of type
61 # list of X a comma-separated list of items; e.g. list of type
62 # set of X a comma-separated set of items; e.g. set of modifier
63 #
64 # These may be composed:
65 #
66 # list of type or message segment
67 #
68 # The following type aliases are supported:
69 #
70 # message segment --> diagnostic or fragment
71 # file name --> file, path or file object
72 #
73 # Custom comments are supported in parenthesis i.e.
74 #
75 # number (classfile major version)
76 #
77 # These comments are used internally in order to generate an enum-like class declaration containing
78 # a method/field for each of the diagnostic keys listed here. Those methods/fields can then be used
79 # by javac code to build diagnostics in a type-safe fashion.
80 #
81 # In addition, these comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
82 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
83 # MessageInfo can also be run as a standalone utility providing more facilities
84 # for manipulating this file. For more details, see MessageInfo.java.
85
86 ##
87 ## errors
88 ##
89
90 # 0: symbol
91 compiler.err.abstract.cant.be.instantiated=\
92 {0} is abstract; cannot be instantiated
93
94 compiler.err.abstract.meth.cant.have.body=\
95 abstract methods cannot have a body
96
97 # 0: kind name, 1: symbol
98 compiler.err.already.annotated=\
99 {0} {1} has already been annotated
100
101 # 0: kind name, 1: symbol, 2: kind name, 3: symbol
102 compiler.err.already.defined=\
103 {0} {1} is already defined in {2} {3}
104
105 # 0: kind name, 1: symbol, 2: kind name, 3: kind name, 4: symbol
106 compiler.err.already.defined.in.clinit=\
107 {0} {1} is already defined in {2} of {3} {4}
108
109 # 0: symbol
110 compiler.err.already.defined.single.import=\
111 a type with the same simple name is already defined by the single-type-import of {0}
112
113 # 0: symbol
114 compiler.err.already.defined.static.single.import=\
115 a type with the same simple name is already defined by the static single-type-import of {0}
116
117 # 0: symbol
118 compiler.err.already.defined.this.unit=\
119 {0} is already defined in this compilation unit
120
121 compiler.err.annotation.missing.element.value=\
122 annotation is missing element value
123
124 # 0: type, 1: list of name
125 compiler.err.annotation.missing.default.value=\
126 annotation @{0} is missing a default value for the element ''{1}''
127
128 # 0: type, 1: list of name
129 compiler.err.annotation.missing.default.value.1=\
130 annotation @{0} is missing default values for elements {1}
131
132 # 0: type
133 compiler.err.annotation.not.valid.for.type=\
134 annotation not valid for an element of type {0}
135
136 compiler.err.annotation.type.not.applicable=\
137 annotation interface not applicable to this kind of declaration
138
139 # 0: type
140 compiler.err.annotation.type.not.applicable.to.type=\
141 annotation @{0} not applicable in this type context
142
143 compiler.err.annotation.value.must.be.annotation=\
144 annotation value must be an annotation
145
146 compiler.err.annotation.value.must.be.class.literal=\
147 annotation value must be a class literal
148
149 compiler.err.annotation.value.must.be.name.value=\
150 annotation values must be of the form ''name=value''
151
152 compiler.err.annotation.value.not.allowable.type=\
153 annotation value not of an allowable type
154
155 compiler.err.expression.not.allowable.as.annotation.value=\
156 expression not allowed as annotation value
157
158 # 0: type, 1: name
159 compiler.err.annotation.unrecognized.attribute.name=\
160 annotation @{0} has an unknown attribute named ''{1}''
161
162 compiler.err.anon.class.impl.intf.no.args=\
163 anonymous class implements interface; cannot have arguments
164
165 compiler.err.anon.class.impl.intf.no.typeargs=\
166 anonymous class implements interface; cannot have type arguments
167
168 compiler.err.anon.class.impl.intf.no.qual.for.new=\
169 anonymous class implements interface; cannot have qualifier for new
170
171 compiler.err.cant.inherit.from.anon=\
172 cannot inherit from anonymous class
173
174 # 0: symbol, 1: symbol, 2: symbol
175 compiler.err.array.and.varargs=\
176 cannot declare both {0} and {1} in {2}
177
178 compiler.err.array.dimension.missing=\
179 array dimension missing
180
181 compiler.err.illegal.array.creation.both.dimension.and.initialization=\
182 array creation with both dimension expression and initialization is illegal
183
184 # 0: type
185 compiler.err.array.req.but.found=\
186 array required, but {0} found
187
188 compiler.err.attribute.value.must.be.constant=\
189 element value must be a constant expression
190
191 # 0: string (statement type)
192 compiler.err.bad.initializer=\
193 bad initializer for {0}
194
195 compiler.err.break.outside.switch.loop=\
196 break outside switch or loop
197
198 compiler.err.break.outside.switch.expression=\
199 attempt to break out of a switch expression
200
201 compiler.err.continue.outside.switch.expression=\
202 attempt to continue out of a switch expression
203
204 compiler.err.return.outside.switch.expression=\
205 attempt to return out of a switch expression
206
207 compiler.err.rule.completes.normally=\
208 switch rule completes without providing a value\n\
209 (switch rules in switch expressions must either provide a value or throw)
210
211 compiler.err.switch.expression.completes.normally=\
212 switch expression completes without providing a value\n\
213 (switch expressions must either provide a value or throw for all possible input values)
214
215 compiler.err.no.switch.expression =\
216 yield outside of switch expression
217
218 compiler.err.no.switch.expression.qualify=\
219 yield outside of switch expression\n\
220 (to invoke a method called yield, qualify the yield with a receiver or type name)
221
222 compiler.err.invalid.yield=\
223 invalid use of a restricted identifier ''yield''\n\
224 (to invoke a method called yield, qualify the yield with a receiver or type name)
225
226 compiler.warn.invalid.yield=\
227 ''yield'' may become a restricted identifier in a future release\n\
228 (to invoke a method called yield, qualify the yield with a receiver or type name)
229
230 compiler.err.switch.expression.empty=\
231 switch expression does not have any case clauses
232
233 compiler.err.switch.expression.no.result.expressions=\
234 switch expression does not have any result expressions
235
236 compiler.err.call.must.only.appear.in.ctor=\
237 explicit constructor invocation may only appear within a constructor body
238
239 compiler.err.redundant.superclass.init=\
240 redundant explicit constructor invocation
241
242 compiler.err.ctor.calls.not.allowed.here=\
243 explicit constructor invocation not allowed here
244
245 compiler.err.return.before.superclass.initialized=\
246 ''return'' not allowed before explicit constructor invocation
247
248 # 0: symbol kind, 1: name, 2: symbol kind, 3: type, 4: message segment
249 compiler.err.cant.apply.symbol.noargs=\
250 {0} {1} in {2} {3} cannot be applied to given types;\n\
251 reason: {4}
252
253 # 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
254 compiler.err.cant.apply.symbol=\
255 {0} {1} in {4} {5} cannot be applied to given types;\n\
256 required: {2}\n\
257 found: {3}\n\
258 reason: {6}
259
260 # 0: symbol kind, 1: name, 2: list of type
261 compiler.err.cant.apply.symbols=\
262 no suitable {0} found for {1}({2})
263
264 # 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
265 compiler.misc.cant.apply.symbol=\
266 {0} {1} in {4} {5} cannot be applied to given types\n\
267 required: {2}\n\
268 found: {3}\n\
269 reason: {6}
270
271 # 0: list of type or message segment, 1: list of type or message segment, 2: message segment
272 compiler.misc.cant.apply.array.ctor=\
273 cannot create array from given types\n\
274 required: {0}\n\
275 found: {1}\n\
276 reason: {2}
277
278 # 0: symbol kind, 1: name, 2: list of type
279 compiler.misc.cant.apply.symbols=\
280 no suitable {0} found for {1}({2})
281
282 # 0: kind name, 1: symbol
283 compiler.misc.no.abstracts=\
284 no abstract method found in {0} {1}
285
286 # 0: kind name, 1: symbol
287 compiler.misc.incompatible.abstracts=\
288 multiple non-overriding abstract methods found in {0} {1}
289
290 compiler.err.bad.functional.intf.anno=\
291 Unexpected @FunctionalInterface annotation
292
293 # 0: message segment
294 compiler.err.bad.functional.intf.anno.1=\
295 Unexpected @FunctionalInterface annotation\n\
296 {0}
297
298 # 0: message segment
299 compiler.err.anonymous.diamond.method.does.not.override.superclass=\
300 method does not override or implement a method from a supertype\n\
301 {0}
302
303 # 0: symbol
304 compiler.misc.not.a.functional.intf=\
305 {0} is not a functional interface
306
307 # 0: symbol, 1: message segment
308 compiler.misc.not.a.functional.intf.1=\
309 {0} is not a functional interface\n\
310 {1}
311
312 # 0: type, 1: kind name, 2: symbol
313 compiler.misc.invalid.generic.lambda.target=\
314 invalid functional descriptor for lambda expression\n\
315 method {0} in {1} {2} is generic
316
317 # 0: kind name, 1: symbol
318 compiler.misc.incompatible.descs.in.functional.intf=\
319 incompatible function descriptors found in {0} {1}
320
321 # 0: name, 1: list of type, 2: type, 3: list of type
322 compiler.misc.descriptor=\
323 descriptor: {2} {0}({1})
324
325 # 0: name, 1: list of type, 2: type, 3: list of type
326 compiler.misc.descriptor.throws=\
327 descriptor: {2} {0}({1}) throws {3}
328
329 # 0: type
330 compiler.misc.no.suitable.functional.intf.inst=\
331 cannot infer functional interface descriptor for {0}
332
333 # 0: message segment
334 compiler.misc.bad.intersection.target.for.functional.expr=\
335 bad intersection type target for lambda or method reference\n\
336 {0}
337
338 # 0: symbol or type
339 compiler.misc.not.an.intf.component=\
340 component type {0} is not an interface or java.lang.Object
341
342 # 0: kind name, 1: message segment
343 compiler.err.invalid.mref=\
344 invalid {0} reference\n\
345 {1}
346
347 # 0: kind name, 1: message segment
348 compiler.misc.invalid.mref=\
349 invalid {0} reference\n\
350 {1}
351
352 compiler.misc.static.mref.with.targs=\
353 parameterized qualifier on static method reference
354
355 # 0: set of flag or string, 1: symbol
356 compiler.err.cant.assign.val.to.var=\
357 cannot assign a value to {0} variable {1}
358
359 compiler.err.cant.assign.val.to.this=\
360 cannot assign to ''this''
361
362 # 0: symbol, 1: message segment
363 compiler.err.cant.ref.non.effectively.final.var=\
364 local variables referenced from {1} must be final or effectively final
365
366 compiler.err.try.with.resources.expr.needs.var=\
367 the try-with-resources resource must either be a variable declaration or an expression denoting \
368 a reference to a final or effectively final variable
369
370 # 0: symbol
371 compiler.err.try.with.resources.expr.effectively.final.var=\
372 variable {0} used as a try-with-resources resource neither final nor effectively final
373
374
375 compiler.misc.lambda=\
376 a lambda expression
377
378 compiler.misc.inner.cls=\
379 an inner class
380
381 compiler.misc.guard=\
382 a guard
383
384 # 0: type
385 compiler.err.cant.deref=\
386 {0} cannot be dereferenced
387
388 compiler.err.cant.extend.intf.annotation=\
389 ''extends'' not allowed for @interfaces
390
391 compiler.err.annotation.decl.not.allowed.here=\
392 annotation interface declaration not allowed here
393
394 # 0: symbol
395 compiler.err.cant.inherit.from.final=\
396 cannot inherit from final {0}
397
398 # 0: symbol or name
399 compiler.err.cant.ref.before.ctor.called=\
400 cannot reference {0} before supertype constructor has been called
401
402 # 0: symbol or name
403 compiler.err.cant.assign.initialized.before.ctor.called=\
404 cannot assign initialized field ''{0}'' before supertype constructor has been called
405
406 compiler.err.cant.select.static.class.from.param.type=\
407 cannot select a static class from a parameterized type
408
409 # 0: symbol, 1: string, 2: string
410 compiler.err.cant.inherit.diff.arg=\
411 {0} cannot be inherited with different arguments: <{1}> and <{2}>
412
413 compiler.err.catch.without.try=\
414 ''catch'' without ''try''
415
416 # 0: kind name, 1: symbol
417 compiler.err.clash.with.pkg.of.same.name=\
418 {0} {1} clashes with package of same name
419
420 compiler.err.class.not.allowed=\
421 class, interface or enum declaration not allowed here
422
423 compiler.err.const.expr.req=\
424 constant expression required
425
426 compiler.err.pattern.or.enum.req=\
427 pattern or enum constant required
428
429 compiler.err.cont.outside.loop=\
430 continue outside of loop
431
432 # 0: symbol or type
433 compiler.err.cyclic.inheritance=\
434 cyclic inheritance involving {0}
435
436 # 0: symbol
437 compiler.err.cyclic.annotation.element=\
438 type of element {0} is cyclic
439
440 # 0: symbol
441 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
442 call to super not allowed in enum constructor
443
444 # 0: type
445 compiler.err.no.superclass=\
446 {0} has no superclass.
447
448 # 0: symbol, 1: type, 2: symbol, 3: type, 4: type
449 compiler.err.concrete.inheritance.conflict=\
450 methods {0} from {1} and {2} from {3} are inherited with the same signature
451
452 compiler.err.default.allowed.in.intf.annotation.member=\
453 default value only allowed in an annotation interface declaration
454
455 # 0: symbol
456 compiler.err.doesnt.exist=\
457 package {0} does not exist
458
459 # 0: type
460 compiler.err.duplicate.annotation.invalid.repeated=\
461 annotation {0} is not a valid repeatable annotation
462
463 # 0: name, 1: type
464 compiler.err.duplicate.annotation.member.value=\
465 duplicate element ''{0}'' in annotation @{1}.
466
467 # 0: type
468 compiler.err.duplicate.annotation.missing.container=\
469 {0} is not a repeatable annotation interface
470
471 # 0: symbol
472 compiler.err.invalid.repeatable.annotation=\
473 duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
474
475 # 0: symbol or type
476 compiler.err.invalid.repeatable.annotation.no.value=\
477 {0} is not a valid @Repeatable, no value element method declared
478
479 # 0: type, 1: number
480 compiler.err.invalid.repeatable.annotation.multiple.values=\
481 {0} is not a valid @Repeatable, {1} element methods named ''value'' declared
482
483 # 0: type
484 compiler.err.invalid.repeatable.annotation.invalid.value=\
485 {0} is not a valid @Repeatable: invalid value element
486
487 # 0: symbol or type, 1: type, 2: type
488 compiler.err.invalid.repeatable.annotation.value.return=\
489 containing annotation interface ({0}) must declare an element named ''value'' of type {2}
490
491 # 0: symbol or type, 1: symbol
492 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
493 containing annotation interface ({0}) does not have a default value for element {1}
494
495 # 0: symbol, 1: string, 2: symbol, 3: string
496 compiler.err.invalid.repeatable.annotation.retention=\
497 retention of containing annotation interface ({0}) is shorter than the retention of repeatable annotation interface ({2})
498
499 # 0: symbol, 1: symbol
500 compiler.err.invalid.repeatable.annotation.not.documented=\
501 repeatable annotation interface ({1}) is @Documented while containing annotation interface ({0}) is not
502
503 # 0: symbol, 1: symbol
504 compiler.err.invalid.repeatable.annotation.not.inherited=\
505 repeatable annotation interface ({1}) is @Inherited while containing annotation interface ({0}) is not
506
507 # 0: symbol, 1: symbol
508 compiler.err.invalid.repeatable.annotation.incompatible.target=\
509 containing annotation interface ({0}) is applicable to more targets than repeatable annotation interface ({1})
510
511 # 0: symbol
512 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
513 container {0} must not be present at the same time as the element it contains
514
515 # 0: type, 1: symbol
516 compiler.err.invalid.repeatable.annotation.not.applicable=\
517 container {0} is not applicable to element {1}
518
519 # 0: type
520 compiler.err.invalid.repeatable.annotation.not.applicable.in.context=\
521 container {0} is not applicable in this type context
522
523 # 0: name
524 compiler.err.duplicate.class=\
525 duplicate class: {0}
526
527 # 0: string
528 compiler.err.bad.file.name=\
529 bad file name: {0}
530
531 compiler.err.implicit.class.should.not.have.package.declaration=\
532 compact source file should not have package declaration
533
534 compiler.err.implicit.class.does.not.have.main.method=\
535 compact source file does not have main method in the form of void main() or void main(String[] args)
536
537 # 0: name, 1: name
538 compiler.err.same.binary.name=\
539 classes: {0} and {1} have the same binary name
540
541 compiler.err.duplicate.case.label=\
542 duplicate case label
543
544 compiler.err.pattern.dominated=\
545 this case label is dominated by a preceding case label
546
547 compiler.err.duplicate.default.label=\
548 duplicate default label
549
550 compiler.err.duplicate.unconditional.pattern=\
551 duplicate unconditional pattern
552
553 compiler.err.unconditional.pattern.and.default=\
554 switch has both an unconditional pattern and a default label
555
556 compiler.err.unconditional.pattern.and.both.boolean.values=\
557 switch has both boolean values and an unconditional pattern
558
559 compiler.err.default.and.both.boolean.values=\
560 switch has both boolean values and a default label
561
562 compiler.err.guard.not.allowed=\
563 guards are only allowed for case with a pattern
564
565 compiler.err.guard.has.constant.expression.false=\
566 this case label has a guard that is a constant expression with value ''false''
567
568 # 0: symbol
569 compiler.err.cannot.assign.not.declared.guard=\
570 cannot assign to {0}, as it was not declared inside the guard
571
572 # 0: type, 1: type
573 compiler.err.constant.label.not.compatible=\
574 constant label of type {0} is not compatible with switch selector type {1}
575
576 compiler.err.flows.through.to.pattern=\
577 illegal fall-through to a pattern\n\
578 (the previous case label is missing a break)
579
580 compiler.err.flows.through.from.pattern=\
581 illegal fall-through from a pattern\n\
582 (the current case label is missing a break)
583
584 compiler.err.invalid.case.label.combination=\
585 invalid case label combination
586
587 compiler.err.default.label.not.allowed=\
588 default label not allowed here
589
590 compiler.err.pattern.type.cannot.infer=\
591 cannot infer pattern type
592
593 compiler.err.else.without.if=\
594 ''else'' without ''if''
595
596 compiler.err.empty.char.lit=\
597 empty character literal
598
599 # 0: symbol
600 compiler.err.encl.class.required=\
601 an enclosing instance that contains {0} is required
602
603 compiler.err.enum.annotation.must.be.enum.constant=\
604 an enum annotation value must be an enum constant
605
606 compiler.err.enum.cant.be.instantiated=\
607 enum classes may not be instantiated
608
609 compiler.err.enum.label.must.be.unqualified.enum=\
610 an enum switch case label must be the unqualified name of an enumeration constant
611
612 compiler.err.enum.label.must.be.enum.constant=\
613 an enum switch constant case label must be an enumeration constant
614
615 compiler.err.enum.no.subclassing=\
616 classes cannot directly extend java.lang.Enum
617
618 compiler.err.enum.types.not.extensible=\
619 enum classes are not extensible
620
621 compiler.err.enum.no.finalize=\
622 enums cannot have finalize methods
623
624 compiler.err.enum.cant.be.generic=\
625 enums cannot be generic
626
627 # 0: file name, 1: string
628 compiler.err.error.reading.file=\
629 error reading {0}; {1}
630
631 # 0: type
632 compiler.err.except.already.caught=\
633 exception {0} has already been caught
634
635 # 0: type
636 compiler.err.except.never.thrown.in.try=\
637 exception {0} is never thrown in body of corresponding try statement
638
639 # 0: symbol
640 compiler.err.final.parameter.may.not.be.assigned=\
641 final parameter {0} may not be assigned
642
643 # 0: symbol
644 compiler.err.try.resource.may.not.be.assigned=\
645 auto-closeable resource {0} may not be assigned
646
647 # 0: symbol
648 compiler.err.multicatch.parameter.may.not.be.assigned=\
649 multi-catch parameter {0} may not be assigned
650
651 # 0: type, 1: type
652 compiler.err.multicatch.types.must.be.disjoint=\
653 Alternatives in a multi-catch statement cannot be related by subclassing\n\
654 Alternative {0} is a subclass of alternative {1}
655
656 compiler.err.finally.without.try=\
657 ''finally'' without ''try''
658
659 # 0: type, 1: message segment
660 compiler.err.foreach.not.applicable.to.type=\
661 for-each not applicable to expression type\n\
662 required: {1}\n\
663 found: {0}
664
665 compiler.err.fp.number.too.large=\
666 floating-point number too large
667
668 compiler.err.fp.number.too.small=\
669 floating-point number too small
670
671 compiler.err.generic.array.creation=\
672 generic array creation
673
674 compiler.err.generic.throwable=\
675 a generic class may not extend java.lang.Throwable
676
677 # 0: symbol
678 compiler.err.icls.cant.have.static.decl=\
679 Illegal static declaration in inner class {0}\n\
680 modifier \''static\'' is only allowed in constant variable declarations
681
682 # 0: string
683 compiler.err.illegal.char=\
684 illegal character: ''{0}''
685
686 # 0: string, 1: string
687 compiler.err.illegal.char.for.encoding=\
688 unmappable character (0x{0}) for encoding {1}
689
690 # 0: set of flag, 1: set of flag
691 compiler.err.illegal.combination.of.modifiers=\
692 illegal combination of modifiers: {0} and {1}
693
694 compiler.err.illegal.enum.static.ref=\
695 illegal reference to static field from initializer
696
697 compiler.err.illegal.char.literal.multiple.surrogates=\
698 character literal contains more than one UTF-16 code unit
699
700 compiler.err.illegal.esc.char=\
701 illegal escape character
702
703 compiler.err.illegal.forward.ref=\
704 illegal forward reference
705
706 # 0: symbol, 1: object
707 compiler.err.not.in.profile=\
708 {0} is not available in profile ''{1}''
709
710 # 0: symbol
711 compiler.warn.forward.ref=\
712 reference to variable ''{0}'' before it has been initialized
713
714 # lint: this-escape
715 compiler.warn.possible.this.escape=\
716 possible ''this'' escape before subclass is fully initialized
717
718 # lint: this-escape
719 compiler.warn.possible.this.escape.location=\
720 previous possible ''this'' escape happens here via invocation
721
722 compiler.err.illegal.self.ref=\
723 self-reference in initializer
724
725 # 0: symbol
726 compiler.warn.self.ref=\
727 self-reference in initializer of variable ''{0}''
728
729 # 0: type
730 compiler.err.illegal.initializer.for.type=\
731 illegal initializer for {0}
732
733 compiler.err.illegal.line.end.in.char.lit=\
734 illegal line end in character literal
735
736 compiler.err.illegal.text.block.open=\
737 illegal text block open delimiter sequence, missing line terminator
738
739 # lint: text-blocks
740 compiler.warn.inconsistent.white.space.indentation=\
741 inconsistent white space indentation
742
743 # lint: text-blocks
744 compiler.warn.trailing.white.space.will.be.removed=\
745 trailing white space will be removed
746
747 compiler.err.illegal.nonascii.digit=\
748 illegal non-ASCII digit
749
750 compiler.err.illegal.underscore=\
751 illegal underscore
752
753 compiler.err.illegal.dot=\
754 illegal ''.''
755
756 compiler.err.illegal.digit.in.binary.literal=\
757 illegal digit in a binary literal
758
759 compiler.err.illegal.digit.in.octal.literal=\
760 illegal digit in an octal literal
761
762 # 0: symbol
763 compiler.err.illegal.qual.not.icls=\
764 illegal qualifier; {0} is not an inner class
765
766 compiler.err.illegal.start.of.expr=\
767 illegal start of expression
768
769 compiler.err.illegal.start.of.stmt=\
770 illegal start of statement
771
772 compiler.err.illegal.start.of.type=\
773 illegal start of type
774
775 compiler.err.illegal.parenthesized.expression=\
776 illegal parenthesized expression
777
778 compiler.err.illegal.unicode.esc=\
779 illegal unicode escape
780
781 # 0: symbol
782 compiler.err.import.requires.canonical=\
783 import requires canonical name for {0}
784
785 compiler.err.improperly.formed.type.param.missing=\
786 improperly formed type, some parameters are missing
787
788 compiler.err.improperly.formed.type.inner.raw.param=\
789 improperly formed type, type arguments given on a raw type
790
791 # 0: type, 1: type
792 compiler.err.incomparable.types=\
793 incomparable types: {0} and {1}
794
795 # 0: string
796 compiler.err.int.number.too.large=\
797 integer number too large
798
799 compiler.err.intf.annotation.members.cant.have.params=\
800 elements in annotation interface declarations cannot declare formal parameters
801
802 # 0: symbol
803 compiler.err.intf.annotation.cant.have.type.params=\
804 annotation interface {0} cannot be generic
805
806 compiler.err.intf.annotation.members.cant.have.type.params=\
807 elements in annotation interface declarations cannot be generic methods
808
809 # 0: symbol, 1: type
810 compiler.err.intf.annotation.member.clash=\
811 annotation interface {1} declares an element with the same name as method {0}
812
813 compiler.err.intf.expected.here=\
814 interface expected here
815
816 compiler.err.intf.meth.cant.have.body=\
817 interface abstract methods cannot have body
818
819 compiler.err.invalid.annotation.member.type=\
820 invalid type for annotation interface element
821
822 compiler.err.invalid.binary.number=\
823 binary numbers must contain at least one binary digit
824
825 compiler.err.invalid.hex.number=\
826 hexadecimal numbers must contain at least one hexadecimal digit
827
828 compiler.err.invalid.meth.decl.ret.type.req=\
829 invalid method declaration; return type required
830
831 compiler.err.varargs.and.old.array.syntax=\
832 legacy array notation not allowed on variable-arity parameter
833
834 compiler.err.varargs.and.receiver =\
835 varargs notation not allowed on receiver parameter
836
837 compiler.err.varargs.must.be.last =\
838 varargs parameter must be the last parameter
839
840 compiler.err.array.and.receiver =\
841 legacy array notation not allowed on receiver parameter
842
843 compiler.err.wrong.receiver =\
844 wrong receiver parameter name
845
846 compiler.err.variable.not.allowed=\
847 variable declaration not allowed here
848
849 # 0: name
850 compiler.err.label.already.in.use=\
851 label {0} already in use
852
853 compiler.err.local.enum=\
854 enum classes must not be local
855
856 compiler.err.cannot.create.array.with.type.arguments=\
857 cannot create array with type arguments
858
859 compiler.err.cannot.create.array.with.diamond=\
860 cannot create array with ''<>''
861
862 compiler.err.invalid.module.directive=\
863 module directive keyword or ''}'' expected
864
865 #
866 # limits. We don't give the limits in the diagnostic because we expect
867 # them to change, yet we want to use the same diagnostic. These are all
868 # detected during code generation.
869 #
870 compiler.err.limit.code=\
871 code too large
872
873 compiler.err.limit.code.too.large.for.try.stmt=\
874 code too large for try statement
875
876 compiler.err.limit.dimensions=\
877 array type has too many dimensions
878
879 compiler.err.limit.locals=\
880 too many local variables
881
882 compiler.err.limit.parameters=\
883 too many parameters
884
885 compiler.err.limit.pool=\
886 too many constants
887
888 compiler.err.limit.pool.in.class=\
889 too many constants in class {0}
890
891 compiler.err.limit.stack=\
892 code requires too much stack
893
894 compiler.err.limit.string=\
895 constant string too long
896
897 # 0: symbol
898 compiler.err.annotation.array.too.large=\
899 Annotation array element too large in \"{0}\"
900
901 # 0: string
902 compiler.err.limit.string.overflow=\
903 UTF8 representation for string \"{0}...\" is too long for the constant pool
904
905 compiler.err.malformed.fp.lit=\
906 malformed floating-point literal
907
908 compiler.err.method.does.not.override.superclass=\
909 method does not override or implement a method from a supertype
910
911 compiler.err.static.methods.cannot.be.annotated.with.override=\
912 static methods cannot be annotated with @Override
913
914 compiler.err.missing.meth.body.or.decl.abstract=\
915 missing method body, or declare abstract
916
917 compiler.err.missing.ret.stmt=\
918 missing return statement
919
920 # 0: type
921 compiler.misc.missing.ret.val=\
922 missing return value
923
924 compiler.misc.unexpected.ret.val=\
925 unexpected return value
926
927 # 0: set of flag
928 compiler.err.mod.not.allowed.here=\
929 modifier {0} not allowed here
930
931 compiler.err.intf.not.allowed.here=\
932 interface not allowed here
933
934 # 0: symbol, 1: symbol
935 compiler.err.name.clash.same.erasure=\
936 name clash: {0} and {1} have the same erasure
937
938 # 0: name, 1: list of type, 2: symbol, 3: name, 4: list of type, 5: symbol
939 compiler.err.name.clash.same.erasure.no.override=\
940 name clash: {0}({1}) in {2} and {3}({4}) in {5} have the same erasure, yet neither overrides the other
941
942 # 0: string, 1: name, 2: name, 3: list of type, 4: symbol, 5: name, 6: list of type, 7: symbol
943 compiler.err.name.clash.same.erasure.no.override.1=\
944 name clash: {0} {1} has two methods with the same erasure, yet neither overrides the other\n\
945 first method: {2}({3}) in {4}\n\
946 second method: {5}({6}) in {7}
947
948 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
949 compiler.err.name.clash.same.erasure.no.hide=\
950 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
951
952 compiler.err.name.reserved.for.internal.use=\
953 {0} is reserved for internal use
954
955 compiler.err.native.meth.cant.have.body=\
956 native methods cannot have a body
957
958
959 # 0: message segment
960 compiler.misc.incompatible.type.in.conditional=\
961 bad type in conditional expression\n\
962 {0}
963
964 compiler.misc.conditional.target.cant.be.void=\
965 target-type for conditional expression cannot be void
966
967 compiler.misc.switch.expression.target.cant.be.void=\
968 target-type for switch expression cannot be void
969
970 # 0: message segment
971 compiler.misc.incompatible.type.in.switch.expression=\
972 bad type in switch expression\n\
973 {0}
974
975 # 0: message segment
976 compiler.misc.incompatible.ret.type.in.lambda=\
977 bad return type in lambda expression\n\
978 {0}
979
980 compiler.misc.stat.expr.expected=\
981 lambda body is not compatible with a void functional interface\n\
982 (consider using a block lambda body, or use a statement expression instead)
983
984 # 0: message segment
985 compiler.misc.incompatible.ret.type.in.mref=\
986 bad return type in method reference\n\
987 {0}
988
989 compiler.err.lambda.body.neither.value.nor.void.compatible=\
990 lambda body is neither value nor void compatible
991
992 # 0: list of type
993 compiler.err.incompatible.thrown.types.in.mref=\
994 incompatible thrown types {0} in functional expression
995
996 compiler.misc.incompatible.arg.types.in.lambda=\
997 incompatible parameter types in lambda expression
998
999 compiler.misc.incompatible.arg.types.in.mref=\
1000 incompatible parameter types in method reference
1001
1002 compiler.err.new.not.allowed.in.annotation=\
1003 ''new'' not allowed in an annotation
1004
1005 # 0: name, 1: type
1006 compiler.err.no.annotation.member=\
1007 no annotation member {0} in {1}
1008
1009 # 0: symbol
1010 compiler.err.no.encl.instance.of.type.in.scope=\
1011 no enclosing instance of type {0} is in scope
1012
1013 compiler.err.no.intf.expected.here=\
1014 no interface expected here
1015
1016 compiler.err.no.match.entry=\
1017 {0} has no match in entry in {1}; required {2}
1018
1019 # 0: type
1020 compiler.err.not.annotation.type=\
1021 {0} is not an annotation interface
1022
1023 # 0: symbol, 1: symbol, 2: message segment
1024 compiler.err.not.def.access.package.cant.access=\
1025 {0} is not visible\n\
1026 ({2})
1027
1028 # 0: symbol, 1: symbol, 2: message segment
1029 compiler.misc.not.def.access.package.cant.access=\
1030 {0} is not visible\n\
1031 ({2})
1032
1033 # 0: symbol, 1: message segment
1034 compiler.err.package.not.visible=\
1035 package {0} is not visible\n\
1036 ({1})
1037
1038 # 0: symbol, 1: message segment
1039 compiler.misc.package.not.visible=\
1040 package {0} is not visible\n\
1041 ({1})
1042
1043 # {0} - current module
1044 # {1} - package in which the invisible class is declared
1045 # {2} - module in which {1} is declared
1046 # 0: symbol, 1: symbol, 2: symbol
1047 compiler.misc.not.def.access.does.not.read=\
1048 package {1} is declared in module {2}, but module {0} does not read it
1049
1050 # {0} - package in which the invisible class is declared
1051 # {1} - module in which {0} is declared
1052 # 0: symbol, 1: symbol
1053 compiler.misc.not.def.access.does.not.read.from.unnamed=\
1054 package {0} is declared in module {1}, which is not in the module graph
1055
1056 # {0} - package in which the invisible class is declared
1057 # {1} - current module
1058 # 0: symbol, 1: symbol
1059 compiler.misc.not.def.access.does.not.read.unnamed=\
1060 package {0} is declared in the unnamed module, but module {1} does not read it
1061
1062 # {0} - package in which the invisible class is declared
1063 # {1} - module in which {0} is declared
1064 # 0: symbol, 1: symbol
1065 compiler.misc.not.def.access.not.exported=\
1066 package {0} is declared in module {1}, which does not export it
1067
1068 # {0} - package in which the invisible class is declared
1069 # {1} - module in which {0} is declared
1070 # 0: symbol, 1: symbol
1071 compiler.misc.not.def.access.not.exported.from.unnamed=\
1072 package {0} is declared in module {1}, which does not export it
1073
1074 # {0} - package in which the invisible class is declared
1075 # {1} - module in which {0} is declared
1076 # {2} - current module
1077 # 0: symbol, 1: symbol, 2: symbol
1078 compiler.misc.not.def.access.not.exported.to.module=\
1079 package {0} is declared in module {1}, which does not export it to module {2}
1080
1081 # {0} - package in which the invisible class is declared
1082 # {1} - module in which {0} is declared
1083 # 0: symbol, 1: symbol
1084 compiler.misc.not.def.access.not.exported.to.module.from.unnamed=\
1085 package {0} is declared in module {1}, which does not export it to the unnamed module
1086
1087 # 0: symbol, 1: symbol
1088 compiler.err.not.def.access.class.intf.cant.access=\
1089 {1}.{0} is defined in an inaccessible class or interface
1090
1091 # 0: symbol, 1: symbol
1092 compiler.misc.not.def.access.class.intf.cant.access=\
1093 {1}.{0} is defined in an inaccessible class or interface
1094
1095 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
1096 compiler.err.not.def.access.class.intf.cant.access.reason=\
1097 {1}.{0} in package {2} is not accessible\n\
1098 ({3})
1099
1100 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
1101 compiler.misc.not.def.access.class.intf.cant.access.reason=\
1102 {1}.{0} in package {2} is not accessible\n\
1103 ({3})
1104
1105 # 0: symbol, 1: symbol
1106 compiler.err.not.def.public.cant.access=\
1107 {0} is not public in {1}; cannot be accessed from outside package
1108
1109 # 0: symbol, 1: symbol
1110 compiler.err.not.def.public=\
1111 {0} is not public in {1}
1112
1113 # 0: symbol, 1: symbol
1114 compiler.misc.not.def.public.cant.access=\
1115 {0} is not public in {1}; cannot be accessed from outside package
1116
1117 # 0: name
1118 compiler.err.not.loop.label=\
1119 not a loop label: {0}
1120
1121 compiler.err.not.stmt=\
1122 not a statement
1123
1124 # 0: symbol
1125 compiler.err.not.encl.class=\
1126 not an enclosing class: {0}
1127
1128 # 0: name, 1: type
1129 compiler.err.operator.cant.be.applied=\
1130 bad operand type {1} for unary operator ''{0}''
1131
1132 # 0: name, 1: type, 2: type
1133 compiler.err.operator.cant.be.applied.1=\
1134 bad operand types for binary operator ''{0}''\n\
1135 first type: {1}\n\
1136 second type: {2}
1137
1138 compiler.err.pkg.annotations.sb.in.package-info.java=\
1139 package annotations should be in file package-info.java
1140
1141 compiler.err.no.pkg.in.module-info.java=\
1142 package declarations not allowed in file module-info.java
1143
1144 # 0: symbol
1145 compiler.err.pkg.clashes.with.class.of.same.name=\
1146 package {0} clashes with class of same name
1147
1148 compiler.err.warnings.and.werror=\
1149 warnings found and -Werror specified
1150
1151 # Errors related to annotation processing
1152
1153 # 0: symbol, 1: message segment, 2: string (stack-trace)
1154 compiler.err.proc.cant.access=\
1155 cannot access {0}\n\
1156 {1}\n\
1157 Consult the following stack trace for details.\n\
1158 {2}
1159
1160 # 0: symbol, 1: message segment
1161 compiler.err.proc.cant.access.1=\
1162 cannot access {0}\n\
1163 {1}
1164
1165 # 0: string
1166 compiler.err.proc.cant.find.class=\
1167 Could not find class file for ''{0}''.
1168
1169 # 0: string
1170 compiler.err.proc.cant.load.class=\
1171 Could not load processor class file due to ''{0}''.
1172
1173 # Print a client-generated error message; assumed to be localized, no translation required
1174 # 0: string
1175 compiler.err.proc.messager=\
1176 {0}
1177
1178 # 0: string
1179 compiler.misc.exception.message=\
1180 {0}
1181
1182 compiler.misc.user.selected.completion.failure=\
1183 user-selected completion failure by class name
1184
1185 # 0: collection of string
1186 compiler.err.proc.no.explicit.annotation.processing.requested=\
1187 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
1188
1189 # 0: string, 1: string
1190 compiler.err.proc.processor.bad.option.name=\
1191 Bad option name ''{0}'' provided by processor ''{1}''
1192
1193 # 0: string
1194 compiler.err.proc.processor.cant.instantiate=\
1195 Could not instantiate an instance of processor ''{0}''
1196
1197 # 0: string
1198 compiler.err.proc.processor.not.found=\
1199 Annotation processor ''{0}'' not found
1200
1201 # 0: string
1202 compiler.err.proc.processor.wrong.type=\
1203 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
1204
1205 compiler.err.proc.service.problem=\
1206 Error creating a service loader to load Processors.
1207
1208 # 0: string
1209 compiler.err.proc.bad.config.file=\
1210 Bad service configuration file, or exception thrown while constructing Processor object: {0}
1211
1212 compiler.err.proc.cant.create.loader=\
1213 Could not create class loader for annotation processors: {0}
1214
1215 # 0: symbol
1216 compiler.err.qualified.new.of.static.class=\
1217 qualified new of static class
1218
1219 compiler.err.recursive.ctor.invocation=\
1220 recursive constructor invocation
1221
1222 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
1223 compiler.err.ref.ambiguous=\
1224 reference to {0} is ambiguous\n\
1225 both {1} {2} in {3} and {4} {5} in {6} match
1226
1227 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
1228 compiler.misc.ref.ambiguous=\
1229 reference to {0} is ambiguous\n\
1230 both {1} {2} in {3} and {4} {5} in {6} match
1231
1232 compiler.err.repeated.annotation.target=\
1233 repeated annotation target
1234
1235 compiler.err.repeated.interface=\
1236 repeated interface
1237
1238 compiler.err.repeated.modifier=\
1239 repeated modifier
1240
1241 # 0: symbol, 1: set of modifier, 2: symbol
1242 compiler.err.report.access=\
1243 {0} has {1} access in {2}
1244
1245 # 0: symbol, 1: set of modifier, 2: symbol
1246 compiler.misc.report.access=\
1247 {0} has {1} access in {2}
1248
1249 compiler.err.ret.outside.meth=\
1250 return outside method
1251
1252 compiler.err.signature.doesnt.match.supertype=\
1253 signature does not match {0}; incompatible supertype
1254
1255 compiler.err.signature.doesnt.match.intf=\
1256 signature does not match {0}; incompatible interfaces
1257
1258 # 0: symbol, 1: symbol, 2: symbol
1259 compiler.err.does.not.override.abstract=\
1260 {0} is not abstract and does not override abstract method {1} in {2}
1261
1262 # 0: file object
1263 compiler.err.source.cant.overwrite.input.file=\
1264 error writing source; cannot overwrite input file {0}
1265
1266 # 0: symbol
1267 compiler.err.stack.sim.error=\
1268 Internal error: stack sim error on {0}
1269
1270 compiler.err.static.imp.only.classes.and.interfaces=\
1271 static import only from classes and interfaces
1272
1273 compiler.err.string.const.req=\
1274 constant string expression required
1275
1276 compiler.err.pattern.expected=\
1277 type pattern expected
1278
1279 # 0: symbol, 1: fragment
1280 compiler.err.cannot.generate.class=\
1281 error while generating class {0}\n\
1282 ({1})
1283
1284 # 0: symbol, 1: symbol
1285 compiler.misc.synthetic.name.conflict=\
1286 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
1287
1288 # 0: symbol, 1: type
1289 compiler.misc.illegal.signature=\
1290 illegal signature attribute for type {1}
1291
1292 compiler.err.throws.not.allowed.in.intf.annotation=\
1293 throws clause not allowed in @interface members
1294
1295 compiler.err.try.without.catch.finally.or.resource.decls=\
1296 ''try'' without ''catch'', ''finally'' or resource declarations
1297
1298 # 0: symbol
1299 compiler.err.type.doesnt.take.params=\
1300 type {0} does not take parameters
1301
1302 compiler.err.type.var.cant.be.deref=\
1303 cannot select from a type variable
1304
1305 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
1306 a type variable may not be followed by other bounds
1307
1308 compiler.err.type.var.more.than.once=\
1309 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
1310
1311 compiler.err.type.var.more.than.once.in.result=\
1312 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
1313
1314 # 0: type, 1: type, 2: fragment
1315 compiler.err.types.incompatible=\
1316 types {0} and {1} are incompatible;\n\
1317 {2}
1318
1319 # 0: name, 1: list of type
1320 compiler.misc.incompatible.diff.ret=\
1321 both define {0}({1}), but with unrelated return types
1322
1323 # 0: type, 1: name, 2: list of type
1324 compiler.err.incompatible.diff.ret.same.type=\
1325 type {0} defines {1}({2}) more than once with unrelated return types
1326
1327 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1328 compiler.misc.incompatible.unrelated.defaults=\
1329 {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
1330
1331 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1332 compiler.misc.incompatible.abstract.default=\
1333 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
1334
1335 # 0: name, 1: kind name, 2: symbol
1336 compiler.err.default.overrides.object.member=\
1337 default method {0} in {1} {2} overrides a member of java.lang.Object
1338
1339 # 0: type
1340 compiler.err.illegal.static.intf.meth.call=\
1341 illegal static interface method call\n\
1342 the receiver expression should be replaced with the type qualifier ''{0}''
1343
1344 # 0: symbol or type, 1: message segment
1345 compiler.err.illegal.default.super.call=\
1346 bad type qualifier {0} in default super call\n\
1347 {1}
1348
1349 # 0: symbol, 1: type
1350 compiler.misc.overridden.default=\
1351 method {0} is overridden in {1}
1352
1353 # 0: symbol, 1: type or symbol
1354 compiler.misc.redundant.supertype=\
1355 redundant interface {0} is extended by {1}
1356
1357 compiler.err.unclosed.char.lit=\
1358 unclosed character literal
1359
1360 compiler.err.unclosed.comment=\
1361 unclosed comment
1362
1363 compiler.err.unclosed.str.lit=\
1364 unclosed string literal
1365
1366 compiler.err.unclosed.text.block=\
1367 unclosed text block
1368
1369 # 0: string
1370 compiler.err.unsupported.encoding=\
1371 unsupported encoding: {0}
1372
1373 compiler.err.io.exception=\
1374 error reading source file: {0}
1375
1376 # 0: name
1377 compiler.err.undef.label=\
1378 undefined label: {0}
1379
1380 # 0: name
1381 compiler.err.illegal.ref.to.restricted.type=\
1382 illegal reference to restricted type ''{0}''
1383
1384 # 0: name
1385 compiler.warn.illegal.ref.to.restricted.type=\
1386 illegal reference to restricted type ''{0}''
1387
1388 # 0: name, 1: source
1389 compiler.err.restricted.type.not.allowed=\
1390 ''{0}'' not allowed here\n\
1391 as of release {1}, ''{0}'' is a restricted type name and cannot be used for type declarations
1392
1393 # 0: name, 1: source
1394 compiler.warn.restricted.type.not.allowed=\
1395 as of release {1}, ''{0}'' is a restricted type name and cannot be used for type declarations or as the element type of an array
1396
1397 # 0: name, 1: source
1398 compiler.warn.restricted.type.not.allowed.preview=\
1399 ''{0}'' may become a restricted type name in a future release and may be unusable for type declarations or as the element type of an array
1400
1401 # 0: name (variable), 1: message segment
1402 compiler.err.cant.infer.local.var.type=\
1403 cannot infer type for local variable {0}\n\
1404 ({1})
1405
1406 # 0: name
1407 compiler.err.restricted.type.not.allowed.here=\
1408 ''{0}'' is not allowed here
1409
1410 # 0: name
1411 compiler.err.restricted.type.not.allowed.array=\
1412 ''{0}'' is not allowed as an element type of an array
1413
1414 # 0: name
1415 compiler.err.restricted.type.not.allowed.compound=\
1416 ''{0}'' is not allowed in a compound declaration
1417
1418 # 0: fragment
1419 compiler.err.invalid.lambda.parameter.declaration=\
1420 invalid lambda parameter declaration\n\
1421 ({0})
1422
1423 compiler.misc.implicit.and.explicit.not.allowed=\
1424 cannot mix implicitly-typed and explicitly-typed parameters
1425
1426 compiler.misc.var.and.explicit.not.allowed=\
1427 cannot mix ''var'' and explicitly-typed parameters
1428
1429 compiler.misc.var.and.implicit.not.allowed=\
1430 cannot mix ''var'' and implicitly-typed parameters
1431
1432 compiler.misc.local.cant.infer.null=\
1433 variable initializer is ''null''
1434
1435 compiler.misc.local.cant.infer.void=\
1436 variable initializer is ''void''
1437
1438 compiler.misc.local.missing.init=\
1439 cannot use ''var'' on variable without initializer
1440
1441 compiler.misc.local.lambda.missing.target=\
1442 lambda expression needs an explicit target-type
1443
1444 compiler.misc.local.mref.missing.target=\
1445 method reference needs an explicit target-type
1446
1447 compiler.misc.local.array.missing.target=\
1448 array initializer needs an explicit target-type
1449
1450 compiler.misc.local.self.ref=\
1451 cannot use ''var'' on self-referencing variable
1452
1453 # 0: message segment, 1: unused
1454 compiler.err.cant.apply.diamond=\
1455 cannot infer type arguments for {0}
1456
1457 # 0: message segment or type, 1: message segment
1458 compiler.err.cant.apply.diamond.1=\
1459 cannot infer type arguments for {0}\n\
1460 reason: {1}
1461
1462 # 0: message segment or type, 1: message segment
1463 compiler.misc.cant.apply.diamond.1=\
1464 cannot infer type arguments for {0}\n\
1465 reason: {1}
1466
1467 compiler.err.unreachable.stmt=\
1468 unreachable statement
1469
1470 compiler.err.not.exhaustive=\
1471 the switch expression does not cover all possible input values
1472
1473 compiler.err.not.exhaustive.statement=\
1474 the switch statement does not cover all possible input values
1475
1476 compiler.err.initializer.must.be.able.to.complete.normally=\
1477 initializer must be able to complete normally
1478
1479 compiler.err.initializer.not.allowed=\
1480 initializers not allowed in interfaces
1481
1482 # 0: type
1483 compiler.err.unreported.exception.need.to.catch.or.throw=\
1484 unreported exception {0}; must be caught or declared to be thrown
1485
1486 # 0: type
1487 compiler.err.unreported.exception.default.constructor=\
1488 unreported exception {0} in default constructor
1489
1490 # 0: type, 1: name
1491 compiler.err.unreported.exception.implicit.close=\
1492 unreported exception {0}; must be caught or declared to be thrown\n\
1493 exception thrown from implicit call to close() on resource variable ''{1}''
1494
1495 compiler.err.void.not.allowed.here=\
1496 ''void'' type not allowed here
1497
1498 # 0: string
1499 compiler.err.wrong.number.type.args=\
1500 wrong number of type arguments; required {0}
1501
1502 # 0: symbol
1503 compiler.err.var.might.already.be.assigned=\
1504 variable {0} might already have been assigned
1505
1506 # 0: symbol
1507 compiler.err.var.might.not.have.been.initialized=\
1508 variable {0} might not have been initialized
1509
1510 # 0: symbol
1511 compiler.err.var.not.initialized.in.default.constructor=\
1512 variable {0} not initialized in the default constructor
1513
1514 # 0: symbol
1515 compiler.err.var.might.be.assigned.in.loop=\
1516 variable {0} might be assigned in loop
1517
1518 # 0: symbol, 1: message segment
1519 compiler.err.varargs.invalid.trustme.anno=\
1520 Invalid {0} annotation. {1}
1521
1522 # 0: type
1523 compiler.misc.varargs.trustme.on.reifiable.varargs=\
1524 Varargs element type {0} is reifiable.
1525
1526 # 0: type, 1: type
1527 compiler.err.instanceof.reifiable.not.safe=\
1528 {0} cannot be safely cast to {1}
1529
1530 # 0: symbol
1531 compiler.misc.varargs.trustme.on.non.varargs.meth=\
1532 Method {0} is not a varargs method.
1533
1534 # 0: symbol
1535 compiler.misc.varargs.trustme.on.non.varargs.accessor=\
1536 Accessor {0} is not a varargs method.
1537
1538 # 0: symbol
1539 compiler.misc.varargs.trustme.on.virtual.varargs=\
1540 Instance method {0} is neither final nor private.
1541
1542 # 0: symbol
1543 compiler.misc.varargs.trustme.on.virtual.varargs.final.only=\
1544 Instance method {0} is not final.
1545
1546 # 0: type, 1: symbol kind, 2: symbol
1547 compiler.misc.inaccessible.varargs.type=\
1548 formal varargs element type {0} is not accessible from {1} {2}
1549
1550 # In the following string, {1} will always be the detail message from
1551 # java.io.IOException.
1552 # 0: symbol, 1: string
1553 compiler.err.class.cant.write=\
1554 error while writing {0}: {1}
1555
1556 # In the following string, {0} is the name of the class in the Java source.
1557 # It really should be used two times..
1558 # 0: kind name, 1: name
1559 compiler.err.class.public.should.be.in.file=\
1560 {0} {1} is public, should be declared in a file named {1}.java
1561
1562 ## All errors which do not refer to a particular line in the source code are
1563 ## preceded by this string.
1564 compiler.err.error=\
1565 error:\u0020
1566
1567 # The following error messages do not refer to a line in the source code.
1568 compiler.err.cant.read.file=\
1569 cannot read: {0}
1570
1571 # 0: string
1572 compiler.err.plugin.not.found=\
1573 plug-in not found: {0}
1574
1575 # 0: path
1576 # lint: path
1577 compiler.warn.locn.unknown.file.on.module.path=\
1578 unknown file on module path: {0}
1579
1580
1581 # 0: path
1582 compiler.err.locn.bad.module-info=\
1583 problem reading module-info.class in {0}
1584
1585 # 0: path
1586 compiler.err.locn.cant.read.directory=\
1587 cannot read directory {0}
1588
1589 # 0: path
1590 compiler.err.locn.cant.read.file=\
1591 cannot read file {0}
1592
1593 # 0: path
1594 compiler.err.locn.cant.get.module.name.for.jar=\
1595 cannot determine module name for {0}
1596
1597 # 0: path
1598 compiler.err.multi-module.outdir.cannot.be.exploded.module=\
1599 in multi-module mode, the output directory cannot be an exploded module: {0}
1600
1601 # 0: path
1602 # lint: path
1603 compiler.warn.outdir.is.in.exploded.module=\
1604 the output directory is within an exploded module: {0}
1605
1606 # 0: file object
1607 compiler.err.locn.module-info.not.allowed.on.patch.path=\
1608 module-info.class not allowed on patch path: {0}
1609
1610 # 0: string
1611 compiler.err.locn.invalid.arg.for.xpatch=\
1612 invalid argument for --patch-module option: {0}
1613
1614 compiler.err.file.sb.on.source.or.patch.path.for.module=\
1615 file should be on source path, or on patch path for module
1616
1617 compiler.err.no.java.lang=\
1618 Unable to find package java.lang in platform classes
1619
1620 compiler.err.statement.not.expected=\
1621 statements not expected outside of methods and initializers
1622
1623 compiler.err.class.method.or.field.expected=\
1624 class, interface, annotation type, enum, record, method or field expected
1625
1626 #####
1627
1628 # Fatal Errors
1629
1630 # 0: name
1631 compiler.misc.fatal.err.cant.locate.meth=\
1632 Fatal Error: Unable to find method {0}
1633
1634 # 0: name
1635 compiler.misc.fatal.err.cant.locate.field=\
1636 Fatal Error: Unable to find field {0}
1637
1638 # 0: type
1639 compiler.misc.fatal.err.cant.locate.ctor=\
1640 Fatal Error: Unable to find constructor for {0}
1641
1642 compiler.misc.fatal.err.cant.close=\
1643 Fatal Error: Cannot close compiler resources
1644
1645 #####
1646
1647 ##
1648 ## miscellaneous strings
1649 ##
1650
1651 compiler.misc.diamond.anonymous.methods.implicitly.override=\
1652 (due to <>, every non-private method declared in this anonymous class must override or implement a method from a supertype)
1653
1654 compiler.misc.source.unavailable=\
1655 (source unavailable)
1656
1657 # 0: string, 1: string, 2: boolean
1658 compiler.misc.x.print.processor.info=\
1659 Processor {0} matches {1} and returns {2}.
1660
1661 # 0: number, 1: string, 2: set of symbol, 3: boolean
1662 compiler.misc.x.print.rounds=\
1663 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1664
1665 # 0: file name
1666 compiler.warn.file.from.future=\
1667 Modification date is in the future for file {0}
1668
1669 # 0: path
1670 # lint: output-file-clash
1671 compiler.warn.output.file.clash=\
1672 output file written more than once: {0}
1673
1674 #####
1675
1676 ## The following string will appear before all messages keyed as:
1677 ## "compiler.note".
1678
1679 compiler.note.compressed.diags=\
1680 Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1681
1682 # 0: boolean, 1: symbol
1683 compiler.note.lambda.stat=\
1684 Translating lambda expression\n\
1685 alternate metafactory = {0}\n\
1686 synthetic method = {1}
1687
1688 # 0: boolean, 1: unused
1689 compiler.note.mref.stat=\
1690 Translating method reference\n\
1691 alternate metafactory = {0}\n\
1692
1693 # 0: boolean, 1: symbol
1694 compiler.note.mref.stat.1=\
1695 Translating method reference\n\
1696 alternate metafactory = {0}\n\
1697 bridge method = {1}
1698
1699 compiler.note.note=\
1700 Note:\u0020
1701
1702 # 0: file name
1703 compiler.note.deprecated.filename=\
1704 {0} uses or overrides a deprecated API.
1705
1706 compiler.note.deprecated.plural=\
1707 Some input files use or override a deprecated API.
1708
1709 # The following string may appear after one of the above deprecation
1710 # messages.
1711 compiler.note.deprecated.recompile=\
1712 Recompile with -Xlint:deprecation for details.
1713
1714 # 0: file name
1715 compiler.note.deprecated.filename.additional=\
1716 {0} has additional uses or overrides of a deprecated API.
1717
1718 compiler.note.deprecated.plural.additional=\
1719 Some input files additionally use or override a deprecated API.
1720
1721 # 0: file name
1722 compiler.note.removal.filename=\
1723 {0} uses or overrides a deprecated API that is marked for removal.
1724
1725 compiler.note.removal.plural=\
1726 Some input files use or override a deprecated API that is marked for removal.
1727
1728 # The following string may appear after one of the above removal messages.
1729 compiler.note.removal.recompile=\
1730 Recompile with -Xlint:removal for details.
1731
1732 # 0: file name
1733 compiler.note.removal.filename.additional=\
1734 {0} has additional uses or overrides of a deprecated API that is marked for removal.
1735
1736 compiler.note.removal.plural.additional=\
1737 Some input files additionally use or override a deprecated API that is marked for removal.
1738
1739 # 0: file name
1740 compiler.note.unchecked.filename=\
1741 {0} uses unchecked or unsafe operations.
1742
1743 compiler.note.unchecked.plural=\
1744 Some input files use unchecked or unsafe operations.
1745
1746 # The following string may appear after one of the above unchecked messages.
1747 compiler.note.unchecked.recompile=\
1748 Recompile with -Xlint:unchecked for details.
1749
1750 # 0: file name
1751 compiler.note.unchecked.filename.additional=\
1752 {0} has additional unchecked or unsafe operations.
1753
1754 compiler.note.unchecked.plural.additional=\
1755 Some input files additionally use unchecked or unsafe operations.
1756
1757 # 0: file name, 1: source
1758 compiler.note.preview.filename=\
1759 {0} uses preview features of Java SE {1}.
1760
1761 # 0: source
1762 compiler.note.preview.plural=\
1763 Some input files use preview features of Java SE {0}.
1764
1765 # The following string may appear after one of the above deprecation
1766 # messages.
1767 compiler.note.preview.recompile=\
1768 Recompile with -Xlint:preview for details.
1769
1770 # 0: file name, 1: source
1771 compiler.note.preview.filename.additional=\
1772 {0} has additional uses of preview features of Java SE {1}.
1773
1774 # 0: source
1775 compiler.note.preview.plural.additional=\
1776 Some input files additionally use preview features of Java SE {0}.
1777
1778 # Notes related to annotation processing
1779
1780 # Print a client-generated note; assumed to be localized, no translation required
1781 # 0: string
1782 compiler.note.proc.messager=\
1783 {0}
1784
1785 # 0: string, 1: string, 2: string
1786 compiler.note.multiple.elements=\
1787 Multiple elements named ''{1}'' in modules ''{2}'' were found by javax.lang.model.util.Elements.{0}.
1788
1789 compiler.note.implicit.annotation.processing=\
1790 Annotation processing is enabled because one or more processors were found\n\
1791 on the class path. A future release of javac may disable annotation processing\n\
1792 unless at least one processor is specified by name (-processor), or a search\n\
1793 path is specified (--processor-path, --processor-module-path), or annotation\n\
1794 processing is enabled explicitly (-proc:only, -proc:full).\n\
1795 Use -Xlint:-options to suppress this message.\n\
1796 Use -proc:none to disable annotation processing.
1797
1798 #####
1799
1800 # 0: number
1801 compiler.misc.count.error=\
1802 {0} error
1803
1804 # 0: number
1805 compiler.misc.count.error.plural=\
1806 {0} errors
1807
1808 # 0: number, 1: number
1809 compiler.misc.count.error.recompile=\
1810 only showing the first {0} errors, of {1} total; use -Xmaxerrs if you would like to see more
1811
1812 # 0: number, 1: number
1813 compiler.misc.count.warn.recompile=\
1814 only showing the first {0} warnings, of {1} total; use -Xmaxwarns if you would like to see more
1815
1816 # 0: number
1817 compiler.misc.count.warn=\
1818 {0} warning
1819
1820 # 0: number
1821 compiler.misc.count.warn.plural=\
1822 {0} warnings
1823
1824 compiler.misc.version.not.available=\
1825 (version info not available)
1826
1827 ## extra output when using -verbose (JavaCompiler)
1828
1829 # 0: symbol
1830 compiler.misc.verbose.checking.attribution=\
1831 [checking {0}]
1832
1833 # 0: string
1834 compiler.misc.verbose.parsing.done=\
1835 [parsing completed {0}ms]
1836
1837 # 0: file name
1838 compiler.misc.verbose.parsing.started=\
1839 [parsing started {0}]
1840
1841 # 0: string
1842 compiler.misc.verbose.total=\
1843 [total {0}ms]
1844
1845 # 0: file name
1846 compiler.misc.verbose.wrote.file=\
1847 [wrote {0}]
1848
1849 ## extra output when using -verbose (code/ClassReader)
1850 # 0: string
1851 compiler.misc.verbose.loading=\
1852 [loading {0}]
1853
1854 # 0: string
1855 compiler.misc.verbose.sourcepath=\
1856 [search path for source files: {0}]
1857
1858 # 0: string
1859 compiler.misc.verbose.classpath=\
1860 [search path for class files: {0}]
1861
1862 ## extra output when using -prompt (util/Log)
1863 compiler.misc.resume.abort=\
1864 R)esume, A)bort>
1865
1866 #####
1867
1868 ##
1869 ## warnings
1870 ##
1871
1872 ## All warning messages are preceded by the following string.
1873 compiler.warn.warning=\
1874 warning:\u0020
1875
1876 ## Warning messages may also include the following prefix to identify a
1877 ## lint option
1878 # 0: option name
1879 compiler.warn.lintOption=\
1880 [{0}]\u0020
1881
1882 # 0: symbol
1883 # lint: serial
1884 compiler.warn.constant.SVUID=\
1885 serialVersionUID must be constant in class {0}
1886
1887 # lint: dangling-doc-comments
1888 compiler.warn.dangling.doc.comment=\
1889 documentation comment is not attached to any declaration
1890
1891 # 0: path
1892 # lint: path
1893 compiler.warn.dir.path.element.not.found=\
1894 bad path element "{0}": no such directory
1895
1896 # 0: file name
1897 # lint: path
1898 compiler.warn.dir.path.element.not.directory=\
1899 bad path element "{0}": not a directory
1900
1901 # 0: symbol, 1: symbol, 2: symbol
1902 # lint: missing-explicit-ctor
1903 compiler.warn.missing-explicit-ctor=\
1904 class {0} in exported package {1} declares no explicit constructors, thereby exposing a default constructor to clients of module {2}
1905
1906 # lint: strictfp
1907 compiler.warn.strictfp=\
1908 as of release 17, all floating-point expressions are evaluated strictly and ''strictfp'' is not required
1909
1910 # lint: finally
1911 compiler.warn.finally.cannot.complete=\
1912 finally clause cannot complete normally
1913
1914 # 0: name
1915 # lint: module
1916 compiler.warn.poor.choice.for.module.name=\
1917 module name component {0} should avoid terminal digits
1918
1919 # 0: string
1920 # lint: incubating
1921 compiler.warn.incubating.modules=\
1922 using incubating module(s): {0}
1923
1924 # 0: symbol, 1: symbol
1925 # lint: deprecation
1926 compiler.warn.has.been.deprecated=\
1927 {0} in {1} has been deprecated
1928
1929 # 0: symbol, 1: symbol
1930 # lint: removal
1931 compiler.warn.has.been.deprecated.for.removal=\
1932 {0} in {1} has been deprecated and marked for removal
1933
1934 # 0: symbol
1935 # lint: preview
1936 compiler.warn.is.preview=\
1937 {0} is a preview API and may be removed in a future release.
1938
1939 # 0: symbol
1940 compiler.err.is.preview=\
1941 {0} is a preview API and is disabled by default.\n\
1942 (use --enable-preview to enable preview APIs)
1943
1944 # 0: symbol
1945 # lint: preview
1946 compiler.warn.is.preview.reflective=\
1947 {0} is a reflective preview API and may be removed in a future release.
1948
1949 # 0: symbol, 1: symbol
1950 # lint: restricted
1951 compiler.warn.restricted.method=\
1952 {0}.{1} is a restricted method.\n\
1953 (Restricted methods are unsafe and, if used incorrectly, might crash the Java runtime or corrupt memory)
1954
1955 # 0: symbol
1956 # lint: deprecation
1957 compiler.warn.has.been.deprecated.module=\
1958 module {0} has been deprecated
1959
1960 # 0: symbol
1961 # lint: removal
1962 compiler.warn.has.been.deprecated.for.removal.module=\
1963 module {0} has been deprecated and marked for removal
1964
1965 # 0: symbol
1966 compiler.warn.sun.proprietary=\
1967 {0} is internal proprietary API and may be removed in a future release
1968
1969 compiler.warn.illegal.char.for.encoding=\
1970 unmappable character for encoding {0}
1971
1972 # 0: symbol
1973 # lint: serial
1974 compiler.warn.improper.SVUID=\
1975 serialVersionUID must be declared static final in class {0}
1976
1977 # lint: serial
1978 compiler.warn.improper.SPF=\
1979 serialPersistentFields must be declared private static final to be effective
1980
1981 # lint: serial
1982 compiler.warn.SPF.null.init=\
1983 serialPersistentFields ineffective if initialized to null.\n\
1984 Initialize to an empty array to indicate no fields
1985
1986
1987 # 0: type, 1: type
1988 compiler.warn.inexact.non-varargs.call=\
1989 non-varargs call of varargs method with inexact argument type for last parameter;\n\
1990 cast to {0} for a varargs call\n\
1991 cast to {1} for a non-varargs call and to suppress this warning
1992
1993 # 0: list of type
1994 compiler.warn.unreachable.catch=\
1995 unreachable catch clause\n\
1996 thrown type {0} has already been caught
1997
1998 # 0: list of type
1999 compiler.warn.unreachable.catch.1=\
2000 unreachable catch clause\n\
2001 thrown types {0} have already been caught
2002
2003 # 0: symbol
2004 # lint: serial
2005 compiler.warn.long.SVUID=\
2006 serialVersionUID must be of type long in class {0}
2007
2008 # lint: serial
2009 compiler.warn.OSF.array.SPF=\
2010 serialPersistentFields must be of type java.io.ObjectStreamField[] to be effective
2011
2012 # 0: symbol
2013 # lint: serial
2014 compiler.warn.missing.SVUID=\
2015 serializable class {0} has no definition of serialVersionUID
2016
2017 # 0: name
2018 # lint: serial
2019 compiler.warn.serializable.missing.access.no.arg.ctor=\
2020 cannot access a no-arg constructor in first non-serializable superclass {0}
2021
2022 # 0: name
2023 # lint: serial
2024 compiler.warn.serial.method.not.private=\
2025 serialization-related method {0} not declared private
2026
2027 # 0: name
2028 # lint: serial
2029 compiler.warn.serial.concrete.instance.method=\
2030 serialization-related method {0} must be a concrete instance method to be effective, neither abstract nor static
2031
2032 # 0: name
2033 # lint: serial
2034 compiler.warn.serial.method.static=\
2035 serialization-related method {0} declared static; must instead be an instance method to be effective
2036
2037 # 0: name
2038 # lint: serial
2039 compiler.warn.serial.method.no.args=\
2040 to be effective serialization-related method {0} must have no parameters
2041
2042 # 0: name, 1: number
2043 # lint: serial
2044 compiler.warn.serial.method.one.arg=\
2045 to be effective serialization-related method {0} must have exactly one parameter rather than {1} parameters
2046
2047 # 0: name, 1: type, 2: type
2048 # lint: serial
2049 compiler.warn.serial.method.parameter.type=\
2050 sole parameter of serialization-related method {0} must have type {1} to be effective rather than type {2}
2051
2052 # 0: name, 1: type, 2: type
2053 # lint: serial
2054 compiler.warn.serial.method.unexpected.return.type=\
2055 serialization-related method {0} declared with a return type of {1} rather than expected type {2}.\n\
2056 As declared, the method will be ineffective for serialization
2057
2058 # 0: name, 1: type
2059 # lint: serial
2060 compiler.warn.serial.method.unexpected.exception=\
2061 serialization-related method {0} declared to throw an unexpected type {1}
2062
2063 # lint: serial
2064 compiler.warn.ineffectual.serial.field.interface=\
2065 serialPersistentFields is not effective in an interface
2066
2067 # 0: string
2068 # lint: serial
2069 compiler.warn.ineffectual.serial.field.enum=\
2070 serialization-related field {0} is not effective in an enum class
2071
2072 # 0: string
2073 # lint: serial
2074 compiler.warn.ineffectual.serial.method.enum=\
2075 serialization-related method {0} is not effective in an enum class
2076
2077 # 0: string
2078 # lint: serial
2079 compiler.warn.ineffectual.extern.method.enum=\
2080 externalization-related method {0} is not effective in an enum class
2081
2082 # lint: serial
2083 compiler.warn.ineffectual.serial.field.record=\
2084 serialPersistentFields is not effective in a record class
2085
2086 # 0: string
2087 # lint: serial
2088 compiler.warn.ineffectual.serial.method.record=\
2089 serialization-related method {0} is not effective in a record class
2090
2091 # 0: string
2092 # lint: serial
2093 compiler.warn.ineffectual.externalizable.method.record=\
2094 externalization-related method {0} is not effective in a record class
2095
2096 # 0: name
2097 # lint: serial
2098 compiler.warn.ineffectual.serial.method.externalizable=\
2099 serialization-related method {0} is not effective in an Externalizable class
2100
2101 # lint: serial
2102 compiler.warn.ineffectual.serial.field.externalizable=\
2103 serialPersistentFields is not effective in an Externalizable class
2104
2105 # lint: serial
2106 compiler.warn.externalizable.missing.public.no.arg.ctor=\
2107 an Externalizable class needs a public no-arg constructor
2108
2109 # lint: serial
2110 compiler.warn.non.serializable.instance.field=\
2111 non-transient instance field of a serializable class declared with a non-serializable type
2112
2113 # 0: type
2114 # lint: serial
2115 compiler.warn.non.serializable.instance.field.array=\
2116 non-transient instance field of a serializable class declared with an array having a non-serializable base component type {0}
2117
2118 # lint: serial
2119 compiler.warn.non.private.method.weaker.access=\
2120 serialization-related method declared non-private in an interface will prevent\n\
2121 classes implementing the interface from declaring the method as private
2122
2123 # lint: serial
2124 compiler.warn.default.ineffective=\
2125 serialization-related default method from an interface will not be run by serialization for an implementing class
2126
2127 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2128 # lint: overloads
2129 compiler.warn.potentially.ambiguous.overload=\
2130 {0} in {1} is potentially ambiguous with {2} in {3}
2131
2132 # 0: message segment
2133 # lint: overrides
2134 compiler.warn.override.varargs.missing=\
2135 {0}; overridden method has no ''...''
2136
2137 # 0: message segment
2138 # lint: overrides
2139 compiler.warn.override.varargs.extra=\
2140 {0}; overriding method is missing ''...''
2141
2142 # 0: message segment
2143 compiler.warn.override.bridge=\
2144 {0}; overridden method is a bridge method
2145
2146 # 0: symbol
2147 compiler.warn.pkg-info.already.seen=\
2148 a package-info.java file has already been seen for package {0}
2149
2150 # 0: path
2151 # lint: path
2152 compiler.warn.path.element.not.found=\
2153 bad path element "{0}": no such file or directory
2154
2155 # lint: fallthrough
2156 compiler.warn.possible.fall-through.into.case=\
2157 possible fall-through into case
2158
2159 # 0: type
2160 # lint: cast
2161 compiler.warn.redundant.cast=\
2162 redundant cast to {0}
2163
2164 # 0: number
2165 compiler.warn.position.overflow=\
2166 Position encoding overflows at line {0}
2167
2168 # 0: file name, 1: number, 2: number
2169 compiler.warn.big.major.version=\
2170 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
2171 It is recommended that the compiler be upgraded.
2172
2173 # 0: file name, 1: fragment
2174 compiler.warn.invalid.utf8.in.classfile=\
2175 {0}: classfile contains invalid UTF-8: {1}
2176
2177 # 0: kind name, 1: symbol
2178 # lint: static
2179 compiler.warn.static.not.qualified.by.type=\
2180 static {0} should be qualified by type name, {1}, instead of by an expression
2181
2182 # 0: kind name
2183 # lint: static
2184 compiler.warn.static.not.qualified.by.type2=\
2185 static {0} should not be used as a member of an anonymous class
2186
2187 # 0: string, 1: fragment
2188 # lint: options
2189 compiler.warn.source.no.bootclasspath=\
2190 bootstrap class path is not set in conjunction with -source {0}\n{1}
2191
2192 # 0: string, 1: fragment
2193 # lint: options
2194 compiler.warn.source.no.system.modules.path=\
2195 location of system modules is not set in conjunction with -source {0}\n{1}
2196
2197 # 0: string
2198 compiler.misc.source.no.bootclasspath=\
2199 not setting the bootstrap class path may lead to class files that cannot run on JDK {0}\n\
2200 --release {0} is recommended instead of -source {0} because it sets the bootstrap class path automatically
2201
2202 # 0: string
2203 compiler.misc.source.no.system.modules.path=\
2204 not setting the location of system modules may lead to class files that cannot run on JDK {0}\n\
2205 --release {0} is recommended instead of -source {0} because it sets the location of system modules automatically
2206
2207 # 0: string, 1: string
2208 compiler.misc.source.no.bootclasspath.with.target=\
2209 not setting the bootstrap class path may lead to class files that cannot run on JDK 8\n\
2210 --release {0} is recommended instead of -source {0} -target {1} because it sets the bootstrap class path automatically
2211
2212 # 0: string, 1: string
2213 compiler.misc.source.no.system.modules.path.with.target=\
2214 not setting the location of system modules may lead to class files that cannot run on JDK {0}\n\
2215 --release {0} is recommended instead of -source {0} -target {1} because it sets the location of system modules automatically
2216
2217 # 0: string
2218 # lint: options
2219 compiler.warn.option.obsolete.source=\
2220 source value {0} is obsolete and will be removed in a future release
2221
2222 # 0: target
2223 # lint: options
2224 compiler.warn.option.obsolete.target=\
2225 target value {0} is obsolete and will be removed in a future release
2226
2227 # 0: string, 1: string
2228 compiler.err.option.removed.source=\
2229 Source option {0} is no longer supported. Use {1} or later.
2230
2231 # 0: target, 1: target
2232 compiler.err.option.removed.target=\
2233 Target option {0} is no longer supported. Use {1} or later.
2234
2235 # lint: options
2236 compiler.warn.option.obsolete.suppression=\
2237 To suppress warnings about obsolete options, use -Xlint:-options.
2238
2239 # 0: name, 1: number, 2: number, 3: number, 4: number
2240 # lint: classfile
2241 compiler.warn.future.attr=\
2242 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
2243
2244 # lint: requires-automatic
2245 compiler.warn.requires.automatic=\
2246 requires directive for an automatic module
2247
2248 # lint: requires-transitive-automatic
2249 compiler.warn.requires.transitive.automatic=\
2250 requires transitive directive for an automatic module
2251
2252 # Warnings related to annotation processing
2253 # 0: string
2254 compiler.warn.proc.package.does.not.exist=\
2255 package {0} does not exist
2256
2257 # 0: string
2258 # lint: processing
2259 compiler.warn.proc.file.reopening=\
2260 Attempt to create a file for ''{0}'' multiple times
2261
2262 # 0: string
2263 # lint: processing
2264 compiler.warn.proc.type.already.exists=\
2265 A file for type ''{0}'' already exists on the sourcepath or classpath
2266
2267 # 0: string
2268 # lint: processing
2269 compiler.warn.proc.type.recreate=\
2270 Attempt to create a file for type ''{0}'' multiple times
2271
2272 # 0: string
2273 # lint: processing
2274 compiler.warn.proc.illegal.file.name=\
2275 Cannot create file for illegal name ''{0}''.
2276
2277 # 0: string, 1: string
2278 # lint: processing
2279 compiler.warn.proc.suspicious.class.name=\
2280 Creating file for a type whose name ends in {1}: ''{0}''
2281
2282 # 0: string
2283 compiler.warn.proc.file.create.last.round=\
2284 File for type ''{0}'' created in the last round will not be subject to annotation processing.
2285
2286 # 0: string, 1: string
2287 # lint: processing
2288 compiler.warn.proc.malformed.supported.string=\
2289 Malformed string ''{0}'' for a supported annotation interface returned by processor ''{1}''
2290
2291 # 0: set of string
2292 # lint: processing
2293 compiler.warn.proc.annotations.without.processors=\
2294 No processor claimed any of these annotations: {0}
2295
2296 # 0: source version, 1: string, 2: string
2297 compiler.warn.proc.processor.incompatible.source.version=\
2298 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
2299
2300 # 0: string, 1: string
2301 # lint: processing
2302 compiler.warn.proc.duplicate.option.name=\
2303 Duplicate supported option ''{0}'' returned by annotation processor ''{1}''
2304
2305 # 0: string, 1: string
2306 # lint: processing
2307 compiler.warn.proc.duplicate.supported.annotation=\
2308 Duplicate supported annotation interface ''{0}'' returned by annotation processor ''{1}''
2309
2310
2311 # 0: string
2312 # lint: processing
2313 compiler.warn.proc.redundant.types.with.wildcard=\
2314 Annotation processor ''{0}'' redundantly supports both ''*'' and other annotation interfaces
2315
2316 compiler.warn.proc.proc-only.requested.no.procs=\
2317 Annotation processing without compilation requested but no processors were found.
2318
2319 compiler.warn.proc.use.implicit=\
2320 Implicitly compiled files were not subject to annotation processing.\n\
2321 Use -implicit to specify a policy for implicit compilation.
2322
2323 compiler.warn.proc.use.proc.or.implicit=\
2324 Implicitly compiled files were not subject to annotation processing.\n\
2325 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
2326
2327 # Print a client-generated warning; assumed to be localized, no translation required
2328 # 0: string
2329 compiler.warn.proc.messager=\
2330 {0}
2331
2332 # 0: set of string
2333 compiler.warn.proc.unclosed.type.files=\
2334 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
2335
2336 # 0: string
2337 compiler.warn.proc.unmatched.processor.options=\
2338 The following options were not recognized by any processor: ''{0}''
2339
2340 # lint: try
2341 compiler.warn.try.explicit.close.call=\
2342 explicit call to close() on an auto-closeable resource
2343
2344 # 0: symbol
2345 # lint: try
2346 compiler.warn.try.resource.not.referenced=\
2347 auto-closeable resource {0} is never referenced in body of corresponding try statement
2348
2349 # 0: type
2350 # lint: try
2351 compiler.warn.try.resource.throws.interrupted.exc=\
2352 auto-closeable resource {0} has a member method close() that could throw InterruptedException
2353
2354 # lint: unchecked
2355 compiler.warn.unchecked.assign=\
2356 unchecked assignment: {0} to {1}
2357
2358 # 0: symbol, 1: type
2359 # lint: unchecked
2360 compiler.warn.unchecked.assign.to.var=\
2361 unchecked assignment to variable {0} as member of raw type {1}
2362
2363 # 0: symbol, 1: type
2364 # lint: unchecked
2365 compiler.warn.unchecked.call.mbr.of.raw.type=\
2366 unchecked call to {0} as a member of the raw type {1}
2367
2368 # lint: unchecked
2369 compiler.warn.unchecked.cast.to.type=\
2370 unchecked cast to type {0}
2371
2372 # 0: kind name, 1: name, 2: object, 3: object, 4: kind name, 5: symbol
2373 # lint: unchecked
2374 compiler.warn.unchecked.meth.invocation.applied=\
2375 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
2376 required: {2}\n\
2377 found: {3}
2378
2379 # 0: type
2380 # lint: unchecked
2381 compiler.warn.unchecked.generic.array.creation=\
2382 unchecked generic array creation for varargs parameter of type {0}
2383
2384 # 0: type
2385 # lint: unchecked
2386 compiler.warn.unchecked.varargs.non.reifiable.type=\
2387 Possible heap pollution from parameterized vararg type {0}
2388
2389 # 0: symbol
2390 # lint: varargs
2391 compiler.warn.varargs.unsafe.use.varargs.param=\
2392 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
2393
2394 # lint: dep-ann
2395 compiler.warn.missing.deprecated.annotation=\
2396 deprecated item is not annotated with @Deprecated
2397
2398 # 0: kind name
2399 # lint: deprecation
2400 compiler.warn.deprecated.annotation.has.no.effect=\
2401 @Deprecated annotation has no effect on this {0} declaration
2402
2403 # 0: string
2404 # lint: path
2405 compiler.warn.invalid.path=\
2406 Invalid filename: {0}
2407
2408 compiler.warn.doclint.not.available=\
2409 No service provider for doclint is available
2410
2411 # 0: string
2412 compiler.err.invalid.path=\
2413 Invalid filename: {0}
2414
2415
2416 # 0: path
2417 # lint: path
2418 compiler.warn.invalid.archive.file=\
2419 Unexpected file on path: {0}
2420
2421 # 0: path
2422 # lint: path
2423 compiler.warn.unexpected.archive.file=\
2424 Unexpected extension for archive file: {0}
2425
2426 # 0: path
2427 compiler.err.no.zipfs.for.archive=\
2428 No file system provider is available to handle this file: {0}
2429
2430 # lint: divzero
2431 compiler.warn.div.zero=\
2432 division by zero
2433
2434 # lint: empty
2435 compiler.warn.empty.if=\
2436 empty statement after if
2437
2438 # 0: type, 1: name
2439 # lint: classfile
2440 compiler.warn.annotation.method.not.found=\
2441 Cannot find annotation method ''{1}()'' in type ''{0}''
2442
2443 # 0: type, 1: name, 2: message segment
2444 # lint: classfile
2445 compiler.warn.annotation.method.not.found.reason=\
2446 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
2447
2448 # 0: list of annotation, 1: symbol, 2: name, 3: message segment
2449 compiler.err.cant.attach.type.annotations=\
2450 Cannot attach type annotations {0} to {1}.{2}:\n\
2451 {3}
2452
2453 # 0: file object, 1: symbol, 2: name
2454 compiler.warn.unknown.enum.constant=\
2455 unknown enum constant {1}.{2}
2456
2457 # 0: file object, 1: symbol, 2: name, 3: message segment
2458 compiler.warn.unknown.enum.constant.reason=\
2459 unknown enum constant {1}.{2}\n\
2460 reason: {3}
2461
2462 # 0: type, 1: type
2463 # lint: rawtypes
2464 compiler.warn.raw.class.use=\
2465 found raw type: {0}\n\
2466 missing type arguments for generic class {1}
2467
2468 compiler.warn.diamond.redundant.args=\
2469 Redundant type arguments in new expression (use diamond operator instead).
2470
2471 compiler.warn.local.redundant.type=\
2472 Redundant type for local variable (replace explicit type with ''var'').
2473
2474 compiler.warn.potential.lambda.found=\
2475 This anonymous inner class creation can be turned into a lambda expression.
2476
2477 compiler.warn.method.redundant.typeargs=\
2478 Redundant type arguments in method call.
2479
2480 # 0: symbol, 1: message segment
2481 # lint: varargs
2482 compiler.warn.varargs.redundant.trustme.anno=\
2483 Redundant {0} annotation. {1}
2484
2485 # 0: symbol
2486 # lint: serial
2487 compiler.warn.access.to.member.from.serializable.element=\
2488 access to member {0} from serializable element can be publicly accessible to untrusted code
2489
2490 # 0: symbol
2491 # lint: serial
2492 compiler.warn.access.to.member.from.serializable.lambda=\
2493 access to member {0} from serializable lambda can be publicly accessible to untrusted code
2494
2495 #####
2496
2497 ## The following are tokens which are non-terminals in the language. They should
2498 ## be named as JLS3 calls them when translated to the appropriate language.
2499 compiler.misc.token.identifier=\
2500 <identifier>
2501
2502 compiler.misc.token.character=\
2503 <character>
2504
2505 compiler.misc.token.string=\
2506 <string>
2507
2508 compiler.misc.token.integer=\
2509 <integer>
2510
2511 compiler.misc.token.long-integer=\
2512 <long integer>
2513
2514 compiler.misc.token.float=\
2515 <float>
2516
2517 compiler.misc.token.double=\
2518 <double>
2519
2520 compiler.misc.token.bad-symbol=\
2521 <bad symbol>
2522
2523 compiler.misc.token.end-of-input=\
2524 <end of input>
2525
2526 ## The argument to the following string will always be one of the following:
2527 ## 1. one of the above non-terminals
2528 ## 2. a keyword (JLS1.8)
2529 ## 3. a boolean literal (JLS3.10.3)
2530 ## 4. the null literal (JLS3.10.7)
2531 ## 5. a Java separator (JLS3.11)
2532 ## 6. an operator (JLS3.12)
2533 ##
2534 ## This is the only place these tokens will be used.
2535 # 0: token
2536 compiler.err.expected=\
2537 {0} expected
2538
2539 # 0: string
2540 compiler.err.expected.str=\
2541 {0} expected
2542
2543 # 0: token, 1: token
2544 compiler.err.expected2=\
2545 {0} or {1} expected
2546
2547 # 0: token, 1: token, 2: token
2548 compiler.err.expected3=\
2549 {0}, {1}, or {2} expected
2550
2551 # 0: token, 1: token, 2: token, 3: string
2552 compiler.err.expected4=\
2553 {0}, {1}, {2}, or {3} expected
2554
2555 compiler.err.premature.eof=\
2556 reached end of file while parsing
2557
2558 compiler.err.enum.constant.expected=\
2559 enum constant expected here
2560
2561 compiler.err.enum.constant.not.expected=\
2562 enum constant not expected here
2563
2564 compiler.err.extraneous.semicolon=\
2565 extraneous semicolon
2566
2567 compiler.warn.extraneous.semicolon=\
2568 extraneous semicolon
2569
2570 ## The following are related in form, but do not easily fit the above paradigm.
2571 compiler.err.expected.module.or.open=\
2572 ''module'' or ''open'' expected
2573
2574 compiler.err.dot.class.expected=\
2575 ''.class'' expected
2576
2577 ## The argument to this string will always be either 'case' or 'default'.
2578 # 0: token
2579 compiler.err.orphaned=\
2580 orphaned {0}
2581
2582 # 0: name
2583 compiler.misc.anonymous.class=\
2584 <anonymous {0}>
2585
2586 # 0: name, 1: type
2587 compiler.misc.type.captureof=\
2588 capture#{0} of {1}
2589
2590 compiler.misc.type.captureof.1=\
2591 capture#{0}
2592
2593 compiler.misc.type.none=\
2594 <none>
2595
2596 compiler.misc.unnamed.package=\
2597 unnamed package
2598
2599 compiler.misc.unnamed.module=\
2600 unnamed module
2601
2602 #####
2603
2604 # 0: symbol, 1: message segment
2605 compiler.err.cant.access=\
2606 cannot access {0}\n\
2607 {1}
2608
2609 # 0: name
2610 compiler.misc.bad.class.file=\
2611 class file is invalid for class {0}
2612
2613 # 0: file name, 1: string (expected constant pool entry type), 2: number (constant pool index)
2614 compiler.misc.bad.const.pool.entry=\
2615 bad constant pool entry in {0}\n\
2616 expected {1} at index {2}
2617
2618 # 0: file name, 1: number (constant pool index), 2: number (constant pool size)
2619 compiler.misc.bad.const.pool.index=\
2620 bad constant pool index in {0}\n\
2621 index {1} is not within pool size {2}.
2622
2623 # 0: file name, 1: message segment
2624 compiler.misc.bad.class.file.header=\
2625 bad class file: {0}\n\
2626 {1}\n\
2627 Please remove or make sure it appears in the correct subdirectory of the classpath.
2628
2629 # 0: file name, 1: message segment
2630 compiler.misc.bad.source.file.header=\
2631 bad source file: {0}\n\
2632 {1}\n\
2633 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2634
2635 ## The following are all possible strings for the second argument ({1}) of the
2636 ## above strings.
2637 compiler.misc.bad.class.signature=\
2638 bad class signature: {0}
2639
2640 #0: symbol, 1: symbol
2641 compiler.misc.bad.enclosing.class=\
2642 bad enclosing class for {0}: {1}
2643
2644 # 0: symbol
2645 compiler.misc.bad.enclosing.method=\
2646 bad enclosing method attribute for class {0}
2647
2648 # 0: file name
2649 # lint: classfile
2650 compiler.warn.runtime.visible.invisible.param.annotations.mismatch=\
2651 the length of parameters in RuntimeVisibleParameterAnnotations attribute and \
2652 RuntimeInvisibleParameterAnnotations attribute in: {0} \
2653 do not match, ignoring both attributes
2654
2655 # 0: file name
2656 # lint: classfile
2657 compiler.warn.runtime.invisible.parameter.annotations=\
2658 the RuntimeVisibleParameterAnnotations and RuntimeInvisibleParameterAnnotations attributes \
2659 in: {0} \
2660 cannot be mapped to the method''s parameters
2661
2662 compiler.misc.bad.const.pool.tag=\
2663 bad constant pool tag: {0}
2664
2665 compiler.misc.bad.const.pool.tag.at=\
2666 bad constant pool tag: {0} at {1}
2667
2668 # 0: number
2669 compiler.misc.bad.utf8.byte.sequence.at=\
2670 bad UTF-8 byte sequence at {0}
2671
2672 compiler.misc.unexpected.const.pool.tag.at=\
2673 unexpected constant pool tag: {0} at {1}
2674
2675 # 0: number
2676 compiler.misc.bad.class.truncated.at.offset=\
2677 class file truncated at offset {0}
2678
2679 compiler.misc.bad.signature=\
2680 bad signature: {0}
2681
2682 compiler.misc.bad.type.annotation.value=\
2683 bad type annotation target type value: {0}
2684
2685 compiler.misc.bad.module-info.name=\
2686 bad class name
2687
2688 compiler.misc.class.file.wrong.class=\
2689 class file contains wrong class: {0}
2690
2691 compiler.misc.module.info.invalid.super.class=\
2692 module-info with invalid super class
2693
2694 # 0: name
2695 compiler.misc.class.file.not.found=\
2696 class file for {0} not found
2697
2698 # 0: string (constant value), 1: symbol (constant field), 2: type (field type)
2699 compiler.misc.bad.constant.range=\
2700 constant value ''{0}'' for {1} is outside the expected range for {2}
2701
2702 # 0: string (constant value), 1: symbol (constant field), 2: string (expected class)
2703 compiler.misc.bad.constant.value=\
2704 bad constant value ''{0}'' for {1}, expected {2}
2705
2706 # 0: type (field type)
2707 compiler.misc.bad.constant.value.type=\
2708 variable of type ''{0}'' cannot have a constant value, but has one specified
2709
2710 # 0: string (classfile major version), 1: string (classfile minor version)
2711 compiler.misc.invalid.default.interface=\
2712 default method found in version {0}.{1} classfile
2713
2714 # 0: string (classfile major version), 1: string (classfile minor version)
2715 compiler.misc.invalid.static.interface=\
2716 static method found in version {0}.{1} classfile
2717
2718 # 0: string (classfile major version), 1: string (classfile minor version)
2719 compiler.misc.anachronistic.module.info=\
2720 module declaration found in version {0}.{1} classfile
2721
2722 compiler.misc.module.info.definition.expected=\
2723 module-info definition expected
2724
2725 # 0: name
2726 compiler.misc.file.doesnt.contain.class=\
2727 file does not contain class {0}
2728
2729 # 0: symbol
2730 compiler.misc.file.does.not.contain.package=\
2731 file does not contain package {0}
2732
2733 compiler.misc.file.does.not.contain.module=\
2734 file does not contain module declaration
2735
2736 compiler.misc.illegal.start.of.class.file=\
2737 illegal start of class file
2738
2739 # 0: name
2740 compiler.misc.method.descriptor.invalid=\
2741 method descriptor invalid for {0}
2742
2743 compiler.misc.unable.to.access.file=\
2744 unable to access file: {0}
2745
2746 compiler.misc.unicode.str.not.supported=\
2747 unicode string in class file not supported
2748
2749 compiler.misc.undecl.type.var=\
2750 undeclared type variable: {0}
2751
2752 compiler.misc.malformed.vararg.method=\
2753 class file contains malformed variable arity method: {0}
2754
2755 compiler.misc.wrong.version=\
2756 class file has wrong version {0}.{1}, should be {2}.{3}
2757
2758 compiler.misc.illegal.flag.combo=\
2759 class file contains illegal flag combination {0} for {1} {2}
2760
2761 #####
2762
2763 # 0: type, 1: type or symbol
2764 compiler.err.not.within.bounds=\
2765 type argument {0} is not within bounds of type-variable {1}
2766
2767 ## The following are all possible strings for the second argument ({1}) of the
2768 ## above string.
2769
2770 ## none yet...
2771
2772 #####
2773
2774 # 0: message segment
2775 compiler.err.prob.found.req=\
2776 incompatible types: {0}
2777
2778 # 0: message segment
2779 compiler.misc.prob.found.req=\
2780 incompatible types: {0}
2781
2782 # 0: message segment, 1: type, 2: type
2783 # lint: unchecked
2784 compiler.warn.prob.found.req=\
2785 {0}\n\
2786 required: {2}\n\
2787 found: {1}
2788
2789 # 0: type, 1: type
2790 compiler.misc.inconvertible.types=\
2791 {0} cannot be converted to {1}
2792
2793 # 0: type, 1: type
2794 compiler.misc.possible.loss.of.precision=\
2795 possible lossy conversion from {0} to {1}
2796
2797 # 0: type, 1: type
2798 # lint: lossy-conversions
2799 compiler.warn.possible.loss.of.precision=\
2800 implicit cast from {0} to {1} in compound assignment is possibly lossy
2801
2802 compiler.misc.unchecked.assign=\
2803 unchecked conversion
2804
2805 # compiler.misc.storecheck=\
2806 # assignment might cause later store checks to fail
2807 # compiler.misc.unchecked=\
2808 # assigned array cannot dynamically check its stores
2809 compiler.misc.unchecked.cast.to.type=\
2810 unchecked cast
2811
2812 # compiler.err.star.expected=\
2813 # ''*'' expected
2814 # compiler.err.no.elem.type=\
2815 # \[\*\] cannot have a type
2816
2817 # 0: message segment
2818 compiler.misc.try.not.applicable.to.type=\
2819 try-with-resources not applicable to variable type\n\
2820 ({0})
2821
2822 #####
2823
2824 # 0: object, 1: message segment
2825 compiler.err.type.found.req=\
2826 unexpected type\n\
2827 required: {1}\n\
2828 found: {0}
2829
2830 ## The following are all possible strings for the first argument ({0}) of the
2831 ## above string.
2832 compiler.misc.type.req.class=\
2833 class
2834
2835 compiler.misc.type.req.class.array=\
2836 class or array
2837
2838 compiler.misc.type.req.array.or.iterable=\
2839 array or java.lang.Iterable
2840
2841 compiler.misc.type.req.ref=\
2842 reference
2843
2844 compiler.misc.type.req.exact=\
2845 class or interface without bounds
2846
2847 # 0: type
2848 compiler.misc.type.parameter=\
2849 type parameter {0}
2850
2851 #####
2852
2853 ## The following are all possible strings for the last argument of all those
2854 ## diagnostics whose key ends in ".1"
2855
2856 # 0: type, 1: list of type
2857 compiler.misc.no.unique.maximal.instance.exists=\
2858 no unique maximal instance exists for type variable {0} with upper bounds {1}
2859
2860 # 0: type, 1: list of type
2861 compiler.misc.no.unique.minimal.instance.exists=\
2862 no unique minimal instance exists for type variable {0} with lower bounds {1}
2863
2864 # 0: type, 1: list of type
2865 compiler.misc.incompatible.upper.bounds=\
2866 inference variable {0} has incompatible upper bounds {1}
2867
2868 # 0: type, 1: list of type
2869 compiler.misc.incompatible.eq.bounds=\
2870 inference variable {0} has incompatible equality constraints {1}
2871
2872 # 0: type, 1: fragment, 2: fragment
2873 compiler.misc.incompatible.bounds=\
2874 inference variable {0} has incompatible bounds\n\
2875 {1}\n\
2876 {2}
2877
2878 # 0: list of type
2879 compiler.misc.lower.bounds=\
2880 lower bounds: {0}
2881
2882 # 0: list of type
2883 compiler.misc.eq.bounds=\
2884 equality constraints: {0}
2885
2886 # 0: list of type
2887 compiler.misc.upper.bounds=\
2888 upper bounds: {0}
2889
2890 # 0: list of type, 1: type, 2: type
2891 compiler.misc.infer.no.conforming.instance.exists=\
2892 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
2893
2894 # 0: list of type, 1: message segment
2895 compiler.misc.infer.no.conforming.assignment.exists=\
2896 cannot infer type-variable(s) {0}\n\
2897 (argument mismatch; {1})
2898
2899 # 0: list of type
2900 compiler.misc.infer.arg.length.mismatch=\
2901 cannot infer type-variable(s) {0}\n\
2902 (actual and formal argument lists differ in length)
2903
2904 # 0: list of type, 1: message segment
2905 compiler.misc.infer.varargs.argument.mismatch=\
2906 cannot infer type-variable(s) {0}\n\
2907 (varargs mismatch; {1})
2908
2909 # 0: type, 1: list of type
2910 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
2911 inferred type does not conform to upper bound(s)\n\
2912 inferred: {0}\n\
2913 upper bound(s): {1}
2914
2915 # 0: type, 1: list of type
2916 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
2917 inferred type does not conform to lower bound(s)\n\
2918 inferred: {0}\n\
2919 lower bound(s): {1}
2920
2921 # 0: type, 1: list of type
2922 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
2923 inferred type does not conform to equality constraint(s)\n\
2924 inferred: {0}\n\
2925 equality constraints(s): {1}
2926
2927 # 0: symbol
2928 compiler.misc.diamond=\
2929 {0}<>
2930
2931 # 0: type
2932 compiler.misc.diamond.non.generic=\
2933 cannot use ''<>'' with non-generic class {0}
2934
2935 # 0: list of type, 1: message segment
2936 compiler.misc.diamond.invalid.arg=\
2937 type argument {0} inferred for {1} is not allowed in this context\n\
2938 inferred argument is not expressible in the Signature attribute
2939
2940 # 0: list of type, 1: message segment
2941 compiler.misc.diamond.invalid.args=\
2942 type arguments {0} inferred for {1} are not allowed in this context\n\
2943 inferred arguments are not expressible in the Signature attribute
2944
2945 # 0: type
2946 compiler.misc.diamond.and.explicit.params=\
2947 cannot use ''<>'' with explicit type parameters for constructor
2948
2949 compiler.misc.mref.infer.and.explicit.params=\
2950 cannot use raw constructor reference with explicit type parameters for constructor
2951
2952 # 0: type, 1: list of type
2953 compiler.misc.explicit.param.do.not.conform.to.bounds=\
2954 explicit type argument {0} does not conform to declared bound(s) {1}
2955
2956 compiler.misc.arg.length.mismatch=\
2957 actual and formal argument lists differ in length
2958
2959 # 0: string
2960 compiler.misc.wrong.number.type.args=\
2961 wrong number of type arguments; required {0}
2962
2963 # 0: message segment
2964 compiler.misc.no.conforming.assignment.exists=\
2965 argument mismatch; {0}
2966
2967 # 0: message segment
2968 compiler.misc.varargs.argument.mismatch=\
2969 varargs mismatch; {0}
2970
2971 #####
2972
2973 # 0: symbol or type, 1: file name
2974 # lint: auxiliaryclass
2975 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
2976 auxiliary class {0} in {1} should not be accessed from outside its own source file
2977
2978 ## The first argument ({0}) is a "kindname".
2979 # 0: kind name, 1: symbol, 2: symbol
2980 compiler.err.abstract.cant.be.accessed.directly=\
2981 abstract {0} {1} in {2} cannot be accessed directly
2982
2983 ## The first argument ({0}) is a "kindname".
2984 # 0: symbol kind, 1: symbol
2985 compiler.err.non-static.cant.be.ref=\
2986 non-static {0} {1} cannot be referenced from a static context
2987
2988 ## The first argument ({0}) is a "kindname".
2989 # 0: symbol kind, 1: symbol
2990 compiler.err.local.cant.be.inst.static=\
2991 local {0} {1} cannot be instantiated from a static context
2992
2993 # 0: symbol kind, 1: symbol
2994 compiler.misc.bad.static.method.in.unbound.lookup=\
2995 unexpected static {0} {1} found in unbound lookup
2996
2997 # 0: symbol kind, 1: symbol
2998 compiler.misc.bad.instance.method.in.unbound.lookup=\
2999 unexpected instance {0} {1} found in unbound lookup
3000
3001 # 0: symbol kind, 1: symbol
3002 compiler.misc.bad.static.method.in.bound.lookup=\
3003 unexpected static {0} {1} found in bound lookup
3004
3005 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
3006 ## of kindnames (the list should be identical to that provided in source.
3007 # 0: set of kind name, 1: set of kind name
3008 compiler.err.unexpected.type=\
3009 unexpected type\n\
3010 required: {0}\n\
3011 found: {1}
3012
3013 compiler.err.unexpected.lambda=\
3014 lambda expression not expected here
3015
3016 compiler.err.unexpected.mref=\
3017 method reference not expected here
3018
3019 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
3020 ## The second argument {1} is the non-resolved symbol
3021 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
3022 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
3023 # 0: kind name, 1: name, 2: unused, 3: unused
3024 compiler.err.cant.resolve=\
3025 cannot find symbol\n\
3026 symbol: {0} {1}
3027
3028 # 0: kind name, 1: name, 2: unused, 3: list of type
3029 compiler.err.cant.resolve.args=\
3030 cannot find symbol\n\
3031 symbol: {0} {1}({3})
3032
3033 # 0: kind name, 1: name, 2: unused, 3: list of type
3034 compiler.misc.cant.resolve.args=\
3035 cannot find symbol\n\
3036 symbol: {0} {1}({3})
3037
3038 # 0: kind name, 1: name, 2: list of type, 3: list of type
3039 compiler.err.cant.resolve.args.params=\
3040 cannot find symbol\n\
3041 symbol: {0} <{2}>{1}({3})
3042
3043 ## arguments from {0} to {3} have the same meaning as above
3044 ## The fifth argument {4} is a location subdiagnostic (see below)
3045 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment
3046 compiler.err.cant.resolve.location=\
3047 cannot find symbol\n\
3048 symbol: {0} {1}\n\
3049 location: {4}
3050
3051 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
3052 compiler.err.cant.resolve.location.args=\
3053 cannot find symbol\n\
3054 symbol: {0} {1}({3})\n\
3055 location: {4}
3056
3057 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
3058 compiler.err.cant.resolve.location.args.params=\
3059 cannot find symbol\n\
3060 symbol: {0} <{2}>{1}({3})\n\
3061 location: {4}
3062
3063 ### Following are replicated/used for method reference diagnostics
3064
3065 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
3066 compiler.misc.cant.resolve.location.args=\
3067 cannot find symbol\n\
3068 symbol: {0} {1}({3})\n\
3069 location: {4}
3070
3071 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
3072 compiler.misc.cant.resolve.location.args.params=\
3073 cannot find symbol\n\
3074 symbol: {0} <{2}>{1}({3})\n\
3075 location: {4}
3076
3077 ##a location subdiagnostic is composed as follows:
3078 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
3079 ## The second argument {1} is the location name
3080 ## The third argument {2} is the location type (only when {1} is a variable name)
3081
3082 # 0: kind name, 1: type or symbol, 2: unused
3083 compiler.misc.location=\
3084 {0} {1}
3085
3086 # 0: kind name, 1: symbol, 2: type
3087 compiler.misc.location.1=\
3088 {0} {1} of type {2}
3089
3090 ## The following are all possible string for "kindname".
3091 ## They should be called whatever the JLS calls them after it been translated
3092 ## to the appropriate language.
3093 # compiler.misc.kindname.constructor=\
3094 # static member
3095 compiler.misc.kindname.annotation=\
3096 @interface
3097
3098 compiler.misc.kindname.constructor=\
3099 constructor
3100
3101 compiler.misc.kindname.enum=\
3102 enum
3103
3104 compiler.misc.kindname.interface=\
3105 interface
3106
3107 compiler.misc.kindname.static=\
3108 static
3109
3110 compiler.misc.kindname.type.variable=\
3111 type variable
3112
3113 compiler.misc.kindname.type.variable.bound=\
3114 bound of type variable
3115
3116 compiler.misc.kindname.variable=\
3117 variable
3118
3119 compiler.misc.kindname.value=\
3120 value
3121
3122 compiler.misc.kindname.method=\
3123 method
3124
3125 compiler.misc.kindname.class=\
3126 class
3127
3128 compiler.misc.kindname.package=\
3129 package
3130
3131 compiler.misc.kindname.module=\
3132 module
3133
3134 compiler.misc.kindname.static.init=\
3135 static initializer
3136
3137 compiler.misc.kindname.instance.init=\
3138 instance initializer
3139
3140 compiler.misc.kindname.record.component=\
3141 record component
3142
3143 compiler.misc.kindname.record=\
3144 record
3145
3146 #####
3147
3148 compiler.misc.no.args=\
3149 no arguments
3150
3151 # 0: message segment
3152 compiler.err.override.static=\
3153 {0}\n\
3154 overriding method is static
3155
3156 # 0: message segment, 1: set of flag
3157 compiler.err.override.meth=\
3158 {0}\n\
3159 overridden method is {1}
3160
3161 # 0: message segment, 1: type
3162 compiler.err.override.meth.doesnt.throw=\
3163 {0}\n\
3164 overridden method does not throw {1}
3165
3166 # In the following string {1} is a space separated list of Java Keywords, as
3167 # they would have been declared in the source code
3168 # 0: message segment, 1: set of flag or string
3169 compiler.err.override.weaker.access=\
3170 {0}\n\
3171 attempting to assign weaker access privileges; was {1}
3172
3173 # 0: message segment, 1: type, 2: type
3174 compiler.err.override.incompatible.ret=\
3175 {0}\n\
3176 return type {1} is not compatible with {2}
3177
3178 # 0: message segment, 1: type, 2: type
3179 # lint: unchecked
3180 compiler.warn.override.unchecked.ret=\
3181 {0}\n\
3182 return type requires unchecked conversion from {1} to {2}
3183
3184 # 0: message segment, 1: type
3185 # lint: unchecked
3186 compiler.warn.override.unchecked.thrown=\
3187 {0}\n\
3188 overridden method does not throw {1}
3189
3190 # 0: symbol
3191 # lint: overrides
3192 compiler.warn.override.equals.but.not.hashcode=\
3193 Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
3194
3195 ## The following are all possible strings for the first argument ({0}) of the
3196 ## above strings.
3197 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3198 compiler.misc.cant.override=\
3199 {0} in {1} cannot override {2} in {3}
3200
3201 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3202 compiler.misc.cant.hide=\
3203 {0} in {1} cannot hide {2} in {3}
3204
3205 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3206 compiler.misc.cant.implement=\
3207 {0} in {1} cannot implement {2} in {3}
3208
3209 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3210 compiler.misc.clashes.with=\
3211 {0} in {1} clashes with {2} in {3}
3212
3213 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3214 compiler.misc.unchecked.override=\
3215 {0} in {1} overrides {2} in {3}
3216
3217 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3218 compiler.misc.unchecked.implement=\
3219 {0} in {1} implements {2} in {3}
3220
3221 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3222 compiler.misc.unchecked.clash.with=\
3223 {0} in {1} overrides {2} in {3}
3224
3225 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3226 compiler.misc.varargs.override=\
3227 {0} in {1} overrides {2} in {3}
3228
3229 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3230 compiler.misc.varargs.implement=\
3231 {0} in {1} implements {2} in {3}
3232
3233 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3234 compiler.misc.varargs.clash.with=\
3235 {0} in {1} overrides {2} in {3}
3236
3237 # 0: kind name, 1: symbol, 2: symbol, 3: message segment
3238 compiler.misc.inapplicable.method=\
3239 {0} {1}.{2} is not applicable\n\
3240 ({3})
3241
3242 ########################################
3243 # Diagnostics for language feature changes.
3244 # Such diagnostics have a common template which can be customized by using a feature
3245 # diagnostic fragment (one of those given below).
3246 ########################################
3247
3248 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3249 compiler.err.feature.not.supported.in.source=\
3250 {0} is not supported in -source {1}\n\
3251 (use -source {2} or higher to enable {0})
3252
3253 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3254 compiler.err.feature.not.supported.in.source.plural=\
3255 {0} are not supported in -source {1}\n\
3256 (use -source {2} or higher to enable {0})
3257
3258 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3259 compiler.misc.feature.not.supported.in.source=\
3260 {0} is not supported in -source {1}\n\
3261 (use -source {2} or higher to enable {0})
3262
3263 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3264 compiler.misc.feature.not.supported.in.source.plural=\
3265 {0} are not supported in -source {1}\n\
3266 (use -source {2} or higher to enable {0})
3267
3268 # 0: message segment (feature)
3269 compiler.err.preview.feature.disabled=\
3270 {0} is a preview feature and is disabled by default.\n\
3271 (use --enable-preview to enable {0})
3272
3273 # 0: message segment (feature)
3274 compiler.err.preview.feature.disabled.plural=\
3275 {0} are a preview feature and are disabled by default.\n\
3276 (use --enable-preview to enable {0})
3277
3278 # 0: file object (classfile), 1: string (expected version)
3279 compiler.err.preview.feature.disabled.classfile=\
3280 class file for {0} uses preview features of Java SE {1}.\n\
3281 (use --enable-preview to allow loading of class files which contain preview features)
3282
3283 # 0: message segment (feature)
3284 # lint: preview
3285 compiler.warn.preview.feature.use=\
3286 {0} is a preview feature and may be removed in a future release.
3287
3288 # 0: message segment (feature)
3289 # lint: preview
3290 compiler.warn.preview.feature.use.plural=\
3291 {0} are a preview feature and may be removed in a future release.
3292
3293 # 0: file object (classfile), 1: string (expected version)
3294 # lint: preview
3295 compiler.warn.preview.feature.use.classfile=\
3296 class file for {0} uses preview features of Java SE {1}.
3297
3298 compiler.misc.feature.modules=\
3299 modules
3300
3301 compiler.misc.feature.diamond.and.anon.class=\
3302 ''<>'' with anonymous inner classes
3303
3304 compiler.misc.feature.var.in.try.with.resources=\
3305 variables in try-with-resources
3306
3307 compiler.misc.feature.private.intf.methods=\
3308 private interface methods
3309
3310 compiler.misc.feature.text.blocks=\
3311 text blocks
3312
3313 compiler.misc.feature.multiple.case.labels=\
3314 multiple case labels
3315
3316 compiler.misc.feature.switch.rules=\
3317 switch rules
3318
3319 compiler.misc.feature.switch.expressions=\
3320 switch expressions
3321
3322 compiler.misc.feature.var.syntax.in.implicit.lambda=\
3323 var syntax in implicit lambdas
3324
3325 compiler.misc.feature.pattern.matching.instanceof=\
3326 pattern matching in instanceof
3327
3328 compiler.misc.feature.reifiable.types.instanceof=\
3329 reifiable types in instanceof
3330
3331 compiler.misc.feature.deconstruction.patterns=\
3332 deconstruction patterns
3333
3334 compiler.misc.feature.unnamed.variables=\
3335 unnamed variables
3336
3337 compiler.misc.feature.primitive.patterns=\
3338 primitive patterns
3339
3340 compiler.misc.feature.records=\
3341 records
3342
3343 compiler.misc.feature.sealed.classes=\
3344 sealed classes
3345
3346 compiler.misc.feature.case.null=\
3347 null in switch cases
3348
3349 compiler.misc.feature.pattern.switch=\
3350 patterns in switch statements
3351
3352 compiler.misc.feature.unconditional.patterns.in.instanceof=\
3353 unconditional patterns in instanceof
3354
3355 compiler.misc.feature.implicit.classes=\
3356 implicitly declared classes
3357
3358 compiler.misc.feature.flexible.constructors=\
3359 flexible constructors
3360
3361 compiler.misc.feature.module.imports=\
3362 module imports
3363
3364 # L10N: do not localize: transitive
3365 compiler.misc.feature.java.base.transitive=\
3366 transitive modifier for java.base
3367
3368 compiler.warn.underscore.as.identifier=\
3369 as of release 9, ''_'' is a keyword, and may not be used as an identifier
3370
3371 compiler.err.underscore.as.identifier=\
3372 as of release 9, ''_'' is a keyword, and may not be used as an identifier
3373
3374 compiler.err.use.of.underscore.not.allowed=\
3375 underscore not allowed here\n\
3376 as of release 9, ''_'' is a keyword, and may not be used as an identifier\n\
3377 as of release 22, ''_'' can be used as a name in the declaration of unnamed patterns, local variables, exception parameters or lambda parameters
3378
3379 compiler.err.use.of.underscore.not.allowed.non.variable=\
3380 underscore not allowed here
3381
3382 compiler.err.use.of.underscore.not.allowed.with.brackets=\
3383 the underscore keyword ''_'' is not allowed to be followed by brackets
3384
3385 compiler.err.enum.as.identifier=\
3386 as of release 5, ''enum'' is a keyword, and may not be used as an identifier
3387
3388 compiler.err.assert.as.identifier=\
3389 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
3390
3391 # TODO 308: make a better error message
3392 compiler.err.this.as.identifier=\
3393 as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
3394 which has to be the first parameter, and cannot be a lambda parameter
3395
3396 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
3397 receiver parameter not applicable for constructor of top-level class
3398
3399 # 0: fragment, 1: symbol, 2: annotated-type
3400 compiler.err.type.annotation.inadmissible=\
3401 {0} not expected here\n\
3402 (to annotate a qualified type, write {1}.{2})
3403
3404 # 0: annotation
3405 compiler.misc.type.annotation.1=\
3406 type annotation {0} is
3407
3408 # 0: list of annotation
3409 compiler.misc.type.annotation=\
3410 type annotations {0} are
3411
3412 # 0: type, 1: type
3413 compiler.err.incorrect.receiver.name=\
3414 the receiver name does not match the enclosing class type\n\
3415 required: {0}\n\
3416 found: {1}
3417
3418 # 0: type, 1: type
3419 compiler.err.incorrect.receiver.type=\
3420 the receiver type does not match the enclosing class type\n\
3421 required: {0}\n\
3422 found: {1}
3423
3424 # 0: type, 1: type
3425 compiler.err.incorrect.constructor.receiver.type=\
3426 the receiver type does not match the enclosing outer class type\n\
3427 required: {0}\n\
3428 found: {1}
3429
3430 # 0: type, 1: type
3431 compiler.err.incorrect.constructor.receiver.name=\
3432 the receiver name does not match the enclosing outer class type\n\
3433 required: {0}\n\
3434 found: {1}
3435
3436 compiler.err.no.annotations.on.dot.class=\
3437 no annotations are allowed in the type of a class literal
3438
3439 ########################################
3440 # Diagnostics for verbose resolution
3441 # used by Resolve (debug only)
3442 ########################################
3443
3444 # 0: number, 1: symbol, 2: unused
3445 compiler.misc.applicable.method.found=\
3446 #{0} applicable method found: {1}
3447
3448 # 0: number, 1: symbol, 2: message segment
3449 compiler.misc.applicable.method.found.1=\
3450 #{0} applicable method found: {1}\n\
3451 ({2})
3452
3453 # 0: number, 1: symbol, 2: message segment
3454 compiler.misc.not.applicable.method.found=\
3455 #{0} not applicable method found: {1}\n\
3456 ({2})
3457
3458 # 0: type
3459 compiler.misc.partial.inst.sig=\
3460 partially instantiated to: {0}
3461
3462 # 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
3463 compiler.note.verbose.resolve.multi=\
3464 resolving method {0} in type {1} to candidate {2}\n\
3465 phase: {3}\n\
3466 with actuals: {4}\n\
3467 with type-args: {5}\n\
3468 candidates:
3469
3470 # 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
3471 compiler.note.verbose.resolve.multi.1=\
3472 erroneous resolution for method {0} in type {1}\n\
3473 phase: {3}\n\
3474 with actuals: {4}\n\
3475 with type-args: {5}\n\
3476 candidates:
3477
3478 # 0: symbol, 1: type, 2: type
3479 compiler.note.deferred.method.inst=\
3480 Deferred instantiation of method {0}\n\
3481 instantiated signature: {1}\n\
3482 target-type: {2}
3483
3484 ########################################
3485 # Diagnostics for lambda deduplication
3486 # used by LambdaToMethod (debug only)
3487 ########################################
3488
3489 # 0: symbol
3490 compiler.note.verbose.l2m.deduplicate=\
3491 deduplicating lambda implementation method {0}
3492
3493 ########################################
3494 # Diagnostics for method reference search
3495 # results used by Resolve (debug only)
3496 ########################################
3497
3498 # 0: fragment, 1: string, 2: number
3499 compiler.note.method.ref.search.results.multi=\
3500 {0} search results for {1}, with most specific {2}\n\
3501 applicable candidates:
3502
3503 # 0: number, 1: fragment, 2: symbol
3504 compiler.misc.applicable.method.found.2=\
3505 #{0} applicable method found: {1} {2}
3506
3507 # 0: number, 1: fragment, 2: symbol, 3: message segment
3508 compiler.misc.applicable.method.found.3=\
3509 #{0} applicable method found: {1} {2}\n\
3510 ({3})
3511
3512 compiler.misc.static=\
3513 static
3514
3515 compiler.misc.non.static=\
3516 non-static
3517
3518 compiler.misc.bound=\
3519 bound
3520
3521 compiler.misc.unbound=\
3522 unbound
3523
3524 ########################################
3525 # Diagnostics for where clause implementation
3526 # used by the RichDiagnosticFormatter.
3527 ########################################
3528
3529 compiler.misc.type.null=\
3530 <null>
3531
3532 # X#n (where n is an int id) is disambiguated tvar name
3533 # 0: name, 1: number
3534 compiler.misc.type.var=\
3535 {0}#{1}
3536
3537 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
3538 # 0: number
3539 compiler.misc.captured.type=\
3540 CAP#{0}
3541
3542 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
3543 # 0: number
3544 compiler.misc.intersection.type=\
3545 INT#{0}
3546
3547 # where clause for captured type: contains upper ('extends {1}') and lower
3548 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
3549 # 0: type, 1: type, 2: type, 3: type
3550 compiler.misc.where.captured=\
3551 {0} extends {1} super: {2} from capture of {3}
3552
3553 # compact where clause for captured type: contains upper ('extends {1}') along
3554 # with the wildcard that generated this captured type ({3})
3555 # 0: type, 1: type, 2: unused, 3: type
3556 compiler.misc.where.captured.1=\
3557 {0} extends {1} from capture of {3}
3558
3559 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
3560 # the kindname ({2}) and location ({3}) in which the typevar has been declared
3561 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
3562 compiler.misc.where.typevar=\
3563 {0} extends {1} declared in {2} {3}
3564
3565 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
3566 # in which the typevar has been declared
3567 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
3568 compiler.misc.where.typevar.1=\
3569 {0} declared in {2} {3}
3570
3571 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
3572 # Since a fresh type-variable is synthetic - there's no location/kindname here.
3573 # 0: type, 1: list of type
3574 compiler.misc.where.fresh.typevar=\
3575 {0} extends {1}
3576
3577 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
3578 # of this intersection type
3579 # 0: type, 1: list of type
3580 compiler.misc.where.intersection=\
3581 {0} extends {1}
3582
3583 ### Where clause headers ###
3584 compiler.misc.where.description.captured=\
3585 where {0} is a fresh type-variable:
3586
3587 # 0: set of type
3588 compiler.misc.where.description.typevar=\
3589 where {0} is a type-variable:
3590
3591 # 0: set of type
3592 compiler.misc.where.description.intersection=\
3593 where {0} is an intersection type:
3594
3595 # 0: set of type
3596 compiler.misc.where.description.captured.1=\
3597 where {0} are fresh type-variables:
3598
3599 # 0: set of type
3600 compiler.misc.where.description.typevar.1=\
3601 where {0} are type-variables:
3602
3603 # 0: set of type
3604 compiler.misc.where.description.intersection.1=\
3605 where {0} are intersection types:
3606
3607 ###
3608 # errors related to doc comments
3609
3610 compiler.err.dc.bad.entity=\
3611 bad HTML entity
3612
3613 compiler.err.dc.bad.inline.tag=\
3614 incorrect use of inline tag
3615
3616 compiler.err.dc.identifier.expected=\
3617 identifier expected
3618
3619 compiler.err.dc.invalid.html=\
3620 invalid HTML
3621
3622 compiler.err.dc.malformed.html=\
3623 malformed HTML
3624
3625 compiler.err.dc.missing.semicolon=\
3626 semicolon missing
3627
3628 compiler.err.dc.no.content=\
3629 no content
3630
3631 compiler.err.dc.no.tag.name=\
3632 no tag name after ''@''
3633
3634 compiler.err.dc.no.url=\
3635 no URL
3636
3637 compiler.err.dc.no.title=\
3638 no title
3639
3640 compiler.err.dc.gt.expected=\
3641 ''>'' expected
3642
3643 compiler.err.dc.ref.bad.parens=\
3644 unexpected text after parenthesis
3645
3646 compiler.err.dc.ref.syntax.error=\
3647 syntax error in reference
3648
3649 compiler.err.dc.ref.unexpected.input=\
3650 unexpected text
3651
3652 compiler.err.dc.unexpected.content=\
3653 unexpected content
3654
3655 compiler.err.dc.unterminated.inline.tag=\
3656 unterminated inline tag
3657
3658 compiler.err.dc.unterminated.signature=\
3659 unterminated signature
3660
3661 compiler.err.dc.unterminated.string=\
3662 unterminated string
3663
3664 compiler.err.dc.ref.annotations.not.allowed=\
3665 annotations not allowed
3666
3667 ###
3668 # errors related to modules
3669
3670 compiler.err.expected.module=\
3671 expected ''module''
3672
3673 # 0: symbol
3674 compiler.err.module.not.found=\
3675 module not found: {0}
3676
3677 # 0: symbol
3678 # lint: module
3679 compiler.warn.module.not.found=\
3680 module not found: {0}
3681
3682 # 0: name
3683 compiler.err.import.module.not.found=\
3684 imported module not found: {0}
3685
3686 # 0: symbol
3687 compiler.err.import.module.does.not.read.unnamed=\
3688 unnamed module does not read: {0}
3689
3690 # 0: symbol, 1: symbol
3691 compiler.err.import.module.does.not.read=\
3692 module {0} does not read: {1}
3693
3694 compiler.err.too.many.modules=\
3695 too many module declarations found
3696
3697 compiler.err.module.not.found.on.module.source.path=\
3698 module not found on module source path
3699
3700 compiler.err.not.in.module.on.module.source.path=\
3701 not in a module on the module source path
3702
3703 # 0: symbol
3704 compiler.err.duplicate.module=\
3705 duplicate module: {0}
3706
3707 # 0: symbol
3708 compiler.err.duplicate.requires=\
3709 duplicate requires: {0}
3710
3711 # 0: symbol
3712 compiler.err.conflicting.exports=\
3713 duplicate or conflicting exports: {0}
3714
3715 # 0: symbol
3716 compiler.err.conflicting.opens=\
3717 duplicate or conflicting opens: {0}
3718
3719 # 0: symbol
3720 compiler.err.conflicting.exports.to.module=\
3721 duplicate or conflicting exports to module: {0}
3722
3723 # 0: symbol
3724 compiler.err.conflicting.opens.to.module=\
3725 duplicate or conflicting opens to module: {0}
3726
3727 compiler.err.no.opens.unless.strong=\
3728 ''opens'' only allowed in strong modules
3729
3730 # 0: symbol
3731 compiler.err.repeated.provides.for.service=\
3732 multiple ''provides'' for service {0}
3733
3734 # 0: symbol, 1: symbol
3735 compiler.err.duplicate.provides=\
3736 duplicate provides: service {0}, implementation {1}
3737
3738 # 0: symbol
3739 compiler.err.duplicate.uses=\
3740 duplicate uses: {0}
3741
3742 # 0: symbol
3743 compiler.err.service.implementation.is.abstract=\
3744 the service implementation is an abstract class: {0}
3745
3746 compiler.err.service.implementation.must.be.subtype.of.service.interface=\
3747 the service implementation type must be a subtype of the service interface type, or \
3748 have a public static no-args method named "provider" returning the service implementation
3749
3750 compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface=\
3751 the "provider" method return type must be a subtype of the service interface type
3752
3753 # 0: symbol
3754 compiler.err.service.implementation.is.inner=\
3755 the service implementation is an inner class: {0}
3756
3757 # 0: symbol
3758 compiler.err.service.definition.is.enum=\
3759 the service definition is an enum: {0}
3760
3761 # 0: symbol
3762 compiler.err.service.implementation.doesnt.have.a.no.args.constructor=\
3763 the service implementation does not have a default constructor: {0}
3764
3765 # 0: symbol
3766 compiler.err.service.implementation.no.args.constructor.not.public=\
3767 the no arguments constructor of the service implementation is not public: {0}
3768
3769 # 0: symbol
3770 compiler.err.package.empty.or.not.found=\
3771 package is empty or does not exist: {0}
3772
3773 # 0: symbol
3774 # lint: opens
3775 compiler.warn.package.empty.or.not.found=\
3776 package is empty or does not exist: {0}
3777
3778 compiler.err.no.output.dir=\
3779 no class output directory specified
3780
3781 compiler.err.unnamed.pkg.not.allowed.named.modules=\
3782 unnamed package is not allowed in named modules
3783
3784 # 0: name, 1: name
3785 compiler.err.module.name.mismatch=\
3786 module name {0} does not match expected name {1}
3787
3788 # 0: name, 1: name
3789 compiler.misc.module.name.mismatch=\
3790 module name {0} does not match expected name {1}
3791
3792 # 0: name
3793 compiler.err.module.non.zero.opens=\
3794 open module {0} has non-zero opens_count
3795
3796 # 0: name
3797 compiler.misc.module.non.zero.opens=\
3798 open module {0} has non-zero opens_count
3799
3800 compiler.err.module.decl.sb.in.module-info.java=\
3801 module declarations should be in a file named module-info.java
3802
3803 # 0: set of string
3804 compiler.err.too.many.patched.modules=\
3805 too many patched modules ({0}), use --module-source-path
3806
3807 # 0: name, 1: name
3808 compiler.err.file.patched.and.msp=\
3809 file accessible from both --patch-module and --module-source-path, \
3810 but belongs to a different module on each path: {0}, {1}
3811
3812 compiler.err.processorpath.no.processormodulepath=\
3813 illegal combination of -processorpath and --processor-module-path
3814
3815 # 0: symbol
3816 compiler.err.package.in.other.module=\
3817 package exists in another module: {0}
3818
3819 # 0: symbol, 1: name, 2: symbol, 3: symbol
3820 compiler.err.package.clash.from.requires=\
3821 module {0} reads package {1} from both {2} and {3}
3822
3823 # 0: name, 1: symbol, 2: symbol
3824 compiler.err.package.clash.from.requires.in.unnamed=\
3825 the unnamed module reads package {0} from both {1} and {2}
3826
3827 # 0: string
3828 compiler.err.module.not.found.in.module.source.path=\
3829 module {0} not found in module source path
3830
3831 compiler.err.output.dir.must.be.specified.with.dash.m.option=\
3832 class output directory must be specified if -m option is used
3833
3834 compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=\
3835 module source path must be specified if -m option is used
3836
3837 # 0: symbol
3838 compiler.err.service.implementation.not.in.right.module=\
3839 service implementation must be defined in the same module as the provides directive
3840
3841 # 0: symbol
3842 compiler.err.cyclic.requires=\
3843 cyclic dependence involving {0}
3844
3845 # 0: fragment, 1: name
3846 compiler.err.duplicate.module.on.path=\
3847 duplicate module on {0}\nmodule in {1}
3848
3849 # 0: option name, 1: string
3850 compiler.warn.bad.name.for.option=\
3851 bad name in value for {0} option: ''{1}''
3852
3853 # 0: option name, 1: string
3854 compiler.err.bad.name.for.option=\
3855 bad name in value for {0} option: ''{1}''
3856
3857 # 0: option name, 1: symbol
3858 # lint: options
3859 compiler.warn.module.for.option.not.found=\
3860 module name in {0} option not found: {1}
3861
3862 compiler.err.addmods.all.module.path.invalid=\
3863 --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module or \
3864 when compiling in the context of an automatic module
3865
3866 # 0: symbol
3867 compiler.err.add.exports.with.release=\
3868 exporting a package from system module {0} is not allowed with --release
3869
3870 # 0: symbol
3871 compiler.err.add.reads.with.release=\
3872 adding read edges for system module {0} is not allowed with --release
3873
3874 # lint: options
3875 compiler.warn.addopens.ignored=\
3876 --add-opens has no effect at compile time
3877
3878 compiler.misc.locn.module_source_path=\
3879 module source path
3880
3881 compiler.misc.locn.upgrade_module_path=\
3882 upgrade module path
3883
3884 compiler.misc.locn.system_modules=\
3885 system modules
3886
3887 compiler.misc.locn.module_path=\
3888 application module path
3889
3890 compiler.misc.cant.resolve.modules=\
3891 cannot resolve modules
3892
3893 compiler.misc.bad.requires.flag=\
3894 invalid flag for "requires java.base": {0}
3895
3896 # 0: string
3897 compiler.err.invalid.module.specifier=\
3898 module specifier not allowed: {0}
3899
3900 # 0: symbol
3901 compiler.warn.service.provided.but.not.exported.or.used=\
3902 service interface provided but not exported or used
3903
3904 # 0: kind name, 1: symbol, 2: symbol
3905 # lint: exports
3906 compiler.warn.leaks.not.accessible=\
3907 {0} {1} in module {2} is not accessible to clients that require this module
3908 # 0: kind name, 1: symbol, 2: symbol
3909 # lint: exports
3910 compiler.warn.leaks.not.accessible.unexported=\
3911 {0} {1} in module {2} is not exported
3912 # 0: kind name, 1: symbol, 2: symbol
3913 # lint: exports
3914 compiler.warn.leaks.not.accessible.not.required.transitive=\
3915 {0} {1} in module {2} is not indirectly exported using ''requires transitive''
3916 # 0: kind name, 1: symbol, 2: symbol
3917 # lint: exports
3918 compiler.warn.leaks.not.accessible.unexported.qualified=\
3919 {0} {1} in module {2} may not be visible to all clients that require this module
3920
3921 ###
3922 # errors related to options
3923
3924 # 0: string, 1: string
3925 compiler.err.illegal.argument.for.option=\
3926 illegal argument for {0}: {1}
3927
3928 compiler.err.match.binding.exists=\
3929 illegal attempt to redefine an existing match binding
3930
3931 compiler.err.switch.case.unexpected.statement=\
3932 unexpected statement in case, expected is an expression, a block or a throw statement
3933
3934 compiler.err.switch.mixing.case.types=\
3935 different case kinds used in the switch
3936
3937 ###
3938 # errors related to sealed classes
3939
3940 # permits clause
3941 # 0: fragment
3942 compiler.err.invalid.permits.clause=\
3943 invalid permits clause\n\
3944 ({0})
3945
3946 # 0: string
3947 compiler.misc.class.is.not.sealed=\
3948 {0} must be sealed
3949
3950 # 0: type
3951 compiler.misc.is.a.type.variable=\
3952 must not include type variables: {0}
3953
3954 # 0: type
3955 compiler.misc.is.duplicated=\
3956 must not contain duplicates: {0}
3957
3958 # 0: type
3959 compiler.misc.doesnt.extend.sealed=\
3960 class {0} must extend sealed class
3961
3962 # 0: kind name, 1: type
3963 compiler.misc.doesnt.implement.sealed=\
3964 {0} {1} must extend sealed interface
3965
3966 compiler.misc.must.not.be.same.class=\
3967 illegal self-reference in permits clause
3968
3969 # 0: type
3970 compiler.misc.must.not.be.supertype=\
3971 illegal reference to supertype {0}
3972
3973 # other sealed types related errors
3974
3975 compiler.err.sealed.class.must.have.subclasses=\
3976 sealed class must have subclasses
3977
3978 # errors in subclasses of sealed classes
3979 # 0: symbol
3980 compiler.err.cant.inherit.from.sealed=\
3981 class is not allowed to extend sealed class: {0} \
3982 (as it is not listed in its ''permits'' clause)
3983
3984 # 0: symbol
3985 compiler.err.class.in.unnamed.module.cant.extend.sealed.in.diff.package=\
3986 class {0} in unnamed module cannot extend a sealed class in a different package
3987
3988 # 0: symbol, 1: symbol
3989 compiler.err.class.in.module.cant.extend.sealed.in.diff.module=\
3990 class {0} in module {1} cannot extend a sealed class in a different module
3991
3992 # 0: symbol
3993 compiler.err.non.sealed.with.no.sealed.supertype=\
3994 non-sealed modifier not allowed here\n\
3995 (class {0} does not have any sealed supertypes)
3996
3997 compiler.err.non.sealed.sealed.or.final.expected=\
3998 sealed, non-sealed or final modifiers expected
3999
4000 compiler.err.non.sealed.or.sealed.expected=\
4001 sealed or non-sealed modifiers expected
4002
4003 compiler.err.sealed.or.non.sealed.local.classes.not.allowed=\
4004 sealed or non-sealed local classes are not allowed
4005
4006 # 0: fragment
4007 compiler.err.local.classes.cant.extend.sealed=\
4008 {0} classes must not extend sealed classes\
4009
4010 compiler.misc.anonymous=\
4011 anonymous
4012
4013 compiler.misc.local=\
4014 local
4015
4016 ###
4017 # errors related to records
4018
4019 # record components
4020 compiler.err.record.cant.declare.field.modifiers=\
4021 record components cannot have modifiers
4022
4023 # 0: symbol
4024 compiler.err.illegal.record.component.name=\
4025 illegal record component name {0}
4026
4027 compiler.err.record.component.and.old.array.syntax=\
4028 legacy array notation not allowed on record components
4029
4030 # accessor methods
4031 # 0: symbol, 1: fragment
4032 compiler.err.invalid.accessor.method.in.record=\
4033 invalid accessor method in record {0}\n\
4034 ({1})
4035
4036 compiler.misc.method.must.be.public=\
4037 accessor method must be public
4038
4039 # 0: symbol, 1: symbol
4040 compiler.misc.accessor.return.type.doesnt.match=\
4041 return type of accessor method {0} must match the type of record component {1}
4042
4043 compiler.misc.accessor.method.cant.throw.exception=\
4044 throws clause not allowed for accessor method
4045
4046 compiler.misc.accessor.method.must.not.be.generic=\
4047 accessor method must not be generic
4048
4049 compiler.misc.accessor.method.must.not.be.static=\
4050 accessor method must not be static
4051
4052 # canonical constructors
4053 # 0: fragment, 1: name, 2: fragment
4054 compiler.err.invalid.canonical.constructor.in.record=\
4055 invalid {0} constructor in record {1}\n\
4056 ({2})
4057
4058 compiler.misc.canonical=\
4059 canonical
4060
4061 compiler.misc.compact=\
4062 compact
4063
4064 # 0: fragment
4065 compiler.misc.throws.clause.not.allowed.for.canonical.constructor=\
4066 throws clause not allowed for {0} constructor
4067
4068 compiler.misc.canonical.with.name.mismatch=\
4069 invalid parameter names in canonical constructor
4070
4071 compiler.misc.canonical.cant.have.return.statement=\
4072 compact constructor must not have return statements
4073
4074 compiler.misc.canonical.must.not.declare.type.variables=\
4075 canonical constructor must not declare type variables
4076
4077 compiler.misc.type.must.be.identical.to.corresponding.record.component.type=\
4078 type and arity must match that of the corresponding record component\
4079
4080 compiler.misc.canonical.must.not.contain.explicit.constructor.invocation=\
4081 canonical constructor must not contain explicit constructor invocation
4082
4083 # 0: set of flag or string
4084 compiler.misc.canonical.must.not.have.stronger.access=\
4085 attempting to assign stronger access privileges; was {0}
4086
4087 # other
4088 compiler.err.record.cannot.declare.instance.fields=\
4089 field declaration must be static\n\
4090 (consider replacing field with record component)
4091
4092 # 0: symbol
4093 compiler.err.invalid.supertype.record=\
4094 classes cannot directly extend {0}
4095
4096 # 0: symbol
4097 compiler.err.non.canonical.constructor.invoke.another.constructor=\
4098 constructor is not canonical, so it must invoke another constructor of class {0}
4099
4100 compiler.err.instance.initializer.not.allowed.in.records=\
4101 instance initializers not allowed in records
4102
4103 compiler.err.static.declaration.not.allowed.in.inner.classes=\
4104 static declarations not allowed in inner classes
4105
4106 compiler.err.record.patterns.annotations.not.allowed=\
4107 annotations not allowed on record patterns
4108
4109 ############################################
4110 # messages previously at javac.properties
4111
4112 compiler.err.empty.A.argument=\
4113 -A requires an argument; use ''-Akey'' or ''-Akey=value''
4114
4115 # 0: string
4116 compiler.err.invalid.A.key=\
4117 key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
4118
4119 # 0: string
4120 compiler.err.invalid.flag=\
4121 invalid flag: {0}
4122
4123 compiler.err.profile.bootclasspath.conflict=\
4124 profile and bootclasspath options cannot be used together
4125
4126 # 0: string
4127 compiler.err.invalid.profile=\
4128 invalid profile: {0}
4129
4130 # 0: string
4131 compiler.err.invalid.target=\
4132 invalid target release: {0}
4133
4134 # 0: option name, 1: target
4135 compiler.err.option.not.allowed.with.target=\
4136 option {0} not allowed with target {1}
4137
4138 # 0: string
4139 compiler.err.option.too.many=\
4140 option {0} can only be specified once
4141
4142 compiler.err.no.source.files=\
4143 no source files
4144
4145 compiler.err.no.source.files.classes=\
4146 no source files or class names
4147
4148 # 0: string
4149 compiler.err.req.arg=\
4150 {0} requires an argument
4151
4152 # 0: string
4153 compiler.err.invalid.source=\
4154 invalid source release: {0}
4155
4156 # 0: string, 1: string
4157 compiler.err.error.writing.file=\
4158 error writing {0}; {1}
4159
4160 compiler.err.sourcepath.modulesourcepath.conflict=\
4161 cannot specify both --source-path and --module-source-path
4162
4163 # 0: string, 1: string
4164 compiler.err.source.target.conflict=\
4165 specified target release {1} is too old for the specified source release {0}\n\
4166 --release {1} is recommended when compiling code to run on JDK {1}
4167
4168 # 0: string, 1: string
4169 compiler.err.target.default.source.conflict=\
4170 specified target release {1} is too old for the default source release {0}\n\
4171 --release {1} is recommended when compiling code to run on JDK {1}
4172
4173 # 0: profile, 1: target
4174 compiler.warn.profile.target.conflict=\
4175 profile {0} is not valid for target release {1}
4176
4177 # 0: string
4178 compiler.err.file.not.directory=\
4179 not a directory: {0}
4180
4181 # 0: object
4182 compiler.err.file.not.file=\
4183 not a file: {0}
4184
4185 compiler.err.two.class.loaders.1=\
4186 javac is split between multiple class loaders: check your configuration
4187
4188 # 0: url, 1: url
4189 compiler.err.two.class.loaders.2=\
4190 javac is split between multiple class loaders:\n\
4191 one class comes from file: {0}\n\
4192 while javac comes from {1}
4193
4194 # 0: string, 1: string
4195 compiler.err.bad.value.for.option=\
4196 bad value for {0} option: ''{1}''
4197
4198 # 0: string
4199 compiler.err.no.value.for.option=\
4200 no value for {0} option
4201
4202 # 0: string
4203 compiler.err.repeated.value.for.patch.module=\
4204 --patch-module specified more than once for module {0}
4205
4206 # 0: string
4207 compiler.err.repeated.value.for.module.source.path=\
4208 --module-source-path specified more than once for module {0}
4209
4210 compiler.err.multiple.values.for.module.source.path=\
4211 --module-source-path specified more than once with a pattern argument
4212
4213 # 0: string
4214 compiler.err.unmatched.quote=\
4215 unmatched quote in environment variable {0}
4216
4217 # 0: option name
4218 compiler.err.release.bootclasspath.conflict=\
4219 option {0} cannot be used together with --release
4220
4221 # 0: string
4222 compiler.err.unsupported.release.version=\
4223 release version {0} not supported
4224
4225 # 0: string
4226 compiler.err.file.not.found=\
4227 file not found: {0}
4228
4229 # 0: string, 1: source
4230 compiler.err.preview.not.latest=\
4231 invalid source release {0} with --enable-preview\n\
4232 (preview language features are only supported for release {1})
4233
4234 compiler.err.preview.without.source.or.release=\
4235 --enable-preview must be used with either -source or --release
4236
4237 # 0: symbol
4238 compiler.err.deconstruction.pattern.only.records=\
4239 deconstruction patterns can only be applied to records, {0} is not a record
4240
4241 compiler.err.deconstruction.pattern.var.not.allowed=\
4242 deconstruction patterns can only be applied to records, var is not allowed
4243
4244 # 0: list of type, 1: list of type
4245 compiler.err.incorrect.number.of.nested.patterns=\
4246 incorrect number of nested patterns\n\
4247 required: {0}\n\
4248 found: {1}
4249
4250 # 0: kind name, 1: symbol
4251 # lint: preview
4252 compiler.warn.declared.using.preview=\
4253 {0} {1} is declared using a preview feature, which may be removed in a future release.
4254
4255 # lint: identity
4256 compiler.warn.attempt.to.synchronize.on.instance.of.value.based.class=\
4257 attempt to synchronize on an instance of a value-based class
4258
4259 # lint: identity
4260 compiler.warn.attempt.to.use.value.based.where.identity.expected=\
4261 use of a value-based class with an operation that expects reliable identity
4262
4263 # 0: type
4264 compiler.err.enclosing.class.type.non.denotable=\
4265 enclosing class type: {0}\n\
4266 is non-denotable, try casting to a denotable type