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: string 1140 compiler.err.types.incompatible.diff.ret=\ 1141 types {0} and {1} are incompatible; both define {2}, but with unrelated return types 1142 1143 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol 1144 compiler.err.types.incompatible.unrelated.defaults=\ 1145 {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5} 1146 1147 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol 1148 compiler.err.types.incompatible.abstract.default=\ 1149 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5} 1150 1151 # 0: name, 1: kind name, 2: symbol 1152 compiler.err.default.overrides.object.member=\ 1153 default method {0} in {1} {2} overrides a member of java.lang.Object 1154 1155 # 0: type 1156 compiler.err.illegal.static.intf.meth.call=\ 1157 illegal static interface method call\n\ 1158 the receiver expression should be replaced with the type qualifier ''{0}'' 1159 1160 # 0: symbol or type, 1: message segment 1161 compiler.err.illegal.default.super.call=\ 1162 bad type qualifier {0} in default super call\n\ 1163 {1} 1164 1165 # 0: symbol, 1: type 1166 compiler.misc.overridden.default=\ 1167 method {0} is overridden in {1} 1168 1169 # 0: symbol, 1: type or symbol 1170 compiler.misc.redundant.supertype=\ 1171 redundant interface {0} is extended by {1} 1172 1173 compiler.err.unclosed.char.lit=\ 1174 unclosed character literal 1175 1176 compiler.err.unclosed.comment=\ 1177 unclosed comment 1178 1179 compiler.err.unclosed.str.lit=\ 1180 unclosed string literal 1181 1182 # 0: string 1183 compiler.err.unsupported.encoding=\ 1184 unsupported encoding: {0} 1185 1186 # 0: name 1187 compiler.err.undef.label=\ 1188 undefined label: {0} 1189 1190 # 0: name (type) 1191 compiler.err.illegal.ref.to.var.type=\ 1192 illegal reference to restricted type ''{0}'' 1193 1194 # 0: token 1195 compiler.err.var.not.allowed=\ 1196 ''{0}'' not allowed here\n\ 1197 as of release 10, ''{0}'' is a restricted local variable type and cannot be used for type declarations 1198 1199 # 0: name (variable), 1: message segment 1200 compiler.err.cant.infer.local.var.type=\ 1201 cannot infer type for local variable {0}\n\ 1202 ({1}) 1203 1204 compiler.err.var.not.allowed.here=\ 1205 ''var'' is not allowed here 1206 1207 compiler.err.var.not.allowed.array=\ 1208 ''var'' is not allowed as an element type of an array 1209 1210 compiler.err.var.not.allowed.compound=\ 1211 ''var'' is not allowed in a compound declaration 1212 1213 compiler.misc.local.cant.infer.null=\ 1214 variable initializer is ''null'' 1215 1216 compiler.misc.local.missing.init=\ 1217 cannot use ''var'' on variable without initializer 1218 1219 compiler.misc.local.lambda.missing.target=\ 1220 lambda expression needs an explicit target-type 1221 1222 compiler.misc.local.mref.missing.target=\ 1223 method reference needs an explicit target-type 1224 1225 compiler.misc.local.array.missing.target=\ 1226 array initializer needs an explicit target-type 1227 1228 compiler.misc.local.self.ref=\ 1229 cannot use ''var'' on self-referencing variable 1230 1231 # 0: message segment, 1: unused 1232 compiler.err.cant.apply.diamond=\ 1233 cannot infer type arguments for {0} 1234 1235 # 0: message segment or type, 1: message segment 1236 compiler.err.cant.apply.diamond.1=\ 1237 cannot infer type arguments for {0}\n\ 1238 reason: {1} 1239 1240 # 0: message segment or type, 1: message segment 1241 compiler.misc.cant.apply.diamond.1=\ 1242 cannot infer type arguments for {0}\n\ 1243 reason: {1} 1244 1245 compiler.err.unreachable.stmt=\ 1246 unreachable statement 1247 1248 compiler.err.initializer.must.be.able.to.complete.normally=\ 1249 initializer must be able to complete normally 1250 1251 compiler.err.initializer.not.allowed=\ 1252 initializers not allowed in interfaces 1253 1254 # 0: type 1255 compiler.err.unreported.exception.need.to.catch.or.throw=\ 1256 unreported exception {0}; must be caught or declared to be thrown 1257 1258 # 0: type 1259 compiler.err.unreported.exception.default.constructor=\ 1260 unreported exception {0} in default constructor 1261 1262 # 0: type, 1: name 1263 compiler.err.unreported.exception.implicit.close=\ 1264 unreported exception {0}; must be caught or declared to be thrown\n\ 1265 exception thrown from implicit call to close() on resource variable ''{1}'' 1266 1267 compiler.err.unsupported.cross.fp.lit=\ 1268 hexadecimal floating-point literals are not supported on this VM 1269 1270 compiler.err.void.not.allowed.here=\ 1271 ''void'' type not allowed here 1272 1273 # 0: string 1274 compiler.err.wrong.number.type.args=\ 1275 wrong number of type arguments; required {0} 1276 1277 # 0: symbol 1278 compiler.err.var.might.already.be.assigned=\ 1279 variable {0} might already have been assigned 1280 1281 # 0: symbol 1282 compiler.err.var.might.not.have.been.initialized=\ 1283 variable {0} might not have been initialized 1284 1285 # 0: symbol 1286 compiler.err.var.not.initialized.in.default.constructor=\ 1287 variable {0} not initialized in the default constructor 1288 1289 # 0: symbol 1290 compiler.err.var.might.be.assigned.in.loop=\ 1291 variable {0} might be assigned in loop 1292 1293 # 0: symbol, 1: message segment 1294 compiler.err.varargs.invalid.trustme.anno=\ 1295 Invalid {0} annotation. {1} 1296 1297 # 0: type 1298 compiler.misc.varargs.trustme.on.reifiable.varargs=\ 1299 Varargs element type {0} is reifiable. 1300 1301 # 0: symbol 1302 compiler.misc.varargs.trustme.on.non.varargs.meth=\ 1303 Method {0} is not a varargs method. 1304 1305 # 0: symbol 1306 compiler.misc.varargs.trustme.on.virtual.varargs=\ 1307 Instance method {0} is neither final nor private. 1308 1309 # 0: symbol 1310 compiler.misc.varargs.trustme.on.virtual.varargs.final.only=\ 1311 Instance method {0} is not final. 1312 1313 # 0: type, 1: symbol kind, 2: symbol 1314 compiler.misc.inaccessible.varargs.type=\ 1315 formal varargs element type {0} is not accessible from {1} {2} 1316 1317 # In the following string, {1} will always be the detail message from 1318 # java.io.IOException. 1319 # 0: symbol, 1: string 1320 compiler.err.class.cant.write=\ 1321 error while writing {0}: {1} 1322 1323 # In the following string, {0} is the name of the class in the Java source. 1324 # It really should be used two times.. 1325 # 0: kind name, 1: name 1326 compiler.err.class.public.should.be.in.file=\ 1327 {0} {1} is public, should be declared in a file named {1}.java 1328 1329 ## All errors which do not refer to a particular line in the source code are 1330 ## preceded by this string. 1331 compiler.err.error=\ 1332 error:\u0020 1333 1334 # The following error messages do not refer to a line in the source code. 1335 compiler.err.cant.read.file=\ 1336 cannot read: {0} 1337 1338 # 0: string 1339 compiler.err.plugin.not.found=\ 1340 plug-in not found: {0} 1341 1342 # 0: path 1343 compiler.warn.locn.unknown.file.on.module.path=\ 1344 unknown file on module path: {0} 1345 1346 1347 # 0: path 1348 compiler.err.locn.bad.module-info=\ 1349 problem reading module-info.class in {0} 1350 1351 # 0: path 1352 compiler.err.locn.cant.read.directory=\ 1353 cannot read directory {0} 1354 1355 # 0: path 1356 compiler.err.locn.cant.read.file=\ 1357 cannot read file {0} 1358 1359 # 0: path 1360 compiler.err.locn.cant.get.module.name.for.jar=\ 1361 cannot determine module name for {0} 1362 1363 # 0: path 1364 compiler.err.multi-module.outdir.cannot.be.exploded.module=\ 1365 in multi-module mode, the output directory cannot be an exploded module: {0} 1366 1367 # 0: path 1368 compiler.warn.outdir.is.in.exploded.module=\ 1369 the output directory is within an exploded module: {0} 1370 1371 # 0: file object 1372 compiler.err.locn.module-info.not.allowed.on.patch.path=\ 1373 module-info.class not allowed on patch path: {0} 1374 1375 # 0: string 1376 compiler.err.locn.invalid.arg.for.xpatch=\ 1377 invalid argument for --patch-module option: {0} 1378 1379 compiler.err.file.sb.on.source.or.patch.path.for.module=\ 1380 file should be on source path, or on patch path for module 1381 1382 ##### 1383 1384 # Fatal Errors 1385 1386 compiler.misc.fatal.err.no.java.lang=\ 1387 Fatal Error: Unable to find package java.lang in classpath or bootclasspath 1388 1389 # 0: name 1390 compiler.misc.fatal.err.cant.locate.meth=\ 1391 Fatal Error: Unable to find method {0} 1392 1393 # 0: name 1394 compiler.misc.fatal.err.cant.locate.field=\ 1395 Fatal Error: Unable to find field {0} 1396 1397 # 0: type 1398 compiler.misc.fatal.err.cant.locate.ctor=\ 1399 Fatal Error: Unable to find constructor for {0} 1400 1401 compiler.misc.fatal.err.cant.close=\ 1402 Fatal Error: Cannot close compiler resources 1403 1404 ##### 1405 1406 ## 1407 ## miscellaneous strings 1408 ## 1409 1410 compiler.misc.diamond.anonymous.methods.implicitly.override=\ 1411 (due to <>, every non-private method declared in this anonymous class must override or implement a method from a supertype) 1412 1413 compiler.misc.source.unavailable=\ 1414 (source unavailable) 1415 1416 compiler.misc.base.membership=\ 1417 all your base class are belong to us 1418 1419 # 0: string, 1: string, 2: boolean 1420 compiler.misc.x.print.processor.info=\ 1421 Processor {0} matches {1} and returns {2}. 1422 1423 # 0: number, 1: string, 2: set of symbol, 3: boolean 1424 compiler.misc.x.print.rounds=\ 1425 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3} 1426 1427 # 0: file name 1428 compiler.warn.file.from.future=\ 1429 Modification date is in the future for file {0} 1430 1431 ##### 1432 1433 ## The following string will appear before all messages keyed as: 1434 ## "compiler.note". 1435 1436 compiler.note.compressed.diags=\ 1437 Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1438 1439 # 0: boolean, 1: symbol 1440 compiler.note.lambda.stat=\ 1441 Translating lambda expression\n\ 1442 alternate metafactory = {0}\n\ 1443 synthetic method = {1} 1444 1445 # 0: boolean, 1: unused 1446 compiler.note.mref.stat=\ 1447 Translating method reference\n\ 1448 alternate metafactory = {0}\n\ 1449 1450 # 0: boolean, 1: symbol 1451 compiler.note.mref.stat.1=\ 1452 Translating method reference\n\ 1453 alternate metafactory = {0}\n\ 1454 bridge method = {1} 1455 1456 compiler.note.note=\ 1457 Note:\u0020 1458 1459 # 0: file name 1460 compiler.note.deprecated.filename=\ 1461 {0} uses or overrides a deprecated API. 1462 1463 compiler.note.deprecated.plural=\ 1464 Some input files use or override a deprecated API. 1465 1466 # The following string may appear after one of the above deprecation 1467 # messages. 1468 compiler.note.deprecated.recompile=\ 1469 Recompile with -Xlint:deprecation for details. 1470 1471 # 0: file name 1472 compiler.note.deprecated.filename.additional=\ 1473 {0} has additional uses or overrides of a deprecated API. 1474 1475 compiler.note.deprecated.plural.additional=\ 1476 Some input files additionally use or override a deprecated API. 1477 1478 # 0: file name 1479 compiler.note.removal.filename=\ 1480 {0} uses or overrides a deprecated API that is marked for removal. 1481 1482 compiler.note.removal.plural=\ 1483 Some input files use or override a deprecated API that is marked for removal. 1484 1485 # The following string may appear after one of the above removal messages. 1486 compiler.note.removal.recompile=\ 1487 Recompile with -Xlint:removal for details. 1488 1489 # 0: file name 1490 compiler.note.removal.filename.additional=\ 1491 {0} has additional uses or overrides of a deprecated API that is marked for removal. 1492 1493 compiler.note.removal.plural.additional=\ 1494 Some input files additionally use or override a deprecated API that is marked for removal. 1495 1496 # 0: file name 1497 compiler.note.unchecked.filename=\ 1498 {0} uses unchecked or unsafe operations. 1499 1500 compiler.note.unchecked.plural=\ 1501 Some input files use unchecked or unsafe operations. 1502 1503 # The following string may appear after one of the above unchecked messages. 1504 compiler.note.unchecked.recompile=\ 1505 Recompile with -Xlint:unchecked for details. 1506 1507 # 0: file name 1508 compiler.note.unchecked.filename.additional=\ 1509 {0} has additional unchecked or unsafe operations. 1510 1511 compiler.note.unchecked.plural.additional=\ 1512 Some input files additionally use unchecked or unsafe operations. 1513 1514 # Notes related to annotation processing 1515 1516 # Print a client-generated note; assumed to be localized, no translation required 1517 # 0: string 1518 compiler.note.proc.messager=\ 1519 {0} 1520 1521 # 0: string, 1: string, 2: string 1522 compiler.note.multiple.elements=\ 1523 Multiple elements named ''{1}'' in modules ''{2}'' were found by javax.lang.model.util.Elements.{0}. 1524 1525 ##### 1526 1527 # 0: number 1528 compiler.misc.count.error=\ 1529 {0} error 1530 1531 # 0: number 1532 compiler.misc.count.error.plural=\ 1533 {0} errors 1534 1535 # 0: number 1536 compiler.misc.count.warn=\ 1537 {0} warning 1538 1539 # 0: number 1540 compiler.misc.count.warn.plural=\ 1541 {0} warnings 1542 1543 compiler.misc.version.not.available=\ 1544 (version info not available) 1545 1546 ## extra output when using -verbose (JavaCompiler) 1547 1548 # 0: symbol 1549 compiler.misc.verbose.checking.attribution=\ 1550 [checking {0}] 1551 1552 # 0: string 1553 compiler.misc.verbose.parsing.done=\ 1554 [parsing completed {0}ms] 1555 1556 # 0: file name 1557 compiler.misc.verbose.parsing.started=\ 1558 [parsing started {0}] 1559 1560 # 0: string 1561 compiler.misc.verbose.total=\ 1562 [total {0}ms] 1563 1564 # 0: file name 1565 compiler.misc.verbose.wrote.file=\ 1566 [wrote {0}] 1567 1568 ## extra output when using -verbose (code/ClassReader) 1569 # 0: string 1570 compiler.misc.verbose.loading=\ 1571 [loading {0}] 1572 1573 # 0: string 1574 compiler.misc.verbose.sourcepath=\ 1575 [search path for source files: {0}] 1576 1577 # 0: string 1578 compiler.misc.verbose.classpath=\ 1579 [search path for class files: {0}] 1580 1581 ## extra output when using -prompt (util/Log) 1582 compiler.misc.resume.abort=\ 1583 R)esume, A)bort> 1584 1585 ##### 1586 1587 ## 1588 ## warnings 1589 ## 1590 1591 ## All warning messages are preceded by the following string. 1592 compiler.warn.warning=\ 1593 warning:\u0020 1594 1595 ## Warning messages may also include the following prefix to identify a 1596 ## lint option 1597 # 0: option name 1598 compiler.warn.lintOption=\ 1599 [{0}]\u0020 1600 1601 # 0: symbol 1602 compiler.warn.constant.SVUID=\ 1603 serialVersionUID must be constant in class {0} 1604 1605 # 0: path 1606 compiler.warn.dir.path.element.not.found=\ 1607 bad path element "{0}": no such directory 1608 1609 # 0: file name 1610 compiler.warn.dir.path.element.not.directory=\ 1611 bad path element "{0}": not a directory 1612 1613 compiler.warn.finally.cannot.complete=\ 1614 finally clause cannot complete normally 1615 1616 # 0: name 1617 compiler.warn.poor.choice.for.module.name=\ 1618 module name component {0} should avoid terminal digits 1619 1620 # 0: string 1621 compiler.warn.incubating.modules=\ 1622 using incubating module(s): {0} 1623 1624 # 0: symbol, 1: symbol 1625 compiler.warn.has.been.deprecated=\ 1626 {0} in {1} has been deprecated 1627 1628 # 0: symbol, 1: symbol 1629 compiler.warn.has.been.deprecated.for.removal=\ 1630 {0} in {1} has been deprecated and marked for removal 1631 1632 # 0: symbol 1633 compiler.warn.has.been.deprecated.module=\ 1634 module {0} has been deprecated 1635 1636 # 0: symbol 1637 compiler.warn.has.been.deprecated.for.removal.module=\ 1638 module {0} has been deprecated and marked for removal 1639 1640 # 0: symbol 1641 compiler.warn.sun.proprietary=\ 1642 {0} is internal proprietary API and may be removed in a future release 1643 1644 compiler.warn.illegal.char.for.encoding=\ 1645 unmappable character for encoding {0} 1646 1647 # 0: symbol 1648 compiler.warn.improper.SVUID=\ 1649 serialVersionUID must be declared static final in class {0} 1650 1651 # 0: type, 1: type 1652 compiler.warn.inexact.non-varargs.call=\ 1653 non-varargs call of varargs method with inexact argument type for last parameter;\n\ 1654 cast to {0} for a varargs call\n\ 1655 cast to {1} for a non-varargs call and to suppress this warning 1656 1657 # 0: list of type 1658 compiler.warn.unreachable.catch=\ 1659 unreachable catch clause\n\ 1660 thrown type {0} has already been caught 1661 1662 # 0: list of type 1663 compiler.warn.unreachable.catch.1=\ 1664 unreachable catch clause\n\ 1665 thrown types {0} have already been caught 1666 1667 # 0: symbol 1668 compiler.warn.long.SVUID=\ 1669 serialVersionUID must be of type long in class {0} 1670 1671 # 0: symbol 1672 compiler.warn.missing.SVUID=\ 1673 serializable class {0} has no definition of serialVersionUID 1674 1675 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 1676 compiler.warn.potentially.ambiguous.overload=\ 1677 {0} in {1} is potentially ambiguous with {2} in {3} 1678 1679 # 0: message segment 1680 compiler.warn.override.varargs.missing=\ 1681 {0}; overridden method has no ''...'' 1682 1683 # 0: message segment 1684 compiler.warn.override.varargs.extra=\ 1685 {0}; overriding method is missing ''...'' 1686 1687 # 0: message segment 1688 compiler.warn.override.bridge=\ 1689 {0}; overridden method is a bridge method 1690 1691 # 0: symbol 1692 compiler.warn.pkg-info.already.seen=\ 1693 a package-info.java file has already been seen for package {0} 1694 1695 # 0: path 1696 compiler.warn.path.element.not.found=\ 1697 bad path element "{0}": no such file or directory 1698 1699 compiler.warn.possible.fall-through.into.case=\ 1700 possible fall-through into case 1701 1702 # 0: type 1703 compiler.warn.redundant.cast=\ 1704 redundant cast to {0} 1705 1706 # 0: number 1707 compiler.warn.position.overflow=\ 1708 Position encoding overflows at line {0} 1709 1710 # 0: file name, 1: number, 2: number 1711 compiler.warn.big.major.version=\ 1712 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\ 1713 It is recommended that the compiler be upgraded. 1714 1715 # 0: symbol kind, 1: symbol 1716 compiler.warn.static.not.qualified.by.type=\ 1717 static {0} should be qualified by type name, {1}, instead of by an expression 1718 1719 # 0: string 1720 compiler.warn.source.no.bootclasspath=\ 1721 bootstrap class path not set in conjunction with -source {0} 1722 1723 # 0: string 1724 compiler.warn.option.obsolete.source=\ 1725 source value {0} is obsolete and will be removed in a future release 1726 1727 # 0: string 1728 compiler.warn.option.obsolete.target=\ 1729 target value {0} is obsolete and will be removed in a future release 1730 1731 # 0: string, 1: string 1732 compiler.err.option.removed.source=\ 1733 Source option {0} is no longer supported. Use {1} or later. 1734 1735 # 0: string, 1: string 1736 compiler.err.option.removed.target=\ 1737 Target option {0} is no longer supported. Use {1} or later. 1738 1739 compiler.warn.option.obsolete.suppression=\ 1740 To suppress warnings about obsolete options, use -Xlint:-options. 1741 1742 # 0: name, 1: number, 2: number, 3: number, 4: number 1743 compiler.warn.future.attr=\ 1744 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files 1745 1746 compiler.warn.requires.automatic=\ 1747 requires directive for an automatic module 1748 1749 compiler.warn.requires.transitive.automatic=\ 1750 requires transitive directive for an automatic module 1751 1752 # Warnings related to annotation processing 1753 # 0: string 1754 compiler.warn.proc.package.does.not.exist=\ 1755 package {0} does not exist 1756 1757 # 0: string 1758 compiler.warn.proc.file.reopening=\ 1759 Attempt to create a file for ''{0}'' multiple times 1760 1761 # 0: name 1762 compiler.warn.proc.type.already.exists=\ 1763 A file for type ''{0}'' already exists on the sourcepath or classpath 1764 1765 # 0: string 1766 compiler.warn.proc.type.recreate=\ 1767 Attempt to create a file for type ''{0}'' multiple times 1768 1769 # 0: string 1770 compiler.warn.proc.illegal.file.name=\ 1771 Cannot create file for illegal name ''{0}''. 1772 1773 # 0: string, 1: string 1774 compiler.warn.proc.suspicious.class.name=\ 1775 Creating file for a type whose name ends in {1}: ''{0}'' 1776 1777 # 0: string 1778 compiler.warn.proc.file.create.last.round=\ 1779 File for type ''{0}'' created in the last round will not be subject to annotation processing. 1780 1781 # 0: string, 1: string 1782 compiler.warn.proc.malformed.supported.string=\ 1783 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}'' 1784 1785 # 0: set of string 1786 compiler.warn.proc.annotations.without.processors=\ 1787 No processor claimed any of these annotations: {0} 1788 1789 # 0: source version, 1: string, 2: string 1790 compiler.warn.proc.processor.incompatible.source.version=\ 1791 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}'' 1792 1793 compiler.warn.proc.proc-only.requested.no.procs=\ 1794 Annotation processing without compilation requested but no processors were found. 1795 1796 compiler.warn.proc.use.implicit=\ 1797 Implicitly compiled files were not subject to annotation processing.\n\ 1798 Use -implicit to specify a policy for implicit compilation. 1799 1800 compiler.warn.proc.use.proc.or.implicit=\ 1801 Implicitly compiled files were not subject to annotation processing.\n\ 1802 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation. 1803 1804 # Print a client-generated warning; assumed to be localized, no translation required 1805 # 0: string 1806 compiler.warn.proc.messager=\ 1807 {0} 1808 1809 # 0: set of string 1810 compiler.warn.proc.unclosed.type.files=\ 1811 Unclosed files for the types ''{0}''; these types will not undergo annotation processing 1812 1813 # 0: string 1814 compiler.warn.proc.unmatched.processor.options=\ 1815 The following options were not recognized by any processor: ''{0}'' 1816 1817 compiler.warn.try.explicit.close.call=\ 1818 explicit call to close() on an auto-closeable resource 1819 1820 # 0: symbol 1821 compiler.warn.try.resource.not.referenced=\ 1822 auto-closeable resource {0} is never referenced in body of corresponding try statement 1823 1824 # 0: type 1825 compiler.warn.try.resource.throws.interrupted.exc=\ 1826 auto-closeable resource {0} has a member method close() that could throw InterruptedException 1827 1828 compiler.warn.unchecked.assign=\ 1829 unchecked assignment: {0} to {1} 1830 1831 # 0: symbol, 1: type 1832 compiler.warn.unchecked.assign.to.var=\ 1833 unchecked assignment to variable {0} as member of raw type {1} 1834 1835 # 0: symbol, 1: type 1836 compiler.warn.unchecked.call.mbr.of.raw.type=\ 1837 unchecked call to {0} as a member of the raw type {1} 1838 1839 compiler.warn.unchecked.cast.to.type=\ 1840 unchecked cast to type {0} 1841 1842 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol 1843 compiler.warn.unchecked.meth.invocation.applied=\ 1844 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ 1845 required: {2}\n\ 1846 found: {3} 1847 1848 # 0: type 1849 compiler.warn.unchecked.generic.array.creation=\ 1850 unchecked generic array creation for varargs parameter of type {0} 1851 1852 # 0: type 1853 compiler.warn.unchecked.varargs.non.reifiable.type=\ 1854 Possible heap pollution from parameterized vararg type {0} 1855 1856 # 0: symbol 1857 compiler.warn.varargs.unsafe.use.varargs.param=\ 1858 Varargs method could cause heap pollution from non-reifiable varargs parameter {0} 1859 1860 compiler.warn.missing.deprecated.annotation=\ 1861 deprecated item is not annotated with @Deprecated 1862 1863 # 0: kind name 1864 compiler.warn.deprecated.annotation.has.no.effect=\ 1865 @Deprecated annotation has no effect on this {0} declaration 1866 1867 # 0: string 1868 compiler.warn.invalid.path=\ 1869 Invalid filename: {0} 1870 1871 # 0: path 1872 compiler.warn.invalid.archive.file=\ 1873 Unexpected file on path: {0} 1874 1875 # 0: path 1876 compiler.warn.unexpected.archive.file=\ 1877 Unexpected extension for archive file: {0} 1878 1879 # 0: path 1880 compiler.err.no.zipfs.for.archive=\ 1881 No file system provider is available to handle this file: {0} 1882 1883 compiler.warn.div.zero=\ 1884 division by zero 1885 1886 compiler.warn.empty.if=\ 1887 empty statement after if 1888 1889 # 0: type, 1: name 1890 compiler.warn.annotation.method.not.found=\ 1891 Cannot find annotation method ''{1}()'' in type ''{0}'' 1892 1893 # 0: type, 1: name, 2: message segment 1894 compiler.warn.annotation.method.not.found.reason=\ 1895 Cannot find annotation method ''{1}()'' in type ''{0}'': {2} 1896 1897 # 0: file object, 1: symbol, 2: name 1898 compiler.warn.unknown.enum.constant=\ 1899 unknown enum constant {1}.{2} 1900 1901 # 0: file object, 1: symbol, 2: name, 3: message segment 1902 compiler.warn.unknown.enum.constant.reason=\ 1903 unknown enum constant {1}.{2}\n\ 1904 reason: {3} 1905 1906 # 0: type, 1: type 1907 compiler.warn.raw.class.use=\ 1908 found raw type: {0}\n\ 1909 missing type arguments for generic class {1} 1910 1911 compiler.warn.diamond.redundant.args=\ 1912 Redundant type arguments in new expression (use diamond operator instead). 1913 1914 compiler.warn.local.redundant.type=\ 1915 Redundant type for local variable (replace explicit type with ''var''). 1916 1917 compiler.warn.potential.lambda.found=\ 1918 This anonymous inner class creation can be turned into a lambda expression. 1919 1920 compiler.warn.method.redundant.typeargs=\ 1921 Redundant type arguments in method call. 1922 1923 # 0: symbol, 1: message segment 1924 compiler.warn.varargs.redundant.trustme.anno=\ 1925 Redundant {0} annotation. {1} 1926 1927 # 0: symbol 1928 compiler.warn.access.to.member.from.serializable.element=\ 1929 access to member {0} from serializable element can be publicly accessible to untrusted code 1930 1931 # 0: symbol 1932 compiler.warn.access.to.member.from.serializable.lambda=\ 1933 access to member {0} from serializable lambda can be publicly accessible to untrusted code 1934 1935 ##### 1936 1937 ## The following are tokens which are non-terminals in the language. They should 1938 ## be named as JLS3 calls them when translated to the appropriate language. 1939 compiler.misc.token.identifier=\ 1940 <identifier> 1941 1942 compiler.misc.token.character=\ 1943 <character> 1944 1945 compiler.misc.token.string=\ 1946 <string> 1947 1948 compiler.misc.token.integer=\ 1949 <integer> 1950 1951 compiler.misc.token.long-integer=\ 1952 <long integer> 1953 1954 compiler.misc.token.float=\ 1955 <float> 1956 1957 compiler.misc.token.double=\ 1958 <double> 1959 1960 compiler.misc.token.bad-symbol=\ 1961 <bad symbol> 1962 1963 compiler.misc.token.end-of-input=\ 1964 <end of input> 1965 1966 ## The argument to the following string will always be one of the following: 1967 ## 1. one of the above non-terminals 1968 ## 2. a keyword (JLS1.8) 1969 ## 3. a boolean literal (JLS3.10.3) 1970 ## 4. the null literal (JLS3.10.7) 1971 ## 5. a Java separator (JLS3.11) 1972 ## 6. an operator (JLS3.12) 1973 ## 1974 ## This is the only place these tokens will be used. 1975 # 0: token 1976 compiler.err.expected=\ 1977 {0} expected 1978 1979 # 0: token, 1: token 1980 compiler.err.expected2=\ 1981 {0} or {1} expected 1982 1983 # 0: token, 1: token, 2: token 1984 compiler.err.expected3=\ 1985 {0}, {1}, or {2} expected 1986 1987 compiler.err.premature.eof=\ 1988 reached end of file while parsing 1989 1990 ## The following are related in form, but do not easily fit the above paradigm. 1991 compiler.err.expected.module=\ 1992 ''module'' expected 1993 1994 compiler.err.expected.module.or.open=\ 1995 ''module'' or ''open'' expected 1996 1997 compiler.err.dot.class.expected=\ 1998 ''.class'' expected 1999 2000 ## The argument to this string will always be either 'case' or 'default'. 2001 # 0: token 2002 compiler.err.orphaned=\ 2003 orphaned {0} 2004 2005 # 0: name 2006 compiler.misc.anonymous.class=\ 2007 <anonymous {0}> 2008 2009 # 0: name, 1: type 2010 compiler.misc.type.captureof=\ 2011 capture#{0} of {1} 2012 2013 compiler.misc.type.captureof.1=\ 2014 capture#{0} 2015 2016 compiler.misc.type.none=\ 2017 <none> 2018 2019 compiler.misc.unnamed.package=\ 2020 unnamed package 2021 2022 compiler.misc.unnamed.module=\ 2023 unnamed module 2024 2025 ##### 2026 2027 # 0: symbol, 1: message segment 2028 compiler.err.cant.access=\ 2029 cannot access {0}\n\ 2030 {1} 2031 2032 # 0: name 2033 compiler.misc.bad.class.file=\ 2034 class file is invalid for class {0} 2035 2036 # 0: file name, 1: string (expected constant pool entry type), 2: number (constant pool index) 2037 compiler.misc.bad.const.pool.entry=\ 2038 bad constant pool entry in {0}\n\ 2039 expected {1} at index {2} 2040 2041 # 0: file name, 1: message segment 2042 compiler.misc.bad.class.file.header=\ 2043 bad class file: {0}\n\ 2044 {1}\n\ 2045 Please remove or make sure it appears in the correct subdirectory of the classpath. 2046 2047 # 0: file name, 1: message segment 2048 compiler.misc.bad.source.file.header=\ 2049 bad source file: {0}\n\ 2050 {1}\n\ 2051 Please remove or make sure it appears in the correct subdirectory of the sourcepath. 2052 2053 ## The following are all possible strings for the second argument ({1}) of the 2054 ## above strings. 2055 compiler.misc.bad.class.signature=\ 2056 bad class signature: {0} 2057 2058 #0: symbol, 1: symbol 2059 compiler.misc.bad.enclosing.class=\ 2060 bad enclosing class for {0}: {1} 2061 2062 # 0: symbol 2063 compiler.misc.bad.enclosing.method=\ 2064 bad enclosing method attribute for class {0} 2065 2066 compiler.misc.bad.runtime.invisible.param.annotations=\ 2067 bad RuntimeInvisibleParameterAnnotations attribute: {0} 2068 2069 compiler.misc.bad.const.pool.tag=\ 2070 bad constant pool tag: {0} 2071 2072 compiler.misc.bad.const.pool.tag.at=\ 2073 bad constant pool tag: {0} at {1} 2074 2075 compiler.misc.bad.signature=\ 2076 bad signature: {0} 2077 2078 compiler.misc.bad.type.annotation.value=\ 2079 bad type annotation target type value: {0} 2080 2081 compiler.misc.bad.module-info.name=\ 2082 bad class name 2083 2084 compiler.misc.class.file.wrong.class=\ 2085 class file contains wrong class: {0} 2086 2087 compiler.misc.module.info.invalid.super.class=\ 2088 module-info with invalid super class 2089 2090 # 0: name 2091 compiler.misc.class.file.not.found=\ 2092 class file for {0} not found 2093 2094 # 0: string (constant value), 1: symbol (constant field), 2: type (field type) 2095 compiler.misc.bad.constant.range=\ 2096 constant value ''{0}'' for {1} is outside the expected range for {2} 2097 2098 # 0: string (constant value), 1: symbol (constant field), 2: string (expected class) 2099 compiler.misc.bad.constant.value=\ 2100 bad constant value ''{0}'' for {1}, expected {2} 2101 2102 # 0: string (classfile major version), 1: string (classfile minor version) 2103 compiler.misc.invalid.default.interface=\ 2104 default method found in version {0}.{1} classfile 2105 2106 # 0: string (classfile major version), 1: string (classfile minor version) 2107 compiler.misc.invalid.static.interface=\ 2108 static method found in version {0}.{1} classfile 2109 2110 # 0: string (classfile major version), 1: string (classfile minor version) 2111 compiler.misc.anachronistic.module.info=\ 2112 module declaration found in version {0}.{1} classfile 2113 2114 # 0: name 2115 compiler.misc.file.doesnt.contain.class=\ 2116 file does not contain class {0} 2117 2118 # 0: symbol 2119 compiler.misc.file.does.not.contain.package=\ 2120 file does not contain package {0} 2121 2122 compiler.misc.file.does.not.contain.module=\ 2123 file does not contain module declaration 2124 2125 compiler.misc.illegal.start.of.class.file=\ 2126 illegal start of class file 2127 2128 compiler.misc.unable.to.access.file=\ 2129 unable to access file: {0} 2130 2131 compiler.misc.unicode.str.not.supported=\ 2132 unicode string in class file not supported 2133 2134 compiler.misc.undecl.type.var=\ 2135 undeclared type variable: {0} 2136 2137 compiler.misc.malformed.vararg.method=\ 2138 class file contains malformed variable arity method: {0} 2139 2140 compiler.misc.wrong.version=\ 2141 class file has wrong version {0}.{1}, should be {2}.{3} 2142 2143 ##### 2144 2145 # 0: type, 1: type or symbol 2146 compiler.err.not.within.bounds=\ 2147 type argument {0} is not within bounds of type-variable {1} 2148 2149 ## The following are all possible strings for the second argument ({1}) of the 2150 ## above string. 2151 2152 ## none yet... 2153 2154 ##### 2155 2156 # 0: message segment 2157 compiler.err.prob.found.req=\ 2158 incompatible types: {0} 2159 2160 # 0: message segment 2161 compiler.misc.prob.found.req=\ 2162 incompatible types: {0} 2163 2164 # 0: message segment, 1: type, 2: type 2165 compiler.warn.prob.found.req=\ 2166 {0}\n\ 2167 required: {2}\n\ 2168 found: {1} 2169 2170 # 0: type, 1: type 2171 compiler.misc.inconvertible.types=\ 2172 {0} cannot be converted to {1} 2173 2174 # 0: type, 1: type 2175 compiler.misc.possible.loss.of.precision=\ 2176 possible lossy conversion from {0} to {1} 2177 2178 compiler.misc.unchecked.assign=\ 2179 unchecked conversion 2180 2181 # compiler.misc.storecheck=\ 2182 # assignment might cause later store checks to fail 2183 # compiler.misc.unchecked=\ 2184 # assigned array cannot dynamically check its stores 2185 compiler.misc.unchecked.cast.to.type=\ 2186 unchecked cast 2187 2188 # compiler.err.star.expected=\ 2189 # ''*'' expected 2190 # compiler.err.no.elem.type=\ 2191 # \[\*\] cannot have a type 2192 2193 # 0: message segment 2194 compiler.misc.try.not.applicable.to.type=\ 2195 try-with-resources not applicable to variable type\n\ 2196 ({0}) 2197 2198 ##### 2199 2200 # 0: object, 1: message segment 2201 compiler.err.type.found.req=\ 2202 unexpected type\n\ 2203 required: {1}\n\ 2204 found: {0} 2205 2206 ## The following are all possible strings for the first argument ({0}) of the 2207 ## above string. 2208 compiler.misc.type.req.class=\ 2209 class 2210 2211 compiler.misc.type.req.class.array=\ 2212 class or array 2213 2214 compiler.misc.type.req.array.or.iterable=\ 2215 array or java.lang.Iterable 2216 2217 compiler.misc.type.req.ref=\ 2218 reference 2219 2220 compiler.misc.type.req.exact=\ 2221 class or interface without bounds 2222 2223 # 0: type 2224 compiler.misc.type.parameter=\ 2225 type parameter {0} 2226 2227 ##### 2228 2229 ## The following are all possible strings for the last argument of all those 2230 ## diagnostics whose key ends in ".1" 2231 2232 # 0: type, 1: list of type 2233 compiler.misc.no.unique.maximal.instance.exists=\ 2234 no unique maximal instance exists for type variable {0} with upper bounds {1} 2235 2236 compiler.misc.no.unique.minimal.instance.exists=\ 2237 no unique minimal instance exists for type variable {0} with lower bounds {1} 2238 2239 # 0: type, 1: list of type 2240 compiler.misc.incompatible.upper.bounds=\ 2241 inference variable {0} has incompatible upper bounds {1} 2242 2243 # 0: type, 1: list of type 2244 compiler.misc.incompatible.eq.bounds=\ 2245 inference variable {0} has incompatible equality constraints {1} 2246 2247 # 0: type, 1: list of type, 2: list of type 2248 compiler.misc.incompatible.eq.upper.bounds=\ 2249 inference variable {0} has incompatible bounds\n\ 2250 equality constraints: {1}\n\ 2251 upper bounds: {2} 2252 2253 # 0: type, 1: list of type, 2: list of type 2254 compiler.misc.incompatible.upper.lower.bounds=\ 2255 inference variable {0} has incompatible bounds\n\ 2256 upper bounds: {1}\n\ 2257 lower bounds: {2} 2258 2259 # 0: type, 1: list of type, 2: list of type 2260 compiler.misc.incompatible.eq.lower.bounds=\ 2261 inference variable {0} has incompatible bounds\n\ 2262 equality constraints: {1}\n\ 2263 lower bounds: {2} 2264 2265 # 0: list of type, 1: type, 2: type 2266 compiler.misc.infer.no.conforming.instance.exists=\ 2267 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2} 2268 2269 # 0: list of type, 1: message segment 2270 compiler.misc.infer.no.conforming.assignment.exists=\ 2271 cannot infer type-variable(s) {0}\n\ 2272 (argument mismatch; {1}) 2273 2274 # 0: list of type 2275 compiler.misc.infer.arg.length.mismatch=\ 2276 cannot infer type-variable(s) {0}\n\ 2277 (actual and formal argument lists differ in length) 2278 2279 # 0: list of type, 1: message segment 2280 compiler.misc.infer.varargs.argument.mismatch=\ 2281 cannot infer type-variable(s) {0}\n\ 2282 (varargs mismatch; {1}) 2283 2284 # 0: type, 1: list of type 2285 compiler.misc.inferred.do.not.conform.to.upper.bounds=\ 2286 inferred type does not conform to upper bound(s)\n\ 2287 inferred: {0}\n\ 2288 upper bound(s): {1} 2289 2290 # 0: type, 1: list of type 2291 compiler.misc.inferred.do.not.conform.to.lower.bounds=\ 2292 inferred type does not conform to lower bound(s)\n\ 2293 inferred: {0}\n\ 2294 lower bound(s): {1} 2295 2296 # 0: type, 1: list of type 2297 compiler.misc.inferred.do.not.conform.to.eq.bounds=\ 2298 inferred type does not conform to equality constraint(s)\n\ 2299 inferred: {0}\n\ 2300 equality constraints(s): {1} 2301 2302 # 0: symbol 2303 compiler.misc.diamond=\ 2304 {0}<> 2305 2306 # 0: type 2307 compiler.misc.diamond.non.generic=\ 2308 cannot use ''<>'' with non-generic class {0} 2309 2310 # 0: list of type, 1: message segment 2311 compiler.misc.diamond.invalid.arg=\ 2312 type argument {0} inferred for {1} is not allowed in this context\n\ 2313 inferred argument is not expressible in the Signature attribute 2314 2315 # 0: list of type, 1: message segment 2316 compiler.misc.diamond.invalid.args=\ 2317 type arguments {0} inferred for {1} are not allowed in this context\n\ 2318 inferred arguments are not expressible in the Signature attribute 2319 2320 # 0: type 2321 compiler.misc.diamond.and.explicit.params=\ 2322 cannot use ''<>'' with explicit type parameters for constructor 2323 2324 compiler.misc.mref.infer.and.explicit.params=\ 2325 cannot use raw constructor reference with explicit type parameters for constructor 2326 2327 # 0: type, 1: list of type 2328 compiler.misc.explicit.param.do.not.conform.to.bounds=\ 2329 explicit type argument {0} does not conform to declared bound(s) {1} 2330 2331 compiler.misc.arg.length.mismatch=\ 2332 actual and formal argument lists differ in length 2333 2334 # 0: string 2335 compiler.misc.wrong.number.type.args=\ 2336 wrong number of type arguments; required {0} 2337 2338 # 0: message segment 2339 compiler.misc.no.conforming.assignment.exists=\ 2340 argument mismatch; {0} 2341 2342 # 0: message segment 2343 compiler.misc.varargs.argument.mismatch=\ 2344 varargs mismatch; {0} 2345 2346 ##### 2347 2348 # 0: symbol or type, 1: file name 2349 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\ 2350 auxiliary class {0} in {1} should not be accessed from outside its own source file 2351 2352 ## The first argument ({0}) is a "kindname". 2353 # 0: kind name, 1: symbol, 2: symbol 2354 compiler.err.abstract.cant.be.accessed.directly=\ 2355 abstract {0} {1} in {2} cannot be accessed directly 2356 2357 ## The first argument ({0}) is a "kindname". 2358 # 0: symbol kind, 1: symbol 2359 compiler.err.non-static.cant.be.ref=\ 2360 non-static {0} {1} cannot be referenced from a static context 2361 2362 # 0: symbol kind, 1: symbol 2363 compiler.misc.bad.static.method.in.unbound.lookup=\ 2364 unexpected static {0} {1} found in unbound lookup 2365 2366 # 0: symbol kind, 1: symbol 2367 compiler.misc.bad.instance.method.in.unbound.lookup=\ 2368 unexpected instance {0} {1} found in unbound lookup 2369 2370 # 0: symbol kind, 1: symbol 2371 compiler.misc.bad.static.method.in.bound.lookup=\ 2372 unexpected static {0} {1} found in bound lookup 2373 2374 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list 2375 ## of kindnames (the list should be identical to that provided in source. 2376 # 0: set of kind name, 1: set of kind name 2377 compiler.err.unexpected.type=\ 2378 unexpected type\n\ 2379 required: {0}\n\ 2380 found: {1} 2381 2382 compiler.err.unexpected.lambda=\ 2383 lambda expression not expected here 2384 2385 compiler.err.unexpected.mref=\ 2386 method reference not expected here 2387 2388 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.) 2389 ## The second argument {1} is the non-resolved symbol 2390 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method) 2391 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method) 2392 # 0: kind name, 1: name, 2: unused, 3: unused 2393 compiler.err.cant.resolve=\ 2394 cannot find symbol\n\ 2395 symbol: {0} {1} 2396 2397 # 0: kind name, 1: name, 2: unused, 3: list of type 2398 compiler.err.cant.resolve.args=\ 2399 cannot find symbol\n\ 2400 symbol: {0} {1}({3}) 2401 2402 # 0: kind name, 1: name, 2: list of type, 3: list of type 2403 compiler.err.cant.resolve.args.params=\ 2404 cannot find symbol\n\ 2405 symbol: {0} <{2}>{1}({3}) 2406 2407 ## arguments from {0} to {3} have the same meaning as above 2408 ## The fifth argument {4} is a location subdiagnostic (see below) 2409 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment 2410 compiler.err.cant.resolve.location=\ 2411 cannot find symbol\n\ 2412 symbol: {0} {1}\n\ 2413 location: {4} 2414 2415 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment 2416 compiler.err.cant.resolve.location.args=\ 2417 cannot find symbol\n\ 2418 symbol: {0} {1}({3})\n\ 2419 location: {4} 2420 2421 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment 2422 compiler.err.cant.resolve.location.args.params=\ 2423 cannot find symbol\n\ 2424 symbol: {0} <{2}>{1}({3})\n\ 2425 location: {4} 2426 2427 ### Following are replicated/used for method reference diagnostics 2428 2429 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment 2430 compiler.misc.cant.resolve.location.args=\ 2431 cannot find symbol\n\ 2432 symbol: {0} {1}({3})\n\ 2433 location: {4} 2434 2435 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment 2436 compiler.misc.cant.resolve.location.args.params=\ 2437 cannot find symbol\n\ 2438 symbol: {0} <{2}>{1}({3})\n\ 2439 location: {4} 2440 2441 ##a location subdiagnostic is composed as follows: 2442 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.) 2443 ## The second argument {1} is the location name 2444 ## The third argument {2} is the location type (only when {1} is a variable name) 2445 2446 # 0: kind name, 1: type or symbol, 2: unused 2447 compiler.misc.location=\ 2448 {0} {1} 2449 2450 # 0: kind name, 1: symbol, 2: type 2451 compiler.misc.location.1=\ 2452 {0} {1} of type {2} 2453 2454 ## The following are all possible string for "kindname". 2455 ## They should be called whatever the JLS calls them after it been translated 2456 ## to the appropriate language. 2457 # compiler.misc.kindname.constructor=\ 2458 # static member 2459 compiler.misc.kindname.annotation=\ 2460 @interface 2461 2462 compiler.misc.kindname.constructor=\ 2463 constructor 2464 2465 compiler.misc.kindname.enum=\ 2466 enum 2467 2468 compiler.misc.kindname.interface=\ 2469 interface 2470 2471 compiler.misc.kindname.static=\ 2472 static 2473 2474 compiler.misc.kindname.type.variable=\ 2475 type variable 2476 2477 compiler.misc.kindname.type.variable.bound=\ 2478 bound of type variable 2479 2480 compiler.misc.kindname.variable=\ 2481 variable 2482 2483 compiler.misc.kindname.value=\ 2484 value 2485 2486 compiler.misc.kindname.method=\ 2487 method 2488 2489 compiler.misc.kindname.class=\ 2490 class 2491 2492 compiler.misc.kindname.package=\ 2493 package 2494 2495 compiler.misc.kindname.module=\ 2496 module 2497 2498 compiler.misc.kindname.static.init=\ 2499 static initializer 2500 2501 compiler.misc.kindname.instance.init=\ 2502 instance initializer 2503 2504 ##### 2505 2506 compiler.misc.no.args=\ 2507 no arguments 2508 2509 # 0: message segment 2510 compiler.err.override.static=\ 2511 {0}\n\ 2512 overriding method is static 2513 2514 # 0: message segment, 1: set of flag 2515 compiler.err.override.meth=\ 2516 {0}\n\ 2517 overridden method is {1} 2518 2519 # 0: message segment, 1: type 2520 compiler.err.override.meth.doesnt.throw=\ 2521 {0}\n\ 2522 overridden method does not throw {1} 2523 2524 # In the following string {1} is a space separated list of Java Keywords, as 2525 # they would have been declared in the source code 2526 # 0: message segment, 1: set of flag or string 2527 compiler.err.override.weaker.access=\ 2528 {0}\n\ 2529 attempting to assign weaker access privileges; was {1} 2530 2531 # 0: message segment, 1: type, 2: type 2532 compiler.err.override.incompatible.ret=\ 2533 {0}\n\ 2534 return type {1} is not compatible with {2} 2535 2536 # 0: message segment, 1: type, 2: type 2537 compiler.warn.override.unchecked.ret=\ 2538 {0}\n\ 2539 return type requires unchecked conversion from {1} to {2} 2540 2541 # 0: message segment, 1: type 2542 compiler.warn.override.unchecked.thrown=\ 2543 {0}\n\ 2544 overridden method does not throw {1} 2545 2546 # 0: symbol 2547 compiler.warn.override.equals.but.not.hashcode=\ 2548 Class {0} overrides equals, but neither it nor any superclass overrides hashCode method 2549 2550 ## The following are all possible strings for the first argument ({0}) of the 2551 ## above strings. 2552 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2553 compiler.misc.cant.override=\ 2554 {0} in {1} cannot override {2} in {3} 2555 2556 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2557 compiler.misc.cant.hide=\ 2558 {0} in {1} cannot hide {2} in {3} 2559 2560 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2561 compiler.misc.cant.implement=\ 2562 {0} in {1} cannot implement {2} in {3} 2563 2564 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2565 compiler.misc.clashes.with=\ 2566 {0} in {1} clashes with {2} in {3} 2567 2568 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2569 compiler.misc.unchecked.override=\ 2570 {0} in {1} overrides {2} in {3} 2571 2572 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2573 compiler.misc.unchecked.implement=\ 2574 {0} in {1} implements {2} in {3} 2575 2576 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2577 compiler.misc.unchecked.clash.with=\ 2578 {0} in {1} overrides {2} in {3} 2579 2580 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2581 compiler.misc.varargs.override=\ 2582 {0} in {1} overrides {2} in {3} 2583 2584 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2585 compiler.misc.varargs.implement=\ 2586 {0} in {1} implements {2} in {3} 2587 2588 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2589 compiler.misc.varargs.clash.with=\ 2590 {0} in {1} overrides {2} in {3} 2591 2592 # 0: kind name, 1: symbol, 2: symbol, 3: message segment 2593 compiler.misc.inapplicable.method=\ 2594 {0} {1}.{2} is not applicable\n\ 2595 ({3}) 2596 2597 ######################################## 2598 # Diagnostics for language feature changes 2599 ######################################## 2600 2601 # 0: string 2602 compiler.err.modules.not.supported.in.source=\ 2603 modules are not supported in -source {0}\n\ 2604 (use -source 9 or higher to enable modules) 2605 2606 # 0: string 2607 compiler.misc.diamond.and.anon.class.not.supported.in.source=\ 2608 cannot use ''<>'' with anonymous inner classes in -source {0}\n\ 2609 (use -source 9 or higher to enable ''<>'' with anonymous inner classes) 2610 2611 # 0: string 2612 compiler.err.unsupported.binary.lit=\ 2613 binary literals are not supported in -source {0}\n\ 2614 (use -source 7 or higher to enable binary literals) 2615 2616 # 0: string 2617 compiler.err.unsupported.underscore.lit=\ 2618 underscores in literals are not supported in -source {0}\n\ 2619 (use -source 7 or higher to enable underscores in literals) 2620 2621 # 0: string 2622 compiler.err.try.with.resources.not.supported.in.source=\ 2623 try-with-resources is not supported in -source {0}\n\ 2624 (use -source 7 or higher to enable try-with-resources) 2625 2626 # 0: string 2627 compiler.err.var.in.try.with.resources.not.supported.in.source=\ 2628 variables in try-with-resources not supported in -source {0}\n\ 2629 (use -source 9 or higher to enable variables in try-with-resources) 2630 2631 compiler.warn.underscore.as.identifier=\ 2632 as of release 9, ''_'' is a keyword, and may not be used as an identifier 2633 2634 compiler.err.underscore.as.identifier=\ 2635 as of release 9, ''_'' is a keyword, and may not be used as an identifier 2636 2637 compiler.err.underscore.as.identifier.in.lambda=\ 2638 ''_'' used as an identifier\n\ 2639 (use of ''_'' as an identifier is forbidden for lambda parameters) 2640 2641 compiler.err.enum.as.identifier=\ 2642 as of release 5, ''enum'' is a keyword, and may not be used as an identifier 2643 2644 compiler.err.assert.as.identifier=\ 2645 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier 2646 2647 # TODO 308: make a better error message 2648 compiler.err.this.as.identifier=\ 2649 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter 2650 2651 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\ 2652 receiver parameter not applicable for constructor of top-level class 2653 2654 # TODO 308: make a better error message 2655 # 0: annotation 2656 compiler.err.cant.type.annotate.scoping.1=\ 2657 scoping construct cannot be annotated with type-use annotation: {0} 2658 2659 # TODO 308: make a better error message 2660 # 0: list of annotation 2661 compiler.err.cant.type.annotate.scoping=\ 2662 scoping construct cannot be annotated with type-use annotations: {0} 2663 2664 # 0: type, 1: type 2665 compiler.err.incorrect.receiver.name=\ 2666 the receiver name does not match the enclosing class type\n\ 2667 required: {0}\n\ 2668 found: {1} 2669 2670 # 0: type, 1: type 2671 compiler.err.incorrect.receiver.type=\ 2672 the receiver type does not match the enclosing class type\n\ 2673 required: {0}\n\ 2674 found: {1} 2675 2676 # 0: type, 1: type 2677 compiler.err.incorrect.constructor.receiver.type=\ 2678 the receiver type does not match the enclosing outer class type\n\ 2679 required: {0}\n\ 2680 found: {1} 2681 2682 # 0: type, 1: type 2683 compiler.err.incorrect.constructor.receiver.name=\ 2684 the receiver name does not match the enclosing outer class type\n\ 2685 required: {0}\n\ 2686 found: {1} 2687 2688 compiler.err.no.annotations.on.dot.class=\ 2689 no annotations are allowed in the type of a class literal 2690 2691 # 0: string 2692 compiler.err.type.annotations.not.supported.in.source=\ 2693 type annotations are not supported in -source {0}\n\ 2694 (use -source 8 or higher to enable type annotations) 2695 2696 # 0: string 2697 compiler.err.annotations.after.type.params.not.supported.in.source=\ 2698 annotations after method type parameters are not supported in -source {0}\n\ 2699 (use -source 8 or higher to enable annotations after method type parameters) 2700 2701 # 0: string 2702 compiler.err.repeatable.annotations.not.supported.in.source=\ 2703 repeated annotations are not supported in -source {0}\n\ 2704 (use -source 8 or higher to enable repeated annotations) 2705 2706 # 0: string 2707 compiler.err.diamond.not.supported.in.source=\ 2708 diamond operator is not supported in -source {0}\n\ 2709 (use -source 7 or higher to enable diamond operator) 2710 2711 # 0: string 2712 compiler.err.multicatch.not.supported.in.source=\ 2713 multi-catch statement is not supported in -source {0}\n\ 2714 (use -source 7 or higher to enable multi-catch statement) 2715 2716 # 0: string 2717 compiler.err.string.switch.not.supported.in.source=\ 2718 strings in switch are not supported in -source {0}\n\ 2719 (use -source 7 or higher to enable strings in switch) 2720 2721 # 0: string 2722 compiler.err.lambda.not.supported.in.source=\ 2723 lambda expressions are not supported in -source {0}\n\ 2724 (use -source 8 or higher to enable lambda expressions) 2725 2726 # 0: string 2727 compiler.err.method.references.not.supported.in.source=\ 2728 method references are not supported in -source {0}\n\ 2729 (use -source 8 or higher to enable method references) 2730 2731 # 0: string 2732 compiler.err.default.methods.not.supported.in.source=\ 2733 default methods are not supported in -source {0}\n\ 2734 (use -source 8 or higher to enable default methods) 2735 2736 # 0: string 2737 compiler.err.intersection.types.in.cast.not.supported.in.source=\ 2738 intersection types in cast are not supported in -source {0}\n\ 2739 (use -source 8 or higher to enable intersection types in cast) 2740 2741 # 0: string 2742 compiler.err.static.intf.methods.not.supported.in.source=\ 2743 static interface methods are not supported in -source {0}\n\ 2744 (use -source 8 or higher to enable static interface methods) 2745 2746 # 0: string 2747 compiler.err.static.intf.method.invoke.not.supported.in.source=\ 2748 static interface method invocations are not supported in -source {0}\n\ 2749 (use -source 8 or higher to enable static interface method invocations) 2750 2751 # 0: string 2752 compiler.err.private.intf.methods.not.supported.in.source=\ 2753 private interface methods are not supported in -source {0}\n\ 2754 (use -source 9 or higher to enable private interface methods) 2755 2756 ######################################## 2757 # Diagnostics for verbose resolution 2758 # used by Resolve (debug only) 2759 ######################################## 2760 2761 # 0: number, 1: symbol, 2: unused 2762 compiler.misc.applicable.method.found=\ 2763 #{0} applicable method found: {1} 2764 2765 # 0: number, 1: symbol, 2: message segment 2766 compiler.misc.applicable.method.found.1=\ 2767 #{0} applicable method found: {1}\n\ 2768 ({2}) 2769 2770 # 0: number, 1: symbol, 2: message segment 2771 compiler.misc.not.applicable.method.found=\ 2772 #{0} not applicable method found: {1}\n\ 2773 ({2}) 2774 2775 # 0: type 2776 compiler.misc.partial.inst.sig=\ 2777 partially instantiated to: {0} 2778 2779 # 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 2780 compiler.note.verbose.resolve.multi=\ 2781 resolving method {0} in type {1} to candidate {2}\n\ 2782 phase: {3}\n\ 2783 with actuals: {4}\n\ 2784 with type-args: {5}\n\ 2785 candidates: 2786 2787 # 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 2788 compiler.note.verbose.resolve.multi.1=\ 2789 erroneous resolution for method {0} in type {1}\n\ 2790 phase: {3}\n\ 2791 with actuals: {4}\n\ 2792 with type-args: {5}\n\ 2793 candidates: 2794 2795 # 0: symbol, 1: type, 2: type 2796 compiler.note.deferred.method.inst=\ 2797 Deferred instantiation of method {0}\n\ 2798 instantiated signature: {1}\n\ 2799 target-type: {2} 2800 2801 ######################################## 2802 # Diagnostics for where clause implementation 2803 # used by the RichDiagnosticFormatter. 2804 ######################################## 2805 2806 compiler.misc.type.null=\ 2807 <null> 2808 2809 # X#n (where n is an int id) is disambiguated tvar name 2810 # 0: name, 1: number 2811 compiler.misc.type.var=\ 2812 {0}#{1} 2813 2814 # CAP#n (where n is an int id) is an abbreviation for 'captured type' 2815 # 0: number 2816 compiler.misc.captured.type=\ 2817 CAP#{0} 2818 2819 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type' 2820 # 0: number 2821 compiler.misc.intersection.type=\ 2822 INT#{0} 2823 2824 # where clause for captured type: contains upper ('extends {1}') and lower 2825 # ('super {2}') bound along with the wildcard that generated this captured type ({3}) 2826 # 0: type, 1: type, 2: type, 3: type 2827 compiler.misc.where.captured=\ 2828 {0} extends {1} super: {2} from capture of {3} 2829 2830 # compact where clause for captured type: contains upper ('extends {1}') along 2831 # with the wildcard that generated this captured type ({3}) 2832 # 0: type, 1: type, 2: unused, 3: type 2833 compiler.misc.where.captured.1=\ 2834 {0} extends {1} from capture of {3} 2835 2836 # where clause for type variable: contains upper bound(s) ('extends {1}') along with 2837 # the kindname ({2}) and location ({3}) in which the typevar has been declared 2838 # 0: type, 1: list of type, 2: symbol kind, 3: symbol 2839 compiler.misc.where.typevar=\ 2840 {0} extends {1} declared in {2} {3} 2841 2842 # compact where clause for type variable: contains the kindname ({2}) and location ({3}) 2843 # in which the typevar has been declared 2844 # 0: type, 1: list of type, 2: symbol kind, 3: symbol 2845 compiler.misc.where.typevar.1=\ 2846 {0} declared in {2} {3} 2847 2848 # where clause for fresh type variable: contains upper bound(s) ('extends {1}'). 2849 # Since a fresh type-variable is synthetic - there's no location/kindname here. 2850 # 0: type, 1: list of type 2851 compiler.misc.where.fresh.typevar=\ 2852 {0} extends {1} 2853 2854 # where clause for type variable: contains all the upper bound(s) ('extends {1}') 2855 # of this intersection type 2856 # 0: type, 1: list of type 2857 compiler.misc.where.intersection=\ 2858 {0} extends {1} 2859 2860 ### Where clause headers ### 2861 compiler.misc.where.description.captured=\ 2862 where {0} is a fresh type-variable: 2863 2864 # 0: set of type 2865 compiler.misc.where.description.typevar=\ 2866 where {0} is a type-variable: 2867 2868 # 0: set of type 2869 compiler.misc.where.description.intersection=\ 2870 where {0} is an intersection type: 2871 2872 # 0: set of type 2873 compiler.misc.where.description.captured.1=\ 2874 where {0} are fresh type-variables: 2875 2876 # 0: set of type 2877 compiler.misc.where.description.typevar.1=\ 2878 where {0} are type-variables: 2879 2880 # 0: set of type 2881 compiler.misc.where.description.intersection.1=\ 2882 where {0} are intersection types: 2883 2884 ### 2885 # errors related to doc comments 2886 2887 compiler.err.dc.bad.entity=\ 2888 bad HTML entity 2889 2890 compiler.err.dc.bad.gt=\ 2891 bad use of ''>'' 2892 2893 compiler.err.dc.bad.inline.tag=\ 2894 incorrect use of inline tag 2895 2896 compiler.err.dc.identifier.expected=\ 2897 identifier expected 2898 2899 compiler.err.dc.malformed.html=\ 2900 malformed HTML 2901 2902 compiler.err.dc.missing.semicolon=\ 2903 semicolon missing 2904 2905 compiler.err.dc.no.content=\ 2906 no content 2907 2908 compiler.err.dc.no.tag.name=\ 2909 no tag name after '@' 2910 2911 compiler.err.dc.gt.expected=\ 2912 ''>'' expected 2913 2914 compiler.err.dc.ref.bad.parens=\ 2915 '')'' missing in reference 2916 2917 compiler.err.dc.ref.syntax.error=\ 2918 syntax error in reference 2919 2920 compiler.err.dc.ref.unexpected.input=\ 2921 unexpected text 2922 2923 compiler.err.dc.unexpected.content=\ 2924 unexpected content 2925 2926 compiler.err.dc.unterminated.inline.tag=\ 2927 unterminated inline tag 2928 2929 compiler.err.dc.unterminated.signature=\ 2930 unterminated signature 2931 2932 compiler.err.dc.unterminated.string=\ 2933 unterminated string 2934 2935 ### 2936 # errors related to modules 2937 2938 compiler.err.expected.module=\ 2939 expected ''module'' 2940 2941 # 0: symbol 2942 compiler.err.module.not.found=\ 2943 module not found: {0} 2944 2945 # 0: symbol 2946 compiler.warn.module.not.found=\ 2947 module not found: {0} 2948 2949 compiler.err.too.many.modules=\ 2950 too many module declarations found 2951 2952 compiler.err.module.not.found.on.module.source.path=\ 2953 module not found on module source path 2954 2955 compiler.err.not.in.module.on.module.source.path=\ 2956 not in a module on the module source path 2957 2958 # 0: symbol 2959 compiler.err.duplicate.module=\ 2960 duplicate module: {0} 2961 2962 # 0: symbol 2963 compiler.err.duplicate.requires=\ 2964 duplicate requires: {0} 2965 2966 # 0: symbol 2967 compiler.err.conflicting.exports=\ 2968 duplicate or conflicting exports: {0} 2969 2970 # 0: symbol 2971 compiler.err.conflicting.opens=\ 2972 duplicate or conflicting opens: {0} 2973 2974 # 0: symbol 2975 compiler.err.conflicting.exports.to.module=\ 2976 duplicate or conflicting exports to module: {0} 2977 2978 # 0: symbol 2979 compiler.err.conflicting.opens.to.module=\ 2980 duplicate or conflicting opens to module: {0} 2981 2982 compiler.err.no.opens.unless.strong=\ 2983 ''opens'' only allowed in strong modules 2984 2985 # 0: symbol 2986 compiler.err.repeated.provides.for.service=\ 2987 multiple ''provides'' for service {0} 2988 2989 # 0: symbol, 1: symbol 2990 compiler.err.duplicate.provides=\ 2991 duplicate provides: service {0}, implementation {1} 2992 2993 # 0: symbol 2994 compiler.err.duplicate.uses=\ 2995 duplicate uses: {0} 2996 2997 # 0: symbol 2998 compiler.err.service.implementation.is.abstract=\ 2999 the service implementation is an abstract class: {0} 3000 3001 compiler.err.service.implementation.must.be.subtype.of.service.interface=\ 3002 the service implementation type must be a subtype of the service interface type, or \ 3003 have a public static no-args method named "provider" returning the service implementation 3004 3005 compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface=\ 3006 the "provider" method return type must be a subtype of the service interface type 3007 3008 # 0: symbol 3009 compiler.err.service.implementation.is.inner=\ 3010 the service implementation is an inner class: {0} 3011 3012 # 0: symbol 3013 compiler.err.service.definition.is.enum=\ 3014 the service definition is an enum: {0} 3015 3016 # 0: symbol 3017 compiler.err.service.implementation.doesnt.have.a.no.args.constructor=\ 3018 the service implementation does not have a default constructor: {0} 3019 3020 # 0: symbol 3021 compiler.err.service.implementation.no.args.constructor.not.public=\ 3022 the no arguments constructor of the service implementation is not public: {0} 3023 3024 # 0: symbol 3025 compiler.err.package.empty.or.not.found=\ 3026 package is empty or does not exist: {0} 3027 3028 # 0: symbol 3029 compiler.warn.package.empty.or.not.found=\ 3030 package is empty or does not exist: {0} 3031 3032 compiler.err.no.output.dir=\ 3033 no class output directory specified 3034 3035 compiler.err.unnamed.pkg.not.allowed.named.modules=\ 3036 unnamed package is not allowed in named modules 3037 3038 # 0: name, 1: name 3039 compiler.err.module.name.mismatch=\ 3040 module name {0} does not match expected name {1} 3041 3042 # 0: name, 1: name 3043 compiler.misc.module.name.mismatch=\ 3044 module name {0} does not match expected name {1} 3045 3046 # 0: name 3047 compiler.err.module.non.zero.opens=\ 3048 open module {0} has non-zero opens_count 3049 3050 # 0: name 3051 compiler.misc.module.non.zero.opens=\ 3052 open module {0} has non-zero opens_count 3053 3054 compiler.err.module.decl.sb.in.module-info.java=\ 3055 module declarations should be in a file named module-info.java 3056 3057 # 0: set of string 3058 compiler.err.too.many.patched.modules=\ 3059 too many patched modules ({0}), use --module-source-path 3060 3061 # 0: name, 1: name 3062 compiler.err.file.patched.and.msp=\ 3063 file accessible from both --patch-module and --module-source-path, \ 3064 but belongs to a different module on each path: {0}, {1} 3065 3066 compiler.err.processorpath.no.processormodulepath=\ 3067 illegal combination of -processorpath and --processor-module-path 3068 3069 # 0: symbol 3070 compiler.err.package.in.other.module=\ 3071 package exists in another module: {0} 3072 3073 # 0: symbol, 1: name, 2: symbol, 3: symbol 3074 compiler.err.package.clash.from.requires=\ 3075 module {0} reads package {1} from both {2} and {3} 3076 3077 # 0: name, 1: symbol, 2: symbol 3078 compiler.err.package.clash.from.requires.in.unnamed=\ 3079 the unnamed module reads package {0} from both {1} and {2} 3080 3081 # 0: string 3082 compiler.err.module.not.found.in.module.source.path=\ 3083 module {0} not found in module source path 3084 3085 compiler.err.output.dir.must.be.specified.with.dash.m.option=\ 3086 class output directory must be specified if -m option is used 3087 3088 compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=\ 3089 module source path must be specified if -m option is used 3090 3091 # 0: symbol 3092 compiler.err.service.implementation.not.in.right.module=\ 3093 service implementation must be defined in the same module as the provides directive 3094 3095 # 0: symbol 3096 compiler.err.cyclic.requires=\ 3097 cyclic dependence involving {0} 3098 3099 # 0: fragment, 1: name 3100 compiler.err.duplicate.module.on.path=\ 3101 duplicate module on {0}\nmodule in {1} 3102 3103 # 0: option name, 1: string 3104 compiler.warn.bad.name.for.option=\ 3105 bad name in value for {0} option: ''{1}'' 3106 3107 # 0: option name, 1: string 3108 compiler.err.bad.name.for.option=\ 3109 bad name in value for {0} option: ''{1}'' 3110 3111 # 0: option name, 1: symbol 3112 compiler.warn.module.for.option.not.found=\ 3113 module name in {0} option not found: {1} 3114 3115 compiler.err.addmods.all.module.path.invalid=\ 3116 --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module 3117 3118 # 0: symbol 3119 compiler.err.add.exports.with.release=\ 3120 exporting a package from system module {0} is not allowed with --release 3121 3122 # 0: symbol 3123 compiler.err.add.reads.with.release=\ 3124 adding read edges for system module {0} is not allowed with --release 3125 3126 compiler.warn.addopens.ignored=\ 3127 --add-opens has no effect at compile time 3128 3129 compiler.misc.locn.module_source_path=\ 3130 module source path 3131 3132 compiler.misc.locn.upgrade_module_path=\ 3133 upgrade module path 3134 3135 compiler.misc.locn.system_modules=\ 3136 system modules 3137 3138 compiler.misc.locn.module_path=\ 3139 application module path 3140 3141 compiler.misc.cant.resolve.modules=\ 3142 cannot resolve modules 3143 3144 # 0: string 3145 compiler.err.invalid.module.specifier=\ 3146 module specifier not allowed: {0} 3147 3148 # 0: symbol 3149 compiler.warn.service.provided.but.not.exported.or.used=\ 3150 service interface provided but not exported or used 3151 3152 # 0: kind name, 1: symbol, 2: symbol 3153 compiler.warn.leaks.not.accessible=\ 3154 {0} {1} in module {2} is not accessible to clients that require this module 3155 # 0: kind name, 1: symbol, 2: symbol 3156 compiler.warn.leaks.not.accessible.unexported=\ 3157 {0} {1} in module {2} is not exported 3158 # 0: kind name, 1: symbol, 2: symbol 3159 compiler.warn.leaks.not.accessible.not.required.transitive=\ 3160 {0} {1} in module {2} is not indirectly exported using 'requires transitive' 3161 # 0: kind name, 1: symbol, 2: symbol 3162 compiler.warn.leaks.not.accessible.unexported.qualified=\ 3163 {0} {1} in module {2} may not be visible to all clients that require this module 3164 3165 ### 3166 # errors related to options 3167 3168 # 0: string, 1: string 3169 compiler.err.illegal.argument.for.option=\ 3170 illegal argument for {0}: {1}