1 #
   2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
  27 # are preceded by a stylized comment describing the type of the corresponding
  28 # values.
  29 # The types currently in use are
  30 #
  31 # boolean           true or false
  32 # file name         the name of an input file; e.g.   MyFile.java
  33 # message segment   a sub-message; see compiler.misc.*
  34 # modifier          a Java modifier; e.g. public, private, protected
  35 # name              a name, typically a Java identifier
  36 # number            an integer
  37 # option name       the name of a command line option
  38 # source version    a source version number, such as 1.5, 1.6, 1.7
  39 # string            a general string
  40 # symbol            the name of a declared type
  41 # symbol kind       a description of the kind of a declaration; see compiler.misc.kindname.*
  42 # token             the name of a non-terminal in source code; see compiler.misc.token.*
  43 # type              a Java type; e.g. int, X, X<T>
  44 # unused            the value is not used in this message
  45 #
  46 # list of X         a comma-separated list of items; e.g. list of type
  47 # X or Y            alternation; e.g. message segment or type
  48 # set of X          a comma-separated collection of items; e.g. set of modifier
  49 #
  50 # These may be composed: e.g.   list of type or message segment
  51 #
  52 # These comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
  53 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
  54 # MessageInfo can also be run as a standalone utility providing more facilities
  55 # for manipulating this file. For more details, see MessageInfo.java.
  56 
  57 ##
  58 ## errors
  59 ##
  60 
  61 # 0: symbol
  62 compiler.err.abstract.cant.be.instantiated=\
  63     {0} is abstract; cannot be instantiated
  64 
  65 compiler.err.abstract.meth.cant.have.body=\
  66     abstract methods cannot have a body
  67 
  68 compiler.err.already.annotated=\
  69     {0} {1} has already been annotated
  70 
  71 # 0: symbol, 1: symbol
  72 compiler.err.already.defined=\
  73     {0} is already defined in {1}
  74 
  75 # 0: string
  76 compiler.err.already.defined.single.import=\
  77     {0} is already defined in a single-type import
  78 
  79 # 0: string
  80 compiler.err.already.defined.static.single.import=\
  81     {0} is already defined in a static single-type import
  82 
  83 compiler.err.already.defined.this.unit=\
  84     {0} is already defined in this compilation unit
  85 
  86 # 0: type, 1: list of name
  87 compiler.err.annotation.missing.default.value=\
  88     annotation {0} is missing value for the attribute {1}
  89 
  90 # 0: type, 1: list of name
  91 compiler.err.annotation.missing.default.value.1=\
  92     annotation {0} is missing values for attributes {1}
  93 
  94 # 0: type
  95 compiler.err.annotation.not.valid.for.type=\
  96     annotation not valid for a value of type {0}
  97 
  98 compiler.err.annotation.type.not.applicable=\
  99     annotation type not applicable to this kind of declaration
 100 
 101 compiler.err.annotation.value.must.be.annotation=\
 102     annotation value must be an annotation
 103 
 104 compiler.err.annotation.value.must.be.class.literal=\
 105     annotation value must be a class literal
 106 
 107 compiler.err.annotation.value.must.be.name.value=\
 108     annotation values must be of the form ''name=value''
 109 
 110 compiler.err.annotation.value.not.allowable.type=\
 111     annotation value not of an allowable type
 112 
 113 compiler.err.anon.class.impl.intf.no.args=\
 114     anonymous class implements interface; cannot have arguments
 115 
 116 compiler.err.anon.class.impl.intf.no.typeargs=\
 117     anonymous class implements interface; cannot have type arguments
 118 
 119 compiler.err.anon.class.impl.intf.no.qual.for.new=\
 120     anonymous class implements interface; cannot have qualifier for new
 121 
 122 # 0: symbol, 1: symbol, 2: symbol
 123 compiler.err.array.and.varargs=\
 124     cannot declare both {0} and {1} in {2}
 125 
 126 compiler.err.array.dimension.missing=\
 127     array dimension missing
 128 
 129 # 0: type
 130 compiler.err.array.req.but.found=\
 131     array required, but {0} found
 132 
 133 compiler.err.assignment.from.super-bound=\
 134     assigning from wildcard {0}
 135 
 136 compiler.err.assignment.to.extends-bound=\
 137     assigning to wildcard {0}
 138 
 139 compiler.err.attribute.value.must.be.constant=\
 140     attribute value must be constant
 141 
 142 compiler.err.break.outside.switch.loop=\
 143     break outside switch or loop
 144 
 145 # 0: name
 146 compiler.err.call.must.be.first.stmt.in.ctor=\
 147     call to {0} must be first statement in constructor
 148 
 149 compiler.err.cant.apply.symbol=\
 150     {0} {1} in {4} {5} cannot be applied to given types\n\
 151     required: {2}\n\
 152     found: {3}
 153 
 154 # 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
 155 compiler.err.cant.apply.symbol.1=\
 156     {0} {1} in {4} {5} cannot be applied to given types;\n\
 157     required: {2}\n\
 158     found: {3}\n\
 159     reason: {6}
 160 
 161 # 0: symbol kind, 1: name, 2: list of type
 162 compiler.err.cant.apply.symbols=\
 163     no suitable {0} found for {1}({2})
 164 
 165 # 0: symbol
 166 compiler.err.cant.assign.val.to.final.var=\
 167     cannot assign a value to final variable {0}
 168 
 169 # 0: type
 170 compiler.err.cant.deref=\
 171     {0} cannot be dereferenced
 172 
 173 compiler.err.cant.extend.intf.annotation=\
 174     ''extends'' not allowed for @interfaces
 175 
 176 # 0: symbol
 177 compiler.err.cant.inherit.from.final=\
 178     cannot inherit from final {0}
 179 
 180 # 0: symbol
 181 compiler.err.cant.ref.before.ctor.called=\
 182     cannot reference {0} before supertype constructor has been called
 183 
 184 compiler.err.cant.ret.val.from.meth.decl.void=\
 185     cannot return a value from method whose result type is void
 186 
 187 compiler.err.cant.select.static.class.from.param.type=\
 188     cannot select a static class from a parameterized type
 189 
 190 # 0: symbol, 1: string, 2: string
 191 compiler.err.cant.inherit.diff.arg=\
 192     {0} cannot be inherited with different arguments: <{1}> and <{2}>
 193 
 194 compiler.err.catch.without.try=\
 195     ''catch'' without ''try''
 196 
 197 # 0: symbol kind, 1: symbol
 198 compiler.err.clash.with.pkg.of.same.name=\
 199     {0} {1} clashes with package of same name
 200 
 201 compiler.err.const.expr.req=\
 202     constant expression required
 203 
 204 compiler.err.cont.outside.loop=\
 205     continue outside of loop
 206 
 207 # 0: symbol
 208 compiler.err.cyclic.inheritance=\
 209     cyclic inheritance involving {0}
 210 
 211 compiler.err.cyclic.annotation.element=\
 212     cyclic annotation element type
 213 
 214 # 0: unused
 215 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
 216     call to super not allowed in enum constructor
 217 
 218 # 0: type
 219 compiler.err.no.superclass=\
 220     {0} has no superclass
 221 
 222 compiler.err.wrong.target.for.polymorphic.signature.definition=\
 223     MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
 224 
 225 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
 226 compiler.err.concrete.inheritance.conflict=\
 227     methods {0} from {1} and {2} from {3} are inherited with the same signature
 228 
 229 compiler.err.default.allowed.in.intf.annotation.member=\
 230     default value only allowed in an @interface member
 231 
 232 # 0: symbol
 233 compiler.err.doesnt.exist=\
 234     package {0} does not exist
 235 
 236 compiler.err.duplicate.annotation=\
 237     duplicate annotation
 238 
 239 # 0: name, 1: type
 240 compiler.err.duplicate.annotation.member.value=\
 241     duplicate annotation member value {0} in {1}
 242 
 243 # 0: name
 244 compiler.err.duplicate.class=\
 245     duplicate class: {0}
 246 
 247 compiler.err.duplicate.case.label=\
 248     duplicate case label
 249 
 250 compiler.err.duplicate.default.label=\
 251     duplicate default label
 252 
 253 compiler.err.else.without.if=\
 254     ''else'' without ''if''
 255 
 256 compiler.err.empty.char.lit=\
 257     empty character literal
 258 
 259 # 0: symbol
 260 compiler.err.encl.class.required=\
 261     an enclosing instance that contains {0} is required
 262 
 263 compiler.err.enum.annotation.must.be.enum.constant=\
 264     an enum annotation value must be an enum constant
 265 
 266 compiler.err.enum.cant.be.instantiated=\
 267     enum types may not be instantiated
 268 
 269 compiler.err.enum.label.must.be.unqualified.enum=\
 270     an enum switch case label must be the unqualified name of an enumeration constant
 271 
 272 compiler.err.enum.no.subclassing=\
 273     classes cannot directly extend java.lang.Enum
 274 
 275 compiler.err.enum.types.not.extensible=\
 276     enum types are not extensible
 277 
 278 compiler.err.enum.no.finalize=\
 279     enums cannot have finalize methods
 280 
 281 # 0: file name, 1: string
 282 compiler.err.error.reading.file=\
 283     error reading {0}; {1}
 284 
 285 # 0: type
 286 compiler.err.except.already.caught=\
 287     exception {0} has already been caught
 288 
 289 # 0: type
 290 compiler.err.except.never.thrown.in.try=\
 291     exception {0} is never thrown in body of corresponding try statement
 292 
 293 # 0: symbol
 294 compiler.err.final.parameter.may.not.be.assigned=\
 295     final parameter {0} may not be assigned
 296 
 297 # 0: symbol
 298 compiler.err.try.resource.may.not.be.assigned=\
 299     auto-closeable resource {0} may not be assigned
 300 
 301 # 0: symbol
 302 compiler.err.multicatch.parameter.may.not.be.assigned=\
 303     multi-catch parameter {0} may not be assigned
 304 
 305 # 0: type, 1: type
 306 compiler.err.multicatch.types.must.be.disjoint=\
 307     Alternatives in a multi-catch statement cannot be related by subclassing\n\
 308     Alternative {0} is a subclass of alternative {1}
 309 
 310 compiler.err.finally.without.try=\
 311     ''finally'' without ''try''
 312 
 313 # 0: type, 1: message segment
 314 compiler.err.foreach.not.applicable.to.type=\
 315     for-each not applicable to expression type\n\
 316     required: {1}\n\
 317     found:    {0}
 318 
 319 compiler.err.fp.number.too.large=\
 320     floating point number too large
 321 
 322 compiler.err.fp.number.too.small=\
 323     floating point number too small
 324 
 325 compiler.err.generic.array.creation=\
 326     generic array creation
 327 
 328 compiler.err.generic.throwable=\
 329     a generic class may not extend java.lang.Throwable
 330 
 331 # 0: symbol
 332 compiler.err.icls.cant.have.static.decl=\
 333     Illegal static declaration in inner class {0}\n\
 334     modifier \''static\'' is only allowed in constant variable declarations
 335 
 336 # 0: string
 337 compiler.err.illegal.char=\
 338     illegal character: \\{0}
 339 
 340 compiler.err.illegal.char.for.encoding=\
 341     unmappable character for encoding {0}
 342 
 343 # 0: set of modifier, 1: set of modifier
 344 compiler.err.illegal.combination.of.modifiers=\
 345     illegal combination of modifiers: {0} and {1}
 346 
 347 compiler.err.illegal.enum.static.ref=\
 348     illegal reference to static field from initializer
 349 
 350 compiler.err.illegal.esc.char=\
 351     illegal escape character
 352 
 353 compiler.err.illegal.forward.ref=\
 354     illegal forward reference
 355 
 356 # 0: symbol
 357 compiler.warn.forward.ref=\
 358     reference to variable ''{0}'' before it has been initialized
 359 
 360 compiler.err.illegal.self.ref=\
 361     self-reference in initializer
 362 
 363 # 0: symbol
 364 compiler.warn.self.ref=\
 365     self-reference in initializer of variable ''{0}''
 366 
 367 compiler.err.illegal.generic.type.for.instof=\
 368     illegal generic type for instanceof
 369 
 370 # 0: type
 371 compiler.err.illegal.initializer.for.type=\
 372     illegal initializer for {0}
 373 
 374 compiler.err.illegal.line.end.in.char.lit=\
 375     illegal line end in character literal
 376 
 377 compiler.err.illegal.nonascii.digit=\
 378     illegal non-ASCII digit
 379 
 380 compiler.err.illegal.underscore=\
 381     illegal underscore
 382 
 383 # 0: symbol
 384 compiler.err.illegal.qual.not.icls=\
 385     illegal qualifier; {0} is not an inner class
 386 
 387 compiler.err.illegal.start.of.expr=\
 388     illegal start of expression
 389 
 390 compiler.err.illegal.start.of.type=\
 391     illegal start of type
 392 
 393 compiler.err.illegal.unicode.esc=\
 394     illegal unicode escape
 395 
 396 # 0: symbol
 397 compiler.err.import.requires.canonical=\
 398     import requires canonical name for {0}
 399 
 400 compiler.err.improperly.formed.type.param.missing=\
 401     improperly formed type, some parameters are missing
 402 
 403 compiler.err.improperly.formed.type.inner.raw.param=\
 404     improperly formed type, type arguments given on a raw type
 405 
 406 # 0: type, 1: type
 407 compiler.err.incomparable.types=\
 408     incomparable types: {0} and {1}
 409 
 410 # 0: number
 411 compiler.err.int.number.too.large=\
 412     integer number too large: {0}
 413 
 414 compiler.err.internal.error.cant.instantiate=\
 415     internal error; cannot instantiate {0} at {1} to ({2})
 416 
 417 compiler.err.intf.annotation.members.cant.have.params=\
 418     @interface members may not have parameters
 419 
 420 compiler.err.intf.annotation.cant.have.type.params=\
 421     @interface may not have type parameters
 422 
 423 compiler.err.intf.annotation.members.cant.have.type.params=\
 424     @interface members may not have type parameters
 425 
 426 # 0: symbol, 1: type
 427 compiler.err.intf.annotation.member.clash=\
 428     @interface member clashes with method ''{0}'' in {1}
 429 
 430 compiler.err.intf.expected.here=\
 431     interface expected here
 432 
 433 compiler.err.intf.meth.cant.have.body=\
 434     interface methods cannot have body
 435 
 436 compiler.err.invalid.annotation.member.type=\
 437     invalid type for annotation member
 438 
 439 compiler.err.invalid.binary.number=\
 440     binary numbers must contain at least one binary digit
 441 
 442 compiler.err.invalid.hex.number=\
 443     hexadecimal numbers must contain at least one hexadecimal digit
 444 
 445 compiler.err.invalid.meth.decl.ret.type.req=\
 446     invalid method declaration; return type required
 447 
 448 compiler.err.varargs.and.old.array.syntax=\
 449     legacy array notation not allowed on variable-arity parameter
 450 
 451 # 0: name
 452 compiler.err.label.already.in.use=\
 453     label {0} already in use
 454 
 455 # 0: symbol
 456 compiler.err.local.var.accessed.from.icls.needs.final=\
 457     local variable {0} is accessed from within inner class; needs to be declared final
 458 
 459 compiler.err.local.enum=\
 460     enum types must not be local
 461 
 462 compiler.err.cannot.create.array.with.type.arguments=\
 463     cannot create array with type arguments
 464 
 465 #
 466 # limits.  We don't give the limits in the diagnostic because we expect
 467 # them to change, yet we want to use the same diagnostic.  These are all
 468 # detected during code generation.
 469 #
 470 compiler.err.limit.code=\
 471     code too large
 472 
 473 compiler.err.limit.code.too.large.for.try.stmt=\
 474     code too large for try statement
 475 
 476 compiler.err.limit.dimensions=\
 477     array type has too many dimensions
 478 
 479 compiler.err.limit.locals=\
 480     too many local variables
 481 
 482 compiler.err.limit.parameters=\
 483     too many parameters
 484 
 485 compiler.err.limit.pool=\
 486     too many constants
 487 
 488 compiler.err.limit.pool.in.class=\
 489     too many constants in class {0}
 490 
 491 compiler.err.limit.stack=\
 492     code requires too much stack
 493 
 494 compiler.err.limit.string=\
 495     constant string too long
 496 
 497 compiler.err.limit.string.overflow=\
 498     UTF8 representation for string \"{0}...\" is too long for the constant pool
 499 
 500 compiler.err.malformed.fp.lit=\
 501     malformed floating point literal
 502 
 503 compiler.err.method.does.not.override.superclass=\
 504     method does not override or implement a method from a supertype
 505 
 506 compiler.err.missing.meth.body.or.decl.abstract=\
 507     missing method body, or declare abstract
 508 
 509 compiler.err.missing.ret.stmt=\
 510     missing return statement
 511 
 512 compiler.err.missing.ret.val=\
 513     missing return value
 514 
 515 # 0: set of modifier
 516 compiler.err.mod.not.allowed.here=\
 517     modifier {0} not allowed here
 518 
 519 compiler.err.intf.not.allowed.here=\
 520     interface not allowed here
 521 
 522 compiler.err.enums.must.be.static=\
 523     enum declarations allowed only in static contexts
 524 
 525 # 0: symbol, 1: symbol
 526 compiler.err.name.clash.same.erasure=\
 527     name clash: {0} and {1} have the same erasure
 528 
 529 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
 530 compiler.err.name.clash.same.erasure.no.override=\
 531     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
 532 
 533 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
 534 compiler.err.name.clash.same.erasure.no.override.1=\
 535     name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
 536     first method:  {2} in {3}\n\
 537     second method: {4} in {5}
 538 
 539 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
 540 compiler.err.name.clash.same.erasure.no.hide=\
 541     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
 542 
 543 compiler.err.name.reserved.for.internal.use=\
 544     {0} is reserved for internal use
 545 
 546 compiler.err.native.meth.cant.have.body=\
 547     native methods cannot have a body
 548 
 549 # 0: type, 1: type
 550 compiler.err.neither.conditional.subtype=\
 551     incompatible types for ?: neither is a subtype of the other\n\
 552     second operand: {0}\n\
 553     third operand : {1}
 554 
 555 compiler.err.new.not.allowed.in.annotation=\
 556     ''new'' not allowed in an annotation
 557 
 558 compiler.err.no.annotation.member=\
 559     no annotation member {0} in {1}
 560 
 561 compiler.err.no.encl.instance.of.type.in.scope=\
 562     no enclosing instance of type {0} is in scope
 563 
 564 compiler.err.no.intf.expected.here=\
 565     no interface expected here
 566 
 567 compiler.err.no.match.entry=\
 568     {0} has no match in entry in {1}; required {2}
 569 
 570 compiler.err.not.annotation.type=\
 571     {0} is not an annotation type
 572 
 573 # 0: symbol, 1: symbol
 574 compiler.err.not.def.access.class.intf.cant.access=\
 575     {0} in {1} is defined in an inaccessible class or interface
 576 
 577 # 0: symbol, 1: symbol
 578 compiler.err.not.def.public.cant.access=\
 579     {0} is not public in {1}; cannot be accessed from outside package
 580 
 581 # 0: name
 582 compiler.err.not.loop.label=\
 583     not a loop label: {0}
 584 
 585 compiler.err.not.stmt=\
 586     not a statement
 587 
 588 # 0: symbol
 589 compiler.err.not.encl.class=\
 590     not an enclosing class: {0}
 591 
 592 # 0: name, 1: type, 2: unused
 593 compiler.err.operator.cant.be.applied=\
 594     bad operand type {1} for unary operator ''{0}''
 595 
 596 # 0: name, 1: type, 2: type
 597 compiler.err.operator.cant.be.applied.1=\
 598     bad operand types for binary operator ''{0}''\n\
 599     first type:  {1}\n\
 600     second type: {2}
 601 
 602 compiler.err.pkg.annotations.sb.in.package-info.java=\
 603     package annotations should be in file package-info.java
 604 
 605 # 0: symbol
 606 compiler.err.pkg.clashes.with.class.of.same.name=\
 607     package {0} clashes with class of same name
 608 
 609 compiler.err.warnings.and.werror=\
 610     warnings found and -Werror specified
 611 
 612 # Errors related to annotation processing
 613 
 614 # 0: symbol, 1: string, 2: stack-trace
 615 compiler.err.proc.cant.access=\
 616     cannot access {0}\n\
 617     {1}\n\
 618     Consult the following stack trace for details.\n\
 619     {2}
 620 
 621 # 0: symbol, 1: string
 622 compiler.err.proc.cant.access.1=\
 623     cannot access {0}\n\
 624     {1}
 625 
 626 # 0: string
 627 compiler.err.proc.cant.find.class=\
 628     Could not find class file for ''{0}''.
 629 
 630 # Print a client-generated error message; assumed to be localized, no translation required
 631 # 0: string
 632 compiler.err.proc.messager=\
 633     {0}
 634 
 635 # 0: list of string
 636 compiler.err.proc.no.explicit.annotation.processing.requested=\
 637     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
 638 
 639 compiler.err.proc.no.service=\
 640     A service loader class could not be found.\n\
 641     Either java.util.ServiceLoader or sun.misc.Service must be available.
 642 
 643 compiler.err.proc.processor.bad.option.name=\
 644     Bad option name ''{0}'' provided by processor ''{1}''
 645 
 646 # 0: string
 647 compiler.err.proc.processor.cant.instantiate=\
 648     Could not instantiate an instance of processor ''{0}''
 649 
 650 compiler.err.proc.processor.constructor.error=\
 651     Exception thrown while constructing Processor object: {0}
 652 
 653 # 0: string
 654 compiler.err.proc.processor.not.found=\
 655     Annotation processor ''{0}'' not found
 656 
 657 # 0: string
 658 compiler.err.proc.processor.wrong.type=\
 659     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
 660 
 661 compiler.err.proc.service.problem=\
 662     Error creating a service loader to load Processors.
 663 
 664 compiler.err.proc.bad.config.file=\
 665     Bad service configuration file, or exception thrown while constructing Processor object: {0}
 666 
 667 compiler.err.proc.cant.create.loader=\
 668     Could not create class loader for annotation processors: {0}
 669 
 670 # 0: unused
 671 compiler.err.qualified.new.of.static.class=\
 672     qualified new of static class
 673 
 674 compiler.err.recursive.ctor.invocation=\
 675     recursive constructor invocation
 676 
 677 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
 678 compiler.err.ref.ambiguous=\
 679     reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
 680 
 681 compiler.err.repeated.annotation.target=\
 682     repeated annotation target
 683 
 684 compiler.err.repeated.interface=\
 685     repeated interface
 686 
 687 compiler.err.repeated.modifier=\
 688     repeated modifier
 689 
 690 # 0: symbol, 1: set of modifier, 2: symbol
 691 compiler.err.report.access=\
 692     {0} has {1} access in {2}
 693 
 694 compiler.err.ret.outside.meth=\
 695     return outside method
 696 
 697 compiler.err.signature.doesnt.match.supertype=\
 698     signature does not match {0}; incompatible supertype
 699 
 700 compiler.err.signature.doesnt.match.intf=\
 701     signature does not match {0}; incompatible interfaces
 702 
 703 # 0: symbol, 1: symbol, 2: symbol
 704 compiler.err.does.not.override.abstract=\
 705     {0} is not abstract and does not override abstract method {1} in {2}
 706 
 707 compiler.err.source.cant.overwrite.input.file=\
 708     error writing source; cannot overwrite input file {0}
 709 
 710 compiler.err.stack.sim.error=\
 711     Internal error: stack sim error on {0}
 712 
 713 compiler.err.static.imp.only.classes.and.interfaces=\
 714     static import only from classes and interfaces
 715 
 716 compiler.err.string.const.req=\
 717     constant string expression required
 718 
 719 # 0: symbol, 1: symbol
 720 compiler.err.synthetic.name.conflict=\
 721     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
 722 
 723 # 0: symbol, 1: symbol
 724 compiler.warn.synthetic.name.conflict=\
 725     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
 726 
 727 compiler.err.throws.not.allowed.in.intf.annotation=\
 728     throws clause not allowed in @interface members
 729 
 730 compiler.err.try.without.catch.or.finally=\
 731     ''try'' without ''catch'' or ''finally''
 732 
 733 compiler.err.try.without.catch.finally.or.resource.decls=\
 734     ''try'' without ''catch'', ''finally'' or resource declarations
 735 
 736 # 0: symbol
 737 compiler.err.type.doesnt.take.params=\
 738     type {0} does not take parameters
 739 
 740 compiler.err.type.var.cant.be.deref=\
 741     cannot select from a type variable
 742 
 743 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
 744     a type variable may not be followed by other bounds
 745 
 746 compiler.err.type.var.more.than.once=\
 747     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
 748 
 749 compiler.err.type.var.more.than.once.in.result=\
 750     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
 751 
 752 # 0: type, 1: type, 2: string
 753 compiler.err.types.incompatible.diff.ret=\
 754     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
 755 
 756 compiler.err.unclosed.char.lit=\
 757     unclosed character literal
 758 
 759 compiler.err.unclosed.comment=\
 760     unclosed comment
 761 
 762 compiler.err.unclosed.str.lit=\
 763     unclosed string literal
 764 
 765 # 0: name
 766 compiler.err.unsupported.encoding=\
 767     unsupported encoding: {0}
 768 
 769 compiler.err.io.exception=\
 770     error reading source file: {0}
 771 
 772 # 0: name
 773 compiler.err.undef.label=\
 774     undefined label: {0}
 775 
 776 compiler.err.undetermined.type=\
 777     cannot infer type arguments for {0}
 778 
 779 # 0: type, 1: message segment
 780 compiler.err.undetermined.type.1=\
 781     cannot infer type arguments for {0};\n\
 782     reason: {1}
 783 
 784 # 0: list of type, 1: message segment
 785 compiler.err.invalid.inferred.types=\
 786     invalid inferred types for {0}; {1}
 787 
 788 # 0: message segment, 1: unused
 789 compiler.err.cant.apply.diamond=\
 790     cannot infer type arguments for {0}
 791 
 792 # 0: message segment, 1: message segment
 793 compiler.err.cant.apply.diamond.1=\
 794     cannot infer type arguments for {0};\n\
 795     reason: {1}
 796 
 797 compiler.err.unreachable.stmt=\
 798     unreachable statement
 799 
 800 compiler.err.initializer.must.be.able.to.complete.normally=\
 801     initializer must be able to complete normally
 802 
 803 # 0: type
 804 compiler.err.unreported.exception.need.to.catch.or.throw=\
 805     unreported exception {0}; must be caught or declared to be thrown
 806 
 807 # 0: type
 808 compiler.err.unreported.exception.default.constructor=\
 809     unreported exception {0} in default constructor
 810 
 811 # 0: type, 1: name
 812 compiler.err.unreported.exception.implicit.close=\
 813     unreported exception {0}; must be caught or declared to be thrown\n\
 814     exception thrown from implicit call to close() on resource variable ''{1}''
 815 
 816 compiler.err.unsupported.cross.fp.lit=\
 817     hexadecimal floating-point literals are not supported on this VM
 818 
 819 compiler.err.void.not.allowed.here=\
 820     ''void'' type not allowed here
 821 
 822 # 0: string
 823 compiler.err.wrong.number.type.args=\
 824     wrong number of type arguments; required {0}
 825 
 826 # 0: symbol
 827 compiler.err.var.might.already.be.assigned=\
 828     variable {0} might already have been assigned
 829 
 830 # 0: symbol
 831 compiler.err.var.might.not.have.been.initialized=\
 832     variable {0} might not have been initialized
 833 
 834 # 0: symbol
 835 compiler.err.var.might.be.assigned.in.loop=\
 836     variable {0} might be assigned in loop
 837 
 838 # 0: symbol, 1: message segment
 839 compiler.err.varargs.invalid.trustme.anno=\
 840     Invalid {0} annotation. {1}
 841 
 842 # 0: type
 843 compiler.misc.varargs.trustme.on.reifiable.varargs=\
 844     Varargs element type {0} is reifiable.
 845 
 846 # 0: symbol
 847 compiler.misc.varargs.trustme.on.non.varargs.meth=\
 848     Method {0} is not a varargs method.
 849 
 850 # 0: symbol
 851 compiler.misc.varargs.trustme.on.virtual.varargs=\
 852     Instance method {0} is not final.
 853 
 854 # 0: type, 1: kind, 2: symbol
 855 compiler.misc.inaccessible.varargs.type=\
 856     formal varargs element type {0} is not accessible from {1} {2}
 857 
 858 # In the following string, {1} will always be the detail message from
 859 # java.io.IOException.
 860 # 0: symbol, 1: string
 861 compiler.err.class.cant.write=\
 862     error while writing {0}: {1}
 863 
 864 # In the following string, {0} is the name of the class in the Java source.
 865 # It really should be used two times..
 866 # 0: name
 867 compiler.err.class.public.should.be.in.file=\
 868     class {0} is public, should be declared in a file named {0}.java
 869 
 870 ## All errors which do not refer to a particular line in the source code are
 871 ## preceded by this string.
 872 compiler.err.error=\
 873     error:\u0020
 874 
 875 # The following error messages do not refer to a line in the source code.
 876 compiler.err.cant.read.file=\
 877     cannot read: {0}
 878 
 879 #####
 880 
 881 # Fatal Errors
 882 
 883 compiler.misc.fatal.err.no.java.lang=\
 884     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
 885 
 886 compiler.misc.fatal.err.cant.locate.meth=\
 887     Fatal Error: Unable to find method {0}
 888 
 889 compiler.misc.fatal.err.cant.locate.field=\
 890     Fatal Error: Unable to find field {0}
 891 
 892 compiler.misc.fatal.err.cant.locate.ctor=\
 893     Fatal Error: Unable to find constructor for {0}
 894 
 895 compiler.misc.fatal.err.cant.close.loader=\
 896     Fatal Error: Cannot close class loader for annotation processors
 897 
 898 #####
 899 
 900 ##
 901 ## miscellaneous strings
 902 ##
 903 
 904 compiler.misc.source.unavailable=\
 905     (source unavailable)
 906 
 907 compiler.misc.base.membership=\
 908     all your base class are belong to us
 909 
 910 # 0: string, 1: string, 2: boolean
 911 compiler.misc.x.print.processor.info=\
 912     Processor {0} matches {1} and returns {2}.
 913 
 914 # 0: number, 1: string, 2: set of symbol, 3: boolean
 915 compiler.misc.x.print.rounds=\
 916     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
 917 
 918 #####
 919 
 920 ## The following string will appear before all messages keyed as:
 921 ## "compiler.note".
 922 compiler.note.note=\
 923     Note:\u0020
 924 
 925 # 0: file name
 926 compiler.note.deprecated.filename=\
 927     {0} uses or overrides a deprecated API.
 928 
 929 compiler.note.deprecated.plural=\
 930     Some input files use or override a deprecated API.
 931 
 932 # The following string may appear after one of the above deprecation
 933 # messages.
 934 compiler.note.deprecated.recompile=\
 935     Recompile with -Xlint:deprecation for details.
 936 
 937 # 0: file name
 938 compiler.note.deprecated.filename.additional=\
 939     {0} has additional uses or overrides of a deprecated API.
 940 
 941 compiler.note.deprecated.plural.additional=\
 942     Some input files additionally use or override a deprecated API.
 943 
 944 # 0: file name
 945 compiler.note.unchecked.filename=\
 946     {0} uses unchecked or unsafe operations.
 947 
 948 compiler.note.unchecked.plural=\
 949     Some input files use unchecked or unsafe operations.
 950 
 951 # The following string may appear after one of the above deprecation
 952 # messages.
 953 compiler.note.unchecked.recompile=\
 954     Recompile with -Xlint:unchecked for details.
 955 
 956 # 0: file name
 957 compiler.note.unchecked.filename.additional=\
 958     {0} has additional unchecked or unsafe operations.
 959 
 960 compiler.note.unchecked.plural.additional=\
 961     Some input files additionally use unchecked or unsafe operations.
 962 
 963 # 0: file name
 964 compiler.note.sunapi.filename=\
 965     {0} uses internal proprietary API that may be removed in a future release.
 966 
 967 compiler.note.sunapi.plural=\
 968     Some input files use internal proprietary API that may be removed in a future release.
 969 
 970 # The following string may appear after one of the above sunapi messages.
 971 compiler.note.sunapi.recompile=\
 972     Recompile with -Xlint:sunapi for details.
 973 
 974 # 0: file name
 975 compiler.note.sunapi.filename.additional=\
 976     {0} uses additional internal proprietary API that may be removed in a future release.
 977 
 978 compiler.note.sunapi.plural.additional=\
 979     Some input files additionally use internal proprietary API that may be removed in a future release.
 980 
 981 # Notes related to annotation processing
 982 
 983 # Print a client-generated note; assumed to be localized, no translation required
 984 # 0: string
 985 compiler.note.proc.messager=\
 986     {0}
 987 
 988 #####
 989 
 990 # 0: number
 991 compiler.misc.count.error=\
 992     {0} error
 993 
 994 # 0: number
 995 compiler.misc.count.error.plural=\
 996     {0} errors
 997 
 998 # 0: number
 999 compiler.misc.count.warn=\
1000     {0} warning
1001 
1002 # 0: number
1003 compiler.misc.count.warn.plural=\
1004     {0} warnings
1005 
1006 compiler.misc.version.not.available=\
1007     (version info not available)
1008 
1009 ## extra output when using -verbose (JavaCompiler)
1010 
1011 # 0: symbol
1012 compiler.misc.verbose.checking.attribution=\
1013     [checking {0}]
1014 
1015 # 0: string
1016 compiler.misc.verbose.parsing.done=\
1017     [parsing completed {0}ms]
1018 
1019 # 0: file name
1020 compiler.misc.verbose.parsing.started=\
1021     [parsing started {0}]
1022 
1023 # 0: string
1024 compiler.misc.verbose.total=\
1025     [total {0}ms]
1026 
1027 # 0: file name
1028 compiler.misc.verbose.wrote.file=\
1029     [wrote {0}]
1030 
1031 ## extra output when using -verbose (Retro)
1032 compiler.misc.verbose.retro=\
1033     [retrofitting {0}]
1034 
1035 compiler.misc.verbose.retro.with=\
1036     \tretrofitting {0} with {1}
1037 
1038 compiler.misc.verbose.retro.with.list=\
1039     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
1040 
1041 ## extra output when using -verbose (code/ClassReader)
1042 # 0: string
1043 compiler.misc.verbose.loading=\
1044     [loading {0}]
1045 
1046 # 0: string
1047 compiler.misc.verbose.sourcepath=\
1048     [search path for source files: {0}]
1049 
1050 # 0: string
1051 compiler.misc.verbose.classpath=\
1052     [search path for class files: {0}]
1053 
1054 ## extra output when using -checkclassfile (code/ClassReader)
1055 compiler.misc.ccf.found.later.version=\
1056     class file has later version than expected: {0}
1057 
1058 compiler.misc.ccf.unrecognized.attribute=\
1059     unrecognized attribute: {0}
1060 
1061 ## extra output when using -prompt (util/Log)
1062 compiler.misc.resume.abort=\
1063     R)esume, A)bort>
1064 
1065 #####
1066 
1067 ##
1068 ## warnings
1069 ##
1070 
1071 ## All warning messages are preceded by the following string.
1072 compiler.warn.warning=\
1073     warning:\u0020
1074 
1075 ## Warning messages may also include the following prefix to identify a
1076 ## lint option
1077 # 0: option name
1078 compiler.warn.lintOption=\
1079     [{0}]\u0020
1080 
1081 # 0: symbol
1082 compiler.warn.constant.SVUID=\
1083     serialVersionUID must be constant in class {0}
1084 
1085 # 0: file name
1086 compiler.warn.dir.path.element.not.found=\
1087     bad path element "{0}": no such directory
1088 
1089 compiler.warn.finally.cannot.complete=\
1090     finally clause cannot complete normally
1091 
1092 # 0: symbol, 1: symbol
1093 compiler.warn.has.been.deprecated=\
1094     {0} in {1} has been deprecated
1095 
1096 # 0: symbol
1097 compiler.warn.sun.proprietary=\
1098     {0} is internal proprietary API and may be removed in a future release
1099 
1100 compiler.warn.illegal.char.for.encoding=\
1101     unmappable character for encoding {0}
1102 
1103 # 0: symbol
1104 compiler.warn.improper.SVUID=\
1105     serialVersionUID must be declared static final in class {0}
1106 
1107 # 0: type, 1: type
1108 compiler.warn.inexact.non-varargs.call=\
1109     non-varargs call of varargs method with inexact argument type for last parameter;\n\
1110     cast to {0} for a varargs call\n\
1111     cast to {1} for a non-varargs call and to suppress this warning
1112 
1113 # 0: list of type
1114 compiler.warn.unreachable.catch=\
1115     unreachable catch clause\n\
1116     thrown type {0} has already been caught
1117 
1118 # 0: list of type
1119 compiler.warn.unreachable.catch.1=\
1120     unreachable catch clause\n\
1121     thrown types {0} have already been caught
1122 
1123 # 0: symbol
1124 compiler.warn.long.SVUID=\
1125     serialVersionUID must be of type long in class {0}
1126 
1127 # 0: symbol
1128 compiler.warn.missing.SVUID=\
1129     serializable class {0} has no definition of serialVersionUID
1130 
1131 # 0: message segment
1132 compiler.warn.override.varargs.missing=\
1133     {0}; overridden method has no ''...''
1134 
1135 # 0: message segment
1136 compiler.warn.override.varargs.extra=\
1137     {0}; overriding method is missing ''...''
1138 
1139 compiler.warn.override.bridge=\
1140     {0}; overridden method is a bridge method
1141 
1142 # 0: symbol
1143 compiler.warn.pkg-info.already.seen=\
1144     a package-info.java file has already been seen for package {0}
1145 
1146 # 0: file name
1147 compiler.warn.path.element.not.found=\
1148     bad path element "{0}": no such file or directory
1149 
1150 compiler.warn.possible.fall-through.into.case=\
1151     possible fall-through into case
1152 
1153 # 0: type
1154 compiler.warn.redundant.cast=\
1155     redundant cast to {0}
1156 
1157 # 0: number
1158 compiler.warn.position.overflow=\
1159     Position encoding overflows at line {0}
1160 
1161 # 0: file name, 1: number, 2: number
1162 compiler.warn.big.major.version=\
1163     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1164     It is recommended that the compiler be upgraded.
1165 
1166 # 0: symbol kind, 1: symbol
1167 compiler.warn.static.not.qualified.by.type=\
1168     static {0} should be qualified by type name, {1}, instead of by an expression
1169 
1170 # 0: string
1171 compiler.warn.source.no.bootclasspath=\
1172     bootstrap class path not set in conjunction with -source {0}
1173 
1174 # 0: name, 1: number, 2: number, 3: number, 4: number
1175 compiler.warn.future.attr=\
1176     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1177 
1178 # Warnings related to annotation processing
1179 # 0: name
1180 compiler.warn.proc.package.does.not.exist=\
1181     package {0} does not exist
1182 
1183 # 0: name
1184 compiler.warn.proc.file.reopening=\
1185     Attempt to create a file for ''{0}'' multiple times
1186 
1187 # 0: name
1188 compiler.warn.proc.type.already.exists=\
1189     A file for type ''{0}'' already exists on the sourcepath or classpath
1190 
1191 # 0: name
1192 compiler.warn.proc.type.recreate=\
1193     Attempt to create a file for type ''{0}'' multiple times
1194 
1195 # 0: string
1196 compiler.warn.proc.illegal.file.name=\
1197     Cannot create file for illegal name ''{0}''.
1198 
1199 # 0: string, 1: string
1200 compiler.warn.proc.suspicious.class.name=\
1201     Creating file for a type whose name ends in {1}: ''{0}''
1202 
1203 # 0: name
1204 compiler.warn.proc.file.create.last.round=\
1205     File for type ''{0}'' created in the last round will not be subject to annotation processing.
1206 
1207 # 0: string, 1: string
1208 compiler.warn.proc.malformed.supported.string=\
1209     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1210 
1211 # 0: set of string
1212 compiler.warn.proc.annotations.without.processors=\
1213     No processor claimed any of these annotations: {0}
1214 
1215 # 0: source version, 1: string, 2: string
1216 compiler.warn.proc.processor.incompatible.source.version=\
1217     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1218 
1219 compiler.warn.proc.proc-only.requested.no.procs=\
1220     Annotation processing without compilation requested but no processors were found.
1221 
1222 compiler.warn.proc.use.implicit=\
1223     Implicitly compiled files were not subject to annotation processing.\n\
1224     Use -implicit to specify a policy for implicit compilation.
1225 
1226 compiler.warn.proc.use.proc.or.implicit=\
1227     Implicitly compiled files were not subject to annotation processing.\n\
1228     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1229 
1230 # Print a client-generated warning; assumed to be localized, no translation required
1231 # 0: string
1232 compiler.warn.proc.messager=\
1233     {0}
1234 
1235 # 0: set of name
1236 compiler.warn.proc.unclosed.type.files=\
1237     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1238 
1239 # 0: string
1240 compiler.warn.proc.unmatched.processor.options=\
1241     The following options were not recognized by any processor: ''{0}''
1242 
1243 compiler.warn.try.explicit.close.call=\
1244     explicit call to close() on an auto-closeable resource
1245 
1246 # 0: symbol
1247 compiler.warn.try.resource.not.referenced=\
1248     auto-closeable resource {0} is never referenced in body of corresponding try statement
1249 
1250 # 0: type
1251 compiler.warn.try.resource.throws.interrupted.exc=\
1252     auto-closeable resource {0} has a member method close() that could throw InterruptedException
1253 
1254 compiler.warn.unchecked.assign=\
1255     unchecked assignment: {0} to {1}
1256 
1257 # 0: symbol, 1: type
1258 compiler.warn.unchecked.assign.to.var=\
1259     unchecked assignment to variable {0} as member of raw type {1}
1260 
1261 # 0: symbol, 1: type
1262 compiler.warn.unchecked.call.mbr.of.raw.type=\
1263     unchecked call to {0} as a member of the raw type {1}
1264 
1265 compiler.warn.unchecked.cast.to.type=\
1266     unchecked cast to type {0}
1267 
1268 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1269 compiler.warn.unchecked.meth.invocation.applied=\
1270     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1271     required: {2}\n\
1272     found: {3}
1273 
1274 # 0: type
1275 compiler.warn.unchecked.generic.array.creation=\
1276     unchecked generic array creation for varargs parameter of type {0}
1277 
1278 # 0: type
1279 compiler.warn.unchecked.varargs.non.reifiable.type=\
1280     Possible heap pollution from parameterized vararg type {0}
1281 
1282 # 0: symbol
1283 compiler.warn.varargs.unsafe.use.varargs.param=\
1284     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1285 
1286 compiler.warn.missing.deprecated.annotation=\
1287     deprecated item is not annotated with @Deprecated
1288 
1289 compiler.warn.invalid.archive.file=\
1290     Unexpected file on path: {0}
1291 
1292 compiler.warn.unexpected.archive.file=\
1293     Unexpected extension for archive file: {0}
1294 
1295 compiler.warn.div.zero=\
1296     division by zero
1297 
1298 compiler.warn.empty.if=\
1299     empty statement after if
1300 
1301 compiler.warn.annotation.method.not.found=\
1302     Cannot find annotation method ''{1}()'' in type ''{0}''
1303 
1304 compiler.warn.annotation.method.not.found.reason=\
1305     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1306 
1307 # 0: symbol, 1: name
1308 compiler.warn.unknown.enum.constant=\
1309     unknown enum constant {1}.{2}
1310 
1311 # 0: symbol, 1: name, 2: message segment
1312 compiler.warn.unknown.enum.constant.reason=\
1313     unknown enum constant {1}.{2}\n\
1314     reason: {3}
1315 
1316 # 0: type, 1: type
1317 compiler.warn.raw.class.use=\
1318     found raw type: {0}\n\
1319     missing type arguments for generic class {1}
1320 
1321 # 0: unused, 1: unused
1322 compiler.warn.diamond.redundant.args=\
1323     redundant type arguments in new expression (use diamond operator instead).
1324 
1325 # 0: type, 1: type
1326 compiler.warn.diamond.redundant.args.1=\
1327     redundant type arguments in new expression (use diamond operator instead).\n\
1328     explicit: {0}\n\
1329     inferred: {1}
1330 
1331 # 0: symbol, 1: message segment
1332 compiler.warn.varargs.redundant.trustme.anno=\
1333     Redundant {0} annotation. {1}
1334 
1335 #####
1336 
1337 ## The following are tokens which are non-terminals in the language. They should
1338 ## be named as JLS3 calls them when translated to the appropriate language.
1339 compiler.misc.token.identifier=\
1340     <identifier>
1341 
1342 compiler.misc.token.character=\
1343     <character>
1344 
1345 compiler.misc.token.string=\
1346     <string>
1347 
1348 compiler.misc.token.integer=\
1349     <integer>
1350 
1351 compiler.misc.token.long-integer=\
1352     <long integer>
1353 
1354 compiler.misc.token.float=\
1355     <float>
1356 
1357 compiler.misc.token.double=\
1358     <double>
1359 
1360 compiler.misc.token.bad-symbol=\
1361     <bad symbol>
1362 
1363 compiler.misc.token.end-of-input=\
1364     <end of input>
1365 
1366 ## The argument to the following string will always be one of the following:
1367 ## 1. one of the above non-terminals
1368 ## 2. a keyword (JLS1.8)
1369 ## 3. a boolean literal (JLS3.10.3)
1370 ## 4. the null literal (JLS3.10.7)
1371 ## 5. a Java separator (JLS3.11)
1372 ## 6. an operator (JLS3.12)
1373 ##
1374 ## This is the only place these tokens will be used.
1375 # 0: token
1376 compiler.err.expected=\
1377     {0} expected
1378 
1379 # 0: token, 1: token
1380 compiler.err.expected2=\
1381     {0} or {1} expected
1382 
1383 # 0: token, 1: token, 2: token
1384 compiler.err.expected3=\
1385     {0}, {1}, or {2} expected
1386 
1387 compiler.err.premature.eof=\
1388     reached end of file while parsing
1389 
1390 ## The following are related in form, but do not easily fit the above paradigm.
1391 compiler.err.dot.class.expected=\
1392     ''.class'' expected
1393 
1394 ## The argument to this string will always be either 'case' or 'default'.
1395 # 0: token
1396 compiler.err.orphaned=\
1397     orphaned {0}
1398 
1399 # 0: name
1400 compiler.misc.anonymous.class=\
1401     <anonymous {0}>
1402 
1403 # 0: name, 1: type
1404 compiler.misc.type.captureof=\
1405     capture#{0} of {1}
1406 
1407 compiler.misc.type.captureof.1=\
1408     capture#{0}
1409 
1410 compiler.misc.type.none=\
1411     <none>
1412 
1413 compiler.misc.unnamed.package=\
1414     unnamed package
1415 
1416 #####
1417 
1418 # 0: symbol, 1: message segment
1419 compiler.err.cant.access=\
1420     cannot access {0}\n\
1421     {1}
1422 
1423 compiler.misc.bad.class.file.header=\
1424     bad class file: {0}\n\
1425     {1}\n\
1426     Please remove or make sure it appears in the correct subdirectory of the classpath.
1427 
1428 # 0: file name, 1: message segment
1429 compiler.misc.bad.source.file.header=\
1430     bad source file: {0}\n\
1431     {1}\n\
1432     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
1433 
1434 ## The following are all possible strings for the second argument ({1}) of the
1435 ## above strings.
1436 compiler.misc.bad.class.signature=\
1437     bad class signature: {0}
1438 
1439 #0: symbol, 1: symbol
1440 compiler.misc.bad.enclosing.class=\
1441     bad enclosing class for {0}: {1}
1442 
1443 # 0: symbol
1444 compiler.misc.bad.enclosing.method=\
1445     bad enclosing method attribute for class {0}
1446 
1447 compiler.misc.bad.runtime.invisible.param.annotations=\
1448     bad RuntimeInvisibleParameterAnnotations attribute: {0}
1449 
1450 compiler.misc.bad.const.pool.tag=\
1451     bad constant pool tag: {0}
1452 
1453 compiler.misc.bad.const.pool.tag.at=\
1454     bad constant pool tag: {0} at {1}
1455 
1456 compiler.misc.bad.signature=\
1457     bad signature: {0}
1458 
1459 compiler.misc.class.file.wrong.class=\
1460     class file contains wrong class: {0}
1461 
1462 compiler.misc.class.file.not.found=\
1463     class file for {0} not found
1464 
1465 # 0: name
1466 compiler.misc.file.doesnt.contain.class=\
1467     file does not contain class {0}
1468 
1469 compiler.misc.file.does.not.contain.package=\
1470     file does not contain package {0}
1471 
1472 compiler.misc.illegal.start.of.class.file=\
1473     illegal start of class file
1474 
1475 compiler.misc.unable.to.access.file=\
1476     unable to access file: {0}
1477 
1478 compiler.misc.unicode.str.not.supported=\
1479     unicode string in class file not supported
1480 
1481 compiler.misc.undecl.type.var=\
1482     undeclared type variable: {0}
1483 
1484 compiler.misc.wrong.version=\
1485     class file has wrong version {0}.{1}, should be {2}.{3}
1486 
1487 #####
1488 
1489 # 0: type, 1: type or symbol
1490 compiler.err.not.within.bounds=\
1491     type argument {0} is not within bounds of type-variable {1}
1492 
1493 ## The following are all possible strings for the second argument ({1}) of the
1494 ## above string.
1495 
1496 ## none yet...
1497 
1498 #####
1499 
1500 # 0: message segment, 1: type, 2: type
1501 compiler.err.prob.found.req=\
1502     {0}\n\
1503     required: {2}\n\
1504     found:    {1}
1505 
1506 # 0: message segment, 1: type, 2: type
1507 compiler.warn.prob.found.req=\
1508     {0}\n\
1509     required: {2}\n\
1510     found:    {1}
1511 
1512 compiler.err.prob.found.req.1=\
1513     {0} {3}\n\
1514     required: {2}\n\
1515     found:    {1}
1516 
1517 ## The following are all possible strings for the first argument ({0}) of the
1518 ## above strings.
1519 compiler.misc.incompatible.types=\
1520     incompatible types
1521 
1522 # 0: message segment
1523 compiler.misc.incompatible.types.1=\
1524     incompatible types; {0}
1525 
1526 compiler.misc.inconvertible.types=\
1527     inconvertible types
1528 
1529 compiler.misc.possible.loss.of.precision=\
1530     possible loss of precision
1531 
1532 compiler.misc.unchecked.assign=\
1533     unchecked conversion
1534 
1535 # compiler.misc.storecheck=\
1536 #     assignment might cause later store checks to fail
1537 # compiler.misc.unchecked=\
1538 #     assigned array cannot dynamically check its stores
1539 compiler.misc.unchecked.cast.to.type=\
1540     unchecked cast
1541 
1542 compiler.misc.assignment.from.super-bound=\
1543     assignment from super-bound type {0}
1544 
1545 compiler.misc.assignment.to.extends-bound=\
1546     assignment to extends-bound type {0}
1547 
1548 # compiler.err.star.expected=\
1549 #     ''*'' expected
1550 # compiler.err.no.elem.type=\
1551 #     \[\*\] cannot have a type
1552 
1553 compiler.misc.try.not.applicable.to.type=\
1554     try-with-resources not applicable to variable type
1555 
1556 #####
1557 
1558 # 0: message segment or type, 1: message segment
1559 compiler.err.type.found.req=\
1560     unexpected type\n\
1561     required: {1}\n\
1562     found:    {0}
1563 
1564 ## The following are all possible strings for the first argument ({0}) of the
1565 ## above string.
1566 compiler.misc.type.req.class=\
1567     class
1568 
1569 compiler.misc.type.req.class.array=\
1570     class or array
1571 
1572 compiler.misc.type.req.array.or.iterable=\
1573     array or java.lang.Iterable
1574 
1575 compiler.misc.type.req.ref=\
1576     reference
1577 
1578 compiler.misc.type.req.exact=\
1579     class or interface without bounds
1580 
1581 # 0: type
1582 compiler.misc.type.parameter=\
1583     type parameter {0}
1584 
1585 #####
1586 
1587 ## The following are all possible strings for the last argument of all those
1588 ## diagnostics whose key ends in ".1"
1589 compiler.misc.undetermined.type=\
1590     undetermined type
1591 
1592 compiler.misc.type.variable.has.undetermined.type=\
1593     type variable {0} has undetermined type
1594 
1595 # 0: type, 1: list of type
1596 compiler.misc.no.unique.maximal.instance.exists=\
1597     no unique maximal instance exists for type variable {0} with upper bounds {1}
1598 
1599 compiler.misc.no.unique.minimal.instance.exists=\
1600     no unique minimal instance exists for type variable {0} with lower bounds {1}
1601 
1602 # 0: list of type, 1: type, 2: type
1603 compiler.misc.infer.no.conforming.instance.exists=\
1604     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
1605 
1606 # 0: list of type, 1: type, 2: type
1607 compiler.misc.infer.no.conforming.assignment.exists=\
1608     no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
1609 
1610 compiler.misc.infer.arg.length.mismatch=\
1611     cannot instantiate from arguments because actual and formal argument lists differ in length
1612 
1613 # 0: type, 1: list of type
1614 compiler.misc.inferred.do.not.conform.to.bounds=\
1615     inferred type does not conform to declared bound(s)\n\
1616     inferred: {0}\n\
1617     bound(s): {1}
1618 
1619 # 0: symbol
1620 compiler.misc.diamond=\
1621     {0}<>
1622 
1623 # 0: type
1624 compiler.misc.diamond.non.generic=\
1625     cannot use ''<>'' with non-generic class {0}
1626 
1627 compiler.misc.diamond.and.explicit.params=\
1628     cannot use ''<>'' with explicit type parameters for constructor
1629 
1630 # 0: type, 1: list of type
1631 compiler.misc.explicit.param.do.not.conform.to.bounds=\
1632     explicit type argument {0} does not conform to declared bound(s) {1}
1633 
1634 compiler.misc.arg.length.mismatch=\
1635     actual and formal argument lists differ in length
1636 
1637 # 0: type, 1: type
1638 compiler.misc.no.conforming.assignment.exists=\
1639     actual argument {0} cannot be converted to {1} by method invocation conversion
1640 
1641 # 0: type, 1: type
1642 compiler.misc.varargs.argument.mismatch=\
1643     argument type {0} does not conform to vararg element type {1}
1644 
1645 #####
1646 
1647 ## The first argument ({0}) is a "kindname".
1648 # 0: symbol kind, 1: symbol, 2: symbol
1649 compiler.err.abstract.cant.be.accessed.directly=\
1650     abstract {0} {1} in {2} cannot be accessed directly
1651 
1652 ## The first argument ({0}) is a "kindname".
1653 # 0: symbol kind, 1: symbol
1654 compiler.err.non-static.cant.be.ref=\
1655     non-static {0} {1} cannot be referenced from a static context
1656 
1657 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
1658 ## of kindnames (the list should be identical to that provided in source.
1659 compiler.err.unexpected.type=\
1660     unexpected type\n\
1661     required: {0}\n\
1662     found:    {1}
1663 
1664 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1665 ## The second argument {1} is the non-resolved symbol
1666 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1667 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1668 # 0: symbol kind, 1: name, 2: unused, 3: unused
1669 compiler.err.cant.resolve=\
1670     cannot find symbol\n\
1671     symbol: {0} {1}
1672 
1673 # 0: symbol kind, 1: name, 2: unused, 3: list of type
1674 compiler.err.cant.resolve.args=\
1675     cannot find symbol\n\
1676     symbol: {0} {1}({3})
1677 
1678 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
1679 compiler.err.cant.resolve.args.params=\
1680     cannot find symbol\n\
1681     symbol: {0} <{2}>{1}({3})
1682 
1683 ## arguments from {0} to {3} have the same meaning as above
1684 ## The fifth argument {4} is a location subdiagnostic (see below)
1685 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
1686 compiler.err.cant.resolve.location=\
1687     cannot find symbol\n\
1688     symbol:   {0} {1}\n\
1689     location: {4}
1690 
1691 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
1692 compiler.err.cant.resolve.location.args=\
1693     cannot find symbol\n\
1694     symbol:   {0} {1}({3})\n\
1695     location: {4}
1696 
1697 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
1698 compiler.err.cant.resolve.location.args.params=\
1699     cannot find symbol\n\
1700     symbol:   {0} <{2}>{1}({3})\n\
1701     location: {4}
1702 
1703 ##a location subdiagnostic is composed as follows:
1704 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1705 ## The second argument {1} is the location name
1706 ## The third argument {2} is the location type (only when {1} is a variable name)
1707 
1708 # 0: symbol kind, 1: symbol, 2: unused
1709 compiler.misc.location=\
1710     {0} {1}
1711 
1712 # 0: symbol kind, 1: symbol, 2: type
1713 compiler.misc.location.1=\
1714     {0} {1} of type {2}
1715 
1716 ## The following are all possible string for "kindname".
1717 ## They should be called whatever the JLS calls them after it been translated
1718 ## to the appropriate language.
1719 # compiler.misc.kindname.constructor=\
1720 #     static member
1721 compiler.misc.kindname.annotation=\
1722     @interface
1723 
1724 compiler.misc.kindname.constructor=\
1725     constructor
1726 
1727 compiler.misc.kindname.enum=\
1728     enum
1729 
1730 compiler.misc.kindname.interface=\
1731     interface
1732 
1733 compiler.misc.kindname.static=\
1734     static
1735 
1736 compiler.misc.kindname.type.variable=\
1737     type variable
1738 
1739 compiler.misc.kindname.type.variable.bound=\
1740     bound of type variable
1741 
1742 compiler.misc.kindname.variable=\
1743     variable
1744 
1745 compiler.misc.kindname.value=\
1746     value
1747 
1748 compiler.misc.kindname.method=\
1749     method
1750 
1751 compiler.misc.kindname.class=\
1752     class
1753 
1754 compiler.misc.kindname.package=\
1755     package
1756 
1757 #####
1758 
1759 compiler.misc.no.args=\
1760     no arguments
1761 
1762 # 0: message segment
1763 compiler.err.override.static=\
1764     {0}\n\
1765     overriding method is static
1766 
1767 # 0: message segment, 1: set of modifier
1768 compiler.err.override.meth=\
1769     {0}\n\
1770     overridden method is {1}
1771 
1772 # 0: message segment, 1: type
1773 compiler.err.override.meth.doesnt.throw=\
1774     {0}\n\
1775     overridden method does not throw {1}
1776 
1777 # In the following string {1} is a space separated list of Java Keywords, as
1778 # they would have been declared in the source code
1779 # 0: message segment, 1: set of modifier
1780 compiler.err.override.weaker.access=\
1781     {0}\n\
1782     attempting to assign weaker access privileges; was {1}
1783 
1784 # 0: message segment, 1: type, 2: type
1785 compiler.err.override.incompatible.ret=\
1786     {0}\n\
1787     return type {1} is not compatible with {2}
1788 
1789 # 0: message segment, 1: type, 2: type
1790 compiler.warn.override.unchecked.ret=\
1791     {0}\n\
1792     return type requires unchecked conversion from {1} to {2}
1793 
1794 # 0: message segment, 1: type
1795 compiler.warn.override.unchecked.thrown=\
1796     {0}\n\
1797     overridden method does not throw {1}
1798 
1799 ## The following are all possible strings for the first argument ({0}) of the
1800 ## above strings.
1801 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1802 compiler.misc.cant.override=\
1803     {0} in {1} cannot override {2} in {3}
1804 
1805 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1806 compiler.misc.cant.implement=\
1807     {0} in {1} cannot implement {2} in {3}
1808 
1809 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1810 compiler.misc.clashes.with=\
1811     {0} in {1} clashes with {2} in {3}
1812 
1813 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1814 compiler.misc.unchecked.override=\
1815     {0} in {1} overrides {2} in {3}
1816 
1817 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1818 compiler.misc.unchecked.implement=\
1819     {0} in {1} implements {2} in {3}
1820 
1821 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1822 compiler.misc.unchecked.clash.with=\
1823     {0} in {1} overrides {2} in {3}
1824 
1825 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1826 compiler.misc.varargs.override=\
1827     {0} in {1} overrides {2} in {3}
1828 
1829 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1830 compiler.misc.varargs.implement=\
1831     {0} in {1} implements {2} in {3}
1832 
1833 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1834 compiler.misc.varargs.clash.with=\
1835     {0} in {1} overrides {2} in {3}
1836 
1837 compiler.misc.diamond.and.anon.class=\
1838     cannot use ''<>'' with anonymous inner classes
1839 
1840 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
1841 compiler.misc.inapplicable.method=\
1842     {0} {1}.{2} is not applicable\n\
1843     ({3})
1844 
1845 ########################################
1846 # Diagnostics for language feature changes
1847 ########################################
1848 # 0: string
1849 compiler.err.unsupported.fp.lit=\
1850     hexadecimal floating point literals are not supported in -source {0}\n\
1851     (use -source 5 or higher to enable hexadecimal floating point literals)
1852 
1853 # 0: string
1854 compiler.err.unsupported.binary.lit=\
1855     binary literals are not supported in -source {0}\n\
1856     (use -source 7 or higher to enable binary literals)
1857 
1858 # 0: string
1859 compiler.err.unsupported.underscore.lit=\
1860     underscores in literals are not supported in -source {0}\n\
1861     (use -source 7 or higher to enable underscores in literals)
1862 
1863 # 0: string
1864 compiler.err.try.with.resources.not.supported.in.source=\
1865     try-with-resources is not supported in -source {0}\n\
1866     (use -source 7 or higher to enable try-with-resources)
1867 
1868 compiler.warn.enum.as.identifier=\
1869     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1870     (use -source 5 or higher to use ''enum'' as a keyword)
1871 
1872 compiler.warn.assert.as.identifier=\
1873     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1874     (use -source 1.4 or higher to use ''assert'' as a keyword)
1875 
1876 compiler.err.enum.as.identifier=\
1877     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1878     (use -source 1.4 or lower to use ''enum'' as an identifier)
1879 
1880 compiler.err.assert.as.identifier=\
1881     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1882     (use -source 1.3 or lower to use ''assert'' as an identifier)
1883 
1884 # 0: string
1885 compiler.err.generics.not.supported.in.source=\
1886     generics are not supported in -source {0}\n\
1887     (use -source 5 or higher to enable generics)
1888 
1889 # 0: string
1890 compiler.err.varargs.not.supported.in.source=\
1891     variable-arity methods are not supported in -source {0}\n\
1892     (use -source 5 or higher to enable variable-arity methods)
1893 
1894 # 0: string
1895 compiler.err.annotations.not.supported.in.source=\
1896     annotations are not supported in -source {0}\n\
1897     (use -source 5 or higher to enable annotations)
1898 
1899 #308 compiler.err.type.annotations.not.supported.in.source=\
1900 #308     type annotations are not supported in -source {0}\n\
1901 #308 (use -source 7 or higher to enable type annotations)
1902 
1903 # 0: string
1904 compiler.err.foreach.not.supported.in.source=\
1905     for-each loops are not supported in -source {0}\n\
1906     (use -source 5 or higher to enable for-each loops)
1907 
1908 # 0: string
1909 compiler.err.static.import.not.supported.in.source=\
1910     static import declarations are not supported in -source {0}\n\
1911     (use -source 5 or higher to enable static import declarations)
1912 
1913 # 0: string
1914 compiler.err.enums.not.supported.in.source=\
1915     enums are not supported in -source {0}\n\
1916     (use -source 5 or higher to enable enums)
1917 
1918 # 0: string
1919 compiler.err.diamond.not.supported.in.source=\
1920     diamond operator is not supported in -source {0}\n\
1921     (use -source 7 or higher to enable diamond operator)
1922 
1923 # 0: string
1924 compiler.err.multicatch.not.supported.in.source=\
1925     multi-catch statement is not supported in -source {0}\n\
1926     (use -source 7 or higher to enable multi-catch statement)
1927 
1928 # 0: string
1929 compiler.err.string.switch.not.supported.in.source=\
1930     strings in switch are not supported in -source {0}\n\
1931     (use -source 7 or higher to enable strings in switch)
1932 
1933 ########################################
1934 # Diagnostics for where clause implementation
1935 # used by the RichDiagnosticFormatter.
1936 ########################################
1937 
1938 compiler.misc.type.null=\
1939     <null>
1940 
1941 # X#n (where n is an int id) is disambiguated tvar name
1942 # 0: name, 1: number
1943 compiler.misc.type.var=\
1944     {0}#{1}
1945 
1946 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
1947 # 0: number
1948 compiler.misc.captured.type=\
1949     CAP#{0}
1950 
1951 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
1952 # 0: number
1953 compiler.misc.intersection.type=\
1954     INT#{0}
1955 
1956 # where clause for captured type: contains upper ('extends {1}') and lower
1957 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
1958 # 0: type, 1: type, 2: type, 3: type
1959 compiler.misc.where.captured=\
1960     {0} extends {1} super: {2} from capture of {3}
1961 
1962 # compact where clause for captured type: contains upper ('extends {1}') along
1963 # with the wildcard that generated this captured type ({3})
1964 # 0: type, 1: type, 2: unused, 3: type
1965 compiler.misc.where.captured.1=\
1966     {0} extends {1} from capture of {3}
1967 
1968 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
1969 # the kindname ({2}) and location ({3}) in which the typevar has been declared
1970 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
1971 compiler.misc.where.typevar=\
1972     {0} extends {1} declared in {2} {3}
1973 
1974 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
1975 # in which the typevar has been declared
1976 compiler.misc.where.typevar.1=\
1977     {0} declared in {2} {3}
1978 
1979 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
1980 # of this intersection type
1981 # 0: type, 1: list of type
1982 compiler.misc.where.intersection=\
1983     {0} extends {1}
1984 
1985 ### Where clause headers ###
1986 compiler.misc.where.description.captured=\
1987     where {0} is a fresh type-variable:
1988 
1989 # 0: set of type
1990 compiler.misc.where.description.typevar=\
1991     where {0} is a type-variable:
1992 
1993 # 0: set of type
1994 compiler.misc.where.description.intersection=\
1995     where {0} is an intersection type:
1996 
1997 # 0: set of type
1998 compiler.misc.where.description.captured.1=\
1999     where {0} are fresh type-variables:
2000 
2001 # 0: set of type
2002 compiler.misc.where.description.typevar.1=\
2003     where {0} are type-variables:
2004 
2005 compiler.misc.where.description.intersection.1=\
2006     where {0} are intersection types:
2007 
2008