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