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