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