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