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