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