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