/
compiler.properties
4101 lines (3051 loc) · 122 KB
/
compiler.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#
# Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Messages in this file which use "placeholders" for values (e.g. {0}, {1})
# are preceded by a stylized comment describing the type of the corresponding
# values.
# The simple types currently in use are:
#
# annotation annotation compound
# boolean true or false
# diagnostic a sub-message; see compiler.misc.*
# fragment similar to 'message segment', but with more specific type
# modifier a Java modifier; e.g. public, private, protected
# file a file URL
# file object a file URL - similar to 'file' but typically used for source/class files, hence more specific
# flag a Flags.Flag instance
# name a name, typically a Java identifier
# number an integer
# option name the name of a command line option
# path a path
# profile a profile name
# source a source version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.code.Source
# source version a source version number, such as 1.5, 1.6, 1.7, taken from a javax.lang.model.SourceVersion
# string a general string
# symbol the name of a declared type
# symbol kind the kind of a symbol (i.e. method, variable)
# kind name an informative description of the kind of a declaration; see compiler.misc.kindname.*
# target a target version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.jvm.Target
# token the name of a non-terminal in source code; see compiler.misc.token.*
# tree tag the name of a non-terminal in source code; see compiler.misc.token.*
# type a Java type; e.g. int, X, X<T>
# url a URL
# object a Java object (unspecified)
# unused the value is not used in this message
#
# The following compound types are also used:
#
# collection of X a comma-separated collection of items; e.g. collection of type
# list of X a comma-separated list of items; e.g. list of type
# set of X a comma-separated set of items; e.g. set of modifier
#
# These may be composed:
#
# list of type or message segment
#
# The following type aliases are supported:
#
# message segment --> diagnostic or fragment
# file name --> file, path or file object
#
# Custom comments are supported in parenthesis i.e.
#
# number (classfile major version)
#
# These comments are used internally in order to generate an enum-like class declaration containing
# a method/field for each of the diagnostic keys listed here. Those methods/fields can then be used
# by javac code to build diagnostics in a type-safe fashion.
#
# In addition, these comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
# using info derived from the collected set of examples in test/tools/javac/diags/examples.
# MessageInfo can also be run as a standalone utility providing more facilities
# for manipulating this file. For more details, see MessageInfo.java.
##
## errors
##
# 0: symbol
compiler.err.abstract.cant.be.instantiated=\
{0} is abstract; cannot be instantiated
compiler.err.abstract.meth.cant.have.body=\
abstract methods cannot have a body
# 0: kind name, 1: symbol
compiler.err.already.annotated=\
{0} {1} has already been annotated
# 0: kind name, 1: symbol, 2: kind name, 3: symbol
compiler.err.already.defined=\
{0} {1} is already defined in {2} {3}
# 0: kind name, 1: symbol, 2: kind name, 3: kind name, 4: symbol
compiler.err.already.defined.in.clinit=\
{0} {1} is already defined in {2} of {3} {4}
# 0: symbol
compiler.err.already.defined.single.import=\
a type with the same simple name is already defined by the single-type-import of {0}
# 0: symbol
compiler.err.already.defined.static.single.import=\
a type with the same simple name is already defined by the static single-type-import of {0}
# 0: symbol
compiler.err.already.defined.this.unit=\
{0} is already defined in this compilation unit
compiler.err.annotation.missing.element.value=\
annotation is missing element value
# 0: type, 1: list of name
compiler.err.annotation.missing.default.value=\
annotation @{0} is missing a default value for the element ''{1}''
# 0: type, 1: list of name
compiler.err.annotation.missing.default.value.1=\
annotation @{0} is missing default values for elements {1}
# 0: type
compiler.err.annotation.not.valid.for.type=\
annotation not valid for an element of type {0}
compiler.err.annotation.type.not.applicable=\
annotation interface not applicable to this kind of declaration
# 0: type
compiler.err.annotation.type.not.applicable.to.type=\
annotation @{0} not applicable in this type context
compiler.err.annotation.value.must.be.annotation=\
annotation value must be an annotation
compiler.err.annotation.value.must.be.class.literal=\
annotation value must be a class literal
compiler.err.annotation.value.must.be.name.value=\
annotation values must be of the form ''name=value''
compiler.err.annotation.value.not.allowable.type=\
annotation value not of an allowable type
compiler.err.expression.not.allowable.as.annotation.value=\
expression not allowed as annotation value
# 0: type, 1: name
compiler.err.annotation.unrecognized.attribute.name=\
annotation @{0} has an unknown attribute named ''{1}''
compiler.err.anon.class.impl.intf.no.args=\
anonymous class implements interface; cannot have arguments
compiler.err.anon.class.impl.intf.no.typeargs=\
anonymous class implements interface; cannot have type arguments
compiler.err.anon.class.impl.intf.no.qual.for.new=\
anonymous class implements interface; cannot have qualifier for new
compiler.err.cant.inherit.from.anon=\
cannot inherit from anonymous class
# 0: symbol, 1: symbol, 2: symbol
compiler.err.array.and.varargs=\
cannot declare both {0} and {1} in {2}
compiler.err.array.dimension.missing=\
array dimension missing
compiler.err.illegal.array.creation.both.dimension.and.initialization=\
array creation with both dimension expression and initialization is illegal
# 0: type
compiler.err.array.req.but.found=\
array required, but {0} found
compiler.err.attribute.value.must.be.constant=\
element value must be a constant expression
# 0: string (statement type)
compiler.err.bad.initializer=\
bad initializer for {0}
compiler.err.break.outside.switch.loop=\
break outside switch or loop
compiler.err.break.outside.switch.expression=\
attempt to break out of a switch expression
compiler.err.continue.outside.switch.expression=\
attempt to continue out of a switch expression
compiler.err.return.outside.switch.expression=\
attempt to return out of a switch expression
compiler.err.rule.completes.normally=\
switch rule completes without providing a value\n\
(switch rules in switch expressions must either provide a value or throw)
compiler.err.switch.expression.completes.normally=\
switch expression completes without providing a value\n\
(switch expressions must either provide a value or throw for all possible input values)
compiler.err.no.switch.expression =\
yield outside of switch expression
compiler.err.no.switch.expression.qualify=\
yield outside of switch expression\n\
(to invoke a method called yield, qualify the yield with a receiver or type name)
compiler.err.invalid.yield=\
invalid use of a restricted identifier ''yield''\n\
(to invoke a method called yield, qualify the yield with a receiver or type name)
compiler.warn.invalid.yield=\
''yield'' may become a restricted identifier in a future release\n\
(to invoke a method called yield, qualify the yield with a receiver or type name)
compiler.err.switch.expression.empty=\
switch expression does not have any case clauses
compiler.err.switch.expression.no.result.expressions=\
switch expression does not have any result expressions
compiler.err.call.must.only.appear.in.ctor=\
explicit constructor invocation may only appear within a constructor body
compiler.err.redundant.superclass.init=\
redundant explicit constructor invocation
compiler.err.ctor.calls.not.allowed.here=\
explicit constructor invocation not allowed here
compiler.err.return.before.superclass.initialized=\
''return'' not allowed before explicit constructor invocation
# 0: symbol kind, 1: name, 2: symbol kind, 3: type, 4: message segment
compiler.err.cant.apply.symbol.noargs=\
{0} {1} in {2} {3} cannot be applied to given types;\n\
reason: {4}
# 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
compiler.err.cant.apply.symbol=\
{0} {1} in {4} {5} cannot be applied to given types;\n\
required: {2}\n\
found: {3}\n\
reason: {6}
# 0: symbol kind, 1: name, 2: list of type
compiler.err.cant.apply.symbols=\
no suitable {0} found for {1}({2})
# 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
compiler.misc.cant.apply.symbol=\
{0} {1} in {4} {5} cannot be applied to given types\n\
required: {2}\n\
found: {3}\n\
reason: {6}
# 0: list of type or message segment, 1: list of type or message segment, 2: message segment
compiler.misc.cant.apply.array.ctor=\
cannot create array from given types\n\
required: {0}\n\
found: {1}\n\
reason: {2}
# 0: symbol kind, 1: name, 2: list of type
compiler.misc.cant.apply.symbols=\
no suitable {0} found for {1}({2})
# 0: kind name, 1: symbol
compiler.misc.no.abstracts=\
no abstract method found in {0} {1}
# 0: kind name, 1: symbol
compiler.misc.incompatible.abstracts=\
multiple non-overriding abstract methods found in {0} {1}
compiler.err.bad.functional.intf.anno=\
Unexpected @FunctionalInterface annotation
# 0: message segment
compiler.err.bad.functional.intf.anno.1=\
Unexpected @FunctionalInterface annotation\n\
{0}
# 0: message segment
compiler.err.anonymous.diamond.method.does.not.override.superclass=\
method does not override or implement a method from a supertype\n\
{0}
# 0: symbol
compiler.misc.not.a.functional.intf=\
{0} is not a functional interface
# 0: symbol, 1: message segment
compiler.misc.not.a.functional.intf.1=\
{0} is not a functional interface\n\
{1}
# 0: type, 1: kind name, 2: symbol
compiler.misc.invalid.generic.lambda.target=\
invalid functional descriptor for lambda expression\n\
method {0} in {1} {2} is generic
# 0: kind name, 1: symbol
compiler.misc.incompatible.descs.in.functional.intf=\
incompatible function descriptors found in {0} {1}
# 0: name, 1: list of type, 2: type, 3: list of type
compiler.misc.descriptor=\
descriptor: {2} {0}({1})
# 0: name, 1: list of type, 2: type, 3: list of type
compiler.misc.descriptor.throws=\
descriptor: {2} {0}({1}) throws {3}
# 0: type
compiler.misc.no.suitable.functional.intf.inst=\
cannot infer functional interface descriptor for {0}
# 0: message segment
compiler.misc.bad.intersection.target.for.functional.expr=\
bad intersection type target for lambda or method reference\n\
{0}
# 0: symbol or type
compiler.misc.not.an.intf.component=\
component type {0} is not an interface
# 0: kind name, 1: message segment
compiler.err.invalid.mref=\
invalid {0} reference\n\
{1}
# 0: kind name, 1: message segment
compiler.misc.invalid.mref=\
invalid {0} reference\n\
{1}
compiler.misc.static.mref.with.targs=\
parameterized qualifier on static method reference
# 0: set of flag or string, 1: symbol
compiler.err.cant.assign.val.to.var=\
cannot assign a value to {0} variable {1}
compiler.err.cant.assign.val.to.this=\
cannot assign to ''this''
# 0: symbol, 1: message segment
compiler.err.cant.ref.non.effectively.final.var=\
local variables referenced from {1} must be final or effectively final
compiler.err.try.with.resources.expr.needs.var=\
the try-with-resources resource must either be a variable declaration or an expression denoting \
a reference to a final or effectively final variable
# 0: symbol
compiler.err.try.with.resources.expr.effectively.final.var=\
variable {0} used as a try-with-resources resource neither final nor effectively final
compiler.misc.lambda=\
a lambda expression
compiler.misc.inner.cls=\
an inner class
compiler.misc.guard=\
a guard
# 0: type
compiler.err.cant.deref=\
{0} cannot be dereferenced
compiler.err.cant.extend.intf.annotation=\
''extends'' not allowed for @interfaces
compiler.err.annotation.decl.not.allowed.here=\
annotation interface declaration not allowed here
# 0: symbol
compiler.err.cant.inherit.from.final=\
cannot inherit from final {0}
# 0: symbol or name
compiler.err.cant.ref.before.ctor.called=\
cannot reference {0} before supertype constructor has been called
compiler.err.cant.select.static.class.from.param.type=\
cannot select a static class from a parameterized type
# 0: symbol, 1: string, 2: string
compiler.err.cant.inherit.diff.arg=\
{0} cannot be inherited with different arguments: <{1}> and <{2}>
compiler.err.catch.without.try=\
''catch'' without ''try''
# 0: kind name, 1: symbol
compiler.err.clash.with.pkg.of.same.name=\
{0} {1} clashes with package of same name
compiler.err.class.not.allowed=\
class, interface or enum declaration not allowed here
compiler.err.const.expr.req=\
constant expression required
compiler.err.pattern.or.enum.req=\
pattern or enum constant required
compiler.err.cont.outside.loop=\
continue outside of loop
# 0: symbol or type
compiler.err.cyclic.inheritance=\
cyclic inheritance involving {0}
# 0: symbol
compiler.err.cyclic.annotation.element=\
type of element {0} is cyclic
# 0: symbol
compiler.err.call.to.super.not.allowed.in.enum.ctor=\
call to super not allowed in enum constructor
# 0: type
compiler.err.no.superclass=\
{0} has no superclass.
# 0: symbol, 1: type, 2: symbol, 3: type, 4: type
compiler.err.concrete.inheritance.conflict=\
methods {0} from {1} and {2} from {3} are inherited with the same signature
compiler.err.default.allowed.in.intf.annotation.member=\
default value only allowed in an annotation interface declaration
# 0: symbol
compiler.err.doesnt.exist=\
package {0} does not exist
# 0: type
compiler.err.duplicate.annotation.invalid.repeated=\
annotation {0} is not a valid repeatable annotation
# 0: name, 1: type
compiler.err.duplicate.annotation.member.value=\
duplicate element ''{0}'' in annotation @{1}.
# 0: type
compiler.err.duplicate.annotation.missing.container=\
{0} is not a repeatable annotation interface
# 0: symbol
compiler.err.invalid.repeatable.annotation=\
duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
# 0: symbol or type
compiler.err.invalid.repeatable.annotation.no.value=\
{0} is not a valid @Repeatable, no value element method declared
# 0: type, 1: number
compiler.err.invalid.repeatable.annotation.multiple.values=\
{0} is not a valid @Repeatable, {1} element methods named ''value'' declared
# 0: type
compiler.err.invalid.repeatable.annotation.invalid.value=\
{0} is not a valid @Repeatable: invalid value element
# 0: symbol or type, 1: type, 2: type
compiler.err.invalid.repeatable.annotation.value.return=\
containing annotation interface ({0}) must declare an element named ''value'' of type {2}
# 0: symbol or type, 1: symbol
compiler.err.invalid.repeatable.annotation.elem.nondefault=\
containing annotation interface ({0}) does not have a default value for element {1}
# 0: symbol, 1: string, 2: symbol, 3: string
compiler.err.invalid.repeatable.annotation.retention=\
retention of containing annotation interface ({0}) is shorter than the retention of repeatable annotation interface ({2})
# 0: symbol, 1: symbol
compiler.err.invalid.repeatable.annotation.not.documented=\
repeatable annotation interface ({1}) is @Documented while containing annotation interface ({0}) is not
# 0: symbol, 1: symbol
compiler.err.invalid.repeatable.annotation.not.inherited=\
repeatable annotation interface ({1}) is @Inherited while containing annotation interface ({0}) is not
# 0: symbol, 1: symbol
compiler.err.invalid.repeatable.annotation.incompatible.target=\
containing annotation interface ({0}) is applicable to more targets than repeatable annotation interface ({1})
# 0: symbol
compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
container {0} must not be present at the same time as the element it contains
# 0: type, 1: symbol
compiler.err.invalid.repeatable.annotation.not.applicable=\
container {0} is not applicable to element {1}
# 0: type
compiler.err.invalid.repeatable.annotation.not.applicable.in.context=\
container {0} is not applicable in this type context
# 0: name
compiler.err.duplicate.class=\
duplicate class: {0}
# 0: string
compiler.err.bad.file.name=\
bad file name: {0}
compiler.err.implicit.class.should.not.have.package.declaration=\
implicitly declared class should not have package declaration
compiler.err.implicit.class.does.not.have.main.method=\
implicitly declared class does not have main method in the form of void main() or void main(String[] args)
# 0: name, 1: name
compiler.err.same.binary.name=\
classes: {0} and {1} have the same binary name
compiler.err.duplicate.case.label=\
duplicate case label
compiler.err.pattern.dominated=\
this case label is dominated by a preceding case label
compiler.err.duplicate.default.label=\
duplicate default label
compiler.err.duplicate.unconditional.pattern=\
duplicate unconditional pattern
compiler.err.unconditional.pattern.and.default=\
switch has both an unconditional pattern and a default label
compiler.err.unconditional.pattern.and.both.boolean.values=\
switch has both boolean values and an unconditional pattern
compiler.err.default.and.both.boolean.values=\
switch has both boolean values and a default label
compiler.err.guard.not.allowed=\
guards are only allowed for case with a pattern
compiler.err.guard.has.constant.expression.false=\
this case label has a guard that is a constant expression with value ''false''
# 0: symbol
compiler.err.cannot.assign.not.declared.guard=\
cannot assign to {0}, as it was not declared inside the guard
# 0: type, 1: type
compiler.err.constant.label.not.compatible=\
constant label of type {0} is not compatible with switch selector type {1}
compiler.err.flows.through.to.pattern=\
illegal fall-through to a pattern
compiler.err.flows.through.from.pattern=\
illegal fall-through from a pattern
compiler.err.invalid.case.label.combination=\
invalid case label combination
compiler.err.default.label.not.allowed=\
default label not allowed here
compiler.err.pattern.type.cannot.infer=\
cannot infer pattern type
compiler.err.else.without.if=\
''else'' without ''if''
compiler.err.empty.char.lit=\
empty character literal
# 0: symbol
compiler.err.encl.class.required=\
an enclosing instance that contains {0} is required
compiler.err.enum.annotation.must.be.enum.constant=\
an enum annotation value must be an enum constant
compiler.err.enum.cant.be.instantiated=\
enum classes may not be instantiated
compiler.err.enum.label.must.be.unqualified.enum=\
an enum switch case label must be the unqualified name of an enumeration constant
compiler.err.enum.label.must.be.enum.constant=\
an enum switch constant case label must be an enumeration constant
compiler.err.enum.no.subclassing=\
classes cannot directly extend java.lang.Enum
compiler.err.enum.types.not.extensible=\
enum classes are not extensible
compiler.err.enum.no.finalize=\
enums cannot have finalize methods
compiler.err.enum.cant.be.generic=\
enums cannot be generic
# 0: file name, 1: string
compiler.err.error.reading.file=\
error reading {0}; {1}
# 0: type
compiler.err.except.already.caught=\
exception {0} has already been caught
# 0: type
compiler.err.except.never.thrown.in.try=\
exception {0} is never thrown in body of corresponding try statement
# 0: symbol
compiler.err.final.parameter.may.not.be.assigned=\
final parameter {0} may not be assigned
# 0: symbol
compiler.err.try.resource.may.not.be.assigned=\
auto-closeable resource {0} may not be assigned
# 0: symbol
compiler.err.multicatch.parameter.may.not.be.assigned=\
multi-catch parameter {0} may not be assigned
# 0: type, 1: type
compiler.err.multicatch.types.must.be.disjoint=\
Alternatives in a multi-catch statement cannot be related by subclassing\n\
Alternative {0} is a subclass of alternative {1}
compiler.err.finally.without.try=\
''finally'' without ''try''
# 0: type, 1: message segment
compiler.err.foreach.not.applicable.to.type=\
for-each not applicable to expression type\n\
required: {1}\n\
found: {0}
compiler.err.fp.number.too.large=\
floating-point number too large
compiler.err.fp.number.too.small=\
floating-point number too small
compiler.err.generic.array.creation=\
generic array creation
compiler.err.generic.throwable=\
a generic class may not extend java.lang.Throwable
# 0: symbol
compiler.err.icls.cant.have.static.decl=\
Illegal static declaration in inner class {0}\n\
modifier \''static\'' is only allowed in constant variable declarations
# 0: string
compiler.err.illegal.char=\
illegal character: ''{0}''
# 0: string, 1: string
compiler.err.illegal.char.for.encoding=\
unmappable character (0x{0}) for encoding {1}
# 0: set of flag, 1: set of flag
compiler.err.illegal.combination.of.modifiers=\
illegal combination of modifiers: {0} and {1}
compiler.err.illegal.enum.static.ref=\
illegal reference to static field from initializer
compiler.err.illegal.esc.char=\
illegal escape character
compiler.err.illegal.forward.ref=\
illegal forward reference
# 0: symbol, 1: object
compiler.err.not.in.profile=\
{0} is not available in profile ''{1}''
# 0: symbol
compiler.warn.forward.ref=\
reference to variable ''{0}'' before it has been initialized
compiler.warn.possible.this.escape=\
possible ''this'' escape before subclass is fully initialized
compiler.warn.possible.this.escape.location=\
previous possible ''this'' escape happens here via invocation
compiler.err.illegal.self.ref=\
self-reference in initializer
# 0: symbol
compiler.warn.self.ref=\
self-reference in initializer of variable ''{0}''
# 0: type
compiler.err.illegal.initializer.for.type=\
illegal initializer for {0}
compiler.err.illegal.line.end.in.char.lit=\
illegal line end in character literal
compiler.err.illegal.text.block.open=\
illegal text block open delimiter sequence, missing line terminator
compiler.warn.inconsistent.white.space.indentation=\
inconsistent white space indentation
compiler.warn.trailing.white.space.will.be.removed=\
trailing white space will be removed
compiler.err.illegal.nonascii.digit=\
illegal non-ASCII digit
compiler.err.illegal.underscore=\
illegal underscore
compiler.err.illegal.dot=\
illegal ''.''
compiler.err.illegal.digit.in.binary.literal=\
illegal digit in a binary literal
compiler.err.illegal.digit.in.octal.literal=\
illegal digit in an octal literal
# 0: symbol
compiler.err.illegal.qual.not.icls=\
illegal qualifier; {0} is not an inner class
compiler.err.illegal.start.of.expr=\
illegal start of expression
compiler.err.illegal.start.of.stmt=\
illegal start of statement
compiler.err.illegal.start.of.type=\
illegal start of type
compiler.err.illegal.parenthesized.expression=\
illegal parenthesized expression
compiler.err.illegal.unicode.esc=\
illegal unicode escape
# 0: symbol
compiler.err.import.requires.canonical=\
import requires canonical name for {0}
compiler.err.improperly.formed.type.param.missing=\
improperly formed type, some parameters are missing
compiler.err.improperly.formed.type.inner.raw.param=\
improperly formed type, type arguments given on a raw type
# 0: type, 1: type
compiler.err.incomparable.types=\
incomparable types: {0} and {1}
# 0: string
compiler.err.int.number.too.large=\
integer number too large
compiler.err.intf.annotation.members.cant.have.params=\
elements in annotation interface declarations cannot declare formal parameters
# 0: symbol
compiler.err.intf.annotation.cant.have.type.params=\
annotation interface {0} cannot be generic
compiler.err.intf.annotation.members.cant.have.type.params=\
elements in annotation interface declarations cannot be generic methods
# 0: symbol, 1: type
compiler.err.intf.annotation.member.clash=\
annotation interface {1} declares an element with the same name as method {0}
compiler.err.intf.expected.here=\
interface expected here
compiler.err.intf.meth.cant.have.body=\
interface abstract methods cannot have body
compiler.err.invalid.annotation.member.type=\
invalid type for annotation interface element
compiler.err.invalid.binary.number=\
binary numbers must contain at least one binary digit
compiler.err.invalid.hex.number=\
hexadecimal numbers must contain at least one hexadecimal digit
compiler.err.invalid.meth.decl.ret.type.req=\
invalid method declaration; return type required
compiler.err.varargs.and.old.array.syntax=\
legacy array notation not allowed on variable-arity parameter
compiler.err.varargs.and.receiver =\
varargs notation not allowed on receiver parameter
compiler.err.varargs.must.be.last =\
varargs parameter must be the last parameter
compiler.err.array.and.receiver =\
legacy array notation not allowed on receiver parameter
compiler.err.wrong.receiver =\
wrong receiver parameter name
compiler.err.variable.not.allowed=\
variable declaration not allowed here
# 0: name
compiler.err.label.already.in.use=\
label {0} already in use
compiler.err.local.enum=\
enum classes must not be local
compiler.err.cannot.create.array.with.type.arguments=\
cannot create array with type arguments
compiler.err.cannot.create.array.with.diamond=\
cannot create array with ''<>''
compiler.err.invalid.module.directive=\
module directive keyword or ''}'' expected
#
# limits. We don't give the limits in the diagnostic because we expect
# them to change, yet we want to use the same diagnostic. These are all
# detected during code generation.
#
compiler.err.limit.code=\
code too large
compiler.err.limit.code.too.large.for.try.stmt=\
code too large for try statement
compiler.err.limit.dimensions=\
array type has too many dimensions
compiler.err.limit.locals=\
too many local variables
compiler.err.limit.parameters=\
too many parameters
compiler.err.limit.pool=\
too many constants
compiler.err.limit.pool.in.class=\
too many constants in class {0}
compiler.err.limit.stack=\
code requires too much stack
compiler.err.limit.string=\
constant string too long
# 0: string
compiler.err.limit.string.overflow=\
UTF8 representation for string \"{0}...\" is too long for the constant pool
compiler.err.malformed.fp.lit=\
malformed floating-point literal
compiler.err.method.does.not.override.superclass=\
method does not override or implement a method from a supertype
compiler.err.static.methods.cannot.be.annotated.with.override=\
static methods cannot be annotated with @Override
compiler.err.missing.meth.body.or.decl.abstract=\
missing method body, or declare abstract
compiler.err.missing.ret.stmt=\
missing return statement
# 0: type
compiler.misc.missing.ret.val=\
missing return value
compiler.misc.unexpected.ret.val=\
unexpected return value
# 0: set of flag
compiler.err.mod.not.allowed.here=\
modifier {0} not allowed here
# 0: name
compiler.err.modifier.not.allowed.here=\
modifier {0} not allowed here
compiler.err.intf.not.allowed.here=\
interface not allowed here
# 0: symbol, 1: symbol
compiler.err.name.clash.same.erasure=\
name clash: {0} and {1} have the same erasure
# 0: name, 1: list of type, 2: symbol, 3: name, 4: list of type, 5: symbol
compiler.err.name.clash.same.erasure.no.override=\
name clash: {0}({1}) in {2} and {3}({4}) in {5} have the same erasure, yet neither overrides the other
# 0: string, 1: name, 2: name, 3: list of type, 4: symbol, 5: name, 6: list of type, 7: symbol
compiler.err.name.clash.same.erasure.no.override.1=\
name clash: {0} {1} has two methods with the same erasure, yet neither overrides the other\n\
first method: {2}({3}) in {4}\n\
second method: {5}({6}) in {7}
# 0: symbol, 1: symbol, 2: symbol, 3: symbol
compiler.err.name.clash.same.erasure.no.hide=\
name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
compiler.err.name.reserved.for.internal.use=\
{0} is reserved for internal use
compiler.err.native.meth.cant.have.body=\
native methods cannot have a body
# 0: message segment
compiler.misc.incompatible.type.in.conditional=\
bad type in conditional expression\n\
{0}
compiler.misc.conditional.target.cant.be.void=\
target-type for conditional expression cannot be void
compiler.misc.switch.expression.target.cant.be.void=\
target-type for switch expression cannot be void
# 0: message segment
compiler.misc.incompatible.type.in.switch.expression=\
bad type in switch expression\n\
{0}
# 0: message segment
compiler.misc.incompatible.ret.type.in.lambda=\
bad return type in lambda expression\n\
{0}
compiler.misc.stat.expr.expected=\
lambda body is not compatible with a void functional interface\n\
(consider using a block lambda body, or use a statement expression instead)
# 0: message segment
compiler.misc.incompatible.ret.type.in.mref=\
bad return type in method reference\n\
{0}
compiler.err.lambda.body.neither.value.nor.void.compatible=\
lambda body is neither value nor void compatible
# 0: list of type
compiler.err.incompatible.thrown.types.in.mref=\
incompatible thrown types {0} in functional expression
compiler.misc.incompatible.arg.types.in.lambda=\
incompatible parameter types in lambda expression
compiler.misc.incompatible.arg.types.in.mref=\
incompatible parameter types in method reference
compiler.err.new.not.allowed.in.annotation=\
''new'' not allowed in an annotation
# 0: name, 1: type
compiler.err.no.annotation.member=\
no annotation member {0} in {1}
# 0: symbol
compiler.err.no.encl.instance.of.type.in.scope=\
no enclosing instance of type {0} is in scope
compiler.err.no.intf.expected.here=\