src/share/classes/com/sun/tools/javac/resources/compiler.properties

Sun, 17 Feb 2013 16:44:55 -0500

author
dholmes
date
Sun, 17 Feb 2013 16:44:55 -0500
changeset 1571
af8417e590f4
parent 1570
f91144b7da75
child 1603
6118072811e5
permissions
-rw-r--r--

Merge

     1 #
     2 # Copyright (c) 1999, 2013, 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 #
    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.
    57 ##
    58 ## errors
    59 ##
    61 # 0: symbol
    62 compiler.err.abstract.cant.be.instantiated=\
    63     {0} is abstract; cannot be instantiated
    65 compiler.err.abstract.meth.cant.have.body=\
    66     abstract methods cannot have a body
    68 compiler.err.already.annotated=\
    69     {0} {1} has already been annotated
    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}
    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}
    79 # 0: string
    80 compiler.err.already.defined.single.import=\
    81     {0} is already defined in a single-type import
    83 # 0: string
    84 compiler.err.already.defined.static.single.import=\
    85     {0} is already defined in a static single-type import
    87 compiler.err.already.defined.this.unit=\
    88     {0} is already defined in this compilation unit
    90 # 0: type, 1: list of name
    91 compiler.err.annotation.missing.default.value=\
    92     annotation {0} is missing value for the attribute {1}
    94 # 0: type, 1: list of name
    95 compiler.err.annotation.missing.default.value.1=\
    96     annotation {0} is missing values for attributes {1}
    98 # 0: type
    99 compiler.err.annotation.not.valid.for.type=\
   100     annotation not valid for a value of type {0}
   102 compiler.err.annotation.type.not.applicable=\
   103     annotation type not applicable to this kind of declaration
   105 compiler.err.annotation.value.must.be.annotation=\
   106     annotation value must be an annotation
   108 compiler.err.annotation.value.must.be.class.literal=\
   109     annotation value must be a class literal
   111 compiler.err.annotation.value.must.be.name.value=\
   112     annotation values must be of the form ''name=value''
   114 compiler.err.annotation.value.not.allowable.type=\
   115     annotation value not of an allowable type
   117 compiler.err.anon.class.impl.intf.no.args=\
   118     anonymous class implements interface; cannot have arguments
   120 compiler.err.anon.class.impl.intf.no.typeargs=\
   121     anonymous class implements interface; cannot have type arguments
   123 compiler.err.anon.class.impl.intf.no.qual.for.new=\
   124     anonymous class implements interface; cannot have qualifier for new
   126 # 0: symbol, 1: symbol, 2: symbol
   127 compiler.err.array.and.varargs=\
   128     cannot declare both {0} and {1} in {2}
   130 compiler.err.array.dimension.missing=\
   131     array dimension missing
   133 # 0: type
   134 compiler.err.array.req.but.found=\
   135     array required, but {0} found
   137 compiler.err.attribute.value.must.be.constant=\
   138     attribute value must be constant
   140 # 0: statement type
   141 compiler.err.bad.initializer=\
   142     bad initializer for {0}
   144 compiler.err.break.outside.switch.loop=\
   145     break outside switch or loop
   147 # 0: name
   148 compiler.err.call.must.be.first.stmt.in.ctor=\
   149     call to {0} must be first statement in constructor
   151 # 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
   152 compiler.err.cant.apply.symbol=\
   153     {0} {1} in {4} {5} cannot be applied to given types;\n\
   154     required: {2}\n\
   155     found: {3}\n\
   156     reason: {6}
   158 # 0: symbol kind, 1: name, 2: list of type
   159 compiler.err.cant.apply.symbols=\
   160     no suitable {0} found for {1}({2})
   162 # 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
   163 compiler.misc.cant.apply.symbol=\
   164     {0} {1} in {4} {5} cannot be applied to given types\n\
   165     required: {2}\n\
   166     found: {3}\n\
   167     reason: {6}
   169 # 0: symbol kind, 1: name, 2: list of type
   170 compiler.misc.cant.apply.symbols=\
   171     no suitable {0} found for {1}({2})
   173 # 0: symbol kind, 1: symbol
   174 compiler.misc.no.abstracts=\
   175     no abstract method found in {0} {1}
   177 # 0: symbol kind, 1: symbol
   178 compiler.misc.incompatible.abstracts=\
   179     multiple non-overriding abstract methods found in {0} {1}
   181 compiler.err.bad.functional.intf.anno=\
   182     Unexpected @FunctionalInterface annotation
   184 # 0: message segment
   185 compiler.err.bad.functional.intf.anno.1=\
   186     Unexpected @FunctionalInterface annotation\n\
   187     {0}
   189 # 0: symbol
   190 compiler.misc.not.a.functional.intf=\
   191     {0} is not a functional interface
   193 # 0: symbol, 1: message segment
   194 compiler.misc.not.a.functional.intf.1=\
   195     {0} is not a functional interface\n\
   196     {1}
   198 # 0: symbol, 1: symbol kind, 2: symbol
   199 compiler.misc.invalid.generic.lambda.target=\
   200     invalid functional descriptor for lambda expression\n\
   201     method {0} in {1} {2} is generic
   203 # 0: symbol kind, 1: symbol
   204 compiler.misc.incompatible.descs.in.functional.intf=\
   205     incompatible function descriptors found in {0} {1}
   207 # 0: name, 1: list of type, 2: type, 3: list of type
   208 compiler.misc.descriptor=\
   209     descriptor: {2} {0}({1})
   211 # 0: name, 1: list of type, 2: type, 3: list of type
   212 compiler.misc.descriptor.throws=\
   213     descriptor: {2} {0}({1}) throws {3}
   215 # 0: type
   216 compiler.misc.no.suitable.functional.intf.inst=\
   217     cannot infer functional interface descriptor for {0}
   219 # 0: type
   220 compiler.misc.secondary.bound.must.be.marker.intf=\
   221     secondary bound {0} must be a marker interface
   223 # 0: symbol kind, 1: message segment
   224 compiler.err.invalid.mref=\
   225     invalid {0} reference; {1}
   227 # 0: symbol kind, 1: message segment
   228 compiler.misc.invalid.mref=\
   229     invalid {0} reference; {1}
   231 compiler.misc.static.mref.with.targs=\
   232     parameterized qualifier on static method reference
   234 compiler.misc.static.bound.mref=\
   235     static bound method reference
   237 # 0: symbol
   238 compiler.err.cant.assign.val.to.final.var=\
   239     cannot assign a value to final variable {0}
   241 # 0: symbol, 1: message segment
   242 compiler.err.cant.ref.non.effectively.final.var=\
   243     local variables referenced from {1} must be final or effectively final
   246 compiler.misc.lambda=\
   247     a lambda expression
   249 compiler.misc.inner.cls=\
   250     an inner class
   252 # 0: type
   253 compiler.err.cant.deref=\
   254     {0} cannot be dereferenced
   256 compiler.err.cant.extend.intf.annotation=\
   257     ''extends'' not allowed for @interfaces
   259 # 0: symbol
   260 compiler.err.cant.inherit.from.final=\
   261     cannot inherit from final {0}
   263 # 0: symbol
   264 compiler.err.cant.ref.before.ctor.called=\
   265     cannot reference {0} before supertype constructor has been called
   267 compiler.err.cant.select.static.class.from.param.type=\
   268     cannot select a static class from a parameterized type
   270 # 0: symbol, 1: string, 2: string
   271 compiler.err.cant.inherit.diff.arg=\
   272     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   274 compiler.err.catch.without.try=\
   275     ''catch'' without ''try''
   277 # 0: symbol kind, 1: symbol
   278 compiler.err.clash.with.pkg.of.same.name=\
   279     {0} {1} clashes with package of same name
   281 compiler.err.class.not.allowed=\
   282     class, interface or enum declaration not allowed here
   284 compiler.err.const.expr.req=\
   285     constant expression required
   287 compiler.err.cont.outside.loop=\
   288     continue outside of loop
   290 # 0: symbol
   291 compiler.err.cyclic.inheritance=\
   292     cyclic inheritance involving {0}
   294 compiler.err.cyclic.annotation.element=\
   295     cyclic annotation element type
   297 # 0: unused
   298 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   299     call to super not allowed in enum constructor
   301 # 0: type
   302 compiler.err.no.superclass=\
   303     {0} has no superclass
   305 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
   306 compiler.err.concrete.inheritance.conflict=\
   307     methods {0} from {1} and {2} from {3} are inherited with the same signature
   309 compiler.err.default.allowed.in.intf.annotation.member=\
   310     default value only allowed in an @interface member
   312 # 0: symbol
   313 compiler.err.doesnt.exist=\
   314     package {0} does not exist
   316 compiler.err.duplicate.annotation=\
   317     duplicate annotation
   319 # 0: type
   320 compiler.err.duplicate.annotation.invalid.repeated=\
   321     annotation {0} cannot be repeated\nIt does not define a valid containing annotation.
   323 # 0: name, 1: type
   324 compiler.err.duplicate.annotation.member.value=\
   325     duplicate annotation member value {0} in {1}
   327 # 0: type, 1: type
   328 compiler.err.duplicate.annotation.missing.container=\
   329     duplicate annotation, the declaration of {0} does not have a valid {1} annotation
   331 # 0: type
   332 compiler.err.invalid.repeatable.annotation=\
   333     duplicate annotation, {0} is annotated with an invalid Repeatable annotation
   335 # 0: type
   336 compiler.err.invalid.repeatable.annotation.no.value=\
   337     duplicate annotation, {0} is not a valid Repeatable, no value element method declared
   339 # 0: type, 1: number
   340 compiler.err.invalid.repeatable.annotation.multiple.values=\
   341     duplicate annotation, {0} is not a valid Repeatable, {1} value element methods declared
   343 # 0: type
   344 compiler.err.invalid.repeatable.annotation.invalid.value=\
   345     duplicate annotation, {0} is not a valid Repeatable, invalid value element, need a method
   347 # 0: type, 1: type, 2: type
   348 compiler.err.invalid.repeatable.annotation.value.return=\
   349     duplicate annotation, value element of containing annotation {0} should have type {2}, found {1}
   351 # 0: type, 1: symbol
   352 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
   353     containing annotation {0} does not have a default value for element {1}
   355 # 0: symbol, 1: type, 2: symbol, 3: type
   356 compiler.err.invalid.repeatable.annotation.retention=\
   357     containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3}
   359 # 0: symbol, 1: symbol
   360 compiler.err.invalid.repeatable.annotation.not.documented=\
   361     containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is
   363 # 0: symbol, 1: symbol
   364 compiler.err.invalid.repeatable.annotation.not.inherited=\
   365     containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is
   367 # 0: symbol, 1: symbol
   368 compiler.err.invalid.repeatable.annotation.incompatible.target=\
   369     target of container annotation {0} is not a subset of target of repeated annotation {1}
   371 # 0: symbol
   372 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
   373     container {0} must not be present at the same time as the element it contains
   375 # 0: name
   376 compiler.err.duplicate.class=\
   377     duplicate class: {0}
   379 compiler.err.duplicate.case.label=\
   380     duplicate case label
   382 compiler.err.duplicate.default.label=\
   383     duplicate default label
   385 compiler.err.else.without.if=\
   386     ''else'' without ''if''
   388 compiler.err.empty.char.lit=\
   389     empty character literal
   391 # 0: symbol
   392 compiler.err.encl.class.required=\
   393     an enclosing instance that contains {0} is required
   395 compiler.err.enum.annotation.must.be.enum.constant=\
   396     an enum annotation value must be an enum constant
   398 compiler.err.enum.cant.be.instantiated=\
   399     enum types may not be instantiated
   401 compiler.err.enum.label.must.be.unqualified.enum=\
   402     an enum switch case label must be the unqualified name of an enumeration constant
   404 compiler.err.enum.no.subclassing=\
   405     classes cannot directly extend java.lang.Enum
   407 compiler.err.enum.types.not.extensible=\
   408     enum types are not extensible
   410 compiler.err.enum.no.finalize=\
   411     enums cannot have finalize methods
   413 # 0: file name, 1: string
   414 compiler.err.error.reading.file=\
   415     error reading {0}; {1}
   417 # 0: type
   418 compiler.err.except.already.caught=\
   419     exception {0} has already been caught
   421 # 0: type
   422 compiler.err.except.never.thrown.in.try=\
   423     exception {0} is never thrown in body of corresponding try statement
   425 # 0: symbol
   426 compiler.err.final.parameter.may.not.be.assigned=\
   427     final parameter {0} may not be assigned
   429 # 0: symbol
   430 compiler.err.try.resource.may.not.be.assigned=\
   431     auto-closeable resource {0} may not be assigned
   433 # 0: symbol
   434 compiler.err.multicatch.parameter.may.not.be.assigned=\
   435     multi-catch parameter {0} may not be assigned
   437 # 0: type, 1: type
   438 compiler.err.multicatch.types.must.be.disjoint=\
   439     Alternatives in a multi-catch statement cannot be related by subclassing\n\
   440     Alternative {0} is a subclass of alternative {1}
   442 compiler.err.finally.without.try=\
   443     ''finally'' without ''try''
   445 # 0: type, 1: message segment
   446 compiler.err.foreach.not.applicable.to.type=\
   447     for-each not applicable to expression type\n\
   448     required: {1}\n\
   449     found:    {0}
   451 compiler.err.fp.number.too.large=\
   452     floating point number too large
   454 compiler.err.fp.number.too.small=\
   455     floating point number too small
   457 compiler.err.generic.array.creation=\
   458     generic array creation
   460 compiler.err.generic.throwable=\
   461     a generic class may not extend java.lang.Throwable
   463 # 0: symbol
   464 compiler.err.icls.cant.have.static.decl=\
   465     Illegal static declaration in inner class {0}\n\
   466     modifier \''static\'' is only allowed in constant variable declarations
   468 # 0: string
   469 compiler.err.illegal.char=\
   470     illegal character: ''{0}''
   472 compiler.err.illegal.char.for.encoding=\
   473     unmappable character for encoding {0}
   475 # 0: set of modifier, 1: set of modifier
   476 compiler.err.illegal.combination.of.modifiers=\
   477     illegal combination of modifiers: {0} and {1}
   479 compiler.err.illegal.enum.static.ref=\
   480     illegal reference to static field from initializer
   482 compiler.err.illegal.esc.char=\
   483     illegal escape character
   485 compiler.err.illegal.forward.ref=\
   486     illegal forward reference
   488 # 0: symbol, 1: string
   489 compiler.err.not.in.profile=\
   490     {0} is not available in profile ''{1}''
   492 # 0: symbol
   493 compiler.warn.forward.ref=\
   494     reference to variable ''{0}'' before it has been initialized
   496 compiler.err.illegal.self.ref=\
   497     self-reference in initializer
   499 # 0: symbol
   500 compiler.warn.self.ref=\
   501     self-reference in initializer of variable ''{0}''
   503 compiler.err.illegal.generic.type.for.instof=\
   504     illegal generic type for instanceof
   506 # 0: type
   507 compiler.err.illegal.initializer.for.type=\
   508     illegal initializer for {0}
   510 compiler.err.illegal.line.end.in.char.lit=\
   511     illegal line end in character literal
   513 compiler.err.illegal.nonascii.digit=\
   514     illegal non-ASCII digit
   516 compiler.err.illegal.underscore=\
   517     illegal underscore
   519 compiler.err.illegal.dot=\
   520     illegal ''.''
   522 # 0: symbol
   523 compiler.err.illegal.qual.not.icls=\
   524     illegal qualifier; {0} is not an inner class
   526 compiler.err.illegal.start.of.expr=\
   527     illegal start of expression
   529 compiler.err.illegal.start.of.stmt=\
   530     illegal start of statement
   532 compiler.err.illegal.start.of.type=\
   533     illegal start of type
   535 compiler.err.illegal.unicode.esc=\
   536     illegal unicode escape
   538 # 0: symbol
   539 compiler.err.import.requires.canonical=\
   540     import requires canonical name for {0}
   542 compiler.err.improperly.formed.type.param.missing=\
   543     improperly formed type, some parameters are missing
   545 compiler.err.improperly.formed.type.inner.raw.param=\
   546     improperly formed type, type arguments given on a raw type
   548 # 0: type, 1: type
   549 compiler.err.incomparable.types=\
   550     incomparable types: {0} and {1}
   552 # 0: number
   553 compiler.err.int.number.too.large=\
   554     integer number too large: {0}
   556 compiler.err.intf.annotation.members.cant.have.params=\
   557     @interface members may not have parameters
   559 compiler.err.intf.annotation.cant.have.type.params=\
   560     @interface may not have type parameters
   562 compiler.err.intf.annotation.members.cant.have.type.params=\
   563     @interface members may not have type parameters
   565 # 0: symbol, 1: type
   566 compiler.err.intf.annotation.member.clash=\
   567     @interface member clashes with method ''{0}'' in {1}
   569 compiler.err.intf.expected.here=\
   570     interface expected here
   572 compiler.err.intf.meth.cant.have.body=\
   573     interface abstract methods cannot have body
   575 compiler.err.invalid.annotation.member.type=\
   576     invalid type for annotation member
   578 compiler.err.invalid.binary.number=\
   579     binary numbers must contain at least one binary digit
   581 compiler.err.invalid.hex.number=\
   582     hexadecimal numbers must contain at least one hexadecimal digit
   584 compiler.err.invalid.meth.decl.ret.type.req=\
   585     invalid method declaration; return type required
   587 compiler.err.varargs.and.old.array.syntax=\
   588     legacy array notation not allowed on variable-arity parameter
   590 compiler.err.variable.not.allowed=\
   591     variable declaration not allowed here
   593 # 0: name
   594 compiler.err.label.already.in.use=\
   595     label {0} already in use
   597 # 0: symbol
   598 compiler.err.local.var.accessed.from.icls.needs.final=\
   599     local variable {0} is accessed from within inner class; needs to be declared final
   601 compiler.err.local.enum=\
   602     enum types must not be local
   604 compiler.err.cannot.create.array.with.type.arguments=\
   605     cannot create array with type arguments
   607 compiler.err.cannot.create.array.with.diamond=\
   608     cannot create array with ''<>''
   610 #
   611 # limits.  We don't give the limits in the diagnostic because we expect
   612 # them to change, yet we want to use the same diagnostic.  These are all
   613 # detected during code generation.
   614 #
   615 compiler.err.limit.code=\
   616     code too large
   618 compiler.err.limit.code.too.large.for.try.stmt=\
   619     code too large for try statement
   621 compiler.err.limit.dimensions=\
   622     array type has too many dimensions
   624 compiler.err.limit.locals=\
   625     too many local variables
   627 compiler.err.limit.parameters=\
   628     too many parameters
   630 compiler.err.limit.pool=\
   631     too many constants
   633 compiler.err.limit.pool.in.class=\
   634     too many constants in class {0}
   636 compiler.err.limit.stack=\
   637     code requires too much stack
   639 compiler.err.limit.string=\
   640     constant string too long
   642 compiler.err.limit.string.overflow=\
   643     UTF8 representation for string \"{0}...\" is too long for the constant pool
   645 compiler.err.malformed.fp.lit=\
   646     malformed floating point literal
   648 compiler.err.method.does.not.override.superclass=\
   649     method does not override or implement a method from a supertype
   651 compiler.err.missing.meth.body.or.decl.abstract=\
   652     missing method body, or declare abstract
   654 compiler.err.missing.ret.stmt=\
   655     missing return statement
   657 compiler.misc.missing.ret.val=\
   658     missing return value
   660 compiler.misc.unexpected.ret.val=\
   661     unexpected return value
   663 # 0: set of modifier
   664 compiler.err.mod.not.allowed.here=\
   665     modifier {0} not allowed here
   667 compiler.err.intf.not.allowed.here=\
   668     interface not allowed here
   670 compiler.err.enums.must.be.static=\
   671     enum declarations allowed only in static contexts
   673 # 0: symbol, 1: symbol
   674 compiler.err.name.clash.same.erasure=\
   675     name clash: {0} and {1} have the same erasure
   677 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
   678 compiler.err.name.clash.same.erasure.no.override=\
   679     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
   681 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
   682 compiler.err.name.clash.same.erasure.no.override.1=\
   683     name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
   684     first method:  {2} in {3}\n\
   685     second method: {4} in {5}
   687 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
   688 compiler.err.name.clash.same.erasure.no.hide=\
   689     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
   691 compiler.err.name.reserved.for.internal.use=\
   692     {0} is reserved for internal use
   694 compiler.err.native.meth.cant.have.body=\
   695     native methods cannot have a body
   697 # 0: type, 1: type
   698 compiler.err.neither.conditional.subtype=\
   699     incompatible types for ?: neither is a subtype of the other\n\
   700     second operand: {0}\n\
   701     third operand : {1}
   703 # 0: message segment
   704 compiler.misc.incompatible.type.in.conditional=\
   705     bad type in conditional expression; {0}
   707 compiler.misc.conditional.target.cant.be.void=\
   708     target-type for conditional expression cannot be void
   710 # 0: type
   711 compiler.misc.incompatible.ret.type.in.lambda=\
   712     bad return type in lambda expression\n\
   713     {0}
   715 # 0: type
   716 compiler.misc.incompatible.ret.type.in.mref=\
   717     bad return type in method reference\n\
   718     {0}
   720 # 0: list of type
   721 compiler.err.incompatible.thrown.types.in.lambda=\
   722     incompatible thrown types {0} in lambda expression
   724 # 0: list of type
   725 compiler.err.incompatible.thrown.types.in.mref=\
   726     incompatible thrown types {0} in method reference
   728 compiler.misc.incompatible.arg.types.in.lambda=\
   729     incompatible parameter types in lambda expression
   731 compiler.err.new.not.allowed.in.annotation=\
   732     ''new'' not allowed in an annotation
   734 compiler.err.no.annotation.member=\
   735     no annotation member {0} in {1}
   737 compiler.err.no.encl.instance.of.type.in.scope=\
   738     no enclosing instance of type {0} is in scope
   740 compiler.err.no.intf.expected.here=\
   741     no interface expected here
   743 compiler.err.no.match.entry=\
   744     {0} has no match in entry in {1}; required {2}
   746 compiler.err.not.annotation.type=\
   747     {0} is not an annotation type
   749 # 0: symbol, 1: symbol
   750 compiler.err.not.def.access.class.intf.cant.access=\
   751     {0} in {1} is defined in an inaccessible class or interface
   753 # 0: symbol, 1: symbol
   754 compiler.misc.not.def.access.class.intf.cant.access=\
   755     {0} in {1} is defined in an inaccessible class or interface
   757 # 0: symbol, 1: list of type, 2: type
   758 compiler.misc.cant.access.inner.cls.constr=\
   759     cannot access constructor {0}({1})\n\
   760     an enclosing instance of type {2} is not in scope
   762 # 0: symbol, 1: symbol
   763 compiler.err.not.def.public.cant.access=\
   764     {0} is not public in {1}; cannot be accessed from outside package
   766 # 0: name
   767 compiler.err.not.loop.label=\
   768     not a loop label: {0}
   770 compiler.err.not.stmt=\
   771     not a statement
   773 # 0: symbol
   774 compiler.err.not.encl.class=\
   775     not an enclosing class: {0}
   777 # 0: name, 1: type, 2: unused
   778 compiler.err.operator.cant.be.applied=\
   779     bad operand type {1} for unary operator ''{0}''
   781 # 0: name, 1: type, 2: type
   782 compiler.err.operator.cant.be.applied.1=\
   783     bad operand types for binary operator ''{0}''\n\
   784     first type:  {1}\n\
   785     second type: {2}
   787 compiler.err.pkg.annotations.sb.in.package-info.java=\
   788     package annotations should be in file package-info.java
   790 # 0: symbol
   791 compiler.err.pkg.clashes.with.class.of.same.name=\
   792     package {0} clashes with class of same name
   794 compiler.err.warnings.and.werror=\
   795     warnings found and -Werror specified
   797 # Errors related to annotation processing
   799 # 0: symbol, 1: string, 2: stack-trace
   800 compiler.err.proc.cant.access=\
   801     cannot access {0}\n\
   802     {1}\n\
   803     Consult the following stack trace for details.\n\
   804     {2}
   806 # 0: symbol, 1: string
   807 compiler.err.proc.cant.access.1=\
   808     cannot access {0}\n\
   809     {1}
   811 # 0: string
   812 compiler.err.proc.cant.find.class=\
   813     Could not find class file for ''{0}''.
   815 # Print a client-generated error message; assumed to be localized, no translation required
   816 # 0: string
   817 compiler.err.proc.messager=\
   818     {0}
   820 # 0: list of string
   821 compiler.err.proc.no.explicit.annotation.processing.requested=\
   822     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   824 compiler.err.proc.no.service=\
   825     A ServiceLoader was not usable and is required for annotation processing.
   827 compiler.err.proc.processor.bad.option.name=\
   828     Bad option name ''{0}'' provided by processor ''{1}''
   830 # 0: string
   831 compiler.err.proc.processor.cant.instantiate=\
   832     Could not instantiate an instance of processor ''{0}''
   834 # 0: string
   835 compiler.err.proc.processor.not.found=\
   836     Annotation processor ''{0}'' not found
   838 # 0: string
   839 compiler.err.proc.processor.wrong.type=\
   840     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
   842 compiler.err.proc.service.problem=\
   843     Error creating a service loader to load Processors.
   845 compiler.err.proc.bad.config.file=\
   846     Bad service configuration file, or exception thrown while constructing Processor object: {0}
   848 compiler.err.proc.cant.create.loader=\
   849     Could not create class loader for annotation processors: {0}
   851 # 0: unused
   852 compiler.err.qualified.new.of.static.class=\
   853     qualified new of static class
   855 compiler.err.recursive.ctor.invocation=\
   856     recursive constructor invocation
   858 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   859 compiler.err.ref.ambiguous=\
   860     reference to {0} is ambiguous\n\
   861     both {1} {2} in {3} and {4} {5} in {6} match
   863 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   864 compiler.misc.ref.ambiguous=\
   865     reference to {0} is ambiguous\n\
   866     both {1} {2} in {3} and {4} {5} in {6} match
   868 compiler.err.repeated.annotation.target=\
   869     repeated annotation target
   871 compiler.err.repeated.interface=\
   872     repeated interface
   874 compiler.err.repeated.modifier=\
   875     repeated modifier
   877 # 0: symbol, 1: set of modifier, 2: symbol
   878 compiler.err.report.access=\
   879     {0} has {1} access in {2}
   881 compiler.err.ret.outside.meth=\
   882     return outside method
   884 compiler.err.signature.doesnt.match.supertype=\
   885     signature does not match {0}; incompatible supertype
   887 compiler.err.signature.doesnt.match.intf=\
   888     signature does not match {0}; incompatible interfaces
   890 # 0: symbol, 1: symbol, 2: symbol
   891 compiler.err.does.not.override.abstract=\
   892     {0} is not abstract and does not override abstract method {1} in {2}
   894 compiler.err.source.cant.overwrite.input.file=\
   895     error writing source; cannot overwrite input file {0}
   897 compiler.err.stack.sim.error=\
   898     Internal error: stack sim error on {0}
   900 compiler.err.static.imp.only.classes.and.interfaces=\
   901     static import only from classes and interfaces
   903 compiler.err.string.const.req=\
   904     constant string expression required
   906 # 0: symbol, 1: symbol
   907 compiler.err.synthetic.name.conflict=\
   908     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   910 # 0: symbol, 1: symbol
   911 compiler.warn.synthetic.name.conflict=\
   912     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   914 compiler.err.throws.not.allowed.in.intf.annotation=\
   915     throws clause not allowed in @interface members
   917 compiler.err.try.without.catch.or.finally=\
   918     ''try'' without ''catch'' or ''finally''
   920 compiler.err.try.without.catch.finally.or.resource.decls=\
   921     ''try'' without ''catch'', ''finally'' or resource declarations
   923 # 0: symbol
   924 compiler.err.type.doesnt.take.params=\
   925     type {0} does not take parameters
   927 compiler.err.type.var.cant.be.deref=\
   928     cannot select from a type variable
   930 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
   931     a type variable may not be followed by other bounds
   933 compiler.err.type.var.more.than.once=\
   934     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
   936 compiler.err.type.var.more.than.once.in.result=\
   937     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
   939 # 0: type, 1: type, 2: string
   940 compiler.err.types.incompatible.diff.ret=\
   941     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
   943 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
   944 compiler.err.types.incompatible.unrelated.defaults=\
   945     {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
   947 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
   948 compiler.err.types.incompatible.abstract.default=\
   949     {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
   951 # 0: name, 1: kind, 2: symbol
   952 compiler.err.default.overrides.object.member=\
   953     default method {0} in {1} {2} overrides a member of java.lang.Object
   955 # 0: type
   956 compiler.err.illegal.static.intf.meth.call=\
   957     illegal static interface method call\n\
   958     the receiver expression should be replaced with the type qualifier ''{0}''
   960 # 0: type, 1: message segment
   961 compiler.err.illegal.default.super.call=\
   962     bad type qualifier {0} in default super call\n\
   963     {1}
   965 # 0: symbol, 1: type
   966 compiler.misc.overridden.default=\
   967     method {0} is overridden in {1}
   969 # 0: symbol, 1: symbol
   970 compiler.misc.redundant.supertype=\
   971     redundant interface {0} is extended by {1}
   973 compiler.err.unclosed.char.lit=\
   974     unclosed character literal
   976 compiler.err.unclosed.comment=\
   977     unclosed comment
   979 compiler.err.unclosed.str.lit=\
   980     unclosed string literal
   982 # 0: name
   983 compiler.err.unsupported.encoding=\
   984     unsupported encoding: {0}
   986 compiler.err.io.exception=\
   987     error reading source file: {0}
   989 # 0: name
   990 compiler.err.undef.label=\
   991     undefined label: {0}
   993 # 0: message segment, 1: unused
   994 compiler.err.cant.apply.diamond=\
   995     cannot infer type arguments for {0}
   997 # 0: message segment or type, 1: message segment
   998 compiler.err.cant.apply.diamond.1=\
   999     cannot infer type arguments for {0}\n\
  1000     reason: {1}
  1002 # 0: message segment or type, 1: message segment
  1003 compiler.misc.cant.apply.diamond.1=\
  1004     cannot infer type arguments for {0}\n\
  1005     reason: {1}
  1007 compiler.err.unreachable.stmt=\
  1008     unreachable statement
  1010 compiler.err.initializer.must.be.able.to.complete.normally=\
  1011     initializer must be able to complete normally
  1013 # 0: type
  1014 compiler.err.unreported.exception.need.to.catch.or.throw=\
  1015     unreported exception {0}; must be caught or declared to be thrown
  1017 # 0: type
  1018 compiler.err.unreported.exception.default.constructor=\
  1019     unreported exception {0} in default constructor
  1021 # 0: type, 1: name
  1022 compiler.err.unreported.exception.implicit.close=\
  1023     unreported exception {0}; must be caught or declared to be thrown\n\
  1024     exception thrown from implicit call to close() on resource variable ''{1}''
  1026 compiler.err.unsupported.cross.fp.lit=\
  1027     hexadecimal floating-point literals are not supported on this VM
  1029 compiler.err.void.not.allowed.here=\
  1030     ''void'' type not allowed here
  1032 # 0: string
  1033 compiler.err.wrong.number.type.args=\
  1034     wrong number of type arguments; required {0}
  1036 # 0: symbol
  1037 compiler.err.var.might.already.be.assigned=\
  1038     variable {0} might already have been assigned
  1040 # 0: symbol
  1041 compiler.err.var.might.not.have.been.initialized=\
  1042     variable {0} might not have been initialized
  1044 # 0: symbol
  1045 compiler.err.var.might.be.assigned.in.loop=\
  1046     variable {0} might be assigned in loop
  1048 # 0: symbol, 1: message segment
  1049 compiler.err.varargs.invalid.trustme.anno=\
  1050     Invalid {0} annotation. {1}
  1052 # 0: type
  1053 compiler.misc.varargs.trustme.on.reifiable.varargs=\
  1054     Varargs element type {0} is reifiable.
  1056 # 0: symbol
  1057 compiler.misc.varargs.trustme.on.non.varargs.meth=\
  1058     Method {0} is not a varargs method.
  1060 # 0: symbol
  1061 compiler.misc.varargs.trustme.on.virtual.varargs=\
  1062     Instance method {0} is not final.
  1064 # 0: type, 1: symbol kind, 2: symbol
  1065 compiler.misc.inaccessible.varargs.type=\
  1066     formal varargs element type {0} is not accessible from {1} {2}
  1068 # In the following string, {1} will always be the detail message from
  1069 # java.io.IOException.
  1070 # 0: symbol, 1: string
  1071 compiler.err.class.cant.write=\
  1072     error while writing {0}: {1}
  1074 # In the following string, {0} is the name of the class in the Java source.
  1075 # It really should be used two times..
  1076 # 0: name
  1077 compiler.err.class.public.should.be.in.file=\
  1078     class {0} is public, should be declared in a file named {0}.java
  1080 ## All errors which do not refer to a particular line in the source code are
  1081 ## preceded by this string.
  1082 compiler.err.error=\
  1083     error:\u0020
  1085 # The following error messages do not refer to a line in the source code.
  1086 compiler.err.cant.read.file=\
  1087     cannot read: {0}
  1089 #####
  1091 # Fatal Errors
  1093 compiler.misc.fatal.err.no.java.lang=\
  1094     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
  1096 compiler.misc.fatal.err.cant.locate.meth=\
  1097     Fatal Error: Unable to find method {0}
  1099 compiler.misc.fatal.err.cant.locate.field=\
  1100     Fatal Error: Unable to find field {0}
  1102 compiler.misc.fatal.err.cant.locate.ctor=\
  1103     Fatal Error: Unable to find constructor for {0}
  1105 compiler.misc.fatal.err.cant.close=\
  1106     Fatal Error: Cannot close compiler resources
  1108 #####
  1110 ##
  1111 ## miscellaneous strings
  1112 ##
  1114 compiler.misc.source.unavailable=\
  1115     (source unavailable)
  1117 compiler.misc.base.membership=\
  1118     all your base class are belong to us
  1120 # 0: string, 1: string, 2: boolean
  1121 compiler.misc.x.print.processor.info=\
  1122     Processor {0} matches {1} and returns {2}.
  1124 # 0: number, 1: string, 2: set of symbol, 3: boolean
  1125 compiler.misc.x.print.rounds=\
  1126     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
  1128 #####
  1130 ## The following string will appear before all messages keyed as:
  1131 ## "compiler.note".
  1133 compiler.note.potential.lambda.found=\
  1134     This anonymous inner class creation can be turned into a lambda expression.
  1136 compiler.note.note=\
  1137     Note:\u0020
  1139 # 0: file name
  1140 compiler.note.deprecated.filename=\
  1141     {0} uses or overrides a deprecated API.
  1143 compiler.note.deprecated.plural=\
  1144     Some input files use or override a deprecated API.
  1146 # The following string may appear after one of the above deprecation
  1147 # messages.
  1148 compiler.note.deprecated.recompile=\
  1149     Recompile with -Xlint:deprecation for details.
  1151 # 0: file name
  1152 compiler.note.deprecated.filename.additional=\
  1153     {0} has additional uses or overrides of a deprecated API.
  1155 compiler.note.deprecated.plural.additional=\
  1156     Some input files additionally use or override a deprecated API.
  1158 # 0: file name
  1159 compiler.note.unchecked.filename=\
  1160     {0} uses unchecked or unsafe operations.
  1162 compiler.note.unchecked.plural=\
  1163     Some input files use unchecked or unsafe operations.
  1165 # The following string may appear after one of the above deprecation
  1166 # messages.
  1167 compiler.note.unchecked.recompile=\
  1168     Recompile with -Xlint:unchecked for details.
  1170 # 0: file name
  1171 compiler.note.unchecked.filename.additional=\
  1172     {0} has additional unchecked or unsafe operations.
  1174 compiler.note.unchecked.plural.additional=\
  1175     Some input files additionally use unchecked or unsafe operations.
  1177 # 0: file name
  1178 compiler.note.sunapi.filename=\
  1179     {0} uses internal proprietary API that may be removed in a future release.
  1181 compiler.note.sunapi.plural=\
  1182     Some input files use internal proprietary API that may be removed in a future release.
  1184 # The following string may appear after one of the above sunapi messages.
  1185 compiler.note.sunapi.recompile=\
  1186     Recompile with -Xlint:sunapi for details.
  1188 # 0: file name
  1189 compiler.note.sunapi.filename.additional=\
  1190     {0} uses additional internal proprietary API that may be removed in a future release.
  1192 compiler.note.sunapi.plural.additional=\
  1193     Some input files additionally use internal proprietary API that may be removed in a future release.
  1195 # Notes related to annotation processing
  1197 # Print a client-generated note; assumed to be localized, no translation required
  1198 # 0: string
  1199 compiler.note.proc.messager=\
  1200     {0}
  1202 #####
  1204 # 0: number
  1205 compiler.misc.count.error=\
  1206     {0} error
  1208 # 0: number
  1209 compiler.misc.count.error.plural=\
  1210     {0} errors
  1212 # 0: number
  1213 compiler.misc.count.warn=\
  1214     {0} warning
  1216 # 0: number
  1217 compiler.misc.count.warn.plural=\
  1218     {0} warnings
  1220 compiler.misc.version.not.available=\
  1221     (version info not available)
  1223 ## extra output when using -verbose (JavaCompiler)
  1225 # 0: symbol
  1226 compiler.misc.verbose.checking.attribution=\
  1227     [checking {0}]
  1229 # 0: string
  1230 compiler.misc.verbose.parsing.done=\
  1231     [parsing completed {0}ms]
  1233 # 0: file name
  1234 compiler.misc.verbose.parsing.started=\
  1235     [parsing started {0}]
  1237 # 0: string
  1238 compiler.misc.verbose.total=\
  1239     [total {0}ms]
  1241 # 0: file name
  1242 compiler.misc.verbose.wrote.file=\
  1243     [wrote {0}]
  1245 ## extra output when using -verbose (Retro)
  1246 compiler.misc.verbose.retro=\
  1247     [retrofitting {0}]
  1249 compiler.misc.verbose.retro.with=\
  1250     \tretrofitting {0} with {1}
  1252 compiler.misc.verbose.retro.with.list=\
  1253     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
  1255 ## extra output when using -verbose (code/ClassReader)
  1256 # 0: string
  1257 compiler.misc.verbose.loading=\
  1258     [loading {0}]
  1260 # 0: string
  1261 compiler.misc.verbose.sourcepath=\
  1262     [search path for source files: {0}]
  1264 # 0: string
  1265 compiler.misc.verbose.classpath=\
  1266     [search path for class files: {0}]
  1268 ## extra output when using -checkclassfile (code/ClassReader)
  1269 compiler.misc.ccf.found.later.version=\
  1270     class file has later version than expected: {0}
  1272 compiler.misc.ccf.unrecognized.attribute=\
  1273     unrecognized attribute: {0}
  1275 ## extra output when using -prompt (util/Log)
  1276 compiler.misc.resume.abort=\
  1277     R)esume, A)bort>
  1279 #####
  1281 ##
  1282 ## warnings
  1283 ##
  1285 ## All warning messages are preceded by the following string.
  1286 compiler.warn.warning=\
  1287     warning:\u0020
  1289 ## Warning messages may also include the following prefix to identify a
  1290 ## lint option
  1291 # 0: option name
  1292 compiler.warn.lintOption=\
  1293     [{0}]\u0020
  1295 # 0: symbol
  1296 compiler.warn.constant.SVUID=\
  1297     serialVersionUID must be constant in class {0}
  1299 # 0: file name
  1300 compiler.warn.dir.path.element.not.found=\
  1301     bad path element "{0}": no such directory
  1303 compiler.warn.finally.cannot.complete=\
  1304     finally clause cannot complete normally
  1306 # 0: symbol, 1: symbol
  1307 compiler.warn.has.been.deprecated=\
  1308     {0} in {1} has been deprecated
  1310 # 0: symbol
  1311 compiler.warn.sun.proprietary=\
  1312     {0} is internal proprietary API and may be removed in a future release
  1314 compiler.warn.illegal.char.for.encoding=\
  1315     unmappable character for encoding {0}
  1317 # 0: symbol
  1318 compiler.warn.improper.SVUID=\
  1319     serialVersionUID must be declared static final in class {0}
  1321 # 0: type, 1: type
  1322 compiler.warn.inexact.non-varargs.call=\
  1323     non-varargs call of varargs method with inexact argument type for last parameter;\n\
  1324     cast to {0} for a varargs call\n\
  1325     cast to {1} for a non-varargs call and to suppress this warning
  1327 # 0: list of type
  1328 compiler.warn.unreachable.catch=\
  1329     unreachable catch clause\n\
  1330     thrown type {0} has already been caught
  1332 # 0: list of type
  1333 compiler.warn.unreachable.catch.1=\
  1334     unreachable catch clause\n\
  1335     thrown types {0} have already been caught
  1337 # 0: symbol
  1338 compiler.warn.long.SVUID=\
  1339     serialVersionUID must be of type long in class {0}
  1341 # 0: symbol
  1342 compiler.warn.missing.SVUID=\
  1343     serializable class {0} has no definition of serialVersionUID
  1345 # 0: message segment
  1346 compiler.warn.override.varargs.missing=\
  1347     {0}; overridden method has no ''...''
  1349 # 0: message segment
  1350 compiler.warn.override.varargs.extra=\
  1351     {0}; overriding method is missing ''...''
  1353 compiler.warn.override.bridge=\
  1354     {0}; overridden method is a bridge method
  1356 # 0: symbol
  1357 compiler.warn.pkg-info.already.seen=\
  1358     a package-info.java file has already been seen for package {0}
  1360 # 0: file name
  1361 compiler.warn.path.element.not.found=\
  1362     bad path element "{0}": no such file or directory
  1364 compiler.warn.possible.fall-through.into.case=\
  1365     possible fall-through into case
  1367 # 0: type
  1368 compiler.warn.redundant.cast=\
  1369     redundant cast to {0}
  1371 # 0: number
  1372 compiler.warn.position.overflow=\
  1373     Position encoding overflows at line {0}
  1375 # 0: file name, 1: number, 2: number
  1376 compiler.warn.big.major.version=\
  1377     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
  1378     It is recommended that the compiler be upgraded.
  1380 # 0: symbol kind, 1: symbol
  1381 compiler.warn.static.not.qualified.by.type=\
  1382     static {0} should be qualified by type name, {1}, instead of by an expression
  1384 # 0: string
  1385 compiler.warn.source.no.bootclasspath=\
  1386     bootstrap class path not set in conjunction with -source {0}
  1388 # 0: name, 1: number, 2: number, 3: number, 4: number
  1389 compiler.warn.future.attr=\
  1390     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
  1392 # Warnings related to annotation processing
  1393 # 0: name
  1394 compiler.warn.proc.package.does.not.exist=\
  1395     package {0} does not exist
  1397 # 0: name
  1398 compiler.warn.proc.file.reopening=\
  1399     Attempt to create a file for ''{0}'' multiple times
  1401 # 0: name
  1402 compiler.warn.proc.type.already.exists=\
  1403     A file for type ''{0}'' already exists on the sourcepath or classpath
  1405 # 0: name
  1406 compiler.warn.proc.type.recreate=\
  1407     Attempt to create a file for type ''{0}'' multiple times
  1409 # 0: string
  1410 compiler.warn.proc.illegal.file.name=\
  1411     Cannot create file for illegal name ''{0}''.
  1413 # 0: string, 1: string
  1414 compiler.warn.proc.suspicious.class.name=\
  1415     Creating file for a type whose name ends in {1}: ''{0}''
  1417 # 0: name
  1418 compiler.warn.proc.file.create.last.round=\
  1419     File for type ''{0}'' created in the last round will not be subject to annotation processing.
  1421 # 0: string, 1: string
  1422 compiler.warn.proc.malformed.supported.string=\
  1423     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
  1425 # 0: set of string
  1426 compiler.warn.proc.annotations.without.processors=\
  1427     No processor claimed any of these annotations: {0}
  1429 # 0: source version, 1: string, 2: string
  1430 compiler.warn.proc.processor.incompatible.source.version=\
  1431     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
  1433 compiler.warn.proc.proc-only.requested.no.procs=\
  1434     Annotation processing without compilation requested but no processors were found.
  1436 compiler.warn.proc.use.implicit=\
  1437     Implicitly compiled files were not subject to annotation processing.\n\
  1438     Use -implicit to specify a policy for implicit compilation.
  1440 compiler.warn.proc.use.proc.or.implicit=\
  1441     Implicitly compiled files were not subject to annotation processing.\n\
  1442     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
  1444 # Print a client-generated warning; assumed to be localized, no translation required
  1445 # 0: string
  1446 compiler.warn.proc.messager=\
  1447     {0}
  1449 # 0: set of name
  1450 compiler.warn.proc.unclosed.type.files=\
  1451     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
  1453 # 0: string
  1454 compiler.warn.proc.unmatched.processor.options=\
  1455     The following options were not recognized by any processor: ''{0}''
  1457 compiler.warn.try.explicit.close.call=\
  1458     explicit call to close() on an auto-closeable resource
  1460 # 0: symbol
  1461 compiler.warn.try.resource.not.referenced=\
  1462     auto-closeable resource {0} is never referenced in body of corresponding try statement
  1464 # 0: type
  1465 compiler.warn.try.resource.throws.interrupted.exc=\
  1466     auto-closeable resource {0} has a member method close() that could throw InterruptedException
  1468 compiler.warn.unchecked.assign=\
  1469     unchecked assignment: {0} to {1}
  1471 # 0: symbol, 1: type
  1472 compiler.warn.unchecked.assign.to.var=\
  1473     unchecked assignment to variable {0} as member of raw type {1}
  1475 # 0: symbol, 1: type
  1476 compiler.warn.unchecked.call.mbr.of.raw.type=\
  1477     unchecked call to {0} as a member of the raw type {1}
  1479 compiler.warn.unchecked.cast.to.type=\
  1480     unchecked cast to type {0}
  1482 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
  1483 compiler.warn.unchecked.meth.invocation.applied=\
  1484     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
  1485     required: {2}\n\
  1486     found: {3}
  1488 # 0: type
  1489 compiler.warn.unchecked.generic.array.creation=\
  1490     unchecked generic array creation for varargs parameter of type {0}
  1492 # 0: type
  1493 compiler.warn.unchecked.varargs.non.reifiable.type=\
  1494     Possible heap pollution from parameterized vararg type {0}
  1496 # 0: symbol
  1497 compiler.warn.varargs.unsafe.use.varargs.param=\
  1498     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
  1500 compiler.warn.missing.deprecated.annotation=\
  1501     deprecated item is not annotated with @Deprecated
  1503 compiler.warn.invalid.archive.file=\
  1504     Unexpected file on path: {0}
  1506 compiler.warn.unexpected.archive.file=\
  1507     Unexpected extension for archive file: {0}
  1509 compiler.warn.div.zero=\
  1510     division by zero
  1512 compiler.warn.empty.if=\
  1513     empty statement after if
  1515 compiler.warn.annotation.method.not.found=\
  1516     Cannot find annotation method ''{1}()'' in type ''{0}''
  1518 compiler.warn.annotation.method.not.found.reason=\
  1519     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
  1521 # 0: symbol, 1: name
  1522 compiler.warn.unknown.enum.constant=\
  1523     unknown enum constant {1}.{2}
  1525 # 0: symbol, 1: name, 2: message segment
  1526 compiler.warn.unknown.enum.constant.reason=\
  1527     unknown enum constant {1}.{2}\n\
  1528     reason: {3}
  1530 # 0: type, 1: type
  1531 compiler.warn.raw.class.use=\
  1532     found raw type: {0}\n\
  1533     missing type arguments for generic class {1}
  1535 # 0: unused, 1: unused
  1536 compiler.warn.diamond.redundant.args=\
  1537     redundant type arguments in new expression (use diamond operator instead).
  1539 # 0: type, 1: type
  1540 compiler.warn.diamond.redundant.args.1=\
  1541     redundant type arguments in new expression (use diamond operator instead).\n\
  1542     explicit: {0}\n\
  1543     inferred: {1}
  1545 # 0: symbol, 1: message segment
  1546 compiler.warn.varargs.redundant.trustme.anno=\
  1547     Redundant {0} annotation. {1}
  1549 #####
  1551 ## The following are tokens which are non-terminals in the language. They should
  1552 ## be named as JLS3 calls them when translated to the appropriate language.
  1553 compiler.misc.token.identifier=\
  1554     <identifier>
  1556 compiler.misc.token.character=\
  1557     <character>
  1559 compiler.misc.token.string=\
  1560     <string>
  1562 compiler.misc.token.integer=\
  1563     <integer>
  1565 compiler.misc.token.long-integer=\
  1566     <long integer>
  1568 compiler.misc.token.float=\
  1569     <float>
  1571 compiler.misc.token.double=\
  1572     <double>
  1574 compiler.misc.token.bad-symbol=\
  1575     <bad symbol>
  1577 compiler.misc.token.end-of-input=\
  1578     <end of input>
  1580 ## The argument to the following string will always be one of the following:
  1581 ## 1. one of the above non-terminals
  1582 ## 2. a keyword (JLS1.8)
  1583 ## 3. a boolean literal (JLS3.10.3)
  1584 ## 4. the null literal (JLS3.10.7)
  1585 ## 5. a Java separator (JLS3.11)
  1586 ## 6. an operator (JLS3.12)
  1587 ##
  1588 ## This is the only place these tokens will be used.
  1589 # 0: token
  1590 compiler.err.expected=\
  1591     {0} expected
  1593 # 0: token, 1: token
  1594 compiler.err.expected2=\
  1595     {0} or {1} expected
  1597 # 0: token, 1: token, 2: token
  1598 compiler.err.expected3=\
  1599     {0}, {1}, or {2} expected
  1601 compiler.err.premature.eof=\
  1602     reached end of file while parsing
  1604 ## The following are related in form, but do not easily fit the above paradigm.
  1605 compiler.err.dot.class.expected=\
  1606     ''.class'' expected
  1608 ## The argument to this string will always be either 'case' or 'default'.
  1609 # 0: token
  1610 compiler.err.orphaned=\
  1611     orphaned {0}
  1613 # 0: name
  1614 compiler.misc.anonymous.class=\
  1615     <anonymous {0}>
  1617 # 0: name, 1: type
  1618 compiler.misc.type.captureof=\
  1619     capture#{0} of {1}
  1621 compiler.misc.type.captureof.1=\
  1622     capture#{0}
  1624 compiler.misc.type.none=\
  1625     <none>
  1627 compiler.misc.unnamed.package=\
  1628     unnamed package
  1630 #####
  1632 # 0: symbol, 1: message segment
  1633 compiler.err.cant.access=\
  1634     cannot access {0}\n\
  1635     {1}
  1637 compiler.misc.bad.class.file.header=\
  1638     bad class file: {0}\n\
  1639     {1}\n\
  1640     Please remove or make sure it appears in the correct subdirectory of the classpath.
  1642 # 0: file name, 1: message segment
  1643 compiler.misc.bad.source.file.header=\
  1644     bad source file: {0}\n\
  1645     {1}\n\
  1646     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
  1648 ## The following are all possible strings for the second argument ({1}) of the
  1649 ## above strings.
  1650 compiler.misc.bad.class.signature=\
  1651     bad class signature: {0}
  1653 #0: symbol, 1: symbol
  1654 compiler.misc.bad.enclosing.class=\
  1655     bad enclosing class for {0}: {1}
  1657 # 0: symbol
  1658 compiler.misc.bad.enclosing.method=\
  1659     bad enclosing method attribute for class {0}
  1661 compiler.misc.bad.runtime.invisible.param.annotations=\
  1662     bad RuntimeInvisibleParameterAnnotations attribute: {0}
  1664 compiler.misc.bad.const.pool.tag=\
  1665     bad constant pool tag: {0}
  1667 compiler.misc.bad.const.pool.tag.at=\
  1668     bad constant pool tag: {0} at {1}
  1670 compiler.misc.bad.signature=\
  1671     bad signature: {0}
  1673 compiler.misc.bad.type.annotation.value=\
  1674     bad type annotation target type value: {0}
  1676 compiler.misc.class.file.wrong.class=\
  1677     class file contains wrong class: {0}
  1679 compiler.misc.class.file.not.found=\
  1680     class file for {0} not found
  1682 # 0: name
  1683 compiler.misc.file.doesnt.contain.class=\
  1684     file does not contain class {0}
  1686 compiler.misc.file.does.not.contain.package=\
  1687     file does not contain package {0}
  1689 compiler.misc.illegal.start.of.class.file=\
  1690     illegal start of class file
  1692 compiler.misc.unable.to.access.file=\
  1693     unable to access file: {0}
  1695 compiler.misc.unicode.str.not.supported=\
  1696     unicode string in class file not supported
  1698 compiler.misc.undecl.type.var=\
  1699     undeclared type variable: {0}
  1701 compiler.misc.wrong.version=\
  1702     class file has wrong version {0}.{1}, should be {2}.{3}
  1704 #####
  1706 # 0: type, 1: type or symbol
  1707 compiler.err.not.within.bounds=\
  1708     type argument {0} is not within bounds of type-variable {1}
  1710 ## The following are all possible strings for the second argument ({1}) of the
  1711 ## above string.
  1713 ## none yet...
  1715 #####
  1717 # 0: message segment
  1718 compiler.err.prob.found.req=\
  1719     incompatible types: {0}
  1721 # 0: message segment, 1: type, 2: type
  1722 compiler.warn.prob.found.req=\
  1723     {0}\n\
  1724     required: {2}\n\
  1725     found:    {1}
  1727 # 0: type, 1: type
  1728 compiler.misc.inconvertible.types=\
  1729     {0} cannot be converted to {1}
  1731 # 0: type, 1: type
  1732 compiler.misc.possible.loss.of.precision=\
  1733     possible lossy conversion from {0} to {1}
  1735 compiler.misc.unchecked.assign=\
  1736     unchecked conversion
  1738 # compiler.misc.storecheck=\
  1739 #     assignment might cause later store checks to fail
  1740 # compiler.misc.unchecked=\
  1741 #     assigned array cannot dynamically check its stores
  1742 compiler.misc.unchecked.cast.to.type=\
  1743     unchecked cast
  1745 # compiler.err.star.expected=\
  1746 #     ''*'' expected
  1747 # compiler.err.no.elem.type=\
  1748 #     \[\*\] cannot have a type
  1750 # 0: type
  1751 compiler.misc.try.not.applicable.to.type=\
  1752     try-with-resources not applicable to variable type\n\
  1753     ({0})
  1755 #####
  1757 # 0: message segment or type, 1: message segment
  1758 compiler.err.type.found.req=\
  1759     unexpected type\n\
  1760     required: {1}\n\
  1761     found:    {0}
  1763 ## The following are all possible strings for the first argument ({0}) of the
  1764 ## above string.
  1765 compiler.misc.type.req.class=\
  1766     class
  1768 compiler.misc.type.req.class.array=\
  1769     class or array
  1771 compiler.misc.type.req.array.or.iterable=\
  1772     array or java.lang.Iterable
  1774 compiler.misc.type.req.ref=\
  1775     reference
  1777 compiler.misc.type.req.exact=\
  1778     class or interface without bounds
  1780 # 0: type
  1781 compiler.misc.type.parameter=\
  1782     type parameter {0}
  1784 #####
  1786 ## The following are all possible strings for the last argument of all those
  1787 ## diagnostics whose key ends in ".1"
  1789 # 0: type, 1: list of type
  1790 compiler.misc.no.unique.maximal.instance.exists=\
  1791     no unique maximal instance exists for type variable {0} with upper bounds {1}
  1793 compiler.misc.no.unique.minimal.instance.exists=\
  1794     no unique minimal instance exists for type variable {0} with lower bounds {1}
  1796 # 0: type, 1: list of type
  1797 compiler.misc.incompatible.upper.bounds=\
  1798     inference variable {0} has incompatible upper bounds {1}
  1800 # 0: type, 1: list of type, 2: list of type
  1801 compiler.misc.incompatible.eq.upper.bounds=\
  1802     inference variable {0} has incompatible bounds\n\
  1803     equality constraints: {1}\n\
  1804     upper bounds: {2}
  1806 # 0: type, 1: list of type, 2: list of type
  1807 compiler.misc.incompatible.eq.lower.bounds=\
  1808     inference variable {0} has incompatible bounds\n\
  1809     equality constraints: {1}\n\
  1810     lower bounds: {2}
  1812 # 0: list of type, 1: type, 2: type
  1813 compiler.misc.infer.no.conforming.instance.exists=\
  1814     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
  1816 # 0: list of type, 1: message segment
  1817 compiler.misc.infer.no.conforming.assignment.exists=\
  1818     cannot infer type-variable(s) {0}\n\
  1819     (argument mismatch; {1})
  1821 # 0: list of type
  1822 compiler.misc.infer.arg.length.mismatch=\
  1823     cannot infer type-variable(s) {0}\n\
  1824     (actual and formal argument lists differ in length)
  1826 # 0: list of type, 1: message segment
  1827 compiler.misc.infer.varargs.argument.mismatch=\
  1828     cannot infer type-variable(s) {0}\n\
  1829     (varargs mismatch; {1})
  1831 # 0: type, 1: list of type
  1832 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
  1833     inferred type does not conform to upper bound(s)\n\
  1834     inferred: {0}\n\
  1835     upper bound(s): {1}
  1837 # 0: type, 1: list of type
  1838 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
  1839     inferred type does not conform to lower bound(s)\n\
  1840     inferred: {0}\n\
  1841     lower bound(s): {1}
  1843 # 0: type, 1: list of type
  1844 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
  1845     inferred type does not conform to equality constraint(s)\n\
  1846     inferred: {0}\n\
  1847     equality constraints(s): {1}
  1849 # 0: list of type
  1850 compiler.misc.cyclic.inference=\
  1851     Cannot instantiate inference variables {0} because of an inference loop
  1853 # 0: symbol
  1854 compiler.misc.diamond=\
  1855     {0}<>
  1857 # 0: type
  1858 compiler.misc.diamond.non.generic=\
  1859     cannot use ''<>'' with non-generic class {0}
  1861 # 0: unused
  1862 compiler.misc.diamond.and.explicit.params=\
  1863     cannot use ''<>'' with explicit type parameters for constructor
  1865 # 0: type, 1: list of type
  1866 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  1867     explicit type argument {0} does not conform to declared bound(s) {1}
  1869 compiler.misc.arg.length.mismatch=\
  1870     actual and formal argument lists differ in length
  1872 # 0: message segment
  1873 compiler.misc.no.conforming.assignment.exists=\
  1874     argument mismatch; {0}
  1876 # 0: message segment
  1877 compiler.misc.varargs.argument.mismatch=\
  1878     varargs mismatch; {0}
  1880 #####
  1882 # 0: type, 1: file name
  1883 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
  1884     auxiliary class {0} in {1} should not be accessed from outside its own source file
  1887 ## The first argument ({0}) is a "kindname".
  1888 # 0: symbol kind, 1: symbol, 2: symbol
  1889 compiler.err.abstract.cant.be.accessed.directly=\
  1890     abstract {0} {1} in {2} cannot be accessed directly
  1892 ## The first argument ({0}) is a "kindname".
  1893 # 0: symbol kind, 1: symbol
  1894 compiler.err.non-static.cant.be.ref=\
  1895     non-static {0} {1} cannot be referenced from a static context
  1897 # 0: symbol kind, 1: symbol
  1898 compiler.misc.non-static.cant.be.ref=\
  1899     non-static {0} {1} cannot be referenced from a static context
  1901 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  1902 ## of kindnames (the list should be identical to that provided in source.
  1903 compiler.err.unexpected.type=\
  1904     unexpected type\n\
  1905     required: {0}\n\
  1906     found:    {1}
  1908 compiler.err.unexpected.lambda=\
  1909    lambda expression not expected here
  1911 compiler.err.unexpected.mref=\
  1912    method reference not expected here
  1914 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  1915 ## The second argument {1} is the non-resolved symbol
  1916 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  1917 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  1918 # 0: symbol kind, 1: name, 2: unused, 3: unused
  1919 compiler.err.cant.resolve=\
  1920     cannot find symbol\n\
  1921     symbol: {0} {1}
  1923 # 0: symbol kind, 1: name, 2: unused, 3: list of type
  1924 compiler.err.cant.resolve.args=\
  1925     cannot find symbol\n\
  1926     symbol: {0} {1}({3})
  1928 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
  1929 compiler.err.cant.resolve.args.params=\
  1930     cannot find symbol\n\
  1931     symbol: {0} <{2}>{1}({3})
  1933 ## arguments from {0} to {3} have the same meaning as above
  1934 ## The fifth argument {4} is a location subdiagnostic (see below)
  1935 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
  1936 compiler.err.cant.resolve.location=\
  1937     cannot find symbol\n\
  1938     symbol:   {0} {1}\n\
  1939     location: {4}
  1941 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  1942 compiler.err.cant.resolve.location.args=\
  1943     cannot find symbol\n\
  1944     symbol:   {0} {1}({3})\n\
  1945     location: {4}
  1947 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  1948 compiler.err.cant.resolve.location.args.params=\
  1949     cannot find symbol\n\
  1950     symbol:   {0} <{2}>{1}({3})\n\
  1951     location: {4}
  1953 ### Following are replicated/used for method reference diagnostics
  1955 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  1956 compiler.misc.cant.resolve.location.args=\
  1957     cannot find symbol\n\
  1958     symbol:   {0} {1}({3})\n\
  1959     location: {4}
  1961 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  1962 compiler.misc.cant.resolve.location.args.params=\
  1963     cannot find symbol\n\
  1964     symbol:   {0} <{2}>{1}({3})\n\
  1965     location: {4}
  1967 ##a location subdiagnostic is composed as follows:
  1968 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  1969 ## The second argument {1} is the location name
  1970 ## The third argument {2} is the location type (only when {1} is a variable name)
  1972 # 0: symbol kind, 1: type or symbol, 2: unused
  1973 compiler.misc.location=\
  1974     {0} {1}
  1976 # 0: symbol kind, 1: symbol, 2: type
  1977 compiler.misc.location.1=\
  1978     {0} {1} of type {2}
  1980 ## The following are all possible string for "kindname".
  1981 ## They should be called whatever the JLS calls them after it been translated
  1982 ## to the appropriate language.
  1983 # compiler.misc.kindname.constructor=\
  1984 #     static member
  1985 compiler.misc.kindname.annotation=\
  1986     @interface
  1988 compiler.misc.kindname.constructor=\
  1989     constructor
  1991 compiler.misc.kindname.enum=\
  1992     enum
  1994 compiler.misc.kindname.interface=\
  1995     interface
  1997 compiler.misc.kindname.static=\
  1998     static
  2000 compiler.misc.kindname.type.variable=\
  2001     type variable
  2003 compiler.misc.kindname.type.variable.bound=\
  2004     bound of type variable
  2006 compiler.misc.kindname.variable=\
  2007     variable
  2009 compiler.misc.kindname.value=\
  2010     value
  2012 compiler.misc.kindname.method=\
  2013     method
  2015 compiler.misc.kindname.class=\
  2016     class
  2018 compiler.misc.kindname.package=\
  2019     package
  2021 compiler.misc.kindname.static.init=\
  2022     static initializer
  2024 compiler.misc.kindname.instance.init=\
  2025     instance initializer
  2027 #####
  2029 compiler.misc.no.args=\
  2030     no arguments
  2032 # 0: message segment
  2033 compiler.err.override.static=\
  2034     {0}\n\
  2035     overriding method is static
  2037 # 0: message segment, 1: set of modifier
  2038 compiler.err.override.meth=\
  2039     {0}\n\
  2040     overridden method is {1}
  2042 # 0: message segment, 1: type
  2043 compiler.err.override.meth.doesnt.throw=\
  2044     {0}\n\
  2045     overridden method does not throw {1}
  2047 # In the following string {1} is a space separated list of Java Keywords, as
  2048 # they would have been declared in the source code
  2049 # 0: message segment, 1: set of modifier
  2050 compiler.err.override.weaker.access=\
  2051     {0}\n\
  2052     attempting to assign weaker access privileges; was {1}
  2054 # 0: message segment, 1: type, 2: type
  2055 compiler.err.override.incompatible.ret=\
  2056     {0}\n\
  2057     return type {1} is not compatible with {2}
  2059 # 0: message segment, 1: type, 2: type
  2060 compiler.warn.override.unchecked.ret=\
  2061     {0}\n\
  2062     return type requires unchecked conversion from {1} to {2}
  2064 # 0: message segment, 1: type
  2065 compiler.warn.override.unchecked.thrown=\
  2066     {0}\n\
  2067     overridden method does not throw {1}
  2069 ## The following are all possible strings for the first argument ({0}) of the
  2070 ## above strings.
  2071 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2072 compiler.misc.cant.override=\
  2073     {0} in {1} cannot override {2} in {3}
  2075 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2076 compiler.misc.cant.implement=\
  2077     {0} in {1} cannot implement {2} in {3}
  2079 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2080 compiler.misc.clashes.with=\
  2081     {0} in {1} clashes with {2} in {3}
  2083 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2084 compiler.misc.unchecked.override=\
  2085     {0} in {1} overrides {2} in {3}
  2087 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2088 compiler.misc.unchecked.implement=\
  2089     {0} in {1} implements {2} in {3}
  2091 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2092 compiler.misc.unchecked.clash.with=\
  2093     {0} in {1} overrides {2} in {3}
  2095 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2096 compiler.misc.varargs.override=\
  2097     {0} in {1} overrides {2} in {3}
  2099 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2100 compiler.misc.varargs.implement=\
  2101     {0} in {1} implements {2} in {3}
  2103 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2104 compiler.misc.varargs.clash.with=\
  2105     {0} in {1} overrides {2} in {3}
  2107 # 0: unused
  2108 compiler.misc.diamond.and.anon.class=\
  2109     cannot use ''<>'' with anonymous inner classes
  2111 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
  2112 compiler.misc.inapplicable.method=\
  2113     {0} {1}.{2} is not applicable\n\
  2114     ({3})
  2116 ########################################
  2117 # Diagnostics for language feature changes
  2118 ########################################
  2119 # 0: string
  2120 compiler.err.unsupported.fp.lit=\
  2121     hexadecimal floating point literals are not supported in -source {0}\n\
  2122     (use -source 5 or higher to enable hexadecimal floating point literals)
  2124 # 0: string
  2125 compiler.err.unsupported.binary.lit=\
  2126     binary literals are not supported in -source {0}\n\
  2127     (use -source 7 or higher to enable binary literals)
  2129 # 0: string
  2130 compiler.err.unsupported.underscore.lit=\
  2131     underscores in literals are not supported in -source {0}\n\
  2132     (use -source 7 or higher to enable underscores in literals)
  2134 # 0: string
  2135 compiler.err.try.with.resources.not.supported.in.source=\
  2136     try-with-resources is not supported in -source {0}\n\
  2137     (use -source 7 or higher to enable try-with-resources)
  2139 compiler.warn.enum.as.identifier=\
  2140     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2141     (use -source 5 or higher to use ''enum'' as a keyword)
  2143 compiler.warn.assert.as.identifier=\
  2144     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2145     (use -source 1.4 or higher to use ''assert'' as a keyword)
  2147 compiler.warn.underscore.as.identifier=\
  2148     ''_'' used as an identifier\n\
  2149     (use of ''_'' as an identifier might not be supported in future releases)
  2151 compiler.err.enum.as.identifier=\
  2152     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2153     (use -source 1.4 or lower to use ''enum'' as an identifier)
  2155 compiler.err.assert.as.identifier=\
  2156     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2157     (use -source 1.3 or lower to use ''assert'' as an identifier)
  2159 # TODO 308: make a better error message
  2160 compiler.err.this.as.identifier=\
  2161     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
  2163 # TODO 308: make a better error message
  2164 compiler.err.cant.annotate.static.class=\
  2165     enclosing static nested class cannot be annotated
  2166 # TODO 308: make a better error message
  2167 compiler.err.cant.annotate.nested.type=\
  2168     nested type cannot be annotated
  2170 compiler.err.incorrect.receiver.type=\
  2171     the receiver type does not match the enclosing class type
  2173 compiler.err.no.annotations.on.dot.class=\
  2174     no annotations are allowed in the type of a class literal
  2176 # 0: string
  2177 compiler.err.generics.not.supported.in.source=\
  2178     generics are not supported in -source {0}\n\
  2179     (use -source 5 or higher to enable generics)
  2181 # 0: string
  2182 compiler.err.varargs.not.supported.in.source=\
  2183     variable-arity methods are not supported in -source {0}\n\
  2184     (use -source 5 or higher to enable variable-arity methods)
  2186 # 0: string
  2187 compiler.err.annotations.not.supported.in.source=\
  2188     annotations are not supported in -source {0}\n\
  2189     (use -source 5 or higher to enable annotations)
  2191 # 0: string
  2192 compiler.err.type.annotations.not.supported.in.source=\
  2193     type annotations are not supported in -source {0}\n\
  2194 (use -source 8 or higher to enable type annotations)
  2196 # 0: string
  2197 compiler.err.foreach.not.supported.in.source=\
  2198     for-each loops are not supported in -source {0}\n\
  2199     (use -source 5 or higher to enable for-each loops)
  2201 # 0: string
  2202 compiler.err.static.import.not.supported.in.source=\
  2203     static import declarations are not supported in -source {0}\n\
  2204     (use -source 5 or higher to enable static import declarations)
  2206 # 0: string
  2207 compiler.err.enums.not.supported.in.source=\
  2208     enums are not supported in -source {0}\n\
  2209     (use -source 5 or higher to enable enums)
  2211 # 0: string
  2212 compiler.err.diamond.not.supported.in.source=\
  2213     diamond operator is not supported in -source {0}\n\
  2214     (use -source 7 or higher to enable diamond operator)
  2216 # 0: string
  2217 compiler.err.multicatch.not.supported.in.source=\
  2218     multi-catch statement is not supported in -source {0}\n\
  2219     (use -source 7 or higher to enable multi-catch statement)
  2221 # 0: string
  2222 compiler.err.string.switch.not.supported.in.source=\
  2223     strings in switch are not supported in -source {0}\n\
  2224     (use -source 7 or higher to enable strings in switch)
  2226 # 0: string
  2227 compiler.err.lambda.not.supported.in.source=\
  2228     lambda expressions are not supported in -source {0}\n\
  2229     (use -source 8 or higher to enable lambda expressions)
  2231 # 0: string
  2232 compiler.err.method.references.not.supported.in.source=\
  2233     method references are not supported in -source {0}\n\
  2234     (use -source 8 or higher to enable method references)
  2236 # 0: string
  2237 compiler.err.default.methods.not.supported.in.source=\
  2238     default methods are not supported in -source {0}\n\
  2239     (use -source 8 or higher to enable default methods)
  2241 # 0: string
  2242 compiler.err.intersection.types.in.cast.not.supported.in.source=\
  2243     intersection types in cast are not supported in -source {0}\n\
  2244     (use -source 8 or higher to enable default methods)
  2246 # 0: string
  2247 compiler.err.static.intf.methods.not.supported.in.source=\
  2248     static interface methods are not supported in -source {0}\n\
  2249     (use -source 8 or higher to enable static interface methods)
  2251 ########################################
  2252 # Diagnostics for verbose resolution
  2253 # used by Resolve (debug only)
  2254 ########################################
  2256 # 0: number, 1: symbol, 2: unused
  2257 compiler.misc.applicable.method.found=\
  2258     #{0} applicable method found: {1}
  2260 # 0: number, 1: symbol, 2: message segment
  2261 compiler.misc.applicable.method.found.1=\
  2262     #{0} applicable method found: {1}\n\
  2263     ({2})
  2265 # 0: number, 1: symbol, 2: message segment
  2266 compiler.misc.not.applicable.method.found=\
  2267     #{0} not applicable method found: {1}\n\
  2268     ({2})
  2270 # 0: type
  2271 compiler.misc.partial.inst.sig=\
  2272     partially instantiated to: {0}
  2274 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2275 compiler.note.verbose.resolve.multi=\
  2276     resolving method {0} in type {1} to candidate {2}\n\
  2277     phase: {3}\n\
  2278     with actuals: {4}\n\
  2279     with type-args: {5}\n\
  2280     candidates:
  2282 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2283 compiler.note.verbose.resolve.multi.1=\
  2284     erroneous resolution for method {0} in type {1}\n\
  2285     phase: {3}\n\
  2286     with actuals: {4}\n\
  2287     with type-args: {5}\n\
  2288     candidates:
  2290 # 0: symbol, 1: type, 2: type
  2291 compiler.note.deferred.method.inst=\
  2292     Deferred instantiation of method {0}\n\
  2293     instantiated signature: {1}\n\
  2294     target-type: {2}
  2296 ########################################
  2297 # Diagnostics for where clause implementation
  2298 # used by the RichDiagnosticFormatter.
  2299 ########################################
  2301 compiler.misc.type.null=\
  2302     <null>
  2304 # X#n (where n is an int id) is disambiguated tvar name
  2305 # 0: name, 1: number
  2306 compiler.misc.type.var=\
  2307     {0}#{1}
  2309 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
  2310 # 0: number
  2311 compiler.misc.captured.type=\
  2312     CAP#{0}
  2314 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
  2315 # 0: number
  2316 compiler.misc.intersection.type=\
  2317     INT#{0}
  2319 # where clause for captured type: contains upper ('extends {1}') and lower
  2320 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
  2321 # 0: type, 1: type, 2: type, 3: type
  2322 compiler.misc.where.captured=\
  2323     {0} extends {1} super: {2} from capture of {3}
  2325 # compact where clause for captured type: contains upper ('extends {1}') along
  2326 # with the wildcard that generated this captured type ({3})
  2327 # 0: type, 1: type, 2: unused, 3: type
  2328 compiler.misc.where.captured.1=\
  2329     {0} extends {1} from capture of {3}
  2331 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
  2332 # the kindname ({2}) and location ({3}) in which the typevar has been declared
  2333 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2334 compiler.misc.where.typevar=\
  2335     {0} extends {1} declared in {2} {3}
  2337 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
  2338 # in which the typevar has been declared
  2339 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2340 compiler.misc.where.typevar.1=\
  2341     {0} declared in {2} {3}
  2343 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
  2344 # Since a fresh type-variable is synthetic - there's no location/kindname here.
  2345 # 0: type, 1: list of type
  2346 compiler.misc.where.fresh.typevar=\
  2347     {0} extends {1}
  2349 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
  2350 # of this intersection type
  2351 # 0: type, 1: list of type
  2352 compiler.misc.where.intersection=\
  2353     {0} extends {1}
  2355 ### Where clause headers ###
  2356 compiler.misc.where.description.captured=\
  2357     where {0} is a fresh type-variable:
  2359 # 0: set of type
  2360 compiler.misc.where.description.typevar=\
  2361     where {0} is a type-variable:
  2363 # 0: set of type
  2364 compiler.misc.where.description.intersection=\
  2365     where {0} is an intersection type:
  2367 # 0: set of type
  2368 compiler.misc.where.description.captured.1=\
  2369     where {0} are fresh type-variables:
  2371 # 0: set of type
  2372 compiler.misc.where.description.typevar.1=\
  2373     where {0} are type-variables:
  2375 compiler.misc.where.description.intersection.1=\
  2376     where {0} are intersection types:
  2378 ###
  2379 # errors related to doc comments
  2381 compiler.err.dc.bad.entity=\
  2382     bad HTML entity
  2384 compiler.err.dc.bad.gt=\
  2385     bad use of ''>''
  2387 compiler.err.dc.bad.inline.tag=\
  2388     incorrect use of inline tag
  2390 compiler.err.dc.identifier.expected=\
  2391     identifier expected
  2393 compiler.err.dc.malformed.html=\
  2394     malformed HTML
  2396 compiler.err.dc.missing.semicolon=\
  2397     semicolon missing
  2399 compiler.err.dc.no.content=\
  2400     no content
  2402 compiler.err.dc.no.tag.name=\
  2403     no tag name after '@'
  2405 compiler.err.dc.gt.expected=\
  2406     ''>'' expected
  2408 compiler.err.dc.ref.bad.parens=\
  2409     '')'' missing in reference
  2411 compiler.err.dc.ref.syntax.error=\
  2412     syntax error in reference
  2414 compiler.err.dc.ref.unexpected.input=\
  2415     unexpected text
  2417 compiler.err.dc.unexpected.content=\
  2418     unexpected content
  2420 compiler.err.dc.unterminated.inline.tag=\
  2421     unterminated inline tag
  2423 compiler.err.dc.unterminated.signature=\
  2424     unterminated signature
  2426 compiler.err.dc.unterminated.string=\
  2427     unterminated string

mercurial