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.or.finally=\ 1139 ''try'' without ''catch'' or ''finally'' 1140 1141 compiler.err.try.without.catch.finally.or.resource.decls=\ 1142 ''try'' without ''catch'', ''finally'' or resource declarations 1143 1144 # 0: symbol 1145 compiler.err.type.doesnt.take.params=\ 1146 type {0} does not take parameters 1147 1148 compiler.err.type.var.cant.be.deref=\ 1149 cannot select from a type variable 1150 1151 compiler.err.type.var.may.not.be.followed.by.other.bounds=\ 1152 a type variable may not be followed by other bounds 1153 1154 compiler.err.type.var.more.than.once=\ 1155 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated 1156 1157 compiler.err.type.var.more.than.once.in.result=\ 1158 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated 1159 1160 # 0: type, 1: type, 2: fragment 1161 compiler.err.types.incompatible=\ 1162 types {0} and {1} are incompatible;\n\ 1163 {2} 1164 1165 # 0: name, 1: list of type 1166 compiler.misc.incompatible.diff.ret=\ 1167 both define {0}({1}), but with unrelated return types 1168 1169 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol 1170 compiler.misc.incompatible.unrelated.defaults=\ 1171 {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5} 1172 1173 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol 1174 compiler.misc.incompatible.abstract.default=\ 1175 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5} 1176 1177 # 0: name, 1: kind name, 2: symbol 1178 compiler.err.default.overrides.object.member=\ 1179 default method {0} in {1} {2} overrides a member of java.lang.Object 1180 1181 # 0: type 1182 compiler.err.illegal.static.intf.meth.call=\ 1183 illegal static interface method call\n\ 1184 the receiver expression should be replaced with the type qualifier ''{0}'' 1185 1186 # 0: symbol or type, 1: message segment 1187 compiler.err.illegal.default.super.call=\ 1188 bad type qualifier {0} in default super call\n\ 1189 {1} 1190 1191 # 0: symbol, 1: type 1192 compiler.misc.overridden.default=\ 1193 method {0} is overridden in {1} 1194 1195 # 0: symbol, 1: type or symbol 1196 compiler.misc.redundant.supertype=\ 1197 redundant interface {0} is extended by {1} 1198 1199 compiler.err.unclosed.char.lit=\ 1200 unclosed character literal 1201 1202 compiler.err.unclosed.comment=\ 1203 unclosed comment 1204 1205 compiler.err.unclosed.str.lit=\ 1206 unclosed string literal 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: target, 1: target 1724 compiler.err.bad.target.sigpoly.call=\ 1725 polymorphic signature calls are not supported in -target {0}\n\ 1726 (use -target {1} or higher to enable polymorphic signature calls) 1727 1728 # 0: list of type 1729 compiler.warn.unreachable.catch=\ 1730 unreachable catch clause\n\ 1731 thrown type {0} has already been caught 1732 1733 # 0: list of type 1734 compiler.warn.unreachable.catch.1=\ 1735 unreachable catch clause\n\ 1736 thrown types {0} have already been caught 1737 1738 # 0: symbol 1739 compiler.warn.long.SVUID=\ 1740 serialVersionUID must be of type long in class {0} 1741 1742 # 0: symbol 1743 compiler.warn.missing.SVUID=\ 1744 serializable class {0} has no definition of serialVersionUID 1745 1746 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 1747 compiler.warn.potentially.ambiguous.overload=\ 1748 {0} in {1} is potentially ambiguous with {2} in {3} 1749 1750 # 0: message segment 1751 compiler.warn.override.varargs.missing=\ 1752 {0}; overridden method has no ''...'' 1753 1754 # 0: message segment 1755 compiler.warn.override.varargs.extra=\ 1756 {0}; overriding method is missing ''...'' 1757 1758 # 0: message segment 1759 compiler.warn.override.bridge=\ 1760 {0}; overridden method is a bridge method 1761 1762 # 0: symbol 1763 compiler.warn.pkg-info.already.seen=\ 1764 a package-info.java file has already been seen for package {0} 1765 1766 # 0: path 1767 compiler.warn.path.element.not.found=\ 1768 bad path element "{0}": no such file or directory 1769 1770 compiler.warn.possible.fall-through.into.case=\ 1771 possible fall-through into case 1772 1773 # 0: type 1774 compiler.warn.redundant.cast=\ 1775 redundant cast to {0} 1776 1777 # 0: number 1778 compiler.warn.position.overflow=\ 1779 Position encoding overflows at line {0} 1780 1781 # 0: file name, 1: number, 2: number 1782 compiler.warn.big.major.version=\ 1783 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\ 1784 It is recommended that the compiler be upgraded. 1785 1786 # 0: kind name, 1: symbol 1787 compiler.warn.static.not.qualified.by.type=\ 1788 static {0} should be qualified by type name, {1}, instead of by an expression 1789 1790 # 0: string 1791 compiler.warn.source.no.bootclasspath=\ 1792 bootstrap class path not set in conjunction with -source {0} 1793 1794 # 0: string 1795 compiler.warn.option.obsolete.source=\ 1796 source value {0} is obsolete and will be removed in a future release 1797 1798 # 0: target 1799 compiler.warn.option.obsolete.target=\ 1800 target value {0} is obsolete and will be removed in a future release 1801 1802 # 0: string, 1: string 1803 compiler.err.option.removed.source=\ 1804 Source option {0} is no longer supported. Use {1} or later. 1805 1806 # 0: target, 1: target 1807 compiler.err.option.removed.target=\ 1808 Target option {0} is no longer supported. Use {1} or later. 1809 1810 1811 # 0: target, 1: target 1812 compiler.warn.option.parameters.unsupported=\ 1813 -parameters is not supported for target value {0}. Use {1} or later. 1814 1815 compiler.warn.option.obsolete.suppression=\ 1816 To suppress warnings about obsolete options, use -Xlint:-options. 1817 1818 # 0: name, 1: number, 2: number, 3: number, 4: number 1819 compiler.warn.future.attr=\ 1820 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files 1821 1822 compiler.warn.requires.automatic=\ 1823 requires directive for an automatic module 1824 1825 compiler.warn.requires.transitive.automatic=\ 1826 requires transitive directive for an automatic module 1827 1828 # Warnings related to annotation processing 1829 # 0: string 1830 compiler.warn.proc.package.does.not.exist=\ 1831 package {0} does not exist 1832 1833 # 0: string 1834 compiler.warn.proc.file.reopening=\ 1835 Attempt to create a file for ''{0}'' multiple times 1836 1837 # 0: string 1838 compiler.warn.proc.type.already.exists=\ 1839 A file for type ''{0}'' already exists on the sourcepath or classpath 1840 1841 # 0: string 1842 compiler.warn.proc.type.recreate=\ 1843 Attempt to create a file for type ''{0}'' multiple times 1844 1845 # 0: string 1846 compiler.warn.proc.illegal.file.name=\ 1847 Cannot create file for illegal name ''{0}''. 1848 1849 # 0: string, 1: string 1850 compiler.warn.proc.suspicious.class.name=\ 1851 Creating file for a type whose name ends in {1}: ''{0}'' 1852 1853 # 0: string 1854 compiler.warn.proc.file.create.last.round=\ 1855 File for type ''{0}'' created in the last round will not be subject to annotation processing. 1856 1857 # 0: string, 1: string 1858 compiler.warn.proc.malformed.supported.string=\ 1859 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}'' 1860 1861 # 0: set of string 1862 compiler.warn.proc.annotations.without.processors=\ 1863 No processor claimed any of these annotations: {0} 1864 1865 # 0: source version, 1: string, 2: string 1866 compiler.warn.proc.processor.incompatible.source.version=\ 1867 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}'' 1868 1869 compiler.warn.proc.proc-only.requested.no.procs=\ 1870 Annotation processing without compilation requested but no processors were found. 1871 1872 compiler.warn.proc.use.implicit=\ 1873 Implicitly compiled files were not subject to annotation processing.\n\ 1874 Use -implicit to specify a policy for implicit compilation. 1875 1876 compiler.warn.proc.use.proc.or.implicit=\ 1877 Implicitly compiled files were not subject to annotation processing.\n\ 1878 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation. 1879 1880 # Print a client-generated warning; assumed to be localized, no translation required 1881 # 0: string 1882 compiler.warn.proc.messager=\ 1883 {0} 1884 1885 # 0: set of string 1886 compiler.warn.proc.unclosed.type.files=\ 1887 Unclosed files for the types ''{0}''; these types will not undergo annotation processing 1888 1889 # 0: string 1890 compiler.warn.proc.unmatched.processor.options=\ 1891 The following options were not recognized by any processor: ''{0}'' 1892 1893 compiler.warn.try.explicit.close.call=\ 1894 explicit call to close() on an auto-closeable resource 1895 1896 # 0: symbol 1897 compiler.warn.try.resource.not.referenced=\ 1898 auto-closeable resource {0} is never referenced in body of corresponding try statement 1899 1900 # 0: type 1901 compiler.warn.try.resource.throws.interrupted.exc=\ 1902 auto-closeable resource {0} has a member method close() that could throw InterruptedException 1903 1904 compiler.warn.unchecked.assign=\ 1905 unchecked assignment: {0} to {1} 1906 1907 # 0: symbol, 1: type 1908 compiler.warn.unchecked.assign.to.var=\ 1909 unchecked assignment to variable {0} as member of raw type {1} 1910 1911 # 0: symbol, 1: type 1912 compiler.warn.unchecked.call.mbr.of.raw.type=\ 1913 unchecked call to {0} as a member of the raw type {1} 1914 1915 compiler.warn.unchecked.cast.to.type=\ 1916 unchecked cast to type {0} 1917 1918 # 0: kind name, 1: name, 2: object, 3: object, 4: kind name, 5: symbol 1919 compiler.warn.unchecked.meth.invocation.applied=\ 1920 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ 1921 required: {2}\n\ 1922 found: {3} 1923 1924 # 0: type 1925 compiler.warn.unchecked.generic.array.creation=\ 1926 unchecked generic array creation for varargs parameter of type {0} 1927 1928 # 0: type 1929 compiler.warn.unchecked.varargs.non.reifiable.type=\ 1930 Possible heap pollution from parameterized vararg type {0} 1931 1932 # 0: symbol 1933 compiler.warn.varargs.unsafe.use.varargs.param=\ 1934 Varargs method could cause heap pollution from non-reifiable varargs parameter {0} 1935 1936 compiler.warn.missing.deprecated.annotation=\ 1937 deprecated item is not annotated with @Deprecated 1938 1939 # 0: kind name 1940 compiler.warn.deprecated.annotation.has.no.effect=\ 1941 @Deprecated annotation has no effect on this {0} declaration 1942 1943 # 0: string 1944 compiler.warn.invalid.path=\ 1945 Invalid filename: {0} 1946 1947 # 0: path 1948 compiler.warn.invalid.archive.file=\ 1949 Unexpected file on path: {0} 1950 1951 # 0: path 1952 compiler.warn.unexpected.archive.file=\ 1953 Unexpected extension for archive file: {0} 1954 1955 # 0: path 1956 compiler.err.no.zipfs.for.archive=\ 1957 No file system provider is available to handle this file: {0} 1958 1959 compiler.warn.div.zero=\ 1960 division by zero 1961 1962 compiler.warn.empty.if=\ 1963 empty statement after if 1964 1965 # 0: type, 1: name 1966 compiler.warn.annotation.method.not.found=\ 1967 Cannot find annotation method ''{1}()'' in type ''{0}'' 1968 1969 # 0: type, 1: name, 2: message segment 1970 compiler.warn.annotation.method.not.found.reason=\ 1971 Cannot find annotation method ''{1}()'' in type ''{0}'': {2} 1972 1973 # 0: file object, 1: symbol, 2: name 1974 compiler.warn.unknown.enum.constant=\ 1975 unknown enum constant {1}.{2} 1976 1977 # 0: file object, 1: symbol, 2: name, 3: message segment 1978 compiler.warn.unknown.enum.constant.reason=\ 1979 unknown enum constant {1}.{2}\n\ 1980 reason: {3} 1981 1982 # 0: type, 1: type 1983 compiler.warn.raw.class.use=\ 1984 found raw type: {0}\n\ 1985 missing type arguments for generic class {1} 1986 1987 compiler.warn.diamond.redundant.args=\ 1988 Redundant type arguments in new expression (use diamond operator instead). 1989 1990 compiler.warn.local.redundant.type=\ 1991 Redundant type for local variable (replace explicit type with ''var''). 1992 1993 compiler.warn.potential.lambda.found=\ 1994 This anonymous inner class creation can be turned into a lambda expression. 1995 1996 compiler.warn.method.redundant.typeargs=\ 1997 Redundant type arguments in method call. 1998 1999 # 0: symbol, 1: message segment 2000 compiler.warn.varargs.redundant.trustme.anno=\ 2001 Redundant {0} annotation. {1} 2002 2003 # 0: symbol 2004 compiler.warn.access.to.member.from.serializable.element=\ 2005 access to member {0} from serializable element can be publicly accessible to untrusted code 2006 2007 # 0: symbol 2008 compiler.warn.access.to.member.from.serializable.lambda=\ 2009 access to member {0} from serializable lambda can be publicly accessible to untrusted code 2010 2011 ##### 2012 2013 ## The following are tokens which are non-terminals in the language. They should 2014 ## be named as JLS3 calls them when translated to the appropriate language. 2015 compiler.misc.token.identifier=\ 2016 <identifier> 2017 2018 compiler.misc.token.character=\ 2019 <character> 2020 2021 compiler.misc.token.string=\ 2022 <string> 2023 2024 compiler.misc.token.integer=\ 2025 <integer> 2026 2027 compiler.misc.token.long-integer=\ 2028 <long integer> 2029 2030 compiler.misc.token.float=\ 2031 <float> 2032 2033 compiler.misc.token.double=\ 2034 <double> 2035 2036 compiler.misc.token.bad-symbol=\ 2037 <bad symbol> 2038 2039 compiler.misc.token.end-of-input=\ 2040 <end of input> 2041 2042 ## The argument to the following string will always be one of the following: 2043 ## 1. one of the above non-terminals 2044 ## 2. a keyword (JLS1.8) 2045 ## 3. a boolean literal (JLS3.10.3) 2046 ## 4. the null literal (JLS3.10.7) 2047 ## 5. a Java separator (JLS3.11) 2048 ## 6. an operator (JLS3.12) 2049 ## 2050 ## This is the only place these tokens will be used. 2051 # 0: token 2052 compiler.err.expected=\ 2053 {0} expected 2054 2055 # 0: string 2056 compiler.err.expected.str=\ 2057 {0} expected 2058 2059 # 0: token, 1: token 2060 compiler.err.expected2=\ 2061 {0} or {1} expected 2062 2063 # 0: token, 1: token, 2: token 2064 compiler.err.expected3=\ 2065 {0}, {1}, or {2} expected 2066 2067 compiler.err.premature.eof=\ 2068 reached end of file while parsing 2069 2070 ## The following are related in form, but do not easily fit the above paradigm. 2071 compiler.err.expected.module=\ 2072 ''module'' expected 2073 2074 compiler.err.expected.module.or.open=\ 2075 ''module'' or ''open'' expected 2076 2077 compiler.err.dot.class.expected=\ 2078 ''.class'' expected 2079 2080 ## The argument to this string will always be either 'case' or 'default'. 2081 # 0: token 2082 compiler.err.orphaned=\ 2083 orphaned {0} 2084 2085 # 0: name 2086 compiler.misc.anonymous.class=\ 2087 <anonymous {0}> 2088 2089 # 0: name, 1: type 2090 compiler.misc.type.captureof=\ 2091 capture#{0} of {1} 2092 2093 compiler.misc.type.captureof.1=\ 2094 capture#{0} 2095 2096 compiler.misc.type.none=\ 2097 <none> 2098 2099 compiler.misc.unnamed.package=\ 2100 unnamed package 2101 2102 compiler.misc.unnamed.module=\ 2103 unnamed module 2104 2105 ##### 2106 2107 # 0: symbol, 1: message segment 2108 compiler.err.cant.access=\ 2109 cannot access {0}\n\ 2110 {1} 2111 2112 # 0: name 2113 compiler.misc.bad.class.file=\ 2114 class file is invalid for class {0} 2115 2116 # 0: file name, 1: string (expected constant pool entry type), 2: number (constant pool index) 2117 compiler.misc.bad.const.pool.entry=\ 2118 bad constant pool entry in {0}\n\ 2119 expected {1} at index {2} 2120 2121 # 0: file name, 1: message segment 2122 compiler.misc.bad.class.file.header=\ 2123 bad class file: {0}\n\ 2124 {1}\n\ 2125 Please remove or make sure it appears in the correct subdirectory of the classpath. 2126 2127 # 0: file name, 1: message segment 2128 compiler.misc.bad.source.file.header=\ 2129 bad source file: {0}\n\ 2130 {1}\n\ 2131 Please remove or make sure it appears in the correct subdirectory of the sourcepath. 2132 2133 ## The following are all possible strings for the second argument ({1}) of the 2134 ## above strings. 2135 compiler.misc.bad.class.signature=\ 2136 bad class signature: {0} 2137 2138 #0: symbol, 1: symbol 2139 compiler.misc.bad.enclosing.class=\ 2140 bad enclosing class for {0}: {1} 2141 2142 # 0: symbol 2143 compiler.misc.bad.enclosing.method=\ 2144 bad enclosing method attribute for class {0} 2145 2146 compiler.misc.bad.runtime.invisible.param.annotations=\ 2147 bad RuntimeInvisibleParameterAnnotations attribute: {0} 2148 2149 compiler.misc.bad.const.pool.tag=\ 2150 bad constant pool tag: {0} 2151 2152 compiler.misc.bad.const.pool.tag.at=\ 2153 bad constant pool tag: {0} at {1} 2154 2155 compiler.misc.bad.signature=\ 2156 bad signature: {0} 2157 2158 compiler.misc.bad.type.annotation.value=\ 2159 bad type annotation target type value: {0} 2160 2161 compiler.misc.bad.module-info.name=\ 2162 bad class name 2163 2164 compiler.misc.class.file.wrong.class=\ 2165 class file contains wrong class: {0} 2166 2167 compiler.misc.module.info.invalid.super.class=\ 2168 module-info with invalid super class 2169 2170 # 0: name 2171 compiler.misc.class.file.not.found=\ 2172 class file for {0} not found 2173 2174 # 0: string (constant value), 1: symbol (constant field), 2: type (field type) 2175 compiler.misc.bad.constant.range=\ 2176 constant value ''{0}'' for {1} is outside the expected range for {2} 2177 2178 # 0: string (constant value), 1: symbol (constant field), 2: string (expected class) 2179 compiler.misc.bad.constant.value=\ 2180 bad constant value ''{0}'' for {1}, expected {2} 2181 2182 # 0: string (classfile major version), 1: string (classfile minor version) 2183 compiler.misc.invalid.default.interface=\ 2184 default method found in version {0}.{1} classfile 2185 2186 # 0: string (classfile major version), 1: string (classfile minor version) 2187 compiler.misc.invalid.static.interface=\ 2188 static method found in version {0}.{1} classfile 2189 2190 # 0: string (classfile major version), 1: string (classfile minor version) 2191 compiler.misc.anachronistic.module.info=\ 2192 module declaration found in version {0}.{1} classfile 2193 2194 # 0: name 2195 compiler.misc.file.doesnt.contain.class=\ 2196 file does not contain class {0} 2197 2198 # 0: symbol 2199 compiler.misc.file.does.not.contain.package=\ 2200 file does not contain package {0} 2201 2202 compiler.misc.file.does.not.contain.module=\ 2203 file does not contain module declaration 2204 2205 compiler.misc.illegal.start.of.class.file=\ 2206 illegal start of class file 2207 2208 compiler.misc.unable.to.access.file=\ 2209 unable to access file: {0} 2210 2211 compiler.misc.unicode.str.not.supported=\ 2212 unicode string in class file not supported 2213 2214 compiler.misc.undecl.type.var=\ 2215 undeclared type variable: {0} 2216 2217 compiler.misc.malformed.vararg.method=\ 2218 class file contains malformed variable arity method: {0} 2219 2220 compiler.misc.wrong.version=\ 2221 class file has wrong version {0}.{1}, should be {2}.{3} 2222 2223 ##### 2224 2225 # 0: type, 1: type or symbol 2226 compiler.err.not.within.bounds=\ 2227 type argument {0} is not within bounds of type-variable {1} 2228 2229 ## The following are all possible strings for the second argument ({1}) of the 2230 ## above string. 2231 2232 ## none yet... 2233 2234 ##### 2235 2236 # 0: message segment 2237 compiler.err.prob.found.req=\ 2238 incompatible types: {0} 2239 2240 # 0: message segment 2241 compiler.misc.prob.found.req=\ 2242 incompatible types: {0} 2243 2244 # 0: message segment, 1: type, 2: type 2245 compiler.warn.prob.found.req=\ 2246 {0}\n\ 2247 required: {2}\n\ 2248 found: {1} 2249 2250 # 0: type, 1: type 2251 compiler.misc.inconvertible.types=\ 2252 {0} cannot be converted to {1} 2253 2254 # 0: type, 1: type 2255 compiler.misc.possible.loss.of.precision=\ 2256 possible lossy conversion from {0} to {1} 2257 2258 compiler.misc.unchecked.assign=\ 2259 unchecked conversion 2260 2261 # compiler.misc.storecheck=\ 2262 # assignment might cause later store checks to fail 2263 # compiler.misc.unchecked=\ 2264 # assigned array cannot dynamically check its stores 2265 compiler.misc.unchecked.cast.to.type=\ 2266 unchecked cast 2267 2268 # compiler.err.star.expected=\ 2269 # ''*'' expected 2270 # compiler.err.no.elem.type=\ 2271 # \[\*\] cannot have a type 2272 2273 # 0: message segment 2274 compiler.misc.try.not.applicable.to.type=\ 2275 try-with-resources not applicable to variable type\n\ 2276 ({0}) 2277 2278 ##### 2279 2280 # 0: object, 1: message segment 2281 compiler.err.type.found.req=\ 2282 unexpected type\n\ 2283 required: {1}\n\ 2284 found: {0} 2285 2286 ## The following are all possible strings for the first argument ({0}) of the 2287 ## above string. 2288 compiler.misc.type.req.class=\ 2289 class 2290 2291 compiler.misc.type.req.class.array=\ 2292 class or array 2293 2294 compiler.misc.type.req.array.or.iterable=\ 2295 array or java.lang.Iterable 2296 2297 compiler.misc.type.req.ref=\ 2298 reference 2299 2300 compiler.misc.type.req.exact=\ 2301 class or interface without bounds 2302 2303 # 0: type 2304 compiler.misc.type.parameter=\ 2305 type parameter {0} 2306 2307 ##### 2308 2309 ## The following are all possible strings for the last argument of all those 2310 ## diagnostics whose key ends in ".1" 2311 2312 # 0: type, 1: list of type 2313 compiler.misc.no.unique.maximal.instance.exists=\ 2314 no unique maximal instance exists for type variable {0} with upper bounds {1} 2315 2316 # 0: type, 1: list of type 2317 compiler.misc.no.unique.minimal.instance.exists=\ 2318 no unique minimal instance exists for type variable {0} with lower bounds {1} 2319 2320 # 0: type, 1: list of type 2321 compiler.misc.incompatible.upper.bounds=\ 2322 inference variable {0} has incompatible upper bounds {1} 2323 2324 # 0: type, 1: list of type 2325 compiler.misc.incompatible.eq.bounds=\ 2326 inference variable {0} has incompatible equality constraints {1} 2327 2328 # 0: type, 1: fragment, 2: fragment 2329 compiler.misc.incompatible.bounds=\ 2330 inference variable {0} has incompatible bounds\n\ 2331 {1}\n\ 2332 {2} 2333 2334 # 0: list of type 2335 compiler.misc.lower.bounds=\ 2336 lower bounds: {0} 2337 2338 # 0: list of type 2339 compiler.misc.eq.bounds=\ 2340 equality constraints: {0} 2341 2342 # 0: list of type 2343 compiler.misc.upper.bounds=\ 2344 lower bounds: {0} 2345 2346 # 0: list of type, 1: type, 2: type 2347 compiler.misc.infer.no.conforming.instance.exists=\ 2348 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2} 2349 2350 # 0: list of type, 1: message segment 2351 compiler.misc.infer.no.conforming.assignment.exists=\ 2352 cannot infer type-variable(s) {0}\n\ 2353 (argument mismatch; {1}) 2354 2355 # 0: list of type 2356 compiler.misc.infer.arg.length.mismatch=\ 2357 cannot infer type-variable(s) {0}\n\ 2358 (actual and formal argument lists differ in length) 2359 2360 # 0: list of type, 1: message segment 2361 compiler.misc.infer.varargs.argument.mismatch=\ 2362 cannot infer type-variable(s) {0}\n\ 2363 (varargs mismatch; {1}) 2364 2365 # 0: type, 1: list of type 2366 compiler.misc.inferred.do.not.conform.to.upper.bounds=\ 2367 inferred type does not conform to upper bound(s)\n\ 2368 inferred: {0}\n\ 2369 upper bound(s): {1} 2370 2371 # 0: type, 1: list of type 2372 compiler.misc.inferred.do.not.conform.to.lower.bounds=\ 2373 inferred type does not conform to lower bound(s)\n\ 2374 inferred: {0}\n\ 2375 lower bound(s): {1} 2376 2377 # 0: type, 1: list of type 2378 compiler.misc.inferred.do.not.conform.to.eq.bounds=\ 2379 inferred type does not conform to equality constraint(s)\n\ 2380 inferred: {0}\n\ 2381 equality constraints(s): {1} 2382 2383 # 0: symbol 2384 compiler.misc.diamond=\ 2385 {0}<> 2386 2387 # 0: type 2388 compiler.misc.diamond.non.generic=\ 2389 cannot use ''<>'' with non-generic class {0} 2390 2391 # 0: list of type, 1: message segment 2392 compiler.misc.diamond.invalid.arg=\ 2393 type argument {0} inferred for {1} is not allowed in this context\n\ 2394 inferred argument is not expressible in the Signature attribute 2395 2396 # 0: list of type, 1: message segment 2397 compiler.misc.diamond.invalid.args=\ 2398 type arguments {0} inferred for {1} are not allowed in this context\n\ 2399 inferred arguments are not expressible in the Signature attribute 2400 2401 # 0: type 2402 compiler.misc.diamond.and.explicit.params=\ 2403 cannot use ''<>'' with explicit type parameters for constructor 2404 2405 compiler.misc.mref.infer.and.explicit.params=\ 2406 cannot use raw constructor reference with explicit type parameters for constructor 2407 2408 # 0: type, 1: list of type 2409 compiler.misc.explicit.param.do.not.conform.to.bounds=\ 2410 explicit type argument {0} does not conform to declared bound(s) {1} 2411 2412 compiler.misc.arg.length.mismatch=\ 2413 actual and formal argument lists differ in length 2414 2415 # 0: string 2416 compiler.misc.wrong.number.type.args=\ 2417 wrong number of type arguments; required {0} 2418 2419 # 0: message segment 2420 compiler.misc.no.conforming.assignment.exists=\ 2421 argument mismatch; {0} 2422 2423 # 0: message segment 2424 compiler.misc.varargs.argument.mismatch=\ 2425 varargs mismatch; {0} 2426 2427 ##### 2428 2429 # 0: symbol or type, 1: file name 2430 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\ 2431 auxiliary class {0} in {1} should not be accessed from outside its own source file 2432 2433 ## The first argument ({0}) is a "kindname". 2434 # 0: kind name, 1: symbol, 2: symbol 2435 compiler.err.abstract.cant.be.accessed.directly=\ 2436 abstract {0} {1} in {2} cannot be accessed directly 2437 2438 ## The first argument ({0}) is a "kindname". 2439 # 0: symbol kind, 1: symbol 2440 compiler.err.non-static.cant.be.ref=\ 2441 non-static {0} {1} cannot be referenced from a static context 2442 2443 # 0: symbol kind, 1: symbol 2444 compiler.misc.bad.static.method.in.unbound.lookup=\ 2445 unexpected static {0} {1} found in unbound lookup 2446 2447 # 0: symbol kind, 1: symbol 2448 compiler.misc.bad.instance.method.in.unbound.lookup=\ 2449 unexpected instance {0} {1} found in unbound lookup 2450 2451 # 0: symbol kind, 1: symbol 2452 compiler.misc.bad.static.method.in.bound.lookup=\ 2453 unexpected static {0} {1} found in bound lookup 2454 2455 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list 2456 ## of kindnames (the list should be identical to that provided in source. 2457 # 0: set of kind name, 1: set of kind name 2458 compiler.err.unexpected.type=\ 2459 unexpected type\n\ 2460 required: {0}\n\ 2461 found: {1} 2462 2463 compiler.err.unexpected.lambda=\ 2464 lambda expression not expected here 2465 2466 compiler.err.unexpected.mref=\ 2467 method reference not expected here 2468 2469 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.) 2470 ## The second argument {1} is the non-resolved symbol 2471 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method) 2472 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method) 2473 # 0: kind name, 1: name, 2: unused, 3: unused 2474 compiler.err.cant.resolve=\ 2475 cannot find symbol\n\ 2476 symbol: {0} {1} 2477 2478 # 0: kind name, 1: name, 2: unused, 3: list of type 2479 compiler.err.cant.resolve.args=\ 2480 cannot find symbol\n\ 2481 symbol: {0} {1}({3}) 2482 2483 # 0: kind name, 1: name, 2: unused, 3: list of type 2484 compiler.misc.cant.resolve.args=\ 2485 cannot find symbol\n\ 2486 symbol: {0} {1}({3}) 2487 2488 # 0: kind name, 1: name, 2: list of type, 3: list of type 2489 compiler.err.cant.resolve.args.params=\ 2490 cannot find symbol\n\ 2491 symbol: {0} <{2}>{1}({3}) 2492 2493 ## arguments from {0} to {3} have the same meaning as above 2494 ## The fifth argument {4} is a location subdiagnostic (see below) 2495 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment 2496 compiler.err.cant.resolve.location=\ 2497 cannot find symbol\n\ 2498 symbol: {0} {1}\n\ 2499 location: {4} 2500 2501 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment 2502 compiler.err.cant.resolve.location.args=\ 2503 cannot find symbol\n\ 2504 symbol: {0} {1}({3})\n\ 2505 location: {4} 2506 2507 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment 2508 compiler.err.cant.resolve.location.args.params=\ 2509 cannot find symbol\n\ 2510 symbol: {0} <{2}>{1}({3})\n\ 2511 location: {4} 2512 2513 ### Following are replicated/used for method reference diagnostics 2514 2515 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment 2516 compiler.misc.cant.resolve.location.args=\ 2517 cannot find symbol\n\ 2518 symbol: {0} {1}({3})\n\ 2519 location: {4} 2520 2521 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment 2522 compiler.misc.cant.resolve.location.args.params=\ 2523 cannot find symbol\n\ 2524 symbol: {0} <{2}>{1}({3})\n\ 2525 location: {4} 2526 2527 ##a location subdiagnostic is composed as follows: 2528 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.) 2529 ## The second argument {1} is the location name 2530 ## The third argument {2} is the location type (only when {1} is a variable name) 2531 2532 # 0: kind name, 1: type or symbol, 2: unused 2533 compiler.misc.location=\ 2534 {0} {1} 2535 2536 # 0: kind name, 1: symbol, 2: type 2537 compiler.misc.location.1=\ 2538 {0} {1} of type {2} 2539 2540 ## The following are all possible string for "kindname". 2541 ## They should be called whatever the JLS calls them after it been translated 2542 ## to the appropriate language. 2543 # compiler.misc.kindname.constructor=\ 2544 # static member 2545 compiler.misc.kindname.annotation=\ 2546 @interface 2547 2548 compiler.misc.kindname.constructor=\ 2549 constructor 2550 2551 compiler.misc.kindname.enum=\ 2552 enum 2553 2554 compiler.misc.kindname.interface=\ 2555 interface 2556 2557 compiler.misc.kindname.static=\ 2558 static 2559 2560 compiler.misc.kindname.type.variable=\ 2561 type variable 2562 2563 compiler.misc.kindname.type.variable.bound=\ 2564 bound of type variable 2565 2566 compiler.misc.kindname.variable=\ 2567 variable 2568 2569 compiler.misc.kindname.value=\ 2570 value 2571 2572 compiler.misc.kindname.method=\ 2573 method 2574 2575 compiler.misc.kindname.class=\ 2576 class 2577 2578 compiler.misc.kindname.package=\ 2579 package 2580 2581 compiler.misc.kindname.module=\ 2582 module 2583 2584 compiler.misc.kindname.static.init=\ 2585 static initializer 2586 2587 compiler.misc.kindname.instance.init=\ 2588 instance initializer 2589 2590 ##### 2591 2592 compiler.misc.no.args=\ 2593 no arguments 2594 2595 # 0: message segment 2596 compiler.err.override.static=\ 2597 {0}\n\ 2598 overriding method is static 2599 2600 # 0: message segment, 1: set of flag 2601 compiler.err.override.meth=\ 2602 {0}\n\ 2603 overridden method is {1} 2604 2605 # 0: message segment, 1: type 2606 compiler.err.override.meth.doesnt.throw=\ 2607 {0}\n\ 2608 overridden method does not throw {1} 2609 2610 # In the following string {1} is a space separated list of Java Keywords, as 2611 # they would have been declared in the source code 2612 # 0: message segment, 1: set of flag or string 2613 compiler.err.override.weaker.access=\ 2614 {0}\n\ 2615 attempting to assign weaker access privileges; was {1} 2616 2617 # 0: message segment, 1: type, 2: type 2618 compiler.err.override.incompatible.ret=\ 2619 {0}\n\ 2620 return type {1} is not compatible with {2} 2621 2622 # 0: message segment, 1: type, 2: type 2623 compiler.warn.override.unchecked.ret=\ 2624 {0}\n\ 2625 return type requires unchecked conversion from {1} to {2} 2626 2627 # 0: message segment, 1: type 2628 compiler.warn.override.unchecked.thrown=\ 2629 {0}\n\ 2630 overridden method does not throw {1} 2631 2632 # 0: symbol 2633 compiler.warn.override.equals.but.not.hashcode=\ 2634 Class {0} overrides equals, but neither it nor any superclass overrides hashCode method 2635 2636 ## The following are all possible strings for the first argument ({0}) of the 2637 ## above strings. 2638 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2639 compiler.misc.cant.override=\ 2640 {0} in {1} cannot override {2} in {3} 2641 2642 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2643 compiler.misc.cant.hide=\ 2644 {0} in {1} cannot hide {2} in {3} 2645 2646 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2647 compiler.misc.cant.implement=\ 2648 {0} in {1} cannot implement {2} in {3} 2649 2650 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2651 compiler.misc.clashes.with=\ 2652 {0} in {1} clashes with {2} in {3} 2653 2654 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2655 compiler.misc.unchecked.override=\ 2656 {0} in {1} overrides {2} in {3} 2657 2658 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2659 compiler.misc.unchecked.implement=\ 2660 {0} in {1} implements {2} in {3} 2661 2662 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2663 compiler.misc.unchecked.clash.with=\ 2664 {0} in {1} overrides {2} in {3} 2665 2666 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2667 compiler.misc.varargs.override=\ 2668 {0} in {1} overrides {2} in {3} 2669 2670 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2671 compiler.misc.varargs.implement=\ 2672 {0} in {1} implements {2} in {3} 2673 2674 # 0: symbol, 1: symbol, 2: symbol, 3: symbol 2675 compiler.misc.varargs.clash.with=\ 2676 {0} in {1} overrides {2} in {3} 2677 2678 # 0: kind name, 1: symbol, 2: symbol, 3: message segment 2679 compiler.misc.inapplicable.method=\ 2680 {0} {1}.{2} is not applicable\n\ 2681 ({3}) 2682 2683 ######################################## 2684 # Diagnostics for language feature changes. 2685 # Such diagnostics have a common template which can be customized by using a feature 2686 # diagnostic fragment (one of those given below). 2687 ######################################## 2688 2689 # 0: message segment (feature), 1: string (found version), 2: string (expected version) 2690 compiler.err.feature.not.supported.in.source=\ 2691 {0} is 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.err.feature.not.supported.in.source.plural=\ 2696 {0} are 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=\ 2701 {0} is not supported in -source {1}\n\ 2702 (use -source {2} or higher to enable {0}) 2703 2704 # 0: message segment (feature), 1: string (found version), 2: string (expected version) 2705 compiler.misc.feature.not.supported.in.source.plural=\ 2706 {0} are not supported in -source {1}\n\ 2707 (use -source {2} or higher to enable {0}) 2708 2709 # 0: message segment (feature) 2710 compiler.err.preview.feature.disabled=\ 2711 {0} is a preview feature and is disabled by default.\n\ 2712 (use --enable-preview to enable {0}) 2713 2714 # 0: message segment (feature) 2715 compiler.err.preview.feature.disabled.plural=\ 2716 {0} are a preview feature and are disabled by default.\n\ 2717 (use --enable-preview to enable {0}) 2718 2719 # 0: file object (classfile), 1: string (expected version) 2720 compiler.err.preview.feature.disabled.classfile=\ 2721 classfile for {0} uses preview features of Java SE {1}.\n\ 2722 (use --enable-preview to allow loading of classfiles which contain preview features) 2723 2724 # 0: message segment (feature) 2725 compiler.warn.preview.feature.use=\ 2726 {0} is a preview feature and may be removed in a future release. 2727 2728 # 0: message segment (feature) 2729 compiler.warn.preview.feature.use.plural=\ 2730 {0} are a preview feature and may be removed in a future release. 2731 2732 # 0: file object (classfile), 1: string (expected version) 2733 compiler.warn.preview.feature.use.classfile=\ 2734 classfile for {0} uses preview features of Java SE {1}. 2735 2736 2737 compiler.misc.feature.modules=\ 2738 modules 2739 2740 compiler.misc.feature.diamond.and.anon.class=\ 2741 ''<>'' with anonymous inner classes 2742 2743 compiler.misc.feature.binary.lit=\ 2744 binary literals 2745 2746 compiler.misc.feature.underscore.lit=\ 2747 underscores in literals 2748 2749 compiler.misc.feature.try.with.resources=\ 2750 try-with-resources 2751 2752 compiler.misc.feature.var.in.try.with.resources=\ 2753 variables in try-with-resources 2754 2755 compiler.misc.feature.type.annotations=\ 2756 type annotations 2757 2758 compiler.misc.feature.annotations.after.type.params=\ 2759 annotations after method type parameters 2760 2761 compiler.misc.feature.repeatable.annotations=\ 2762 repeated annotations 2763 2764 compiler.misc.feature.diamond=\ 2765 diamond operator 2766 2767 compiler.misc.feature.multicatch=\ 2768 multi-catch statements 2769 2770 compiler.misc.feature.string.switch=\ 2771 strings in switch 2772 2773 compiler.misc.feature.lambda=\ 2774 lambda expressions 2775 2776 compiler.misc.feature.method.references=\ 2777 method references 2778 2779 compiler.misc.feature.default.methods=\ 2780 default methods 2781 2782 compiler.misc.feature.intersection.types.in.cast=\ 2783 intersection types 2784 2785 compiler.misc.feature.static.intf.methods=\ 2786 static interface methods 2787 2788 compiler.misc.feature.static.intf.method.invoke=\ 2789 static interface method invocations 2790 2791 compiler.misc.feature.private.intf.methods=\ 2792 private interface methods 2793 2794 compiler.warn.underscore.as.identifier=\ 2795 as of release 9, ''_'' is a keyword, and may not be used as an identifier 2796 2797 compiler.err.underscore.as.identifier=\ 2798 as of release 9, ''_'' is a keyword, and may not be used as an identifier 2799 2800 compiler.err.underscore.as.identifier.in.lambda=\ 2801 ''_'' used as an identifier\n\ 2802 (use of ''_'' as an identifier is forbidden for lambda parameters) 2803 2804 compiler.err.enum.as.identifier=\ 2805 as of release 5, ''enum'' is a keyword, and may not be used as an identifier 2806 2807 compiler.err.assert.as.identifier=\ 2808 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier 2809 2810 # TODO 308: make a better error message 2811 compiler.err.this.as.identifier=\ 2812 as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\ 2813 which has to be the first parameter, and cannot be a lambda parameter 2814 2815 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\ 2816 receiver parameter not applicable for constructor of top-level class 2817 2818 # TODO 308: make a better error message 2819 # 0: annotation 2820 compiler.err.cant.type.annotate.scoping.1=\ 2821 scoping construct cannot be annotated with type-use annotation: {0} 2822 2823 # TODO 308: make a better error message 2824 # 0: list of annotation 2825 compiler.err.cant.type.annotate.scoping=\ 2826 scoping construct cannot be annotated with type-use annotations: {0} 2827 2828 # 0: type, 1: type 2829 compiler.err.incorrect.receiver.name=\ 2830 the receiver name does not match the enclosing class type\n\ 2831 required: {0}\n\ 2832 found: {1} 2833 2834 # 0: type, 1: type 2835 compiler.err.incorrect.receiver.type=\ 2836 the receiver type does not match the enclosing class type\n\ 2837 required: {0}\n\ 2838 found: {1} 2839 2840 # 0: type, 1: type 2841 compiler.err.incorrect.constructor.receiver.type=\ 2842 the receiver type does not match the enclosing outer class type\n\ 2843 required: {0}\n\ 2844 found: {1} 2845 2846 # 0: type, 1: type 2847 compiler.err.incorrect.constructor.receiver.name=\ 2848 the receiver name does not match the enclosing outer class type\n\ 2849 required: {0}\n\ 2850 found: {1} 2851 2852 compiler.err.no.annotations.on.dot.class=\ 2853 no annotations are allowed in the type of a class literal 2854 2855 ######################################## 2856 # Diagnostics for verbose resolution 2857 # used by Resolve (debug only) 2858 ######################################## 2859 2860 # 0: number, 1: symbol, 2: unused 2861 compiler.misc.applicable.method.found=\ 2862 #{0} applicable method found: {1} 2863 2864 # 0: number, 1: symbol, 2: message segment 2865 compiler.misc.applicable.method.found.1=\ 2866 #{0} applicable method found: {1}\n\ 2867 ({2}) 2868 2869 # 0: number, 1: symbol, 2: message segment 2870 compiler.misc.not.applicable.method.found=\ 2871 #{0} not applicable method found: {1}\n\ 2872 ({2}) 2873 2874 # 0: type 2875 compiler.misc.partial.inst.sig=\ 2876 partially instantiated to: {0} 2877 2878 # 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 2879 compiler.note.verbose.resolve.multi=\ 2880 resolving method {0} in type {1} to candidate {2}\n\ 2881 phase: {3}\n\ 2882 with actuals: {4}\n\ 2883 with type-args: {5}\n\ 2884 candidates: 2885 2886 # 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 2887 compiler.note.verbose.resolve.multi.1=\ 2888 erroneous resolution for method {0} in type {1}\n\ 2889 phase: {3}\n\ 2890 with actuals: {4}\n\ 2891 with type-args: {5}\n\ 2892 candidates: 2893 2894 # 0: symbol, 1: type, 2: type 2895 compiler.note.deferred.method.inst=\ 2896 Deferred instantiation of method {0}\n\ 2897 instantiated signature: {1}\n\ 2898 target-type: {2} 2899 2900 ######################################## 2901 # Diagnostics for lambda deduplication 2902 # used by LambdaToMethod (debug only) 2903 ######################################## 2904 2905 # 0: symbol 2906 compiler.note.verbose.l2m.deduplicate=\ 2907 deduplicating lambda implementation method {0} 2908 2909 ######################################## 2910 # Diagnostics for where clause implementation 2911 # used by the RichDiagnosticFormatter. 2912 ######################################## 2913 2914 compiler.misc.type.null=\ 2915 <null> 2916 2917 # X#n (where n is an int id) is disambiguated tvar name 2918 # 0: name, 1: number 2919 compiler.misc.type.var=\ 2920 {0}#{1} 2921 2922 # CAP#n (where n is an int id) is an abbreviation for 'captured type' 2923 # 0: number 2924 compiler.misc.captured.type=\ 2925 CAP#{0} 2926 2927 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type' 2928 # 0: number 2929 compiler.misc.intersection.type=\ 2930 INT#{0} 2931 2932 # where clause for captured type: contains upper ('extends {1}') and lower 2933 # ('super {2}') bound along with the wildcard that generated this captured type ({3}) 2934 # 0: type, 1: type, 2: type, 3: type 2935 compiler.misc.where.captured=\ 2936 {0} extends {1} super: {2} from capture of {3} 2937 2938 # compact where clause for captured type: contains upper ('extends {1}') along 2939 # with the wildcard that generated this captured type ({3}) 2940 # 0: type, 1: type, 2: unused, 3: type 2941 compiler.misc.where.captured.1=\ 2942 {0} extends {1} from capture of {3} 2943 2944 # where clause for type variable: contains upper bound(s) ('extends {1}') along with 2945 # the kindname ({2}) and location ({3}) in which the typevar has been declared 2946 # 0: type, 1: list of type, 2: symbol kind, 3: symbol 2947 compiler.misc.where.typevar=\ 2948 {0} extends {1} declared in {2} {3} 2949 2950 # compact where clause for type variable: contains the kindname ({2}) and location ({3}) 2951 # in which the typevar has been declared 2952 # 0: type, 1: list of type, 2: symbol kind, 3: symbol 2953 compiler.misc.where.typevar.1=\ 2954 {0} declared in {2} {3} 2955 2956 # where clause for fresh type variable: contains upper bound(s) ('extends {1}'). 2957 # Since a fresh type-variable is synthetic - there's no location/kindname here. 2958 # 0: type, 1: list of type 2959 compiler.misc.where.fresh.typevar=\ 2960 {0} extends {1} 2961 2962 # where clause for type variable: contains all the upper bound(s) ('extends {1}') 2963 # of this intersection type 2964 # 0: type, 1: list of type 2965 compiler.misc.where.intersection=\ 2966 {0} extends {1} 2967 2968 ### Where clause headers ### 2969 compiler.misc.where.description.captured=\ 2970 where {0} is a fresh type-variable: 2971 2972 # 0: set of type 2973 compiler.misc.where.description.typevar=\ 2974 where {0} is a type-variable: 2975 2976 # 0: set of type 2977 compiler.misc.where.description.intersection=\ 2978 where {0} is an intersection type: 2979 2980 # 0: set of type 2981 compiler.misc.where.description.captured.1=\ 2982 where {0} are fresh type-variables: 2983 2984 # 0: set of type 2985 compiler.misc.where.description.typevar.1=\ 2986 where {0} are type-variables: 2987 2988 # 0: set of type 2989 compiler.misc.where.description.intersection.1=\ 2990 where {0} are intersection types: 2991 2992 ### 2993 # errors related to doc comments 2994 2995 compiler.err.dc.bad.entity=\ 2996 bad HTML entity 2997 2998 compiler.err.dc.bad.gt=\ 2999 bad use of ''>'' 3000 3001 compiler.err.dc.bad.inline.tag=\ 3002 incorrect use of inline tag 3003 3004 compiler.err.dc.identifier.expected=\ 3005 identifier expected 3006 3007 compiler.err.dc.malformed.html=\ 3008 malformed HTML 3009 3010 compiler.err.dc.missing.semicolon=\ 3011 semicolon missing 3012 3013 compiler.err.dc.no.content=\ 3014 no content 3015 3016 compiler.err.dc.no.tag.name=\ 3017 no tag name after '@' 3018 3019 compiler.err.dc.gt.expected=\ 3020 ''>'' expected 3021 3022 compiler.err.dc.ref.bad.parens=\ 3023 '')'' missing in reference 3024 3025 compiler.err.dc.ref.syntax.error=\ 3026 syntax error in reference 3027 3028 compiler.err.dc.ref.unexpected.input=\ 3029 unexpected text 3030 3031 compiler.err.dc.unexpected.content=\ 3032 unexpected content 3033 3034 compiler.err.dc.unterminated.inline.tag=\ 3035 unterminated inline tag 3036 3037 compiler.err.dc.unterminated.signature=\ 3038 unterminated signature 3039 3040 compiler.err.dc.unterminated.string=\ 3041 unterminated string 3042 3043 ### 3044 # errors related to modules 3045 3046 compiler.err.expected.module=\ 3047 expected ''module'' 3048 3049 # 0: symbol 3050 compiler.err.module.not.found=\ 3051 module not found: {0} 3052 3053 # 0: symbol 3054 compiler.warn.module.not.found=\ 3055 module not found: {0} 3056 3057 compiler.err.too.many.modules=\ 3058 too many module declarations found 3059 3060 compiler.err.module.not.found.on.module.source.path=\ 3061 module not found on module source path 3062 3063 compiler.err.not.in.module.on.module.source.path=\ 3064 not in a module on the module source path 3065 3066 # 0: symbol 3067 compiler.err.duplicate.module=\ 3068 duplicate module: {0} 3069 3070 # 0: symbol 3071 compiler.err.duplicate.requires=\ 3072 duplicate requires: {0} 3073 3074 # 0: symbol 3075 compiler.err.conflicting.exports=\ 3076 duplicate or conflicting exports: {0} 3077 3078 # 0: symbol 3079 compiler.err.conflicting.opens=\ 3080 duplicate or conflicting opens: {0} 3081 3082 # 0: symbol 3083 compiler.err.conflicting.exports.to.module=\ 3084 duplicate or conflicting exports to module: {0} 3085 3086 # 0: symbol 3087 compiler.err.conflicting.opens.to.module=\ 3088 duplicate or conflicting opens to module: {0} 3089 3090 compiler.err.no.opens.unless.strong=\ 3091 ''opens'' only allowed in strong modules 3092 3093 # 0: symbol 3094 compiler.err.repeated.provides.for.service=\ 3095 multiple ''provides'' for service {0} 3096 3097 # 0: symbol, 1: symbol 3098 compiler.err.duplicate.provides=\ 3099 duplicate provides: service {0}, implementation {1} 3100 3101 # 0: symbol 3102 compiler.err.duplicate.uses=\ 3103 duplicate uses: {0} 3104 3105 # 0: symbol 3106 compiler.err.service.implementation.is.abstract=\ 3107 the service implementation is an abstract class: {0} 3108 3109 compiler.err.service.implementation.must.be.subtype.of.service.interface=\ 3110 the service implementation type must be a subtype of the service interface type, or \ 3111 have a public static no-args method named "provider" returning the service implementation 3112 3113 compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface=\ 3114 the "provider" method return type must be a subtype of the service interface type 3115 3116 # 0: symbol 3117 compiler.err.service.implementation.is.inner=\ 3118 the service implementation is an inner class: {0} 3119 3120 # 0: symbol 3121 compiler.err.service.definition.is.enum=\ 3122 the service definition is an enum: {0} 3123 3124 # 0: symbol 3125 compiler.err.service.implementation.doesnt.have.a.no.args.constructor=\ 3126 the service implementation does not have a default constructor: {0} 3127 3128 # 0: symbol 3129 compiler.err.service.implementation.no.args.constructor.not.public=\ 3130 the no arguments constructor of the service implementation is not public: {0} 3131 3132 # 0: symbol 3133 compiler.err.package.empty.or.not.found=\ 3134 package is empty or does not exist: {0} 3135 3136 # 0: symbol 3137 compiler.warn.package.empty.or.not.found=\ 3138 package is empty or does not exist: {0} 3139 3140 compiler.err.no.output.dir=\ 3141 no class output directory specified 3142 3143 compiler.err.unnamed.pkg.not.allowed.named.modules=\ 3144 unnamed package is not allowed in named modules 3145 3146 # 0: name, 1: name 3147 compiler.err.module.name.mismatch=\ 3148 module name {0} does not match expected name {1} 3149 3150 # 0: name, 1: name 3151 compiler.misc.module.name.mismatch=\ 3152 module name {0} does not match expected name {1} 3153 3154 # 0: name 3155 compiler.err.module.non.zero.opens=\ 3156 open module {0} has non-zero opens_count 3157 3158 # 0: name 3159 compiler.misc.module.non.zero.opens=\ 3160 open module {0} has non-zero opens_count 3161 3162 compiler.err.module.decl.sb.in.module-info.java=\ 3163 module declarations should be in a file named module-info.java 3164 3165 # 0: set of string 3166 compiler.err.too.many.patched.modules=\ 3167 too many patched modules ({0}), use --module-source-path 3168 3169 # 0: name, 1: name 3170 compiler.err.file.patched.and.msp=\ 3171 file accessible from both --patch-module and --module-source-path, \ 3172 but belongs to a different module on each path: {0}, {1} 3173 3174 compiler.err.processorpath.no.processormodulepath=\ 3175 illegal combination of -processorpath and --processor-module-path 3176 3177 # 0: symbol 3178 compiler.err.package.in.other.module=\ 3179 package exists in another module: {0} 3180 3181 # 0: symbol, 1: name, 2: symbol, 3: symbol 3182 compiler.err.package.clash.from.requires=\ 3183 module {0} reads package {1} from both {2} and {3} 3184 3185 # 0: name, 1: symbol, 2: symbol 3186 compiler.err.package.clash.from.requires.in.unnamed=\ 3187 the unnamed module reads package {0} from both {1} and {2} 3188 3189 # 0: string 3190 compiler.err.module.not.found.in.module.source.path=\ 3191 module {0} not found in module source path 3192 3193 compiler.err.output.dir.must.be.specified.with.dash.m.option=\ 3194 class output directory must be specified if -m option is used 3195 3196 compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=\ 3197 module source path must be specified if -m option is used 3198 3199 # 0: symbol 3200 compiler.err.service.implementation.not.in.right.module=\ 3201 service implementation must be defined in the same module as the provides directive 3202 3203 # 0: symbol 3204 compiler.err.cyclic.requires=\ 3205 cyclic dependence involving {0} 3206 3207 # 0: fragment, 1: name 3208 compiler.err.duplicate.module.on.path=\ 3209 duplicate module on {0}\nmodule in {1} 3210 3211 # 0: option name, 1: string 3212 compiler.warn.bad.name.for.option=\ 3213 bad name in value for {0} option: ''{1}'' 3214 3215 # 0: option name, 1: string 3216 compiler.err.bad.name.for.option=\ 3217 bad name in value for {0} option: ''{1}'' 3218 3219 # 0: option name, 1: symbol 3220 compiler.warn.module.for.option.not.found=\ 3221 module name in {0} option not found: {1} 3222 3223 compiler.err.addmods.all.module.path.invalid=\ 3224 --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module 3225 3226 # 0: symbol 3227 compiler.err.add.exports.with.release=\ 3228 exporting a package from system module {0} is not allowed with --release 3229 3230 # 0: symbol 3231 compiler.err.add.reads.with.release=\ 3232 adding read edges for system module {0} is not allowed with --release 3233 3234 compiler.warn.addopens.ignored=\ 3235 --add-opens has no effect at compile time 3236 3237 compiler.misc.locn.module_source_path=\ 3238 module source path 3239 3240 compiler.misc.locn.upgrade_module_path=\ 3241 upgrade module path 3242 3243 compiler.misc.locn.system_modules=\ 3244 system modules 3245 3246 compiler.misc.locn.module_path=\ 3247 application module path 3248 3249 compiler.misc.cant.resolve.modules=\ 3250 cannot resolve modules 3251 3252 compiler.misc.bad.requires.flag=\ 3253 bad requires flag: {0} 3254 3255 # 0: string 3256 compiler.err.invalid.module.specifier=\ 3257 module specifier not allowed: {0} 3258 3259 # 0: symbol 3260 compiler.warn.service.provided.but.not.exported.or.used=\ 3261 service interface provided but not exported or used 3262 3263 # 0: kind name, 1: symbol, 2: symbol 3264 compiler.warn.leaks.not.accessible=\ 3265 {0} {1} in module {2} is not accessible to clients that require this module 3266 # 0: kind name, 1: symbol, 2: symbol 3267 compiler.warn.leaks.not.accessible.unexported=\ 3268 {0} {1} in module {2} is not exported 3269 # 0: kind name, 1: symbol, 2: symbol 3270 compiler.warn.leaks.not.accessible.not.required.transitive=\ 3271 {0} {1} in module {2} is not indirectly exported using 'requires transitive' 3272 # 0: kind name, 1: symbol, 2: symbol 3273 compiler.warn.leaks.not.accessible.unexported.qualified=\ 3274 {0} {1} in module {2} may not be visible to all clients that require this module 3275 3276 ### 3277 # errors related to options 3278 3279 # 0: string, 1: string 3280 compiler.err.illegal.argument.for.option=\ 3281 illegal argument for {0}: {1} 3282 3283 3284 ############################################ 3285 # messages previouly at javac.properties 3286 3287 compiler.err.empty.A.argument=\ 3288 -A requires an argument; use ''-Akey'' or ''-Akey=value'' 3289 3290 # 0: string 3291 compiler.err.invalid.A.key=\ 3292 key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers 3293 3294 # 0: string 3295 compiler.err.invalid.flag=\ 3296 invalid flag: {0} 3297 3298 compiler.err.profile.bootclasspath.conflict=\ 3299 profile and bootclasspath options cannot be used together 3300 3301 # 0: string 3302 compiler.err.invalid.profile=\ 3303 invalid profile: {0} 3304 3305 # 0: string 3306 compiler.err.invalid.target=\ 3307 invalid target release: {0} 3308 3309 # 0: option name, 1: target 3310 compiler.err.option.not.allowed.with.target=\ 3311 option {0} not allowed with target {1} 3312 3313 # 0: string 3314 compiler.err.option.too.many=\ 3315 option {0} can only be specified once 3316 3317 compiler.err.no.source.files=\ 3318 no source files 3319 3320 compiler.err.no.source.files.classes=\ 3321 no source files or class names 3322 3323 # 0: string 3324 compiler.err.req.arg=\ 3325 {0} requires an argument 3326 3327 # 0: string 3328 compiler.err.invalid.source=\ 3329 invalid source release: {0} 3330 3331 # 0: string, 1: string 3332 compiler.err.error.writing.file=\ 3333 error writing {0}; {1} 3334 3335 compiler.err.sourcepath.modulesourcepath.conflict=\ 3336 cannot specify both --source-path and --module-source-path 3337 3338 # 0: string, 1: target 3339 compiler.warn.source.target.conflict=\ 3340 source release {0} requires target release {1} 3341 3342 # 0: string, 1: target 3343 compiler.warn.target.default.source.conflict=\ 3344 target release {0} conflicts with default source release {1} 3345 3346 # 0: profile, 1: target 3347 compiler.warn.profile.target.conflict=\ 3348 profile {0} is not valid for target release {1} 3349 3350 # 0: string 3351 compiler.err.file.not.directory=\ 3352 not a directory: {0} 3353 3354 # 0: object 3355 compiler.err.file.not.file=\ 3356 not a file: {0} 3357 3358 compiler.err.two.class.loaders.1=\ 3359 javac is split between multiple class loaders: check your configuration 3360 3361 # 0: url, 1: url 3362 compiler.err.two.class.loaders.2=\ 3363 javac is split between multiple class loaders:\n\ 3364 one class comes from file: {0}\n\ 3365 while javac comes from {1} 3366 3367 # 0: string, 1: string 3368 compiler.err.bad.value.for.option=\ 3369 bad value for {0} option: ''{1}'' 3370 3371 # 0: string 3372 compiler.err.no.value.for.option=\ 3373 no value for {0} option 3374 3375 # 0: string 3376 compiler.err.repeated.value.for.patch.module=\ 3377 --patch-module specified more than once for {0} 3378 3379 # 0: string 3380 compiler.err.unmatched.quote=\ 3381 unmatched quote in environment variable {0} 3382 3383 # 0: option name 3384 compiler.err.release.bootclasspath.conflict=\ 3385 option {0} cannot be used together with --release 3386 3387 # 0: string 3388 compiler.err.unsupported.release.version=\ 3389 release version {0} not supported 3390 3391 # 0: string 3392 compiler.err.file.not.found=\ 3393 file not found: {0} 3394 3395 # 0: string, 1: source 3396 compiler.err.preview.not.latest=\ 3397 invalid source release {0} with --enable-preview\n\ 3398 (preview language features are only supported for release {1}) 3399 3400 compiler.err.preview.without.source.or.release=\ 3401 --enable-preview must be used with either -source or --release