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