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