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