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

Thu, 04 Aug 2016 23:36:47 -0700

author
asaha
date
Thu, 04 Aug 2016 23:36:47 -0700
changeset 3270
8a30511b2ea4
parent 2418
16a698253f33
child 2525
2eb010b6cb22
child 3814
12045c5cae33
permissions
-rw-r--r--

8162511: 8u111 L10n resource file updates
Summary: 8u111 L10n resource file updates
Reviewed-by: coffeys
Contributed-by: li.jiang@oracle.com

     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 # 0: symbol
  1621 compiler.warn.access.to.sensitive.member.from.serializable.element=\
  1622     access to sensitive member {0} from serializable element can be publicly accessible to untrusted code
  1624 #####
  1626 ## The following are tokens which are non-terminals in the language. They should
  1627 ## be named as JLS3 calls them when translated to the appropriate language.
  1628 compiler.misc.token.identifier=\
  1629     <identifier>
  1631 compiler.misc.token.character=\
  1632     <character>
  1634 compiler.misc.token.string=\
  1635     <string>
  1637 compiler.misc.token.integer=\
  1638     <integer>
  1640 compiler.misc.token.long-integer=\
  1641     <long integer>
  1643 compiler.misc.token.float=\
  1644     <float>
  1646 compiler.misc.token.double=\
  1647     <double>
  1649 compiler.misc.token.bad-symbol=\
  1650     <bad symbol>
  1652 compiler.misc.token.end-of-input=\
  1653     <end of input>
  1655 ## The argument to the following string will always be one of the following:
  1656 ## 1. one of the above non-terminals
  1657 ## 2. a keyword (JLS1.8)
  1658 ## 3. a boolean literal (JLS3.10.3)
  1659 ## 4. the null literal (JLS3.10.7)
  1660 ## 5. a Java separator (JLS3.11)
  1661 ## 6. an operator (JLS3.12)
  1662 ##
  1663 ## This is the only place these tokens will be used.
  1664 # 0: token
  1665 compiler.err.expected=\
  1666     {0} expected
  1668 # 0: token, 1: token
  1669 compiler.err.expected2=\
  1670     {0} or {1} expected
  1672 # 0: token, 1: token, 2: token
  1673 compiler.err.expected3=\
  1674     {0}, {1}, or {2} expected
  1676 compiler.err.premature.eof=\
  1677     reached end of file while parsing
  1679 ## The following are related in form, but do not easily fit the above paradigm.
  1680 compiler.err.dot.class.expected=\
  1681     ''.class'' expected
  1683 ## The argument to this string will always be either 'case' or 'default'.
  1684 # 0: token
  1685 compiler.err.orphaned=\
  1686     orphaned {0}
  1688 # 0: name
  1689 compiler.misc.anonymous.class=\
  1690     <anonymous {0}>
  1692 # 0: name, 1: type
  1693 compiler.misc.type.captureof=\
  1694     capture#{0} of {1}
  1696 compiler.misc.type.captureof.1=\
  1697     capture#{0}
  1699 compiler.misc.type.none=\
  1700     <none>
  1702 compiler.misc.unnamed.package=\
  1703     unnamed package
  1705 #####
  1707 # 0: symbol, 1: message segment
  1708 compiler.err.cant.access=\
  1709     cannot access {0}\n\
  1710     {1}
  1712 # 0: file name, 1: expected CP entry type, 2: constant pool index
  1713 compiler.misc.bad.const.pool.entry=\
  1714     bad constant pool entry in {0}\n\
  1715     expected {1} at index {2}
  1717 # 0: file name, 1: message segment
  1718 compiler.misc.bad.class.file.header=\
  1719     bad class file: {0}\n\
  1720     {1}\n\
  1721     Please remove or make sure it appears in the correct subdirectory of the classpath.
  1723 # 0: file name, 1: message segment
  1724 compiler.misc.bad.source.file.header=\
  1725     bad source file: {0}\n\
  1726     {1}\n\
  1727     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
  1729 ## The following are all possible strings for the second argument ({1}) of the
  1730 ## above strings.
  1731 compiler.misc.bad.class.signature=\
  1732     bad class signature: {0}
  1734 #0: symbol, 1: symbol
  1735 compiler.misc.bad.enclosing.class=\
  1736     bad enclosing class for {0}: {1}
  1738 # 0: symbol
  1739 compiler.misc.bad.enclosing.method=\
  1740     bad enclosing method attribute for class {0}
  1742 compiler.misc.bad.runtime.invisible.param.annotations=\
  1743     bad RuntimeInvisibleParameterAnnotations attribute: {0}
  1745 compiler.misc.bad.const.pool.tag=\
  1746     bad constant pool tag: {0}
  1748 compiler.misc.bad.const.pool.tag.at=\
  1749     bad constant pool tag: {0} at {1}
  1751 compiler.misc.bad.signature=\
  1752     bad signature: {0}
  1754 compiler.misc.bad.type.annotation.value=\
  1755     bad type annotation target type value: {0}
  1757 compiler.misc.class.file.wrong.class=\
  1758     class file contains wrong class: {0}
  1760 compiler.misc.class.file.not.found=\
  1761     class file for {0} not found
  1763 # 0: classfile major version, 1: classfile minor version
  1764 compiler.misc.invalid.default.interface=\
  1765     default method found in version {0}.{1} classfile
  1767 # 0: classfile major version, 1: classfile minor version
  1768 compiler.misc.invalid.static.interface=\
  1769     static method found in version {0}.{1} classfile
  1771 # 0: name
  1772 compiler.misc.file.doesnt.contain.class=\
  1773     file does not contain class {0}
  1775 compiler.misc.file.does.not.contain.package=\
  1776     file does not contain package {0}
  1778 compiler.misc.illegal.start.of.class.file=\
  1779     illegal start of class file
  1781 compiler.misc.unable.to.access.file=\
  1782     unable to access file: {0}
  1784 compiler.misc.unicode.str.not.supported=\
  1785     unicode string in class file not supported
  1787 compiler.misc.undecl.type.var=\
  1788     undeclared type variable: {0}
  1790 compiler.misc.wrong.version=\
  1791     class file has wrong version {0}.{1}, should be {2}.{3}
  1793 #####
  1795 # 0: type, 1: type or symbol
  1796 compiler.err.not.within.bounds=\
  1797     type argument {0} is not within bounds of type-variable {1}
  1799 ## The following are all possible strings for the second argument ({1}) of the
  1800 ## above string.
  1802 ## none yet...
  1804 #####
  1806 # 0: message segment
  1807 compiler.err.prob.found.req=\
  1808     incompatible types: {0}
  1810 # 0: message segment
  1811 compiler.misc.prob.found.req=\
  1812     incompatible types: {0}
  1814 # 0: message segment, 1: type, 2: type
  1815 compiler.warn.prob.found.req=\
  1816     {0}\n\
  1817     required: {2}\n\
  1818     found:    {1}
  1820 # 0: type, 1: type
  1821 compiler.misc.inconvertible.types=\
  1822     {0} cannot be converted to {1}
  1824 # 0: type, 1: type
  1825 compiler.misc.possible.loss.of.precision=\
  1826     possible lossy conversion from {0} to {1}
  1828 compiler.misc.unchecked.assign=\
  1829     unchecked conversion
  1831 # compiler.misc.storecheck=\
  1832 #     assignment might cause later store checks to fail
  1833 # compiler.misc.unchecked=\
  1834 #     assigned array cannot dynamically check its stores
  1835 compiler.misc.unchecked.cast.to.type=\
  1836     unchecked cast
  1838 # compiler.err.star.expected=\
  1839 #     ''*'' expected
  1840 # compiler.err.no.elem.type=\
  1841 #     \[\*\] cannot have a type
  1843 # 0: type
  1844 compiler.misc.try.not.applicable.to.type=\
  1845     try-with-resources not applicable to variable type\n\
  1846     ({0})
  1848 #####
  1850 # 0: message segment or type, 1: message segment
  1851 compiler.err.type.found.req=\
  1852     unexpected type\n\
  1853     required: {1}\n\
  1854     found:    {0}
  1856 ## The following are all possible strings for the first argument ({0}) of the
  1857 ## above string.
  1858 compiler.misc.type.req.class=\
  1859     class
  1861 compiler.misc.type.req.class.array=\
  1862     class or array
  1864 compiler.misc.type.req.array.or.iterable=\
  1865     array or java.lang.Iterable
  1867 compiler.misc.type.req.ref=\
  1868     reference
  1870 compiler.misc.type.req.exact=\
  1871     class or interface without bounds
  1873 # 0: type
  1874 compiler.misc.type.parameter=\
  1875     type parameter {0}
  1877 #####
  1879 ## The following are all possible strings for the last argument of all those
  1880 ## diagnostics whose key ends in ".1"
  1882 # 0: type, 1: list of type
  1883 compiler.misc.no.unique.maximal.instance.exists=\
  1884     no unique maximal instance exists for type variable {0} with upper bounds {1}
  1886 compiler.misc.no.unique.minimal.instance.exists=\
  1887     no unique minimal instance exists for type variable {0} with lower bounds {1}
  1889 # 0: type, 1: list of type
  1890 compiler.misc.incompatible.upper.bounds=\
  1891     inference variable {0} has incompatible upper bounds {1}
  1893 # 0: type, 1: list of type, 2: list of type
  1894 compiler.misc.incompatible.eq.upper.bounds=\
  1895     inference variable {0} has incompatible bounds\n\
  1896     equality constraints: {1}\n\
  1897     upper bounds: {2}
  1899 # 0: type, 1: list of type, 2: list of type
  1900 compiler.misc.incompatible.eq.lower.bounds=\
  1901     inference variable {0} has incompatible bounds\n\
  1902     equality constraints: {1}\n\
  1903     lower bounds: {2}
  1905 # 0: list of type, 1: type, 2: type
  1906 compiler.misc.infer.no.conforming.instance.exists=\
  1907     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
  1909 # 0: list of type, 1: message segment
  1910 compiler.misc.infer.no.conforming.assignment.exists=\
  1911     cannot infer type-variable(s) {0}\n\
  1912     (argument mismatch; {1})
  1914 # 0: list of type
  1915 compiler.misc.infer.arg.length.mismatch=\
  1916     cannot infer type-variable(s) {0}\n\
  1917     (actual and formal argument lists differ in length)
  1919 # 0: list of type, 1: message segment
  1920 compiler.misc.infer.varargs.argument.mismatch=\
  1921     cannot infer type-variable(s) {0}\n\
  1922     (varargs mismatch; {1})
  1924 # 0: type, 1: list of type
  1925 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
  1926     inferred type does not conform to upper bound(s)\n\
  1927     inferred: {0}\n\
  1928     upper bound(s): {1}
  1930 # 0: type, 1: list of type
  1931 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
  1932     inferred type does not conform to lower bound(s)\n\
  1933     inferred: {0}\n\
  1934     lower bound(s): {1}
  1936 # 0: type, 1: list of type
  1937 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
  1938     inferred type does not conform to equality constraint(s)\n\
  1939     inferred: {0}\n\
  1940     equality constraints(s): {1}
  1942 # 0: symbol
  1943 compiler.misc.diamond=\
  1944     {0}<>
  1946 # 0: type
  1947 compiler.misc.diamond.non.generic=\
  1948     cannot use ''<>'' with non-generic class {0}
  1950 # 0: unused
  1951 compiler.misc.diamond.and.explicit.params=\
  1952     cannot use ''<>'' with explicit type parameters for constructor
  1954 # 0: unused
  1955 compiler.misc.mref.infer.and.explicit.params=\
  1956     cannot use raw constructor reference with explicit type parameters for constructor
  1958 # 0: type, 1: list of type
  1959 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  1960     explicit type argument {0} does not conform to declared bound(s) {1}
  1962 compiler.misc.arg.length.mismatch=\
  1963     actual and formal argument lists differ in length
  1965 # 0: message segment
  1966 compiler.misc.no.conforming.assignment.exists=\
  1967     argument mismatch; {0}
  1969 # 0: message segment
  1970 compiler.misc.varargs.argument.mismatch=\
  1971     varargs mismatch; {0}
  1973 #####
  1975 # 0: symbol or type, 1: file name
  1976 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
  1977     auxiliary class {0} in {1} should not be accessed from outside its own source file
  1979 ## The first argument ({0}) is a "kindname".
  1980 # 0: symbol kind, 1: symbol, 2: symbol
  1981 compiler.err.abstract.cant.be.accessed.directly=\
  1982     abstract {0} {1} in {2} cannot be accessed directly
  1984 ## The first argument ({0}) is a "kindname".
  1985 # 0: symbol kind, 1: symbol
  1986 compiler.err.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.non-static.cant.be.ref=\
  1991     non-static {0} {1} cannot be referenced from a static context
  1993 # 0: symbol kind, 1: symbol
  1994 compiler.misc.static.method.in.unbound.lookup=\
  1995     static {0} {1} found in unbound lookup
  1997 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  1998 ## of kindnames (the list should be identical to that provided in source.
  1999 compiler.err.unexpected.type=\
  2000     unexpected type\n\
  2001     required: {0}\n\
  2002     found:    {1}
  2004 compiler.err.unexpected.lambda=\
  2005    lambda expression not expected here
  2007 compiler.err.unexpected.mref=\
  2008    method reference not expected here
  2010 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  2011 ## The second argument {1} is the non-resolved symbol
  2012 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  2013 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  2014 # 0: symbol kind, 1: name, 2: unused, 3: unused
  2015 compiler.err.cant.resolve=\
  2016     cannot find symbol\n\
  2017     symbol: {0} {1}
  2019 # 0: symbol kind, 1: name, 2: unused, 3: list of type
  2020 compiler.err.cant.resolve.args=\
  2021     cannot find symbol\n\
  2022     symbol: {0} {1}({3})
  2024 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
  2025 compiler.err.cant.resolve.args.params=\
  2026     cannot find symbol\n\
  2027     symbol: {0} <{2}>{1}({3})
  2029 ## arguments from {0} to {3} have the same meaning as above
  2030 ## The fifth argument {4} is a location subdiagnostic (see below)
  2031 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
  2032 compiler.err.cant.resolve.location=\
  2033     cannot find symbol\n\
  2034     symbol:   {0} {1}\n\
  2035     location: {4}
  2037 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2038 compiler.err.cant.resolve.location.args=\
  2039     cannot find symbol\n\
  2040     symbol:   {0} {1}({3})\n\
  2041     location: {4}
  2043 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2044 compiler.err.cant.resolve.location.args.params=\
  2045     cannot find symbol\n\
  2046     symbol:   {0} <{2}>{1}({3})\n\
  2047     location: {4}
  2049 ### Following are replicated/used for method reference diagnostics
  2051 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2052 compiler.misc.cant.resolve.location.args=\
  2053     cannot find symbol\n\
  2054     symbol:   {0} {1}({3})\n\
  2055     location: {4}
  2057 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2058 compiler.misc.cant.resolve.location.args.params=\
  2059     cannot find symbol\n\
  2060     symbol:   {0} <{2}>{1}({3})\n\
  2061     location: {4}
  2063 ##a location subdiagnostic is composed as follows:
  2064 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  2065 ## The second argument {1} is the location name
  2066 ## The third argument {2} is the location type (only when {1} is a variable name)
  2068 # 0: symbol kind, 1: type or symbol, 2: unused
  2069 compiler.misc.location=\
  2070     {0} {1}
  2072 # 0: symbol kind, 1: symbol, 2: type
  2073 compiler.misc.location.1=\
  2074     {0} {1} of type {2}
  2076 ## The following are all possible string for "kindname".
  2077 ## They should be called whatever the JLS calls them after it been translated
  2078 ## to the appropriate language.
  2079 # compiler.misc.kindname.constructor=\
  2080 #     static member
  2081 compiler.misc.kindname.annotation=\
  2082     @interface
  2084 compiler.misc.kindname.constructor=\
  2085     constructor
  2087 compiler.misc.kindname.enum=\
  2088     enum
  2090 compiler.misc.kindname.interface=\
  2091     interface
  2093 compiler.misc.kindname.static=\
  2094     static
  2096 compiler.misc.kindname.type.variable=\
  2097     type variable
  2099 compiler.misc.kindname.type.variable.bound=\
  2100     bound of type variable
  2102 compiler.misc.kindname.variable=\
  2103     variable
  2105 compiler.misc.kindname.value=\
  2106     value
  2108 compiler.misc.kindname.method=\
  2109     method
  2111 compiler.misc.kindname.class=\
  2112     class
  2114 compiler.misc.kindname.package=\
  2115     package
  2117 compiler.misc.kindname.static.init=\
  2118     static initializer
  2120 compiler.misc.kindname.instance.init=\
  2121     instance initializer
  2123 #####
  2125 compiler.misc.no.args=\
  2126     no arguments
  2128 # 0: message segment
  2129 compiler.err.override.static=\
  2130     {0}\n\
  2131     overriding method is static
  2133 # 0: message segment, 1: set of modifier
  2134 compiler.err.override.meth=\
  2135     {0}\n\
  2136     overridden method is {1}
  2138 # 0: message segment, 1: type
  2139 compiler.err.override.meth.doesnt.throw=\
  2140     {0}\n\
  2141     overridden method does not throw {1}
  2143 # In the following string {1} is a space separated list of Java Keywords, as
  2144 # they would have been declared in the source code
  2145 # 0: message segment, 1: set of modifier
  2146 compiler.err.override.weaker.access=\
  2147     {0}\n\
  2148     attempting to assign weaker access privileges; was {1}
  2150 # 0: message segment, 1: type, 2: type
  2151 compiler.err.override.incompatible.ret=\
  2152     {0}\n\
  2153     return type {1} is not compatible with {2}
  2155 # 0: message segment, 1: type, 2: type
  2156 compiler.warn.override.unchecked.ret=\
  2157     {0}\n\
  2158     return type requires unchecked conversion from {1} to {2}
  2160 # 0: message segment, 1: type
  2161 compiler.warn.override.unchecked.thrown=\
  2162     {0}\n\
  2163     overridden method does not throw {1}
  2165 # 0: symbol
  2166 compiler.warn.override.equals.but.not.hashcode=\
  2167     Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
  2169 ## The following are all possible strings for the first argument ({0}) of the
  2170 ## above strings.
  2171 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2172 compiler.misc.cant.override=\
  2173     {0} in {1} cannot override {2} in {3}
  2175 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2176 compiler.misc.cant.implement=\
  2177     {0} in {1} cannot implement {2} in {3}
  2179 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2180 compiler.misc.clashes.with=\
  2181     {0} in {1} clashes with {2} in {3}
  2183 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2184 compiler.misc.unchecked.override=\
  2185     {0} in {1} overrides {2} in {3}
  2187 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2188 compiler.misc.unchecked.implement=\
  2189     {0} in {1} implements {2} in {3}
  2191 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2192 compiler.misc.unchecked.clash.with=\
  2193     {0} in {1} overrides {2} in {3}
  2195 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2196 compiler.misc.varargs.override=\
  2197     {0} in {1} overrides {2} in {3}
  2199 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2200 compiler.misc.varargs.implement=\
  2201     {0} in {1} implements {2} in {3}
  2203 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2204 compiler.misc.varargs.clash.with=\
  2205     {0} in {1} overrides {2} in {3}
  2207 # 0: unused
  2208 compiler.misc.diamond.and.anon.class=\
  2209     cannot use ''<>'' with anonymous inner classes
  2211 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
  2212 compiler.misc.inapplicable.method=\
  2213     {0} {1}.{2} is not applicable\n\
  2214     ({3})
  2216 ########################################
  2217 # Diagnostics for language feature changes
  2218 ########################################
  2219 # 0: string
  2220 compiler.err.unsupported.fp.lit=\
  2221     hexadecimal floating point literals are not supported in -source {0}\n\
  2222     (use -source 5 or higher to enable hexadecimal floating point literals)
  2224 # 0: string
  2225 compiler.err.unsupported.binary.lit=\
  2226     binary literals are not supported in -source {0}\n\
  2227     (use -source 7 or higher to enable binary literals)
  2229 # 0: string
  2230 compiler.err.unsupported.underscore.lit=\
  2231     underscores in literals are not supported in -source {0}\n\
  2232     (use -source 7 or higher to enable underscores in literals)
  2234 # 0: string
  2235 compiler.err.try.with.resources.not.supported.in.source=\
  2236     try-with-resources is not supported in -source {0}\n\
  2237     (use -source 7 or higher to enable try-with-resources)
  2239 compiler.warn.enum.as.identifier=\
  2240     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2241     (use -source 5 or higher to use ''enum'' as a keyword)
  2243 compiler.warn.assert.as.identifier=\
  2244     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2245     (use -source 1.4 or higher to use ''assert'' as a keyword)
  2247 compiler.warn.underscore.as.identifier=\
  2248     ''_'' used as an identifier\n\
  2249     (use of ''_'' as an identifier might not be supported in releases after Java SE 8)
  2251 compiler.err.underscore.as.identifier.in.lambda=\
  2252     ''_'' used as an identifier\n\
  2253     (use of ''_'' as an identifier is forbidden for lambda parameters)
  2255 compiler.err.enum.as.identifier=\
  2256     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2257     (use -source 1.4 or lower to use ''enum'' as an identifier)
  2259 compiler.err.assert.as.identifier=\
  2260     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2261     (use -source 1.3 or lower to use ''assert'' as an identifier)
  2263 # TODO 308: make a better error message
  2264 compiler.err.this.as.identifier=\
  2265     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
  2267 # 0: symbol
  2268 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
  2269     receiver parameter not applicable for constructor of top-level class
  2271 # TODO 308: make a better error message
  2272 # 0: symbol
  2273 compiler.err.cant.type.annotate.scoping.1=\
  2274     scoping construct cannot be annotated with type-use annotation: {0}
  2276 # TODO 308: make a better error message
  2277 # 0: list of symbol
  2278 compiler.err.cant.type.annotate.scoping=\
  2279     scoping construct cannot be annotated with type-use annotations: {0}
  2281 # 0: type, 1: type
  2282 compiler.err.incorrect.receiver.name=\
  2283     the receiver name does not match the enclosing class type\n\
  2284     required: {0}\n\
  2285     found: {1}
  2287 # 0: type, 1: type
  2288 compiler.err.incorrect.receiver.type=\
  2289     the receiver type does not match the enclosing class type\n\
  2290     required: {0}\n\
  2291     found: {1}
  2293 # 0: type, 1: type
  2294 compiler.err.incorrect.constructor.receiver.type=\
  2295     the receiver type does not match the enclosing outer class type\n\
  2296     required: {0}\n\
  2297     found: {1}
  2299 # 0: type, 1: type
  2300 compiler.err.incorrect.constructor.receiver.name=\
  2301     the receiver name does not match the enclosing outer class type\n\
  2302     required: {0}\n\
  2303     found: {1}
  2305 compiler.err.no.annotations.on.dot.class=\
  2306     no annotations are allowed in the type of a class literal
  2308 # 0: string
  2309 compiler.err.generics.not.supported.in.source=\
  2310     generics are not supported in -source {0}\n\
  2311     (use -source 5 or higher to enable generics)
  2313 # 0: string
  2314 compiler.err.varargs.not.supported.in.source=\
  2315     variable-arity methods are not supported in -source {0}\n\
  2316     (use -source 5 or higher to enable variable-arity methods)
  2318 # 0: string
  2319 compiler.err.annotations.not.supported.in.source=\
  2320     annotations are not supported in -source {0}\n\
  2321     (use -source 5 or higher to enable annotations)
  2323 # 0: string
  2324 compiler.err.type.annotations.not.supported.in.source=\
  2325     type annotations are not supported in -source {0}\n\
  2326 (use -source 8 or higher to enable type annotations)
  2328 # 0: string
  2329 compiler.err.annotations.after.type.params.not.supported.in.source=\
  2330     annotations after method type parameters are not supported in -source {0}\n\
  2331 (use -source 8 or higher to enable annotations after method type parameters)
  2333 # 0: string
  2334 compiler.err.repeatable.annotations.not.supported.in.source=\
  2335     repeated annotations are not supported in -source {0}\n\
  2336 (use -source 8 or higher to enable repeated annotations)
  2338 # 0: string
  2339 compiler.err.foreach.not.supported.in.source=\
  2340     enhanced for loops are not supported in -source {0}\n\
  2341     (use -source 5 or higher to enable for-each loops)
  2343 # 0: string
  2344 compiler.err.static.import.not.supported.in.source=\
  2345     static import declarations are not supported in -source {0}\n\
  2346     (use -source 5 or higher to enable static import declarations)
  2348 # 0: string
  2349 compiler.err.enums.not.supported.in.source=\
  2350     enums are not supported in -source {0}\n\
  2351     (use -source 5 or higher to enable enums)
  2353 # 0: string
  2354 compiler.err.diamond.not.supported.in.source=\
  2355     diamond operator is not supported in -source {0}\n\
  2356     (use -source 7 or higher to enable diamond operator)
  2358 # 0: string
  2359 compiler.err.multicatch.not.supported.in.source=\
  2360     multi-catch statement is not supported in -source {0}\n\
  2361     (use -source 7 or higher to enable multi-catch statement)
  2363 # 0: string
  2364 compiler.err.string.switch.not.supported.in.source=\
  2365     strings in switch are not supported in -source {0}\n\
  2366     (use -source 7 or higher to enable strings in switch)
  2368 # 0: string
  2369 compiler.err.lambda.not.supported.in.source=\
  2370     lambda expressions are not supported in -source {0}\n\
  2371     (use -source 8 or higher to enable lambda expressions)
  2373 # 0: string
  2374 compiler.err.method.references.not.supported.in.source=\
  2375     method references are not supported in -source {0}\n\
  2376     (use -source 8 or higher to enable method references)
  2378 # 0: string
  2379 compiler.err.default.methods.not.supported.in.source=\
  2380     default methods are not supported in -source {0}\n\
  2381     (use -source 8 or higher to enable default methods)
  2383 # 0: string
  2384 compiler.err.intersection.types.in.cast.not.supported.in.source=\
  2385     intersection types in cast are not supported in -source {0}\n\
  2386     (use -source 8 or higher to enable default methods)
  2388 # 0: string
  2389 compiler.err.static.intf.methods.not.supported.in.source=\
  2390     static interface methods are not supported in -source {0}\n\
  2391     (use -source 8 or higher to enable static interface methods)
  2393 # 0: string
  2394 compiler.err.static.intf.method.invoke.not.supported.in.source=\
  2395     static interface method invocations are not supported in -source {0}\n\
  2396     (use -source 8 or higher to enable static interface method invocations)
  2398 ########################################
  2399 # Diagnostics for verbose resolution
  2400 # used by Resolve (debug only)
  2401 ########################################
  2403 # 0: number, 1: symbol, 2: unused
  2404 compiler.misc.applicable.method.found=\
  2405     #{0} applicable method found: {1}
  2407 # 0: number, 1: symbol, 2: message segment
  2408 compiler.misc.applicable.method.found.1=\
  2409     #{0} applicable method found: {1}\n\
  2410     ({2})
  2412 # 0: number, 1: symbol, 2: message segment
  2413 compiler.misc.not.applicable.method.found=\
  2414     #{0} not applicable method found: {1}\n\
  2415     ({2})
  2417 # 0: type
  2418 compiler.misc.partial.inst.sig=\
  2419     partially instantiated to: {0}
  2421 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2422 compiler.note.verbose.resolve.multi=\
  2423     resolving method {0} in type {1} to candidate {2}\n\
  2424     phase: {3}\n\
  2425     with actuals: {4}\n\
  2426     with type-args: {5}\n\
  2427     candidates:
  2429 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2430 compiler.note.verbose.resolve.multi.1=\
  2431     erroneous resolution for method {0} in type {1}\n\
  2432     phase: {3}\n\
  2433     with actuals: {4}\n\
  2434     with type-args: {5}\n\
  2435     candidates:
  2437 # 0: symbol, 1: type, 2: type
  2438 compiler.note.deferred.method.inst=\
  2439     Deferred instantiation of method {0}\n\
  2440     instantiated signature: {1}\n\
  2441     target-type: {2}
  2443 ########################################
  2444 # Diagnostics for where clause implementation
  2445 # used by the RichDiagnosticFormatter.
  2446 ########################################
  2448 compiler.misc.type.null=\
  2449     <null>
  2451 # X#n (where n is an int id) is disambiguated tvar name
  2452 # 0: name, 1: number
  2453 compiler.misc.type.var=\
  2454     {0}#{1}
  2456 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
  2457 # 0: number
  2458 compiler.misc.captured.type=\
  2459     CAP#{0}
  2461 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
  2462 # 0: number
  2463 compiler.misc.intersection.type=\
  2464     INT#{0}
  2466 # where clause for captured type: contains upper ('extends {1}') and lower
  2467 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
  2468 # 0: type, 1: type, 2: type, 3: type
  2469 compiler.misc.where.captured=\
  2470     {0} extends {1} super: {2} from capture of {3}
  2472 # compact where clause for captured type: contains upper ('extends {1}') along
  2473 # with the wildcard that generated this captured type ({3})
  2474 # 0: type, 1: type, 2: unused, 3: type
  2475 compiler.misc.where.captured.1=\
  2476     {0} extends {1} from capture of {3}
  2478 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
  2479 # the kindname ({2}) and location ({3}) in which the typevar has been declared
  2480 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2481 compiler.misc.where.typevar=\
  2482     {0} extends {1} declared in {2} {3}
  2484 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
  2485 # in which the typevar has been declared
  2486 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2487 compiler.misc.where.typevar.1=\
  2488     {0} declared in {2} {3}
  2490 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
  2491 # Since a fresh type-variable is synthetic - there's no location/kindname here.
  2492 # 0: type, 1: list of type
  2493 compiler.misc.where.fresh.typevar=\
  2494     {0} extends {1}
  2496 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
  2497 # of this intersection type
  2498 # 0: type, 1: list of type
  2499 compiler.misc.where.intersection=\
  2500     {0} extends {1}
  2502 ### Where clause headers ###
  2503 compiler.misc.where.description.captured=\
  2504     where {0} is a fresh type-variable:
  2506 # 0: set of type
  2507 compiler.misc.where.description.typevar=\
  2508     where {0} is a type-variable:
  2510 # 0: set of type
  2511 compiler.misc.where.description.intersection=\
  2512     where {0} is an intersection type:
  2514 # 0: set of type
  2515 compiler.misc.where.description.captured.1=\
  2516     where {0} are fresh type-variables:
  2518 # 0: set of type
  2519 compiler.misc.where.description.typevar.1=\
  2520     where {0} are type-variables:
  2522 compiler.misc.where.description.intersection.1=\
  2523     where {0} are intersection types:
  2525 ###
  2526 # errors related to doc comments
  2528 compiler.err.dc.bad.entity=\
  2529     bad HTML entity
  2531 compiler.err.dc.bad.gt=\
  2532     bad use of ''>''
  2534 compiler.err.dc.bad.inline.tag=\
  2535     incorrect use of inline tag
  2537 compiler.err.dc.identifier.expected=\
  2538     identifier expected
  2540 compiler.err.dc.malformed.html=\
  2541     malformed HTML
  2543 compiler.err.dc.missing.semicolon=\
  2544     semicolon missing
  2546 compiler.err.dc.no.content=\
  2547     no content
  2549 compiler.err.dc.no.tag.name=\
  2550     no tag name after '@'
  2552 compiler.err.dc.gt.expected=\
  2553     ''>'' expected
  2555 compiler.err.dc.ref.bad.parens=\
  2556     '')'' missing in reference
  2558 compiler.err.dc.ref.syntax.error=\
  2559     syntax error in reference
  2561 compiler.err.dc.ref.unexpected.input=\
  2562     unexpected text
  2564 compiler.err.dc.unexpected.content=\
  2565     unexpected content
  2567 compiler.err.dc.unterminated.inline.tag=\
  2568     unterminated inline tag
  2570 compiler.err.dc.unterminated.signature=\
  2571     unterminated signature
  2573 compiler.err.dc.unterminated.string=\
  2574     unterminated string

mercurial