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

Wed, 30 Apr 2014 23:26:43 +0100

author
pgovereau
date
Wed, 30 Apr 2014 23:26:43 +0100
changeset 2375
3a2ebbad5911
parent 2370
acd64168cf8b
child 2390
b06c2db45ddb
permissions
-rw-r--r--

8038023: Compiler crash ClassCastException
Summary: Add additional checks on results of ClassReader.readPool
Reviewed-by: vromero

     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 #
    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     a type with the same simple name is already defined by the single-type-import of {0}
    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}
    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 a default value for the element ''{1}''
    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}
    98 # 0: type
    99 compiler.err.annotation.not.valid.for.type=\
   100     annotation not valid for an element 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 compiler.err.cant.inherit.from.anon=\
   127     cannot inherit from anonymous class
   129 # 0: symbol, 1: symbol, 2: symbol
   130 compiler.err.array.and.varargs=\
   131     cannot declare both {0} and {1} in {2}
   133 compiler.err.array.dimension.missing=\
   134     array dimension missing
   136 # 0: type
   137 compiler.err.array.req.but.found=\
   138     array required, but {0} found
   140 compiler.err.attribute.value.must.be.constant=\
   141     element value must be a constant expression
   143 # 0: statement type
   144 compiler.err.bad.initializer=\
   145     bad initializer for {0}
   147 compiler.err.break.outside.switch.loop=\
   148     break outside switch or loop
   150 # 0: name
   151 compiler.err.call.must.be.first.stmt.in.ctor=\
   152     call to {0} must be first statement in constructor
   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}
   161 # 0: symbol kind, 1: name, 2: list of type
   162 compiler.err.cant.apply.symbols=\
   163     no suitable {0} found for {1}({2})
   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}
   172 # 0: symbol kind, 1: name, 2: list of type
   173 compiler.misc.cant.apply.symbols=\
   174     no suitable {0} found for {1}({2})
   176 # 0: symbol kind, 1: symbol
   177 compiler.misc.no.abstracts=\
   178     no abstract method found in {0} {1}
   180 # 0: symbol kind, 1: symbol
   181 compiler.misc.incompatible.abstracts=\
   182     multiple non-overriding abstract methods found in {0} {1}
   184 compiler.err.bad.functional.intf.anno=\
   185     Unexpected @FunctionalInterface annotation
   187 # 0: message segment
   188 compiler.err.bad.functional.intf.anno.1=\
   189     Unexpected @FunctionalInterface annotation\n\
   190     {0}
   192 # 0: symbol
   193 compiler.misc.not.a.functional.intf=\
   194     {0} is not a functional interface
   196 # 0: symbol, 1: message segment
   197 compiler.misc.not.a.functional.intf.1=\
   198     {0} is not a functional interface\n\
   199     {1}
   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
   206 # 0: symbol kind, 1: symbol
   207 compiler.misc.incompatible.descs.in.functional.intf=\
   208     incompatible function descriptors found in {0} {1}
   210 # 0: name, 1: list of type, 2: type, 3: list of type
   211 compiler.misc.descriptor=\
   212     descriptor: {2} {0}({1})
   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}
   218 # 0: type
   219 compiler.misc.no.suitable.functional.intf.inst=\
   220     cannot infer functional interface descriptor for {0}
   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}
   227 # 0: symbol or type
   228 compiler.misc.not.an.intf.component=\
   229     component type {0} is not an interface
   231 # 0: symbol kind, 1: message segment
   232 compiler.err.invalid.mref=\
   233     invalid {0} reference\n\
   234     {1}
   236 # 0: symbol kind, 1: message segment
   237 compiler.misc.invalid.mref=\
   238     invalid {0} reference\n\
   239     {1}
   241 compiler.misc.static.mref.with.targs=\
   242     parameterized qualifier on static method reference
   244 compiler.misc.static.bound.mref=\
   245     static bound method reference
   247 # 0: symbol
   248 compiler.err.cant.assign.val.to.final.var=\
   249     cannot assign a value to final variable {0}
   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
   256 compiler.misc.lambda=\
   257     a lambda expression
   259 compiler.misc.inner.cls=\
   260     an inner class
   262 # 0: type
   263 compiler.err.cant.deref=\
   264     {0} cannot be dereferenced
   266 compiler.err.cant.extend.intf.annotation=\
   267     ''extends'' not allowed for @interfaces
   269 # 0: symbol
   270 compiler.err.cant.inherit.from.final=\
   271     cannot inherit from final {0}
   273 # 0: symbol
   274 compiler.err.cant.ref.before.ctor.called=\
   275     cannot reference {0} before supertype constructor has been called
   277 compiler.err.cant.select.static.class.from.param.type=\
   278     cannot select a static class from a parameterized type
   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}>
   284 compiler.err.catch.without.try=\
   285     ''catch'' without ''try''
   287 # 0: symbol kind, 1: symbol
   288 compiler.err.clash.with.pkg.of.same.name=\
   289     {0} {1} clashes with package of same name
   291 compiler.err.class.not.allowed=\
   292     class, interface or enum declaration not allowed here
   294 compiler.err.const.expr.req=\
   295     constant expression required
   297 compiler.err.cont.outside.loop=\
   298     continue outside of loop
   300 # 0: symbol
   301 compiler.err.cyclic.inheritance=\
   302     cyclic inheritance involving {0}
   304 # 0: symbol
   305 compiler.err.cyclic.annotation.element=\
   306     type of element {0} is cyclic
   308 # 0: unused
   309 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   310     call to super not allowed in enum constructor
   312 # 0: type
   313 compiler.err.no.superclass=\
   314     {0} has no superclass.
   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
   320 compiler.err.default.allowed.in.intf.annotation.member=\
   321     default value only allowed in an annotation type declaration
   323 # 0: symbol
   324 compiler.err.doesnt.exist=\
   325     package {0} does not exist
   327 # 0: type
   328 compiler.err.duplicate.annotation.invalid.repeated=\
   329     annotation {0} is not a valid repeatable annotation
   331 # 0: name, 1: type
   332 compiler.err.duplicate.annotation.member.value=\
   333     duplicate element ''{0}'' in annotation @{1}.
   335 # 0: name, 1: unused
   336 compiler.err.duplicate.annotation.missing.container=\
   337     {0} is not a repeatable annotation type
   339 # 0: type, 1: unused
   340 compiler.err.invalid.repeatable.annotation=\
   341     duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
   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
   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
   351 # 0: type
   352 compiler.err.invalid.repeatable.annotation.invalid.value=\
   353     {0} is not a valid @Repeatable: invalid value element
   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}
   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}
   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})
   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
   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
   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})
   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
   383 # 0: name
   384 compiler.err.duplicate.class=\
   385     duplicate class: {0}
   387 compiler.err.duplicate.case.label=\
   388     duplicate case label
   390 compiler.err.duplicate.default.label=\
   391     duplicate default label
   393 compiler.err.else.without.if=\
   394     ''else'' without ''if''
   396 compiler.err.empty.char.lit=\
   397     empty character literal
   399 # 0: symbol
   400 compiler.err.encl.class.required=\
   401     an enclosing instance that contains {0} is required
   403 compiler.err.enum.annotation.must.be.enum.constant=\
   404     an enum annotation value must be an enum constant
   406 compiler.err.enum.cant.be.instantiated=\
   407     enum types may not be instantiated
   409 compiler.err.enum.label.must.be.unqualified.enum=\
   410     an enum switch case label must be the unqualified name of an enumeration constant
   412 compiler.err.enum.no.subclassing=\
   413     classes cannot directly extend java.lang.Enum
   415 compiler.err.enum.types.not.extensible=\
   416     enum types are not extensible
   418 compiler.err.enum.no.finalize=\
   419     enums cannot have finalize methods
   421 # 0: file name, 1: string
   422 compiler.err.error.reading.file=\
   423     error reading {0}; {1}
   425 # 0: type
   426 compiler.err.except.already.caught=\
   427     exception {0} has already been caught
   429 # 0: type
   430 compiler.err.except.never.thrown.in.try=\
   431     exception {0} is never thrown in body of corresponding try statement
   433 # 0: symbol
   434 compiler.err.final.parameter.may.not.be.assigned=\
   435     final parameter {0} may not be assigned
   437 # 0: symbol
   438 compiler.err.try.resource.may.not.be.assigned=\
   439     auto-closeable resource {0} may not be assigned
   441 # 0: symbol
   442 compiler.err.multicatch.parameter.may.not.be.assigned=\
   443     multi-catch parameter {0} may not be assigned
   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}
   450 compiler.err.finally.without.try=\
   451     ''finally'' without ''try''
   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}
   459 compiler.err.fp.number.too.large=\
   460     floating point number too large
   462 compiler.err.fp.number.too.small=\
   463     floating point number too small
   465 compiler.err.generic.array.creation=\
   466     generic array creation
   468 compiler.err.generic.throwable=\
   469     a generic class may not extend java.lang.Throwable
   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
   476 # 0: string
   477 compiler.err.illegal.char=\
   478     illegal character: ''{0}''
   480 compiler.err.illegal.char.for.encoding=\
   481     unmappable character for encoding {0}
   483 # 0: set of modifier, 1: set of modifier
   484 compiler.err.illegal.combination.of.modifiers=\
   485     illegal combination of modifiers: {0} and {1}
   487 compiler.err.illegal.enum.static.ref=\
   488     illegal reference to static field from initializer
   490 compiler.err.illegal.esc.char=\
   491     illegal escape character
   493 compiler.err.illegal.forward.ref=\
   494     illegal forward reference
   496 # 0: symbol, 1: string
   497 compiler.err.not.in.profile=\
   498     {0} is not available in profile ''{1}''
   500 # 0: symbol
   501 compiler.warn.forward.ref=\
   502     reference to variable ''{0}'' before it has been initialized
   504 compiler.err.illegal.self.ref=\
   505     self-reference in initializer
   507 # 0: symbol
   508 compiler.warn.self.ref=\
   509     self-reference in initializer of variable ''{0}''
   511 compiler.err.illegal.generic.type.for.instof=\
   512     illegal generic type for instanceof
   514 # 0: type
   515 compiler.err.illegal.initializer.for.type=\
   516     illegal initializer for {0}
   518 compiler.err.illegal.line.end.in.char.lit=\
   519     illegal line end in character literal
   521 compiler.err.illegal.nonascii.digit=\
   522     illegal non-ASCII digit
   524 compiler.err.illegal.underscore=\
   525     illegal underscore
   527 compiler.err.illegal.dot=\
   528     illegal ''.''
   530 # 0: symbol
   531 compiler.err.illegal.qual.not.icls=\
   532     illegal qualifier; {0} is not an inner class
   534 compiler.err.illegal.start.of.expr=\
   535     illegal start of expression
   537 compiler.err.illegal.start.of.stmt=\
   538     illegal start of statement
   540 compiler.err.illegal.start.of.type=\
   541     illegal start of type
   543 compiler.err.illegal.unicode.esc=\
   544     illegal unicode escape
   546 # 0: symbol
   547 compiler.err.import.requires.canonical=\
   548     import requires canonical name for {0}
   550 compiler.err.improperly.formed.type.param.missing=\
   551     improperly formed type, some parameters are missing
   553 compiler.err.improperly.formed.type.inner.raw.param=\
   554     improperly formed type, type arguments given on a raw type
   556 # 0: type, 1: type
   557 compiler.err.incomparable.types=\
   558     incomparable types: {0} and {1}
   560 # 0: number
   561 compiler.err.int.number.too.large=\
   562     integer number too large: {0}
   564 compiler.err.intf.annotation.members.cant.have.params=\
   565     elements in annotation type declarations cannot declare formal parameters
   567 # 0: symbol
   568 compiler.err.intf.annotation.cant.have.type.params=\
   569     annotation type {0} cannot be generic
   571 compiler.err.intf.annotation.members.cant.have.type.params=\
   572     elements in annotation type declarations cannot be generic methods
   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}
   578 compiler.err.intf.expected.here=\
   579     interface expected here
   581 compiler.err.intf.meth.cant.have.body=\
   582     interface abstract methods cannot have body
   584 # 0: symbol
   585 compiler.err.invalid.annotation.member.type=\
   586     invalid type for element {0} of annotation type
   588 compiler.err.invalid.binary.number=\
   589     binary numbers must contain at least one binary digit
   591 compiler.err.invalid.hex.number=\
   592     hexadecimal numbers must contain at least one hexadecimal digit
   594 compiler.err.invalid.meth.decl.ret.type.req=\
   595     invalid method declaration; return type required
   597 compiler.err.varargs.and.old.array.syntax=\
   598     legacy array notation not allowed on variable-arity parameter
   600 compiler.err.varargs.and.receiver =\
   601     varargs notation not allowed on receiver parameter
   603 compiler.err.array.and.receiver =\
   604     legacy array notation not allowed on receiver parameter
   606 compiler.err.variable.not.allowed=\
   607     variable declaration not allowed here
   609 # 0: name
   610 compiler.err.label.already.in.use=\
   611     label {0} already in use
   613 # 0: symbol
   614 compiler.err.local.var.accessed.from.icls.needs.final=\
   615     local variable {0} is accessed from within inner class; needs to be declared final
   617 compiler.err.local.enum=\
   618     enum types must not be local
   620 compiler.err.cannot.create.array.with.type.arguments=\
   621     cannot create array with type arguments
   623 compiler.err.cannot.create.array.with.diamond=\
   624     cannot create array with ''<>''
   626 #
   627 # limits.  We don't give the limits in the diagnostic because we expect
   628 # them to change, yet we want to use the same diagnostic.  These are all
   629 # detected during code generation.
   630 #
   631 compiler.err.limit.code=\
   632     code too large
   634 compiler.err.limit.code.too.large.for.try.stmt=\
   635     code too large for try statement
   637 compiler.err.limit.dimensions=\
   638     array type has too many dimensions
   640 compiler.err.limit.locals=\
   641     too many local variables
   643 compiler.err.limit.parameters=\
   644     too many parameters
   646 compiler.err.limit.pool=\
   647     too many constants
   649 compiler.err.limit.pool.in.class=\
   650     too many constants in class {0}
   652 compiler.err.limit.stack=\
   653     code requires too much stack
   655 compiler.err.limit.string=\
   656     constant string too long
   658 compiler.err.limit.string.overflow=\
   659     UTF8 representation for string \"{0}...\" is too long for the constant pool
   661 compiler.err.malformed.fp.lit=\
   662     malformed floating point literal
   664 compiler.err.method.does.not.override.superclass=\
   665     method does not override or implement a method from a supertype
   667 compiler.err.missing.meth.body.or.decl.abstract=\
   668     missing method body, or declare abstract
   670 compiler.err.missing.ret.stmt=\
   671     missing return statement
   673 # 0: unused
   674 compiler.misc.missing.ret.val=\
   675     missing return value
   677 compiler.misc.unexpected.ret.val=\
   678     unexpected return value
   680 # 0: set of modifier
   681 compiler.err.mod.not.allowed.here=\
   682     modifier {0} not allowed here
   684 compiler.err.intf.not.allowed.here=\
   685     interface not allowed here
   687 compiler.err.enums.must.be.static=\
   688     enum declarations allowed only in static contexts
   690 # 0: symbol, 1: symbol
   691 compiler.err.name.clash.same.erasure=\
   692     name clash: {0} and {1} have the same erasure
   694 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
   695 compiler.err.name.clash.same.erasure.no.override=\
   696     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
   698 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
   699 compiler.err.name.clash.same.erasure.no.override.1=\
   700     name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
   701     first method:  {2} in {3}\n\
   702     second method: {4} in {5}
   704 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
   705 compiler.err.name.clash.same.erasure.no.hide=\
   706     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
   708 compiler.err.name.reserved.for.internal.use=\
   709     {0} is reserved for internal use
   711 compiler.err.native.meth.cant.have.body=\
   712     native methods cannot have a body
   714 # 0: type, 1: type
   715 compiler.err.neither.conditional.subtype=\
   716     incompatible types for ?: neither is a subtype of the other\n\
   717     second operand: {0}\n\
   718     third operand : {1}
   720 # 0: message segment
   721 compiler.misc.incompatible.type.in.conditional=\
   722     bad type in conditional expression\n\
   723     {0}
   725 compiler.misc.conditional.target.cant.be.void=\
   726     target-type for conditional expression cannot be void
   728 # 0: type
   729 compiler.misc.incompatible.ret.type.in.lambda=\
   730     bad return type in lambda expression\n\
   731     {0}
   733 # 0: type
   734 compiler.misc.incompatible.ret.type.in.mref=\
   735     bad return type in method reference\n\
   736     {0}
   738 compiler.err.lambda.body.neither.value.nor.void.compatible=\
   739     lambda body is neither value nor void compatible
   741 # 0: list of type
   742 compiler.err.incompatible.thrown.types.in.mref=\
   743     incompatible thrown types {0} in method reference
   745 compiler.misc.incompatible.arg.types.in.lambda=\
   746     incompatible parameter types in lambda expression
   748 compiler.misc.incompatible.arg.types.in.mref=\
   749     incompatible parameter types in method reference
   751 compiler.err.new.not.allowed.in.annotation=\
   752     ''new'' not allowed in an annotation
   754 compiler.err.no.annotation.member=\
   755     no annotation member {0} in {1}
   757 compiler.err.no.encl.instance.of.type.in.scope=\
   758     no enclosing instance of type {0} is in scope
   760 compiler.err.no.intf.expected.here=\
   761     no interface expected here
   763 compiler.err.no.match.entry=\
   764     {0} has no match in entry in {1}; required {2}
   766 compiler.err.not.annotation.type=\
   767     {0} is not an annotation type
   769 # 0: symbol, 1: symbol
   770 compiler.err.not.def.access.class.intf.cant.access=\
   771     {0} in {1} is defined in an inaccessible class or interface
   773 # 0: symbol, 1: symbol
   774 compiler.misc.not.def.access.class.intf.cant.access=\
   775     {0} in {1} is defined in an inaccessible class or interface
   777 # 0: symbol, 1: list of type, 2: type
   778 compiler.misc.cant.access.inner.cls.constr=\
   779     cannot access constructor {0}({1})\n\
   780     an enclosing instance of type {2} is not in scope
   782 # 0: symbol, 1: symbol
   783 compiler.err.not.def.public.cant.access=\
   784     {0} is not public in {1}; cannot be accessed from outside package
   786 # 0: symbol, 1: symbol
   787 compiler.misc.not.def.public.cant.access=\
   788     {0} is not public in {1}; cannot be accessed from outside package
   790 # 0: name
   791 compiler.err.not.loop.label=\
   792     not a loop label: {0}
   794 compiler.err.not.stmt=\
   795     not a statement
   797 # 0: symbol
   798 compiler.err.not.encl.class=\
   799     not an enclosing class: {0}
   801 # 0: name, 1: type, 2: unused
   802 compiler.err.operator.cant.be.applied=\
   803     bad operand type {1} for unary operator ''{0}''
   805 # 0: name, 1: type, 2: type
   806 compiler.err.operator.cant.be.applied.1=\
   807     bad operand types for binary operator ''{0}''\n\
   808     first type:  {1}\n\
   809     second type: {2}
   811 compiler.err.pkg.annotations.sb.in.package-info.java=\
   812     package annotations should be in file package-info.java
   814 # 0: symbol
   815 compiler.err.pkg.clashes.with.class.of.same.name=\
   816     package {0} clashes with class of same name
   818 compiler.err.warnings.and.werror=\
   819     warnings found and -Werror specified
   821 # Errors related to annotation processing
   823 # 0: symbol, 1: string, 2: stack-trace
   824 compiler.err.proc.cant.access=\
   825     cannot access {0}\n\
   826     {1}\n\
   827     Consult the following stack trace for details.\n\
   828     {2}
   830 # 0: symbol, 1: string
   831 compiler.err.proc.cant.access.1=\
   832     cannot access {0}\n\
   833     {1}
   835 # 0: string
   836 compiler.err.proc.cant.find.class=\
   837     Could not find class file for ''{0}''.
   839 # Print a client-generated error message; assumed to be localized, no translation required
   840 # 0: string
   841 compiler.err.proc.messager=\
   842     {0}
   844 # 0: list of string
   845 compiler.err.proc.no.explicit.annotation.processing.requested=\
   846     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   848 compiler.err.proc.no.service=\
   849     A ServiceLoader was not usable and is required for annotation processing.
   851 compiler.err.proc.processor.bad.option.name=\
   852     Bad option name ''{0}'' provided by processor ''{1}''
   854 # 0: string
   855 compiler.err.proc.processor.cant.instantiate=\
   856     Could not instantiate an instance of processor ''{0}''
   858 # 0: string
   859 compiler.err.proc.processor.not.found=\
   860     Annotation processor ''{0}'' not found
   862 # 0: string
   863 compiler.err.proc.processor.wrong.type=\
   864     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
   866 compiler.err.proc.service.problem=\
   867     Error creating a service loader to load Processors.
   869 compiler.err.proc.bad.config.file=\
   870     Bad service configuration file, or exception thrown while constructing Processor object: {0}
   872 compiler.err.proc.cant.create.loader=\
   873     Could not create class loader for annotation processors: {0}
   875 # 0: unused
   876 compiler.err.qualified.new.of.static.class=\
   877     qualified new of static class
   879 compiler.err.recursive.ctor.invocation=\
   880     recursive constructor invocation
   882 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   883 compiler.err.ref.ambiguous=\
   884     reference to {0} is ambiguous\n\
   885     both {1} {2} in {3} and {4} {5} in {6} match
   887 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   888 compiler.misc.ref.ambiguous=\
   889     reference to {0} is ambiguous\n\
   890     both {1} {2} in {3} and {4} {5} in {6} match
   892 compiler.err.repeated.annotation.target=\
   893     repeated annotation target
   895 compiler.err.repeated.interface=\
   896     repeated interface
   898 compiler.err.repeated.modifier=\
   899     repeated modifier
   901 # 0: symbol, 1: set of modifier, 2: symbol
   902 compiler.err.report.access=\
   903     {0} has {1} access in {2}
   905 # 0: symbol, 1: set of modifier, 2: symbol
   906 compiler.misc.report.access=\
   907     {0} has {1} access in {2}
   909 compiler.err.ret.outside.meth=\
   910     return outside method
   912 compiler.err.signature.doesnt.match.supertype=\
   913     signature does not match {0}; incompatible supertype
   915 compiler.err.signature.doesnt.match.intf=\
   916     signature does not match {0}; incompatible interfaces
   918 # 0: number, 1: number
   919 compiler.err.method.invoked.with.incorrect.number.arguments=\
   920     method invoked with incorrect number of arguments; expected {0}, found {1}
   922 # 0: symbol, 1: symbol, 2: symbol
   923 compiler.err.does.not.override.abstract=\
   924     {0} is not abstract and does not override abstract method {1} in {2}
   926 compiler.err.source.cant.overwrite.input.file=\
   927     error writing source; cannot overwrite input file {0}
   929 compiler.err.stack.sim.error=\
   930     Internal error: stack sim error on {0}
   932 compiler.err.static.imp.only.classes.and.interfaces=\
   933     static import only from classes and interfaces
   935 compiler.err.string.const.req=\
   936     constant string expression required
   938 # 0: symbol, 1: symbol
   939 compiler.err.synthetic.name.conflict=\
   940     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   942 # 0: symbol, 1: symbol
   943 compiler.warn.synthetic.name.conflict=\
   944     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   946 compiler.err.throws.not.allowed.in.intf.annotation=\
   947     throws clause not allowed in @interface members
   949 compiler.err.try.without.catch.or.finally=\
   950     ''try'' without ''catch'' or ''finally''
   952 compiler.err.try.without.catch.finally.or.resource.decls=\
   953     ''try'' without ''catch'', ''finally'' or resource declarations
   955 # 0: symbol
   956 compiler.err.type.doesnt.take.params=\
   957     type {0} does not take parameters
   959 compiler.err.type.var.cant.be.deref=\
   960     cannot select from a type variable
   962 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
   963     a type variable may not be followed by other bounds
   965 compiler.err.type.var.more.than.once=\
   966     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
   968 compiler.err.type.var.more.than.once.in.result=\
   969     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
   971 # 0: type, 1: type, 2: string
   972 compiler.err.types.incompatible.diff.ret=\
   973     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
   975 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
   976 compiler.err.types.incompatible.unrelated.defaults=\
   977     {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
   979 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
   980 compiler.err.types.incompatible.abstract.default=\
   981     {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
   983 # 0: name, 1: kind, 2: symbol
   984 compiler.err.default.overrides.object.member=\
   985     default method {0} in {1} {2} overrides a member of java.lang.Object
   987 # 0: type
   988 compiler.err.illegal.static.intf.meth.call=\
   989     illegal static interface method call\n\
   990     the receiver expression should be replaced with the type qualifier ''{0}''
   992 # 0: type, 1: message segment
   993 compiler.err.illegal.default.super.call=\
   994     bad type qualifier {0} in default super call\n\
   995     {1}
   997 # 0: symbol, 1: type
   998 compiler.misc.overridden.default=\
   999     method {0} is overridden in {1}
  1001 # 0: symbol, 1: type or symbol
  1002 compiler.misc.redundant.supertype=\
  1003     redundant interface {0} is extended by {1}
  1005 compiler.err.unclosed.char.lit=\
  1006     unclosed character literal
  1008 compiler.err.unclosed.comment=\
  1009     unclosed comment
  1011 compiler.err.unclosed.str.lit=\
  1012     unclosed string literal
  1014 # 0: name
  1015 compiler.err.unsupported.encoding=\
  1016     unsupported encoding: {0}
  1018 compiler.err.io.exception=\
  1019     error reading source file: {0}
  1021 # 0: name
  1022 compiler.err.undef.label=\
  1023     undefined label: {0}
  1025 # 0: message segment, 1: unused
  1026 compiler.err.cant.apply.diamond=\
  1027     cannot infer type arguments for {0}
  1029 # 0: message segment or type, 1: message segment
  1030 compiler.err.cant.apply.diamond.1=\
  1031     cannot infer type arguments for {0}\n\
  1032     reason: {1}
  1034 # 0: message segment or type, 1: message segment
  1035 compiler.misc.cant.apply.diamond.1=\
  1036     cannot infer type arguments for {0}\n\
  1037     reason: {1}
  1039 compiler.err.unreachable.stmt=\
  1040     unreachable statement
  1042 compiler.err.initializer.must.be.able.to.complete.normally=\
  1043     initializer must be able to complete normally
  1045 # 0: type
  1046 compiler.err.unreported.exception.need.to.catch.or.throw=\
  1047     unreported exception {0}; must be caught or declared to be thrown
  1049 # 0: type
  1050 compiler.err.unreported.exception.default.constructor=\
  1051     unreported exception {0} in default constructor
  1053 # 0: type, 1: name
  1054 compiler.err.unreported.exception.implicit.close=\
  1055     unreported exception {0}; must be caught or declared to be thrown\n\
  1056     exception thrown from implicit call to close() on resource variable ''{1}''
  1058 compiler.err.unsupported.cross.fp.lit=\
  1059     hexadecimal floating-point literals are not supported on this VM
  1061 compiler.err.void.not.allowed.here=\
  1062     ''void'' type not allowed here
  1064 # 0: string
  1065 compiler.err.wrong.number.type.args=\
  1066     wrong number of type arguments; required {0}
  1068 # 0: symbol
  1069 compiler.err.var.might.already.be.assigned=\
  1070     variable {0} might already have been assigned
  1072 # 0: symbol
  1073 compiler.err.var.might.not.have.been.initialized=\
  1074     variable {0} might not have been initialized
  1076 # 0: symbol
  1077 compiler.err.var.not.initialized.in.default.constructor=\
  1078     variable {0} not initialized in the default constructor
  1080 # 0: symbol
  1081 compiler.err.var.might.be.assigned.in.loop=\
  1082     variable {0} might be assigned in loop
  1084 # 0: symbol, 1: message segment
  1085 compiler.err.varargs.invalid.trustme.anno=\
  1086     Invalid {0} annotation. {1}
  1088 # 0: type
  1089 compiler.misc.varargs.trustme.on.reifiable.varargs=\
  1090     Varargs element type {0} is reifiable.
  1092 # 0: symbol
  1093 compiler.misc.varargs.trustme.on.non.varargs.meth=\
  1094     Method {0} is not a varargs method.
  1096 # 0: symbol
  1097 compiler.misc.varargs.trustme.on.virtual.varargs=\
  1098     Instance method {0} is not final.
  1100 # 0: type, 1: symbol kind, 2: symbol
  1101 compiler.misc.inaccessible.varargs.type=\
  1102     formal varargs element type {0} is not accessible from {1} {2}
  1104 # In the following string, {1} will always be the detail message from
  1105 # java.io.IOException.
  1106 # 0: symbol, 1: string
  1107 compiler.err.class.cant.write=\
  1108     error while writing {0}: {1}
  1110 # In the following string, {0} is the name of the class in the Java source.
  1111 # It really should be used two times..
  1112 # 0: name
  1113 compiler.err.class.public.should.be.in.file=\
  1114     class {0} is public, should be declared in a file named {0}.java
  1116 ## All errors which do not refer to a particular line in the source code are
  1117 ## preceded by this string.
  1118 compiler.err.error=\
  1119     error:\u0020
  1121 # The following error messages do not refer to a line in the source code.
  1122 compiler.err.cant.read.file=\
  1123     cannot read: {0}
  1125 #####
  1127 # Fatal Errors
  1129 compiler.misc.fatal.err.no.java.lang=\
  1130     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
  1132 compiler.misc.fatal.err.cant.locate.meth=\
  1133     Fatal Error: Unable to find method {0}
  1135 compiler.misc.fatal.err.cant.locate.field=\
  1136     Fatal Error: Unable to find field {0}
  1138 compiler.misc.fatal.err.cant.locate.ctor=\
  1139     Fatal Error: Unable to find constructor for {0}
  1141 compiler.misc.fatal.err.cant.close=\
  1142     Fatal Error: Cannot close compiler resources
  1144 #####
  1146 ##
  1147 ## miscellaneous strings
  1148 ##
  1150 compiler.misc.source.unavailable=\
  1151     (source unavailable)
  1153 compiler.misc.base.membership=\
  1154     all your base class are belong to us
  1156 # 0: string, 1: string, 2: boolean
  1157 compiler.misc.x.print.processor.info=\
  1158     Processor {0} matches {1} and returns {2}.
  1160 # 0: number, 1: string, 2: set of symbol, 3: boolean
  1161 compiler.misc.x.print.rounds=\
  1162     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
  1164 #####
  1166 ## The following string will appear before all messages keyed as:
  1167 ## "compiler.note".
  1169 compiler.note.compressed.diags=\
  1170     Some messages have been simplified; recompile with -Xdiags:verbose to get full output
  1172 compiler.note.potential.lambda.found=\
  1173     This anonymous inner class creation can be turned into a lambda expression.
  1175 # 0: boolean, 1: symbol
  1176 compiler.note.lambda.stat=\
  1177     Translating lambda expression\n\
  1178     alternate metafactory = {0}\n\
  1179     synthetic method = {1}
  1181 # 0: boolean, 1: unused
  1182 compiler.note.mref.stat=\
  1183     Translating method reference\n\
  1184     alternate metafactory = {0}\n\
  1186 # 0: boolean, 1: symbol
  1187 compiler.note.mref.stat.1=\
  1188     Translating method reference\n\
  1189     alternate metafactory = {0}\n\
  1190     bridge method = {1}
  1192 compiler.note.note=\
  1193     Note:\u0020
  1195 # 0: file name
  1196 compiler.note.deprecated.filename=\
  1197     {0} uses or overrides a deprecated API.
  1199 compiler.note.deprecated.plural=\
  1200     Some input files use or override a deprecated API.
  1202 # The following string may appear after one of the above deprecation
  1203 # messages.
  1204 compiler.note.deprecated.recompile=\
  1205     Recompile with -Xlint:deprecation for details.
  1207 # 0: file name
  1208 compiler.note.deprecated.filename.additional=\
  1209     {0} has additional uses or overrides of a deprecated API.
  1211 compiler.note.deprecated.plural.additional=\
  1212     Some input files additionally use or override a deprecated API.
  1214 # 0: file name
  1215 compiler.note.unchecked.filename=\
  1216     {0} uses unchecked or unsafe operations.
  1218 compiler.note.unchecked.plural=\
  1219     Some input files use unchecked or unsafe operations.
  1221 # The following string may appear after one of the above deprecation
  1222 # messages.
  1223 compiler.note.unchecked.recompile=\
  1224     Recompile with -Xlint:unchecked for details.
  1226 # 0: file name
  1227 compiler.note.unchecked.filename.additional=\
  1228     {0} has additional unchecked or unsafe operations.
  1230 compiler.note.unchecked.plural.additional=\
  1231     Some input files additionally use unchecked or unsafe operations.
  1233 # 0: file name
  1234 compiler.note.sunapi.filename=\
  1235     {0} uses internal proprietary API that may be removed in a future release.
  1237 compiler.note.sunapi.plural=\
  1238     Some input files use internal proprietary API that may be removed in a future release.
  1240 # The following string may appear after one of the above sunapi messages.
  1241 compiler.note.sunapi.recompile=\
  1242     Recompile with -Xlint:sunapi for details.
  1244 # 0: file name
  1245 compiler.note.sunapi.filename.additional=\
  1246     {0} uses additional internal proprietary API that may be removed in a future release.
  1248 compiler.note.sunapi.plural.additional=\
  1249     Some input files additionally use internal proprietary API that may be removed in a future release.
  1251 # Notes related to annotation processing
  1253 # Print a client-generated note; assumed to be localized, no translation required
  1254 # 0: string
  1255 compiler.note.proc.messager=\
  1256     {0}
  1258 #####
  1260 # 0: number
  1261 compiler.misc.count.error=\
  1262     {0} error
  1264 # 0: number
  1265 compiler.misc.count.error.plural=\
  1266     {0} errors
  1268 # 0: number
  1269 compiler.misc.count.warn=\
  1270     {0} warning
  1272 # 0: number
  1273 compiler.misc.count.warn.plural=\
  1274     {0} warnings
  1276 compiler.misc.version.not.available=\
  1277     (version info not available)
  1279 ## extra output when using -verbose (JavaCompiler)
  1281 # 0: symbol
  1282 compiler.misc.verbose.checking.attribution=\
  1283     [checking {0}]
  1285 # 0: string
  1286 compiler.misc.verbose.parsing.done=\
  1287     [parsing completed {0}ms]
  1289 # 0: file name
  1290 compiler.misc.verbose.parsing.started=\
  1291     [parsing started {0}]
  1293 # 0: string
  1294 compiler.misc.verbose.total=\
  1295     [total {0}ms]
  1297 # 0: file name
  1298 compiler.misc.verbose.wrote.file=\
  1299     [wrote {0}]
  1301 ## extra output when using -verbose (Retro)
  1302 compiler.misc.verbose.retro=\
  1303     [retrofitting {0}]
  1305 compiler.misc.verbose.retro.with=\
  1306     \tretrofitting {0} with {1}
  1308 compiler.misc.verbose.retro.with.list=\
  1309     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
  1311 ## extra output when using -verbose (code/ClassReader)
  1312 # 0: string
  1313 compiler.misc.verbose.loading=\
  1314     [loading {0}]
  1316 # 0: string
  1317 compiler.misc.verbose.sourcepath=\
  1318     [search path for source files: {0}]
  1320 # 0: string
  1321 compiler.misc.verbose.classpath=\
  1322     [search path for class files: {0}]
  1324 ## extra output when using -checkclassfile (code/ClassReader)
  1325 compiler.misc.ccf.found.later.version=\
  1326     class file has later version than expected: {0}
  1328 compiler.misc.ccf.unrecognized.attribute=\
  1329     unrecognized attribute: {0}
  1331 ## extra output when using -prompt (util/Log)
  1332 compiler.misc.resume.abort=\
  1333     R)esume, A)bort>
  1335 #####
  1337 ##
  1338 ## warnings
  1339 ##
  1341 ## All warning messages are preceded by the following string.
  1342 compiler.warn.warning=\
  1343     warning:\u0020
  1345 ## Warning messages may also include the following prefix to identify a
  1346 ## lint option
  1347 # 0: option name
  1348 compiler.warn.lintOption=\
  1349     [{0}]\u0020
  1351 # 0: symbol
  1352 compiler.warn.constant.SVUID=\
  1353     serialVersionUID must be constant in class {0}
  1355 # 0: file name
  1356 compiler.warn.dir.path.element.not.found=\
  1357     bad path element "{0}": no such directory
  1359 compiler.warn.finally.cannot.complete=\
  1360     finally clause cannot complete normally
  1362 # 0: symbol, 1: symbol
  1363 compiler.warn.has.been.deprecated=\
  1364     {0} in {1} has been deprecated
  1366 # 0: symbol
  1367 compiler.warn.sun.proprietary=\
  1368     {0} is internal proprietary API and may be removed in a future release
  1370 compiler.warn.illegal.char.for.encoding=\
  1371     unmappable character for encoding {0}
  1373 # 0: symbol
  1374 compiler.warn.improper.SVUID=\
  1375     serialVersionUID must be declared static final in class {0}
  1377 # 0: type, 1: type
  1378 compiler.warn.inexact.non-varargs.call=\
  1379     non-varargs call of varargs method with inexact argument type for last parameter;\n\
  1380     cast to {0} for a varargs call\n\
  1381     cast to {1} for a non-varargs call and to suppress this warning
  1383 # 0: list of type
  1384 compiler.warn.unreachable.catch=\
  1385     unreachable catch clause\n\
  1386     thrown type {0} has already been caught
  1388 # 0: list of type
  1389 compiler.warn.unreachable.catch.1=\
  1390     unreachable catch clause\n\
  1391     thrown types {0} have already been caught
  1393 # 0: symbol
  1394 compiler.warn.long.SVUID=\
  1395     serialVersionUID must be of type long in class {0}
  1397 # 0: symbol
  1398 compiler.warn.missing.SVUID=\
  1399     serializable class {0} has no definition of serialVersionUID
  1401 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1402 compiler.warn.potentially.ambiguous.overload=\
  1403     {0} in {1} is potentially ambiguous with {2} in {3}
  1405 # 0: message segment
  1406 compiler.warn.override.varargs.missing=\
  1407     {0}; overridden method has no ''...''
  1409 # 0: message segment
  1410 compiler.warn.override.varargs.extra=\
  1411     {0}; overriding method is missing ''...''
  1413 compiler.warn.override.bridge=\
  1414     {0}; overridden method is a bridge method
  1416 # 0: symbol
  1417 compiler.warn.pkg-info.already.seen=\
  1418     a package-info.java file has already been seen for package {0}
  1420 # 0: file name
  1421 compiler.warn.path.element.not.found=\
  1422     bad path element "{0}": no such file or directory
  1424 compiler.warn.possible.fall-through.into.case=\
  1425     possible fall-through into case
  1427 # 0: type
  1428 compiler.warn.redundant.cast=\
  1429     redundant cast to {0}
  1431 # 0: number
  1432 compiler.warn.position.overflow=\
  1433     Position encoding overflows at line {0}
  1435 # 0: file name, 1: number, 2: number
  1436 compiler.warn.big.major.version=\
  1437     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
  1438     It is recommended that the compiler be upgraded.
  1440 # 0: symbol kind, 1: symbol
  1441 compiler.warn.static.not.qualified.by.type=\
  1442     static {0} should be qualified by type name, {1}, instead of by an expression
  1444 # 0: string
  1445 compiler.warn.source.no.bootclasspath=\
  1446     bootstrap class path not set in conjunction with -source {0}
  1448 # 0: string
  1449 compiler.warn.option.obsolete.source=\
  1450     source value {0} is obsolete and will be removed in a future release
  1452 # 0: string
  1453 compiler.warn.option.obsolete.target=\
  1454     target value {0} is obsolete and will be removed in a future release
  1456 compiler.warn.option.obsolete.suppression=\
  1457     To suppress warnings about obsolete options, use -Xlint:-options.
  1459 # 0: name, 1: number, 2: number, 3: number, 4: number
  1460 compiler.warn.future.attr=\
  1461     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
  1463 # Warnings related to annotation processing
  1464 # 0: name
  1465 compiler.warn.proc.package.does.not.exist=\
  1466     package {0} does not exist
  1468 # 0: name
  1469 compiler.warn.proc.file.reopening=\
  1470     Attempt to create a file for ''{0}'' multiple times
  1472 # 0: name
  1473 compiler.warn.proc.type.already.exists=\
  1474     A file for type ''{0}'' already exists on the sourcepath or classpath
  1476 # 0: name
  1477 compiler.warn.proc.type.recreate=\
  1478     Attempt to create a file for type ''{0}'' multiple times
  1480 # 0: string
  1481 compiler.warn.proc.illegal.file.name=\
  1482     Cannot create file for illegal name ''{0}''.
  1484 # 0: string, 1: string
  1485 compiler.warn.proc.suspicious.class.name=\
  1486     Creating file for a type whose name ends in {1}: ''{0}''
  1488 # 0: name
  1489 compiler.warn.proc.file.create.last.round=\
  1490     File for type ''{0}'' created in the last round will not be subject to annotation processing.
  1492 # 0: string, 1: string
  1493 compiler.warn.proc.malformed.supported.string=\
  1494     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
  1496 # 0: set of string
  1497 compiler.warn.proc.annotations.without.processors=\
  1498     No processor claimed any of these annotations: {0}
  1500 # 0: source version, 1: string, 2: string
  1501 compiler.warn.proc.processor.incompatible.source.version=\
  1502     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
  1504 compiler.warn.proc.proc-only.requested.no.procs=\
  1505     Annotation processing without compilation requested but no processors were found.
  1507 compiler.warn.proc.use.implicit=\
  1508     Implicitly compiled files were not subject to annotation processing.\n\
  1509     Use -implicit to specify a policy for implicit compilation.
  1511 compiler.warn.proc.use.proc.or.implicit=\
  1512     Implicitly compiled files were not subject to annotation processing.\n\
  1513     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
  1515 # Print a client-generated warning; assumed to be localized, no translation required
  1516 # 0: string
  1517 compiler.warn.proc.messager=\
  1518     {0}
  1520 # 0: set of name
  1521 compiler.warn.proc.unclosed.type.files=\
  1522     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
  1524 # 0: string
  1525 compiler.warn.proc.unmatched.processor.options=\
  1526     The following options were not recognized by any processor: ''{0}''
  1528 compiler.warn.try.explicit.close.call=\
  1529     explicit call to close() on an auto-closeable resource
  1531 # 0: symbol
  1532 compiler.warn.try.resource.not.referenced=\
  1533     auto-closeable resource {0} is never referenced in body of corresponding try statement
  1535 # 0: type
  1536 compiler.warn.try.resource.throws.interrupted.exc=\
  1537     auto-closeable resource {0} has a member method close() that could throw InterruptedException
  1539 compiler.warn.unchecked.assign=\
  1540     unchecked assignment: {0} to {1}
  1542 # 0: symbol, 1: type
  1543 compiler.warn.unchecked.assign.to.var=\
  1544     unchecked assignment to variable {0} as member of raw type {1}
  1546 # 0: symbol, 1: type
  1547 compiler.warn.unchecked.call.mbr.of.raw.type=\
  1548     unchecked call to {0} as a member of the raw type {1}
  1550 compiler.warn.unchecked.cast.to.type=\
  1551     unchecked cast to type {0}
  1553 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
  1554 compiler.warn.unchecked.meth.invocation.applied=\
  1555     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
  1556     required: {2}\n\
  1557     found: {3}
  1559 # 0: type
  1560 compiler.warn.unchecked.generic.array.creation=\
  1561     unchecked generic array creation for varargs parameter of type {0}
  1563 # 0: type
  1564 compiler.warn.unchecked.varargs.non.reifiable.type=\
  1565     Possible heap pollution from parameterized vararg type {0}
  1567 # 0: symbol
  1568 compiler.warn.varargs.unsafe.use.varargs.param=\
  1569     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
  1571 compiler.warn.missing.deprecated.annotation=\
  1572     deprecated item is not annotated with @Deprecated
  1574 compiler.warn.invalid.archive.file=\
  1575     Unexpected file on path: {0}
  1577 compiler.warn.unexpected.archive.file=\
  1578     Unexpected extension for archive file: {0}
  1580 compiler.warn.div.zero=\
  1581     division by zero
  1583 compiler.warn.empty.if=\
  1584     empty statement after if
  1586 compiler.warn.annotation.method.not.found=\
  1587     Cannot find annotation method ''{1}()'' in type ''{0}''
  1589 compiler.warn.annotation.method.not.found.reason=\
  1590     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
  1592 # 0: symbol, 1: name
  1593 compiler.warn.unknown.enum.constant=\
  1594     unknown enum constant {1}.{2}
  1596 # 0: symbol, 1: name, 2: message segment
  1597 compiler.warn.unknown.enum.constant.reason=\
  1598     unknown enum constant {1}.{2}\n\
  1599     reason: {3}
  1601 # 0: type, 1: type
  1602 compiler.warn.raw.class.use=\
  1603     found raw type: {0}\n\
  1604     missing type arguments for generic class {1}
  1606 # 0: unused, 1: unused
  1607 compiler.warn.diamond.redundant.args=\
  1608     redundant type arguments in new expression (use diamond operator instead).
  1610 # 0: type, 1: type
  1611 compiler.warn.diamond.redundant.args.1=\
  1612     redundant type arguments in new expression (use diamond operator instead).\n\
  1613     explicit: {0}\n\
  1614     inferred: {1}
  1616 # 0: symbol, 1: message segment
  1617 compiler.warn.varargs.redundant.trustme.anno=\
  1618     Redundant {0} annotation. {1}
  1620 #####
  1622 ## The following are tokens which are non-terminals in the language. They should
  1623 ## be named as JLS3 calls them when translated to the appropriate language.
  1624 compiler.misc.token.identifier=\
  1625     <identifier>
  1627 compiler.misc.token.character=\
  1628     <character>
  1630 compiler.misc.token.string=\
  1631     <string>
  1633 compiler.misc.token.integer=\
  1634     <integer>
  1636 compiler.misc.token.long-integer=\
  1637     <long integer>
  1639 compiler.misc.token.float=\
  1640     <float>
  1642 compiler.misc.token.double=\
  1643     <double>
  1645 compiler.misc.token.bad-symbol=\
  1646     <bad symbol>
  1648 compiler.misc.token.end-of-input=\
  1649     <end of input>
  1651 ## The argument to the following string will always be one of the following:
  1652 ## 1. one of the above non-terminals
  1653 ## 2. a keyword (JLS1.8)
  1654 ## 3. a boolean literal (JLS3.10.3)
  1655 ## 4. the null literal (JLS3.10.7)
  1656 ## 5. a Java separator (JLS3.11)
  1657 ## 6. an operator (JLS3.12)
  1658 ##
  1659 ## This is the only place these tokens will be used.
  1660 # 0: token
  1661 compiler.err.expected=\
  1662     {0} expected
  1664 # 0: token, 1: token
  1665 compiler.err.expected2=\
  1666     {0} or {1} expected
  1668 # 0: token, 1: token, 2: token
  1669 compiler.err.expected3=\
  1670     {0}, {1}, or {2} expected
  1672 compiler.err.premature.eof=\
  1673     reached end of file while parsing
  1675 ## The following are related in form, but do not easily fit the above paradigm.
  1676 compiler.err.dot.class.expected=\
  1677     ''.class'' expected
  1679 ## The argument to this string will always be either 'case' or 'default'.
  1680 # 0: token
  1681 compiler.err.orphaned=\
  1682     orphaned {0}
  1684 # 0: name
  1685 compiler.misc.anonymous.class=\
  1686     <anonymous {0}>
  1688 # 0: name, 1: type
  1689 compiler.misc.type.captureof=\
  1690     capture#{0} of {1}
  1692 compiler.misc.type.captureof.1=\
  1693     capture#{0}
  1695 compiler.misc.type.none=\
  1696     <none>
  1698 compiler.misc.unnamed.package=\
  1699     unnamed package
  1701 #####
  1703 # 0: symbol, 1: message segment
  1704 compiler.err.cant.access=\
  1705     cannot access {0}\n\
  1706     {1}
  1708 # 0: file name, 1: expected CP entry type, 2: constant pool index
  1709 compiler.misc.bad.const.pool.entry=\
  1710     bad constant pool entry in {0}\n\
  1711     expected {1} at index {2}
  1713 # 0: file name, 1: message segment
  1714 compiler.misc.bad.class.file.header=\
  1715     bad class file: {0}\n\
  1716     {1}\n\
  1717     Please remove or make sure it appears in the correct subdirectory of the classpath.
  1719 # 0: file name, 1: message segment
  1720 compiler.misc.bad.source.file.header=\
  1721     bad source file: {0}\n\
  1722     {1}\n\
  1723     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
  1725 ## The following are all possible strings for the second argument ({1}) of the
  1726 ## above strings.
  1727 compiler.misc.bad.class.signature=\
  1728     bad class signature: {0}
  1730 #0: symbol, 1: symbol
  1731 compiler.misc.bad.enclosing.class=\
  1732     bad enclosing class for {0}: {1}
  1734 # 0: symbol
  1735 compiler.misc.bad.enclosing.method=\
  1736     bad enclosing method attribute for class {0}
  1738 compiler.misc.bad.runtime.invisible.param.annotations=\
  1739     bad RuntimeInvisibleParameterAnnotations attribute: {0}
  1741 compiler.misc.bad.const.pool.tag=\
  1742     bad constant pool tag: {0}
  1744 compiler.misc.bad.const.pool.tag.at=\
  1745     bad constant pool tag: {0} at {1}
  1747 compiler.misc.bad.signature=\
  1748     bad signature: {0}
  1750 compiler.misc.bad.type.annotation.value=\
  1751     bad type annotation target type value: {0}
  1753 compiler.misc.class.file.wrong.class=\
  1754     class file contains wrong class: {0}
  1756 compiler.misc.class.file.not.found=\
  1757     class file for {0} not found
  1759 # 0: classfile major version, 1: classfile minor version
  1760 compiler.misc.invalid.default.interface=\
  1761     default method found in version {0}.{1} classfile
  1763 # 0: classfile major version, 1: classfile minor version
  1764 compiler.misc.invalid.static.interface=\
  1765     static method found in version {0}.{1} classfile
  1767 # 0: name
  1768 compiler.misc.file.doesnt.contain.class=\
  1769     file does not contain class {0}
  1771 compiler.misc.file.does.not.contain.package=\
  1772     file does not contain package {0}
  1774 compiler.misc.illegal.start.of.class.file=\
  1775     illegal start of class file
  1777 compiler.misc.unable.to.access.file=\
  1778     unable to access file: {0}
  1780 compiler.misc.unicode.str.not.supported=\
  1781     unicode string in class file not supported
  1783 compiler.misc.undecl.type.var=\
  1784     undeclared type variable: {0}
  1786 compiler.misc.wrong.version=\
  1787     class file has wrong version {0}.{1}, should be {2}.{3}
  1789 #####
  1791 # 0: type, 1: type or symbol
  1792 compiler.err.not.within.bounds=\
  1793     type argument {0} is not within bounds of type-variable {1}
  1795 ## The following are all possible strings for the second argument ({1}) of the
  1796 ## above string.
  1798 ## none yet...
  1800 #####
  1802 # 0: message segment
  1803 compiler.err.prob.found.req=\
  1804     incompatible types: {0}
  1806 # 0: message segment
  1807 compiler.misc.prob.found.req=\
  1808     incompatible types: {0}
  1810 # 0: message segment, 1: type, 2: type
  1811 compiler.warn.prob.found.req=\
  1812     {0}\n\
  1813     required: {2}\n\
  1814     found:    {1}
  1816 # 0: type, 1: type
  1817 compiler.misc.inconvertible.types=\
  1818     {0} cannot be converted to {1}
  1820 # 0: type, 1: type
  1821 compiler.misc.possible.loss.of.precision=\
  1822     possible lossy conversion from {0} to {1}
  1824 compiler.misc.unchecked.assign=\
  1825     unchecked conversion
  1827 # compiler.misc.storecheck=\
  1828 #     assignment might cause later store checks to fail
  1829 # compiler.misc.unchecked=\
  1830 #     assigned array cannot dynamically check its stores
  1831 compiler.misc.unchecked.cast.to.type=\
  1832     unchecked cast
  1834 # compiler.err.star.expected=\
  1835 #     ''*'' expected
  1836 # compiler.err.no.elem.type=\
  1837 #     \[\*\] cannot have a type
  1839 # 0: type
  1840 compiler.misc.try.not.applicable.to.type=\
  1841     try-with-resources not applicable to variable type\n\
  1842     ({0})
  1844 #####
  1846 # 0: message segment or type, 1: message segment
  1847 compiler.err.type.found.req=\
  1848     unexpected type\n\
  1849     required: {1}\n\
  1850     found:    {0}
  1852 ## The following are all possible strings for the first argument ({0}) of the
  1853 ## above string.
  1854 compiler.misc.type.req.class=\
  1855     class
  1857 compiler.misc.type.req.class.array=\
  1858     class or array
  1860 compiler.misc.type.req.array.or.iterable=\
  1861     array or java.lang.Iterable
  1863 compiler.misc.type.req.ref=\
  1864     reference
  1866 compiler.misc.type.req.exact=\
  1867     class or interface without bounds
  1869 # 0: type
  1870 compiler.misc.type.parameter=\
  1871     type parameter {0}
  1873 #####
  1875 ## The following are all possible strings for the last argument of all those
  1876 ## diagnostics whose key ends in ".1"
  1878 # 0: type, 1: list of type
  1879 compiler.misc.no.unique.maximal.instance.exists=\
  1880     no unique maximal instance exists for type variable {0} with upper bounds {1}
  1882 compiler.misc.no.unique.minimal.instance.exists=\
  1883     no unique minimal instance exists for type variable {0} with lower bounds {1}
  1885 # 0: type, 1: list of type
  1886 compiler.misc.incompatible.upper.bounds=\
  1887     inference variable {0} has incompatible upper bounds {1}
  1889 # 0: type, 1: list of type, 2: list of type
  1890 compiler.misc.incompatible.eq.upper.bounds=\
  1891     inference variable {0} has incompatible bounds\n\
  1892     equality constraints: {1}\n\
  1893     upper bounds: {2}
  1895 # 0: type, 1: list of type, 2: list of type
  1896 compiler.misc.incompatible.eq.lower.bounds=\
  1897     inference variable {0} has incompatible bounds\n\
  1898     equality constraints: {1}\n\
  1899     lower bounds: {2}
  1901 # 0: list of type, 1: type, 2: type
  1902 compiler.misc.infer.no.conforming.instance.exists=\
  1903     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
  1905 # 0: list of type, 1: message segment
  1906 compiler.misc.infer.no.conforming.assignment.exists=\
  1907     cannot infer type-variable(s) {0}\n\
  1908     (argument mismatch; {1})
  1910 # 0: list of type
  1911 compiler.misc.infer.arg.length.mismatch=\
  1912     cannot infer type-variable(s) {0}\n\
  1913     (actual and formal argument lists differ in length)
  1915 # 0: list of type, 1: message segment
  1916 compiler.misc.infer.varargs.argument.mismatch=\
  1917     cannot infer type-variable(s) {0}\n\
  1918     (varargs mismatch; {1})
  1920 # 0: type, 1: list of type
  1921 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
  1922     inferred type does not conform to upper bound(s)\n\
  1923     inferred: {0}\n\
  1924     upper bound(s): {1}
  1926 # 0: type, 1: list of type
  1927 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
  1928     inferred type does not conform to lower bound(s)\n\
  1929     inferred: {0}\n\
  1930     lower bound(s): {1}
  1932 # 0: type, 1: list of type
  1933 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
  1934     inferred type does not conform to equality constraint(s)\n\
  1935     inferred: {0}\n\
  1936     equality constraints(s): {1}
  1938 # 0: symbol
  1939 compiler.misc.diamond=\
  1940     {0}<>
  1942 # 0: type
  1943 compiler.misc.diamond.non.generic=\
  1944     cannot use ''<>'' with non-generic class {0}
  1946 # 0: unused
  1947 compiler.misc.diamond.and.explicit.params=\
  1948     cannot use ''<>'' with explicit type parameters for constructor
  1950 # 0: unused
  1951 compiler.misc.mref.infer.and.explicit.params=\
  1952     cannot use raw constructor reference with explicit type parameters for constructor
  1954 # 0: type, 1: list of type
  1955 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  1956     explicit type argument {0} does not conform to declared bound(s) {1}
  1958 compiler.misc.arg.length.mismatch=\
  1959     actual and formal argument lists differ in length
  1961 # 0: message segment
  1962 compiler.misc.no.conforming.assignment.exists=\
  1963     argument mismatch; {0}
  1965 # 0: message segment
  1966 compiler.misc.varargs.argument.mismatch=\
  1967     varargs mismatch; {0}
  1969 #####
  1971 # 0: symbol or type, 1: file name
  1972 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
  1973     auxiliary class {0} in {1} should not be accessed from outside its own source file
  1975 ## The first argument ({0}) is a "kindname".
  1976 # 0: symbol kind, 1: symbol, 2: symbol
  1977 compiler.err.abstract.cant.be.accessed.directly=\
  1978     abstract {0} {1} in {2} cannot be accessed directly
  1980 ## The first argument ({0}) is a "kindname".
  1981 # 0: symbol kind, 1: symbol
  1982 compiler.err.non-static.cant.be.ref=\
  1983     non-static {0} {1} cannot be referenced from a static context
  1985 # 0: symbol kind, 1: symbol
  1986 compiler.misc.non-static.cant.be.ref=\
  1987     non-static {0} {1} cannot be referenced from a static context
  1989 # 0: symbol kind, 1: symbol
  1990 compiler.misc.static.method.in.unbound.lookup=\
  1991     static {0} {1} found in unbound lookup
  1993 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  1994 ## of kindnames (the list should be identical to that provided in source.
  1995 compiler.err.unexpected.type=\
  1996     unexpected type\n\
  1997     required: {0}\n\
  1998     found:    {1}
  2000 compiler.err.unexpected.lambda=\
  2001    lambda expression not expected here
  2003 compiler.err.unexpected.mref=\
  2004    method reference not expected here
  2006 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  2007 ## The second argument {1} is the non-resolved symbol
  2008 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  2009 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  2010 # 0: symbol kind, 1: name, 2: unused, 3: unused
  2011 compiler.err.cant.resolve=\
  2012     cannot find symbol\n\
  2013     symbol: {0} {1}
  2015 # 0: symbol kind, 1: name, 2: unused, 3: list of type
  2016 compiler.err.cant.resolve.args=\
  2017     cannot find symbol\n\
  2018     symbol: {0} {1}({3})
  2020 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
  2021 compiler.err.cant.resolve.args.params=\
  2022     cannot find symbol\n\
  2023     symbol: {0} <{2}>{1}({3})
  2025 ## arguments from {0} to {3} have the same meaning as above
  2026 ## The fifth argument {4} is a location subdiagnostic (see below)
  2027 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
  2028 compiler.err.cant.resolve.location=\
  2029     cannot find symbol\n\
  2030     symbol:   {0} {1}\n\
  2031     location: {4}
  2033 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2034 compiler.err.cant.resolve.location.args=\
  2035     cannot find symbol\n\
  2036     symbol:   {0} {1}({3})\n\
  2037     location: {4}
  2039 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2040 compiler.err.cant.resolve.location.args.params=\
  2041     cannot find symbol\n\
  2042     symbol:   {0} <{2}>{1}({3})\n\
  2043     location: {4}
  2045 ### Following are replicated/used for method reference diagnostics
  2047 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2048 compiler.misc.cant.resolve.location.args=\
  2049     cannot find symbol\n\
  2050     symbol:   {0} {1}({3})\n\
  2051     location: {4}
  2053 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2054 compiler.misc.cant.resolve.location.args.params=\
  2055     cannot find symbol\n\
  2056     symbol:   {0} <{2}>{1}({3})\n\
  2057     location: {4}
  2059 ##a location subdiagnostic is composed as follows:
  2060 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  2061 ## The second argument {1} is the location name
  2062 ## The third argument {2} is the location type (only when {1} is a variable name)
  2064 # 0: symbol kind, 1: type or symbol, 2: unused
  2065 compiler.misc.location=\
  2066     {0} {1}
  2068 # 0: symbol kind, 1: symbol, 2: type
  2069 compiler.misc.location.1=\
  2070     {0} {1} of type {2}
  2072 ## The following are all possible string for "kindname".
  2073 ## They should be called whatever the JLS calls them after it been translated
  2074 ## to the appropriate language.
  2075 # compiler.misc.kindname.constructor=\
  2076 #     static member
  2077 compiler.misc.kindname.annotation=\
  2078     @interface
  2080 compiler.misc.kindname.constructor=\
  2081     constructor
  2083 compiler.misc.kindname.enum=\
  2084     enum
  2086 compiler.misc.kindname.interface=\
  2087     interface
  2089 compiler.misc.kindname.static=\
  2090     static
  2092 compiler.misc.kindname.type.variable=\
  2093     type variable
  2095 compiler.misc.kindname.type.variable.bound=\
  2096     bound of type variable
  2098 compiler.misc.kindname.variable=\
  2099     variable
  2101 compiler.misc.kindname.value=\
  2102     value
  2104 compiler.misc.kindname.method=\
  2105     method
  2107 compiler.misc.kindname.class=\
  2108     class
  2110 compiler.misc.kindname.package=\
  2111     package
  2113 compiler.misc.kindname.static.init=\
  2114     static initializer
  2116 compiler.misc.kindname.instance.init=\
  2117     instance initializer
  2119 #####
  2121 compiler.misc.no.args=\
  2122     no arguments
  2124 # 0: message segment
  2125 compiler.err.override.static=\
  2126     {0}\n\
  2127     overriding method is static
  2129 # 0: message segment, 1: set of modifier
  2130 compiler.err.override.meth=\
  2131     {0}\n\
  2132     overridden method is {1}
  2134 # 0: message segment, 1: type
  2135 compiler.err.override.meth.doesnt.throw=\
  2136     {0}\n\
  2137     overridden method does not throw {1}
  2139 # In the following string {1} is a space separated list of Java Keywords, as
  2140 # they would have been declared in the source code
  2141 # 0: message segment, 1: set of modifier
  2142 compiler.err.override.weaker.access=\
  2143     {0}\n\
  2144     attempting to assign weaker access privileges; was {1}
  2146 # 0: message segment, 1: type, 2: type
  2147 compiler.err.override.incompatible.ret=\
  2148     {0}\n\
  2149     return type {1} is not compatible with {2}
  2151 # 0: message segment, 1: type, 2: type
  2152 compiler.warn.override.unchecked.ret=\
  2153     {0}\n\
  2154     return type requires unchecked conversion from {1} to {2}
  2156 # 0: message segment, 1: type
  2157 compiler.warn.override.unchecked.thrown=\
  2158     {0}\n\
  2159     overridden method does not throw {1}
  2161 # 0: symbol
  2162 compiler.warn.override.equals.but.not.hashcode=\
  2163     Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
  2165 ## The following are all possible strings for the first argument ({0}) of the
  2166 ## above strings.
  2167 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2168 compiler.misc.cant.override=\
  2169     {0} in {1} cannot override {2} in {3}
  2171 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2172 compiler.misc.cant.implement=\
  2173     {0} in {1} cannot implement {2} in {3}
  2175 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2176 compiler.misc.clashes.with=\
  2177     {0} in {1} clashes with {2} in {3}
  2179 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2180 compiler.misc.unchecked.override=\
  2181     {0} in {1} overrides {2} in {3}
  2183 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2184 compiler.misc.unchecked.implement=\
  2185     {0} in {1} implements {2} in {3}
  2187 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2188 compiler.misc.unchecked.clash.with=\
  2189     {0} in {1} overrides {2} in {3}
  2191 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2192 compiler.misc.varargs.override=\
  2193     {0} in {1} overrides {2} in {3}
  2195 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2196 compiler.misc.varargs.implement=\
  2197     {0} in {1} implements {2} in {3}
  2199 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2200 compiler.misc.varargs.clash.with=\
  2201     {0} in {1} overrides {2} in {3}
  2203 # 0: unused
  2204 compiler.misc.diamond.and.anon.class=\
  2205     cannot use ''<>'' with anonymous inner classes
  2207 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
  2208 compiler.misc.inapplicable.method=\
  2209     {0} {1}.{2} is not applicable\n\
  2210     ({3})
  2212 ########################################
  2213 # Diagnostics for language feature changes
  2214 ########################################
  2215 # 0: string
  2216 compiler.err.unsupported.fp.lit=\
  2217     hexadecimal floating point literals are not supported in -source {0}\n\
  2218     (use -source 5 or higher to enable hexadecimal floating point literals)
  2220 # 0: string
  2221 compiler.err.unsupported.binary.lit=\
  2222     binary literals are not supported in -source {0}\n\
  2223     (use -source 7 or higher to enable binary literals)
  2225 # 0: string
  2226 compiler.err.unsupported.underscore.lit=\
  2227     underscores in literals are not supported in -source {0}\n\
  2228     (use -source 7 or higher to enable underscores in literals)
  2230 # 0: string
  2231 compiler.err.try.with.resources.not.supported.in.source=\
  2232     try-with-resources is not supported in -source {0}\n\
  2233     (use -source 7 or higher to enable try-with-resources)
  2235 compiler.warn.enum.as.identifier=\
  2236     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2237     (use -source 5 or higher to use ''enum'' as a keyword)
  2239 compiler.warn.assert.as.identifier=\
  2240     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2241     (use -source 1.4 or higher to use ''assert'' as a keyword)
  2243 compiler.warn.underscore.as.identifier=\
  2244     ''_'' used as an identifier\n\
  2245     (use of ''_'' as an identifier might not be supported in releases after Java SE 8)
  2247 compiler.err.underscore.as.identifier.in.lambda=\
  2248     ''_'' used as an identifier\n\
  2249     (use of ''_'' as an identifier is forbidden for lambda parameters)
  2251 compiler.err.enum.as.identifier=\
  2252     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2253     (use -source 1.4 or lower to use ''enum'' as an identifier)
  2255 compiler.err.assert.as.identifier=\
  2256     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2257     (use -source 1.3 or lower to use ''assert'' as an identifier)
  2259 # TODO 308: make a better error message
  2260 compiler.err.this.as.identifier=\
  2261     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
  2263 # 0: symbol
  2264 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
  2265     receiver parameter not applicable for constructor of top-level class
  2267 # TODO 308: make a better error message
  2268 # 0: symbol
  2269 compiler.err.cant.type.annotate.scoping.1=\
  2270     scoping construct cannot be annotated with type-use annotation: {0}
  2272 # TODO 308: make a better error message
  2273 # 0: list of symbol
  2274 compiler.err.cant.type.annotate.scoping=\
  2275     scoping construct cannot be annotated with type-use annotations: {0}
  2277 # 0: type, 1: type
  2278 compiler.err.incorrect.receiver.name=\
  2279     the receiver name does not match the enclosing class type\n\
  2280     required: {0}\n\
  2281     found: {1}
  2283 # 0: type, 1: type
  2284 compiler.err.incorrect.receiver.type=\
  2285     the receiver type does not match the enclosing class type\n\
  2286     required: {0}\n\
  2287     found: {1}
  2289 # 0: type, 1: type
  2290 compiler.err.incorrect.constructor.receiver.type=\
  2291     the receiver type does not match the enclosing outer class type\n\
  2292     required: {0}\n\
  2293     found: {1}
  2295 # 0: type, 1: type
  2296 compiler.err.incorrect.constructor.receiver.name=\
  2297     the receiver name does not match the enclosing outer class type\n\
  2298     required: {0}\n\
  2299     found: {1}
  2301 compiler.err.no.annotations.on.dot.class=\
  2302     no annotations are allowed in the type of a class literal
  2304 # 0: string
  2305 compiler.err.generics.not.supported.in.source=\
  2306     generics are not supported in -source {0}\n\
  2307     (use -source 5 or higher to enable generics)
  2309 # 0: string
  2310 compiler.err.varargs.not.supported.in.source=\
  2311     variable-arity methods are not supported in -source {0}\n\
  2312     (use -source 5 or higher to enable variable-arity methods)
  2314 # 0: string
  2315 compiler.err.annotations.not.supported.in.source=\
  2316     annotations are not supported in -source {0}\n\
  2317     (use -source 5 or higher to enable annotations)
  2319 # 0: string
  2320 compiler.err.type.annotations.not.supported.in.source=\
  2321     type annotations are not supported in -source {0}\n\
  2322 (use -source 8 or higher to enable type annotations)
  2324 # 0: string
  2325 compiler.err.annotations.after.type.params.not.supported.in.source=\
  2326     annotations after method type parameters are not supported in -source {0}\n\
  2327 (use -source 8 or higher to enable annotations after method type parameters)
  2329 # 0: string
  2330 compiler.err.repeatable.annotations.not.supported.in.source=\
  2331     repeated annotations are not supported in -source {0}\n\
  2332 (use -source 8 or higher to enable repeated annotations)
  2334 # 0: string
  2335 compiler.err.foreach.not.supported.in.source=\
  2336     enhanced for loops are not supported in -source {0}\n\
  2337     (use -source 5 or higher to enable for-each loops)
  2339 # 0: string
  2340 compiler.err.static.import.not.supported.in.source=\
  2341     static import declarations are not supported in -source {0}\n\
  2342     (use -source 5 or higher to enable static import declarations)
  2344 # 0: string
  2345 compiler.err.enums.not.supported.in.source=\
  2346     enums are not supported in -source {0}\n\
  2347     (use -source 5 or higher to enable enums)
  2349 # 0: string
  2350 compiler.err.diamond.not.supported.in.source=\
  2351     diamond operator is not supported in -source {0}\n\
  2352     (use -source 7 or higher to enable diamond operator)
  2354 # 0: string
  2355 compiler.err.multicatch.not.supported.in.source=\
  2356     multi-catch statement is not supported in -source {0}\n\
  2357     (use -source 7 or higher to enable multi-catch statement)
  2359 # 0: string
  2360 compiler.err.string.switch.not.supported.in.source=\
  2361     strings in switch are not supported in -source {0}\n\
  2362     (use -source 7 or higher to enable strings in switch)
  2364 # 0: string
  2365 compiler.err.lambda.not.supported.in.source=\
  2366     lambda expressions are not supported in -source {0}\n\
  2367     (use -source 8 or higher to enable lambda expressions)
  2369 # 0: string
  2370 compiler.err.method.references.not.supported.in.source=\
  2371     method references are not supported in -source {0}\n\
  2372     (use -source 8 or higher to enable method references)
  2374 # 0: string
  2375 compiler.err.default.methods.not.supported.in.source=\
  2376     default methods are not supported in -source {0}\n\
  2377     (use -source 8 or higher to enable default methods)
  2379 # 0: string
  2380 compiler.err.intersection.types.in.cast.not.supported.in.source=\
  2381     intersection types in cast are not supported in -source {0}\n\
  2382     (use -source 8 or higher to enable default methods)
  2384 # 0: string
  2385 compiler.err.static.intf.methods.not.supported.in.source=\
  2386     static interface methods are not supported in -source {0}\n\
  2387     (use -source 8 or higher to enable static interface methods)
  2389 ########################################
  2390 # Diagnostics for verbose resolution
  2391 # used by Resolve (debug only)
  2392 ########################################
  2394 # 0: number, 1: symbol, 2: unused
  2395 compiler.misc.applicable.method.found=\
  2396     #{0} applicable method found: {1}
  2398 # 0: number, 1: symbol, 2: message segment
  2399 compiler.misc.applicable.method.found.1=\
  2400     #{0} applicable method found: {1}\n\
  2401     ({2})
  2403 # 0: number, 1: symbol, 2: message segment
  2404 compiler.misc.not.applicable.method.found=\
  2405     #{0} not applicable method found: {1}\n\
  2406     ({2})
  2408 # 0: type
  2409 compiler.misc.partial.inst.sig=\
  2410     partially instantiated to: {0}
  2412 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2413 compiler.note.verbose.resolve.multi=\
  2414     resolving method {0} in type {1} to candidate {2}\n\
  2415     phase: {3}\n\
  2416     with actuals: {4}\n\
  2417     with type-args: {5}\n\
  2418     candidates:
  2420 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2421 compiler.note.verbose.resolve.multi.1=\
  2422     erroneous resolution for method {0} in type {1}\n\
  2423     phase: {3}\n\
  2424     with actuals: {4}\n\
  2425     with type-args: {5}\n\
  2426     candidates:
  2428 # 0: symbol, 1: type, 2: type
  2429 compiler.note.deferred.method.inst=\
  2430     Deferred instantiation of method {0}\n\
  2431     instantiated signature: {1}\n\
  2432     target-type: {2}
  2434 ########################################
  2435 # Diagnostics for where clause implementation
  2436 # used by the RichDiagnosticFormatter.
  2437 ########################################
  2439 compiler.misc.type.null=\
  2440     <null>
  2442 # X#n (where n is an int id) is disambiguated tvar name
  2443 # 0: name, 1: number
  2444 compiler.misc.type.var=\
  2445     {0}#{1}
  2447 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
  2448 # 0: number
  2449 compiler.misc.captured.type=\
  2450     CAP#{0}
  2452 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
  2453 # 0: number
  2454 compiler.misc.intersection.type=\
  2455     INT#{0}
  2457 # where clause for captured type: contains upper ('extends {1}') and lower
  2458 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
  2459 # 0: type, 1: type, 2: type, 3: type
  2460 compiler.misc.where.captured=\
  2461     {0} extends {1} super: {2} from capture of {3}
  2463 # compact where clause for captured type: contains upper ('extends {1}') along
  2464 # with the wildcard that generated this captured type ({3})
  2465 # 0: type, 1: type, 2: unused, 3: type
  2466 compiler.misc.where.captured.1=\
  2467     {0} extends {1} from capture of {3}
  2469 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
  2470 # the kindname ({2}) and location ({3}) in which the typevar has been declared
  2471 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2472 compiler.misc.where.typevar=\
  2473     {0} extends {1} declared in {2} {3}
  2475 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
  2476 # in which the typevar has been declared
  2477 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2478 compiler.misc.where.typevar.1=\
  2479     {0} declared in {2} {3}
  2481 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
  2482 # Since a fresh type-variable is synthetic - there's no location/kindname here.
  2483 # 0: type, 1: list of type
  2484 compiler.misc.where.fresh.typevar=\
  2485     {0} extends {1}
  2487 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
  2488 # of this intersection type
  2489 # 0: type, 1: list of type
  2490 compiler.misc.where.intersection=\
  2491     {0} extends {1}
  2493 ### Where clause headers ###
  2494 compiler.misc.where.description.captured=\
  2495     where {0} is a fresh type-variable:
  2497 # 0: set of type
  2498 compiler.misc.where.description.typevar=\
  2499     where {0} is a type-variable:
  2501 # 0: set of type
  2502 compiler.misc.where.description.intersection=\
  2503     where {0} is an intersection type:
  2505 # 0: set of type
  2506 compiler.misc.where.description.captured.1=\
  2507     where {0} are fresh type-variables:
  2509 # 0: set of type
  2510 compiler.misc.where.description.typevar.1=\
  2511     where {0} are type-variables:
  2513 compiler.misc.where.description.intersection.1=\
  2514     where {0} are intersection types:
  2516 ###
  2517 # errors related to doc comments
  2519 compiler.err.dc.bad.entity=\
  2520     bad HTML entity
  2522 compiler.err.dc.bad.gt=\
  2523     bad use of ''>''
  2525 compiler.err.dc.bad.inline.tag=\
  2526     incorrect use of inline tag
  2528 compiler.err.dc.identifier.expected=\
  2529     identifier expected
  2531 compiler.err.dc.malformed.html=\
  2532     malformed HTML
  2534 compiler.err.dc.missing.semicolon=\
  2535     semicolon missing
  2537 compiler.err.dc.no.content=\
  2538     no content
  2540 compiler.err.dc.no.tag.name=\
  2541     no tag name after '@'
  2543 compiler.err.dc.gt.expected=\
  2544     ''>'' expected
  2546 compiler.err.dc.ref.bad.parens=\
  2547     '')'' missing in reference
  2549 compiler.err.dc.ref.syntax.error=\
  2550     syntax error in reference
  2552 compiler.err.dc.ref.unexpected.input=\
  2553     unexpected text
  2555 compiler.err.dc.unexpected.content=\
  2556     unexpected content
  2558 compiler.err.dc.unterminated.inline.tag=\
  2559     unterminated inline tag
  2561 compiler.err.dc.unterminated.signature=\
  2562     unterminated signature
  2564 compiler.err.dc.unterminated.string=\
  2565     unterminated string

mercurial