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

Wed, 09 Oct 2013 13:09:31 +0200

author
jlahoda
date
Wed, 09 Oct 2013 13:09:31 +0200
changeset 2099
1b469fd31e35
parent 2080
1e6088da1740
child 2102
6dcf94e32a3a
permissions
-rw-r--r--

8025087: Annotation processing api returns default modifier for interface static method
Summary: ClassReader must not set Flags.DEFAULT for interface static methods
Reviewed-by: vromero, jjg

     1 #
     2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     8 # particular file as subject to the "Classpath" exception as provided
     9 # by Oracle in the LICENSE file that accompanied this code.
    10 #
    11 # This code is distributed in the hope that it will be useful, but WITHOUT
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    14 # version 2 for more details (a copy is included in the LICENSE file that
    15 # accompanied this code).
    16 #
    17 # You should have received a copy of the GNU General Public License version
    18 # 2 along with this work; if not, write to the Free Software Foundation,
    19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20 #
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22 # or visit www.oracle.com if you need additional information or have any
    23 # questions.
    24 #
    26 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
    27 # are preceded by a stylized comment describing the type of the corresponding
    28 # values.
    29 # The types currently in use are
    30 #
    31 # boolean           true or false
    32 # file name         the name of an input file; e.g.   MyFile.java
    33 # message segment   a sub-message; see compiler.misc.*
    34 # modifier          a Java modifier; e.g. public, private, protected
    35 # name              a name, typically a Java identifier
    36 # number            an integer
    37 # option name       the name of a command line option
    38 # source version    a source version number, such as 1.5, 1.6, 1.7
    39 # string            a general string
    40 # symbol            the name of a declared type
    41 # symbol kind       a description of the kind of a declaration; see compiler.misc.kindname.*
    42 # token             the name of a non-terminal in source code; see compiler.misc.token.*
    43 # type              a Java type; e.g. int, X, X<T>
    44 # unused            the value is not used in this message
    45 #
    46 # list of X         a comma-separated list of items; e.g. list of type
    47 # X or Y            alternation; e.g. message segment or type
    48 # set of X          a comma-separated collection of items; e.g. set of modifier
    49 #
    50 # These may be composed: e.g.   list of type or message segment
    51 #
    52 # These comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
    53 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
    54 # MessageInfo can also be run as a standalone utility providing more facilities
    55 # for manipulating this file. For more details, see MessageInfo.java.
    57 ##
    58 ## errors
    59 ##
    61 # 0: symbol
    62 compiler.err.abstract.cant.be.instantiated=\
    63     {0} is abstract; cannot be instantiated
    65 compiler.err.abstract.meth.cant.have.body=\
    66     abstract methods cannot have a body
    68 compiler.err.already.annotated=\
    69     {0} {1} has already been annotated
    71 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol
    72 compiler.err.already.defined=\
    73     {0} {1} is already defined in {2} {3}
    75 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol
    76 compiler.err.already.defined.in.clinit=\
    77     {0} {1} is already defined in {2} of {3} {4}
    79 # 0: string
    80 compiler.err.already.defined.single.import=\
    81     {0} is already defined in a single-type import
    83 # 0: string
    84 compiler.err.already.defined.static.single.import=\
    85     {0} is already defined in a static single-type import
    87 compiler.err.already.defined.this.unit=\
    88     {0} is already defined in this compilation unit
    90 # 0: type, 1: list of name
    91 compiler.err.annotation.missing.default.value=\
    92     annotation {0} is missing value for the attribute {1}
    94 # 0: type, 1: list of name
    95 compiler.err.annotation.missing.default.value.1=\
    96     annotation {0} is missing values for attributes {1}
    98 # 0: type
    99 compiler.err.annotation.not.valid.for.type=\
   100     annotation not valid for a value of type {0}
   102 compiler.err.annotation.type.not.applicable=\
   103     annotation type not applicable to this kind of declaration
   105 compiler.err.annotation.value.must.be.annotation=\
   106     annotation value must be an annotation
   108 compiler.err.annotation.value.must.be.class.literal=\
   109     annotation value must be a class literal
   111 compiler.err.annotation.value.must.be.name.value=\
   112     annotation values must be of the form ''name=value''
   114 compiler.err.annotation.value.not.allowable.type=\
   115     annotation value not of an allowable type
   117 compiler.err.anon.class.impl.intf.no.args=\
   118     anonymous class implements interface; cannot have arguments
   120 compiler.err.anon.class.impl.intf.no.typeargs=\
   121     anonymous class implements interface; cannot have type arguments
   123 compiler.err.anon.class.impl.intf.no.qual.for.new=\
   124     anonymous class implements interface; cannot have qualifier for new
   126 # 0: symbol, 1: symbol, 2: symbol
   127 compiler.err.array.and.varargs=\
   128     cannot declare both {0} and {1} in {2}
   130 compiler.err.array.dimension.missing=\
   131     array dimension missing
   133 # 0: type
   134 compiler.err.array.req.but.found=\
   135     array required, but {0} found
   137 compiler.err.attribute.value.must.be.constant=\
   138     attribute value must be constant
   140 # 0: statement type
   141 compiler.err.bad.initializer=\
   142     bad initializer for {0}
   144 compiler.err.break.outside.switch.loop=\
   145     break outside switch or loop
   147 # 0: name
   148 compiler.err.call.must.be.first.stmt.in.ctor=\
   149     call to {0} must be first statement in constructor
   151 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
   152 compiler.err.cant.apply.symbol=\
   153     {0} {1} in {4} {5} cannot be applied to given types;\n\
   154     required: {2}\n\
   155     found: {3}\n\
   156     reason: {6}
   158 # 0: symbol kind, 1: name, 2: list of type
   159 compiler.err.cant.apply.symbols=\
   160     no suitable {0} found for {1}({2})
   162 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
   163 compiler.misc.cant.apply.symbol=\
   164     {0} {1} in {4} {5} cannot be applied to given types\n\
   165     required: {2}\n\
   166     found: {3}\n\
   167     reason: {6}
   169 # 0: symbol kind, 1: name, 2: list of type
   170 compiler.misc.cant.apply.symbols=\
   171     no suitable {0} found for {1}({2})
   173 # 0: symbol kind, 1: symbol
   174 compiler.misc.no.abstracts=\
   175     no abstract method found in {0} {1}
   177 # 0: symbol kind, 1: symbol
   178 compiler.misc.incompatible.abstracts=\
   179     multiple non-overriding abstract methods found in {0} {1}
   181 compiler.err.bad.functional.intf.anno=\
   182     Unexpected @FunctionalInterface annotation
   184 # 0: message segment
   185 compiler.err.bad.functional.intf.anno.1=\
   186     Unexpected @FunctionalInterface annotation\n\
   187     {0}
   189 # 0: symbol
   190 compiler.misc.not.a.functional.intf=\
   191     {0} is not a functional interface
   193 # 0: symbol, 1: message segment
   194 compiler.misc.not.a.functional.intf.1=\
   195     {0} is not a functional interface\n\
   196     {1}
   198 # 0: symbol, 1: symbol kind, 2: symbol
   199 compiler.misc.invalid.generic.lambda.target=\
   200     invalid functional descriptor for lambda expression\n\
   201     method {0} in {1} {2} is generic
   203 # 0: symbol kind, 1: symbol
   204 compiler.misc.incompatible.descs.in.functional.intf=\
   205     incompatible function descriptors found in {0} {1}
   207 # 0: name, 1: list of type, 2: type, 3: list of type
   208 compiler.misc.descriptor=\
   209     descriptor: {2} {0}({1})
   211 # 0: name, 1: list of type, 2: type, 3: list of type
   212 compiler.misc.descriptor.throws=\
   213     descriptor: {2} {0}({1}) throws {3}
   215 # 0: type
   216 compiler.misc.no.suitable.functional.intf.inst=\
   217     cannot infer functional interface descriptor for {0}
   219 # 0: message segment
   220 compiler.misc.bad.intersection.target.for.functional.expr=\
   221     bad intersection type target for lambda or method reference\n\
   222     {0}
   224 # 0: symbol or type
   225 compiler.misc.not.an.intf.component=\
   226     component type {0} is not an interface
   228 # 0: symbol kind, 1: message segment
   229 compiler.err.invalid.mref=\
   230     invalid {0} reference\n\
   231     {1}
   233 # 0: symbol kind, 1: message segment
   234 compiler.misc.invalid.mref=\
   235     invalid {0} reference\n\
   236     {1}
   238 compiler.misc.static.mref.with.targs=\
   239     parameterized qualifier on static method reference
   241 compiler.misc.static.bound.mref=\
   242     static bound method reference
   244 # 0: symbol
   245 compiler.err.cant.assign.val.to.final.var=\
   246     cannot assign a value to final variable {0}
   248 # 0: symbol, 1: message segment
   249 compiler.err.cant.ref.non.effectively.final.var=\
   250     local variables referenced from {1} must be final or effectively final
   253 compiler.misc.lambda=\
   254     a lambda expression
   256 compiler.misc.inner.cls=\
   257     an inner class
   259 # 0: type
   260 compiler.err.cant.deref=\
   261     {0} cannot be dereferenced
   263 compiler.err.cant.extend.intf.annotation=\
   264     ''extends'' not allowed for @interfaces
   266 # 0: symbol
   267 compiler.err.cant.inherit.from.final=\
   268     cannot inherit from final {0}
   270 # 0: symbol
   271 compiler.err.cant.ref.before.ctor.called=\
   272     cannot reference {0} before supertype constructor has been called
   274 compiler.err.cant.select.static.class.from.param.type=\
   275     cannot select a static class from a parameterized type
   277 # 0: symbol, 1: string, 2: string
   278 compiler.err.cant.inherit.diff.arg=\
   279     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   281 compiler.err.catch.without.try=\
   282     ''catch'' without ''try''
   284 # 0: symbol kind, 1: symbol
   285 compiler.err.clash.with.pkg.of.same.name=\
   286     {0} {1} clashes with package of same name
   288 compiler.err.class.not.allowed=\
   289     class, interface or enum declaration not allowed here
   291 compiler.err.const.expr.req=\
   292     constant expression required
   294 compiler.err.cont.outside.loop=\
   295     continue outside of loop
   297 # 0: symbol
   298 compiler.err.cyclic.inheritance=\
   299     cyclic inheritance involving {0}
   301 compiler.err.cyclic.annotation.element=\
   302     cyclic annotation element type
   304 # 0: unused
   305 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   306     call to super not allowed in enum constructor
   308 # 0: type
   309 compiler.err.no.superclass=\
   310     {0} has no superclass
   312 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
   313 compiler.err.concrete.inheritance.conflict=\
   314     methods {0} from {1} and {2} from {3} are inherited with the same signature
   316 compiler.err.default.allowed.in.intf.annotation.member=\
   317     default value only allowed in an @interface member
   319 # 0: symbol
   320 compiler.err.doesnt.exist=\
   321     package {0} does not exist
   323 compiler.err.duplicate.annotation=\
   324     duplicate annotation
   326 # 0: type
   327 compiler.err.duplicate.annotation.invalid.repeated=\
   328     annotation {0} cannot be repeated\nIt does not define a valid containing annotation.
   330 # 0: name, 1: type
   331 compiler.err.duplicate.annotation.member.value=\
   332     duplicate annotation member value {0} in {1}
   334 # 0: type, 1: type
   335 compiler.err.duplicate.annotation.missing.container=\
   336     duplicate annotation: the declaration of {0} does not have a valid {1} annotation
   338 # 0: type
   339 compiler.err.invalid.repeatable.annotation=\
   340     duplicate annotation: {0} is annotated with an invalid Repeatable annotation
   342 # 0: symbol or type
   343 compiler.err.invalid.repeatable.annotation.no.value=\
   344     duplicate annotation: {0} is not a valid Repeatable, no value element method declared
   346 # 0: type, 1: number
   347 compiler.err.invalid.repeatable.annotation.multiple.values=\
   348     duplicate annotation: {0} is not a valid Repeatable, {1} value element methods declared
   350 # 0: type
   351 compiler.err.invalid.repeatable.annotation.invalid.value=\
   352     duplicate annotation: {0} is not a valid Repeatable: invalid value element
   354 # 0: symbol type, 1: type, 2: type
   355 compiler.err.invalid.repeatable.annotation.value.return=\
   356     duplicate annotation: value element of containing annotation {0} should have type {2}, found {1}
   358 # 0: symbol or type, 1: symbol
   359 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
   360     containing annotation {0} does not have a default value for element {1}
   362 # 0: symbol, 1: type, 2: symbol, 3: type
   363 compiler.err.invalid.repeatable.annotation.retention=\
   364     containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3}
   366 # 0: symbol, 1: symbol
   367 compiler.err.invalid.repeatable.annotation.not.documented=\
   368     containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is
   370 # 0: symbol, 1: symbol
   371 compiler.err.invalid.repeatable.annotation.not.inherited=\
   372     containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is
   374 # 0: symbol, 1: symbol
   375 compiler.err.invalid.repeatable.annotation.incompatible.target=\
   376     target of container annotation {0} is not a subset of target of repeated annotation {1}
   378 # 0: symbol
   379 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
   380     container {0} must not be present at the same time as the element it contains
   382 # 0: name
   383 compiler.err.duplicate.class=\
   384     duplicate class: {0}
   386 compiler.err.duplicate.case.label=\
   387     duplicate case label
   389 compiler.err.duplicate.default.label=\
   390     duplicate default label
   392 compiler.err.else.without.if=\
   393     ''else'' without ''if''
   395 compiler.err.empty.char.lit=\
   396     empty character literal
   398 # 0: symbol
   399 compiler.err.encl.class.required=\
   400     an enclosing instance that contains {0} is required
   402 compiler.err.enum.annotation.must.be.enum.constant=\
   403     an enum annotation value must be an enum constant
   405 compiler.err.enum.cant.be.instantiated=\
   406     enum types may not be instantiated
   408 compiler.err.enum.label.must.be.unqualified.enum=\
   409     an enum switch case label must be the unqualified name of an enumeration constant
   411 compiler.err.enum.no.subclassing=\
   412     classes cannot directly extend java.lang.Enum
   414 compiler.err.enum.types.not.extensible=\
   415     enum types are not extensible
   417 compiler.err.enum.no.finalize=\
   418     enums cannot have finalize methods
   420 # 0: file name, 1: string
   421 compiler.err.error.reading.file=\
   422     error reading {0}; {1}
   424 # 0: type
   425 compiler.err.except.already.caught=\
   426     exception {0} has already been caught
   428 # 0: type
   429 compiler.err.except.never.thrown.in.try=\
   430     exception {0} is never thrown in body of corresponding try statement
   432 # 0: symbol
   433 compiler.err.final.parameter.may.not.be.assigned=\
   434     final parameter {0} may not be assigned
   436 # 0: symbol
   437 compiler.err.try.resource.may.not.be.assigned=\
   438     auto-closeable resource {0} may not be assigned
   440 # 0: symbol
   441 compiler.err.multicatch.parameter.may.not.be.assigned=\
   442     multi-catch parameter {0} may not be assigned
   444 # 0: type, 1: type
   445 compiler.err.multicatch.types.must.be.disjoint=\
   446     Alternatives in a multi-catch statement cannot be related by subclassing\n\
   447     Alternative {0} is a subclass of alternative {1}
   449 compiler.err.finally.without.try=\
   450     ''finally'' without ''try''
   452 # 0: type, 1: message segment
   453 compiler.err.foreach.not.applicable.to.type=\
   454     for-each not applicable to expression type\n\
   455     required: {1}\n\
   456     found:    {0}
   458 compiler.err.fp.number.too.large=\
   459     floating point number too large
   461 compiler.err.fp.number.too.small=\
   462     floating point number too small
   464 compiler.err.generic.array.creation=\
   465     generic array creation
   467 compiler.err.generic.throwable=\
   468     a generic class may not extend java.lang.Throwable
   470 # 0: symbol
   471 compiler.err.icls.cant.have.static.decl=\
   472     Illegal static declaration in inner class {0}\n\
   473     modifier \''static\'' is only allowed in constant variable declarations
   475 # 0: string
   476 compiler.err.illegal.char=\
   477     illegal character: ''{0}''
   479 compiler.err.illegal.char.for.encoding=\
   480     unmappable character for encoding {0}
   482 # 0: set of modifier, 1: set of modifier
   483 compiler.err.illegal.combination.of.modifiers=\
   484     illegal combination of modifiers: {0} and {1}
   486 compiler.err.illegal.enum.static.ref=\
   487     illegal reference to static field from initializer
   489 compiler.err.illegal.esc.char=\
   490     illegal escape character
   492 compiler.err.illegal.forward.ref=\
   493     illegal forward reference
   495 # 0: symbol, 1: string
   496 compiler.err.not.in.profile=\
   497     {0} is not available in profile ''{1}''
   499 # 0: symbol
   500 compiler.warn.forward.ref=\
   501     reference to variable ''{0}'' before it has been initialized
   503 compiler.err.illegal.self.ref=\
   504     self-reference in initializer
   506 # 0: symbol
   507 compiler.warn.self.ref=\
   508     self-reference in initializer of variable ''{0}''
   510 compiler.err.illegal.generic.type.for.instof=\
   511     illegal generic type for instanceof
   513 # 0: type
   514 compiler.err.illegal.initializer.for.type=\
   515     illegal initializer for {0}
   517 compiler.err.illegal.line.end.in.char.lit=\
   518     illegal line end in character literal
   520 compiler.err.illegal.nonascii.digit=\
   521     illegal non-ASCII digit
   523 compiler.err.illegal.underscore=\
   524     illegal underscore
   526 compiler.err.illegal.dot=\
   527     illegal ''.''
   529 # 0: symbol
   530 compiler.err.illegal.qual.not.icls=\
   531     illegal qualifier; {0} is not an inner class
   533 compiler.err.illegal.start.of.expr=\
   534     illegal start of expression
   536 compiler.err.illegal.start.of.stmt=\
   537     illegal start of statement
   539 compiler.err.illegal.start.of.type=\
   540     illegal start of type
   542 compiler.err.illegal.unicode.esc=\
   543     illegal unicode escape
   545 # 0: symbol
   546 compiler.err.import.requires.canonical=\
   547     import requires canonical name for {0}
   549 compiler.err.improperly.formed.type.param.missing=\
   550     improperly formed type, some parameters are missing
   552 compiler.err.improperly.formed.type.inner.raw.param=\
   553     improperly formed type, type arguments given on a raw type
   555 # 0: type, 1: type
   556 compiler.err.incomparable.types=\
   557     incomparable types: {0} and {1}
   559 # 0: number
   560 compiler.err.int.number.too.large=\
   561     integer number too large: {0}
   563 compiler.err.intf.annotation.members.cant.have.params=\
   564     @interface members may not have parameters
   566 compiler.err.intf.annotation.cant.have.type.params=\
   567     @interface may not have type parameters
   569 compiler.err.intf.annotation.members.cant.have.type.params=\
   570     @interface members may not have type parameters
   572 # 0: symbol, 1: type
   573 compiler.err.intf.annotation.member.clash=\
   574     @interface member clashes with method ''{0}'' in {1}
   576 compiler.err.intf.expected.here=\
   577     interface expected here
   579 compiler.err.intf.meth.cant.have.body=\
   580     interface abstract methods cannot have body
   582 compiler.err.invalid.annotation.member.type=\
   583     invalid type for annotation member
   585 compiler.err.invalid.binary.number=\
   586     binary numbers must contain at least one binary digit
   588 compiler.err.invalid.hex.number=\
   589     hexadecimal numbers must contain at least one hexadecimal digit
   591 compiler.err.invalid.meth.decl.ret.type.req=\
   592     invalid method declaration; return type required
   594 compiler.err.varargs.and.old.array.syntax=\
   595     legacy array notation not allowed on variable-arity parameter
   597 compiler.err.varargs.and.receiver =\
   598     varargs notation not allowed on receiver parameter
   600 compiler.err.array.and.receiver =\
   601     legacy array notation not allowed on receiver parameter
   603 compiler.err.variable.not.allowed=\
   604     variable declaration not allowed here
   606 # 0: name
   607 compiler.err.label.already.in.use=\
   608     label {0} already in use
   610 # 0: symbol
   611 compiler.err.local.var.accessed.from.icls.needs.final=\
   612     local variable {0} is accessed from within inner class; needs to be declared final
   614 compiler.err.local.enum=\
   615     enum types must not be local
   617 compiler.err.cannot.create.array.with.type.arguments=\
   618     cannot create array with type arguments
   620 compiler.err.cannot.create.array.with.diamond=\
   621     cannot create array with ''<>''
   623 #
   624 # limits.  We don't give the limits in the diagnostic because we expect
   625 # them to change, yet we want to use the same diagnostic.  These are all
   626 # detected during code generation.
   627 #
   628 compiler.err.limit.code=\
   629     code too large
   631 compiler.err.limit.code.too.large.for.try.stmt=\
   632     code too large for try statement
   634 compiler.err.limit.dimensions=\
   635     array type has too many dimensions
   637 compiler.err.limit.locals=\
   638     too many local variables
   640 compiler.err.limit.parameters=\
   641     too many parameters
   643 compiler.err.limit.pool=\
   644     too many constants
   646 compiler.err.limit.pool.in.class=\
   647     too many constants in class {0}
   649 compiler.err.limit.stack=\
   650     code requires too much stack
   652 compiler.err.limit.string=\
   653     constant string too long
   655 compiler.err.limit.string.overflow=\
   656     UTF8 representation for string \"{0}...\" is too long for the constant pool
   658 compiler.err.malformed.fp.lit=\
   659     malformed floating point literal
   661 compiler.err.method.does.not.override.superclass=\
   662     method does not override or implement a method from a supertype
   664 compiler.err.missing.meth.body.or.decl.abstract=\
   665     missing method body, or declare abstract
   667 compiler.err.missing.ret.stmt=\
   668     missing return statement
   670 # 0: unused
   671 compiler.misc.missing.ret.val=\
   672     missing return value
   674 compiler.misc.unexpected.ret.val=\
   675     unexpected return value
   677 # 0: set of modifier
   678 compiler.err.mod.not.allowed.here=\
   679     modifier {0} not allowed here
   681 compiler.err.intf.not.allowed.here=\
   682     interface not allowed here
   684 compiler.err.enums.must.be.static=\
   685     enum declarations allowed only in static contexts
   687 # 0: symbol, 1: symbol
   688 compiler.err.name.clash.same.erasure=\
   689     name clash: {0} and {1} have the same erasure
   691 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
   692 compiler.err.name.clash.same.erasure.no.override=\
   693     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
   695 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
   696 compiler.err.name.clash.same.erasure.no.override.1=\
   697     name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
   698     first method:  {2} in {3}\n\
   699     second method: {4} in {5}
   701 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
   702 compiler.err.name.clash.same.erasure.no.hide=\
   703     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
   705 compiler.err.name.reserved.for.internal.use=\
   706     {0} is reserved for internal use
   708 compiler.err.native.meth.cant.have.body=\
   709     native methods cannot have a body
   711 # 0: type, 1: type
   712 compiler.err.neither.conditional.subtype=\
   713     incompatible types for ?: neither is a subtype of the other\n\
   714     second operand: {0}\n\
   715     third operand : {1}
   717 # 0: message segment
   718 compiler.misc.incompatible.type.in.conditional=\
   719     bad type in conditional expression\n\
   720     {0}
   722 compiler.misc.conditional.target.cant.be.void=\
   723     target-type for conditional expression cannot be void
   725 # 0: type
   726 compiler.misc.incompatible.ret.type.in.lambda=\
   727     bad return type in lambda expression\n\
   728     {0}
   730 # 0: type
   731 compiler.misc.incompatible.ret.type.in.mref=\
   732     bad return type in method reference\n\
   733     {0}
   735 # 0: list of type
   736 compiler.err.incompatible.thrown.types.in.mref=\
   737     incompatible thrown types {0} in method reference
   739 compiler.misc.incompatible.arg.types.in.lambda=\
   740     incompatible parameter types in lambda expression
   742 compiler.misc.incompatible.arg.types.in.mref=\
   743     incompatible parameter types in method reference
   745 compiler.err.new.not.allowed.in.annotation=\
   746     ''new'' not allowed in an annotation
   748 compiler.err.no.annotation.member=\
   749     no annotation member {0} in {1}
   751 compiler.err.no.encl.instance.of.type.in.scope=\
   752     no enclosing instance of type {0} is in scope
   754 compiler.err.no.intf.expected.here=\
   755     no interface expected here
   757 compiler.err.no.match.entry=\
   758     {0} has no match in entry in {1}; required {2}
   760 compiler.err.not.annotation.type=\
   761     {0} is not an annotation type
   763 # 0: symbol, 1: symbol
   764 compiler.err.not.def.access.class.intf.cant.access=\
   765     {0} in {1} is defined in an inaccessible class or interface
   767 # 0: symbol, 1: symbol
   768 compiler.misc.not.def.access.class.intf.cant.access=\
   769     {0} in {1} is defined in an inaccessible class or interface
   771 # 0: symbol, 1: list of type, 2: type
   772 compiler.misc.cant.access.inner.cls.constr=\
   773     cannot access constructor {0}({1})\n\
   774     an enclosing instance of type {2} is not in scope
   776 # 0: symbol, 1: symbol
   777 compiler.err.not.def.public.cant.access=\
   778     {0} is not public in {1}; cannot be accessed from outside package
   780 # 0: symbol, 1: symbol
   781 compiler.misc.not.def.public.cant.access=\
   782     {0} is not public in {1}; cannot be accessed from outside package
   784 # 0: name
   785 compiler.err.not.loop.label=\
   786     not a loop label: {0}
   788 compiler.err.not.stmt=\
   789     not a statement
   791 # 0: symbol
   792 compiler.err.not.encl.class=\
   793     not an enclosing class: {0}
   795 # 0: name, 1: type, 2: unused
   796 compiler.err.operator.cant.be.applied=\
   797     bad operand type {1} for unary operator ''{0}''
   799 # 0: name, 1: type, 2: type
   800 compiler.err.operator.cant.be.applied.1=\
   801     bad operand types for binary operator ''{0}''\n\
   802     first type:  {1}\n\
   803     second type: {2}
   805 compiler.err.pkg.annotations.sb.in.package-info.java=\
   806     package annotations should be in file package-info.java
   808 # 0: symbol
   809 compiler.err.pkg.clashes.with.class.of.same.name=\
   810     package {0} clashes with class of same name
   812 compiler.err.warnings.and.werror=\
   813     warnings found and -Werror specified
   815 # Errors related to annotation processing
   817 # 0: symbol, 1: string, 2: stack-trace
   818 compiler.err.proc.cant.access=\
   819     cannot access {0}\n\
   820     {1}\n\
   821     Consult the following stack trace for details.\n\
   822     {2}
   824 # 0: symbol, 1: string
   825 compiler.err.proc.cant.access.1=\
   826     cannot access {0}\n\
   827     {1}
   829 # 0: string
   830 compiler.err.proc.cant.find.class=\
   831     Could not find class file for ''{0}''.
   833 # Print a client-generated error message; assumed to be localized, no translation required
   834 # 0: string
   835 compiler.err.proc.messager=\
   836     {0}
   838 # 0: list of string
   839 compiler.err.proc.no.explicit.annotation.processing.requested=\
   840     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   842 compiler.err.proc.no.service=\
   843     A ServiceLoader was not usable and is required for annotation processing.
   845 compiler.err.proc.processor.bad.option.name=\
   846     Bad option name ''{0}'' provided by processor ''{1}''
   848 # 0: string
   849 compiler.err.proc.processor.cant.instantiate=\
   850     Could not instantiate an instance of processor ''{0}''
   852 # 0: string
   853 compiler.err.proc.processor.not.found=\
   854     Annotation processor ''{0}'' not found
   856 # 0: string
   857 compiler.err.proc.processor.wrong.type=\
   858     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
   860 compiler.err.proc.service.problem=\
   861     Error creating a service loader to load Processors.
   863 compiler.err.proc.bad.config.file=\
   864     Bad service configuration file, or exception thrown while constructing Processor object: {0}
   866 compiler.err.proc.cant.create.loader=\
   867     Could not create class loader for annotation processors: {0}
   869 # 0: unused
   870 compiler.err.qualified.new.of.static.class=\
   871     qualified new of static class
   873 compiler.err.recursive.ctor.invocation=\
   874     recursive constructor invocation
   876 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   877 compiler.err.ref.ambiguous=\
   878     reference to {0} is ambiguous\n\
   879     both {1} {2} in {3} and {4} {5} in {6} match
   881 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   882 compiler.misc.ref.ambiguous=\
   883     reference to {0} is ambiguous\n\
   884     both {1} {2} in {3} and {4} {5} in {6} match
   886 compiler.err.repeated.annotation.target=\
   887     repeated annotation target
   889 compiler.err.repeated.interface=\
   890     repeated interface
   892 compiler.err.repeated.modifier=\
   893     repeated modifier
   895 # 0: symbol, 1: set of modifier, 2: symbol
   896 compiler.err.report.access=\
   897     {0} has {1} access in {2}
   899 # 0: symbol, 1: set of modifier, 2: symbol
   900 compiler.misc.report.access=\
   901     {0} has {1} access in {2}
   903 compiler.err.ret.outside.meth=\
   904     return outside method
   906 compiler.err.signature.doesnt.match.supertype=\
   907     signature does not match {0}; incompatible supertype
   909 compiler.err.signature.doesnt.match.intf=\
   910     signature does not match {0}; incompatible interfaces
   912 # 0: number, 1: number
   913 compiler.err.method.invoked.with.incorrect.number.arguments=\
   914     method invoked with incorrect number of arguments; expected {0}, found {1}
   916 # 0: symbol, 1: symbol, 2: symbol
   917 compiler.err.does.not.override.abstract=\
   918     {0} is not abstract and does not override abstract method {1} in {2}
   920 compiler.err.source.cant.overwrite.input.file=\
   921     error writing source; cannot overwrite input file {0}
   923 compiler.err.stack.sim.error=\
   924     Internal error: stack sim error on {0}
   926 compiler.err.static.imp.only.classes.and.interfaces=\
   927     static import only from classes and interfaces
   929 compiler.err.string.const.req=\
   930     constant string expression required
   932 # 0: symbol, 1: symbol
   933 compiler.err.synthetic.name.conflict=\
   934     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   936 # 0: symbol, 1: symbol
   937 compiler.warn.synthetic.name.conflict=\
   938     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   940 compiler.err.throws.not.allowed.in.intf.annotation=\
   941     throws clause not allowed in @interface members
   943 compiler.err.try.without.catch.or.finally=\
   944     ''try'' without ''catch'' or ''finally''
   946 compiler.err.try.without.catch.finally.or.resource.decls=\
   947     ''try'' without ''catch'', ''finally'' or resource declarations
   949 # 0: symbol
   950 compiler.err.type.doesnt.take.params=\
   951     type {0} does not take parameters
   953 compiler.err.type.var.cant.be.deref=\
   954     cannot select from a type variable
   956 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
   957     a type variable may not be followed by other bounds
   959 compiler.err.type.var.more.than.once=\
   960     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
   962 compiler.err.type.var.more.than.once.in.result=\
   963     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
   965 # 0: type, 1: type, 2: string
   966 compiler.err.types.incompatible.diff.ret=\
   967     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
   969 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
   970 compiler.err.types.incompatible.unrelated.defaults=\
   971     {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
   973 # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
   974 compiler.err.types.incompatible.abstract.default=\
   975     {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
   977 # 0: name, 1: kind, 2: symbol
   978 compiler.err.default.overrides.object.member=\
   979     default method {0} in {1} {2} overrides a member of java.lang.Object
   981 # 0: type
   982 compiler.err.illegal.static.intf.meth.call=\
   983     illegal static interface method call\n\
   984     the receiver expression should be replaced with the type qualifier ''{0}''
   986 # 0: type, 1: message segment
   987 compiler.err.illegal.default.super.call=\
   988     bad type qualifier {0} in default super call\n\
   989     {1}
   991 # 0: symbol, 1: type
   992 compiler.misc.overridden.default=\
   993     method {0} is overridden in {1}
   995 # 0: symbol, 1: type or symbol
   996 compiler.misc.redundant.supertype=\
   997     redundant interface {0} is extended by {1}
   999 compiler.err.unclosed.char.lit=\
  1000     unclosed character literal
  1002 compiler.err.unclosed.comment=\
  1003     unclosed comment
  1005 compiler.err.unclosed.str.lit=\
  1006     unclosed string literal
  1008 # 0: name
  1009 compiler.err.unsupported.encoding=\
  1010     unsupported encoding: {0}
  1012 compiler.err.io.exception=\
  1013     error reading source file: {0}
  1015 # 0: name
  1016 compiler.err.undef.label=\
  1017     undefined label: {0}
  1019 # 0: message segment, 1: unused
  1020 compiler.err.cant.apply.diamond=\
  1021     cannot infer type arguments for {0}
  1023 # 0: message segment or type, 1: message segment
  1024 compiler.err.cant.apply.diamond.1=\
  1025     cannot infer type arguments for {0}\n\
  1026     reason: {1}
  1028 # 0: message segment or type, 1: message segment
  1029 compiler.misc.cant.apply.diamond.1=\
  1030     cannot infer type arguments for {0}\n\
  1031     reason: {1}
  1033 compiler.err.unreachable.stmt=\
  1034     unreachable statement
  1036 compiler.err.initializer.must.be.able.to.complete.normally=\
  1037     initializer must be able to complete normally
  1039 # 0: type
  1040 compiler.err.unreported.exception.need.to.catch.or.throw=\
  1041     unreported exception {0}; must be caught or declared to be thrown
  1043 # 0: type
  1044 compiler.err.unreported.exception.default.constructor=\
  1045     unreported exception {0} in default constructor
  1047 # 0: type, 1: name
  1048 compiler.err.unreported.exception.implicit.close=\
  1049     unreported exception {0}; must be caught or declared to be thrown\n\
  1050     exception thrown from implicit call to close() on resource variable ''{1}''
  1052 compiler.err.unsupported.cross.fp.lit=\
  1053     hexadecimal floating-point literals are not supported on this VM
  1055 compiler.err.void.not.allowed.here=\
  1056     ''void'' type not allowed here
  1058 # 0: string
  1059 compiler.err.wrong.number.type.args=\
  1060     wrong number of type arguments; required {0}
  1062 # 0: symbol
  1063 compiler.err.var.might.already.be.assigned=\
  1064     variable {0} might already have been assigned
  1066 # 0: symbol
  1067 compiler.err.var.might.not.have.been.initialized=\
  1068     variable {0} might not have been initialized
  1070 # 0: symbol
  1071 compiler.err.var.not.initialized.in.default.constructor=\
  1072     variable {0} not initialized in the default constructor
  1074 # 0: symbol
  1075 compiler.err.var.might.be.assigned.in.loop=\
  1076     variable {0} might be assigned in loop
  1078 # 0: symbol, 1: message segment
  1079 compiler.err.varargs.invalid.trustme.anno=\
  1080     Invalid {0} annotation. {1}
  1082 # 0: type
  1083 compiler.misc.varargs.trustme.on.reifiable.varargs=\
  1084     Varargs element type {0} is reifiable.
  1086 # 0: symbol
  1087 compiler.misc.varargs.trustme.on.non.varargs.meth=\
  1088     Method {0} is not a varargs method.
  1090 # 0: symbol
  1091 compiler.misc.varargs.trustme.on.virtual.varargs=\
  1092     Instance method {0} is not final.
  1094 # 0: type, 1: symbol kind, 2: symbol
  1095 compiler.misc.inaccessible.varargs.type=\
  1096     formal varargs element type {0} is not accessible from {1} {2}
  1098 # In the following string, {1} will always be the detail message from
  1099 # java.io.IOException.
  1100 # 0: symbol, 1: string
  1101 compiler.err.class.cant.write=\
  1102     error while writing {0}: {1}
  1104 # In the following string, {0} is the name of the class in the Java source.
  1105 # It really should be used two times..
  1106 # 0: name
  1107 compiler.err.class.public.should.be.in.file=\
  1108     class {0} is public, should be declared in a file named {0}.java
  1110 ## All errors which do not refer to a particular line in the source code are
  1111 ## preceded by this string.
  1112 compiler.err.error=\
  1113     error:\u0020
  1115 # The following error messages do not refer to a line in the source code.
  1116 compiler.err.cant.read.file=\
  1117     cannot read: {0}
  1119 #####
  1121 # Fatal Errors
  1123 compiler.misc.fatal.err.no.java.lang=\
  1124     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
  1126 compiler.misc.fatal.err.cant.locate.meth=\
  1127     Fatal Error: Unable to find method {0}
  1129 compiler.misc.fatal.err.cant.locate.field=\
  1130     Fatal Error: Unable to find field {0}
  1132 compiler.misc.fatal.err.cant.locate.ctor=\
  1133     Fatal Error: Unable to find constructor for {0}
  1135 compiler.misc.fatal.err.cant.close=\
  1136     Fatal Error: Cannot close compiler resources
  1138 #####
  1140 ##
  1141 ## miscellaneous strings
  1142 ##
  1144 compiler.misc.source.unavailable=\
  1145     (source unavailable)
  1147 compiler.misc.base.membership=\
  1148     all your base class are belong to us
  1150 # 0: string, 1: string, 2: boolean
  1151 compiler.misc.x.print.processor.info=\
  1152     Processor {0} matches {1} and returns {2}.
  1154 # 0: number, 1: string, 2: set of symbol, 3: boolean
  1155 compiler.misc.x.print.rounds=\
  1156     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
  1158 #####
  1160 ## The following string will appear before all messages keyed as:
  1161 ## "compiler.note".
  1163 compiler.note.compressed.diags=\
  1164     Some messages have been simplified; recompile with -Xdiags:verbose to get full output
  1166 compiler.note.potential.lambda.found=\
  1167     This anonymous inner class creation can be turned into a lambda expression.
  1169 # 0: boolean, 1: symbol
  1170 compiler.note.lambda.stat=\
  1171     Translating lambda expression\n\
  1172     alternate metafactory = {0}\n\
  1173     synthetic method = {1}
  1175 # 0: boolean, 1: unused
  1176 compiler.note.mref.stat=\
  1177     Translating method reference\n\
  1178     alternate metafactory = {0}\n\
  1180 # 0: boolean, 1: symbol
  1181 compiler.note.mref.stat.1=\
  1182     Translating method reference\n\
  1183     alternate metafactory = {0}\n\
  1184     bridge method = {1}
  1186 compiler.note.note=\
  1187     Note:\u0020
  1189 # 0: file name
  1190 compiler.note.deprecated.filename=\
  1191     {0} uses or overrides a deprecated API.
  1193 compiler.note.deprecated.plural=\
  1194     Some input files use or override a deprecated API.
  1196 # The following string may appear after one of the above deprecation
  1197 # messages.
  1198 compiler.note.deprecated.recompile=\
  1199     Recompile with -Xlint:deprecation for details.
  1201 # 0: file name
  1202 compiler.note.deprecated.filename.additional=\
  1203     {0} has additional uses or overrides of a deprecated API.
  1205 compiler.note.deprecated.plural.additional=\
  1206     Some input files additionally use or override a deprecated API.
  1208 # 0: file name
  1209 compiler.note.unchecked.filename=\
  1210     {0} uses unchecked or unsafe operations.
  1212 compiler.note.unchecked.plural=\
  1213     Some input files use unchecked or unsafe operations.
  1215 # The following string may appear after one of the above deprecation
  1216 # messages.
  1217 compiler.note.unchecked.recompile=\
  1218     Recompile with -Xlint:unchecked for details.
  1220 # 0: file name
  1221 compiler.note.unchecked.filename.additional=\
  1222     {0} has additional unchecked or unsafe operations.
  1224 compiler.note.unchecked.plural.additional=\
  1225     Some input files additionally use unchecked or unsafe operations.
  1227 # 0: file name
  1228 compiler.note.sunapi.filename=\
  1229     {0} uses internal proprietary API that may be removed in a future release.
  1231 compiler.note.sunapi.plural=\
  1232     Some input files use internal proprietary API that may be removed in a future release.
  1234 # The following string may appear after one of the above sunapi messages.
  1235 compiler.note.sunapi.recompile=\
  1236     Recompile with -Xlint:sunapi for details.
  1238 # 0: file name
  1239 compiler.note.sunapi.filename.additional=\
  1240     {0} uses additional internal proprietary API that may be removed in a future release.
  1242 compiler.note.sunapi.plural.additional=\
  1243     Some input files additionally use internal proprietary API that may be removed in a future release.
  1245 # Notes related to annotation processing
  1247 # Print a client-generated note; assumed to be localized, no translation required
  1248 # 0: string
  1249 compiler.note.proc.messager=\
  1250     {0}
  1252 #####
  1254 # 0: number
  1255 compiler.misc.count.error=\
  1256     {0} error
  1258 # 0: number
  1259 compiler.misc.count.error.plural=\
  1260     {0} errors
  1262 # 0: number
  1263 compiler.misc.count.warn=\
  1264     {0} warning
  1266 # 0: number
  1267 compiler.misc.count.warn.plural=\
  1268     {0} warnings
  1270 compiler.misc.version.not.available=\
  1271     (version info not available)
  1273 ## extra output when using -verbose (JavaCompiler)
  1275 # 0: symbol
  1276 compiler.misc.verbose.checking.attribution=\
  1277     [checking {0}]
  1279 # 0: string
  1280 compiler.misc.verbose.parsing.done=\
  1281     [parsing completed {0}ms]
  1283 # 0: file name
  1284 compiler.misc.verbose.parsing.started=\
  1285     [parsing started {0}]
  1287 # 0: string
  1288 compiler.misc.verbose.total=\
  1289     [total {0}ms]
  1291 # 0: file name
  1292 compiler.misc.verbose.wrote.file=\
  1293     [wrote {0}]
  1295 ## extra output when using -verbose (Retro)
  1296 compiler.misc.verbose.retro=\
  1297     [retrofitting {0}]
  1299 compiler.misc.verbose.retro.with=\
  1300     \tretrofitting {0} with {1}
  1302 compiler.misc.verbose.retro.with.list=\
  1303     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
  1305 ## extra output when using -verbose (code/ClassReader)
  1306 # 0: string
  1307 compiler.misc.verbose.loading=\
  1308     [loading {0}]
  1310 # 0: string
  1311 compiler.misc.verbose.sourcepath=\
  1312     [search path for source files: {0}]
  1314 # 0: string
  1315 compiler.misc.verbose.classpath=\
  1316     [search path for class files: {0}]
  1318 ## extra output when using -checkclassfile (code/ClassReader)
  1319 compiler.misc.ccf.found.later.version=\
  1320     class file has later version than expected: {0}
  1322 compiler.misc.ccf.unrecognized.attribute=\
  1323     unrecognized attribute: {0}
  1325 ## extra output when using -prompt (util/Log)
  1326 compiler.misc.resume.abort=\
  1327     R)esume, A)bort>
  1329 #####
  1331 ##
  1332 ## warnings
  1333 ##
  1335 ## All warning messages are preceded by the following string.
  1336 compiler.warn.warning=\
  1337     warning:\u0020
  1339 ## Warning messages may also include the following prefix to identify a
  1340 ## lint option
  1341 # 0: option name
  1342 compiler.warn.lintOption=\
  1343     [{0}]\u0020
  1345 # 0: symbol
  1346 compiler.warn.constant.SVUID=\
  1347     serialVersionUID must be constant in class {0}
  1349 # 0: file name
  1350 compiler.warn.dir.path.element.not.found=\
  1351     bad path element "{0}": no such directory
  1353 compiler.warn.finally.cannot.complete=\
  1354     finally clause cannot complete normally
  1356 # 0: symbol, 1: symbol
  1357 compiler.warn.has.been.deprecated=\
  1358     {0} in {1} has been deprecated
  1360 # 0: symbol
  1361 compiler.warn.sun.proprietary=\
  1362     {0} is internal proprietary API and may be removed in a future release
  1364 compiler.warn.illegal.char.for.encoding=\
  1365     unmappable character for encoding {0}
  1367 # 0: symbol
  1368 compiler.warn.improper.SVUID=\
  1369     serialVersionUID must be declared static final in class {0}
  1371 # 0: type, 1: type
  1372 compiler.warn.inexact.non-varargs.call=\
  1373     non-varargs call of varargs method with inexact argument type for last parameter;\n\
  1374     cast to {0} for a varargs call\n\
  1375     cast to {1} for a non-varargs call and to suppress this warning
  1377 # 0: list of type
  1378 compiler.warn.unreachable.catch=\
  1379     unreachable catch clause\n\
  1380     thrown type {0} has already been caught
  1382 # 0: list of type
  1383 compiler.warn.unreachable.catch.1=\
  1384     unreachable catch clause\n\
  1385     thrown types {0} have already been caught
  1387 # 0: symbol
  1388 compiler.warn.long.SVUID=\
  1389     serialVersionUID must be of type long in class {0}
  1391 # 0: symbol
  1392 compiler.warn.missing.SVUID=\
  1393     serializable class {0} has no definition of serialVersionUID
  1395 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1396 compiler.warn.potentially.ambiguous.overload=\
  1397     {0} in {1} is potentially ambiguous with {2} in {3}
  1399 # 0: message segment
  1400 compiler.warn.override.varargs.missing=\
  1401     {0}; overridden method has no ''...''
  1403 # 0: message segment
  1404 compiler.warn.override.varargs.extra=\
  1405     {0}; overriding method is missing ''...''
  1407 compiler.warn.override.bridge=\
  1408     {0}; overridden method is a bridge method
  1410 # 0: symbol
  1411 compiler.warn.pkg-info.already.seen=\
  1412     a package-info.java file has already been seen for package {0}
  1414 # 0: file name
  1415 compiler.warn.path.element.not.found=\
  1416     bad path element "{0}": no such file or directory
  1418 compiler.warn.possible.fall-through.into.case=\
  1419     possible fall-through into case
  1421 # 0: type
  1422 compiler.warn.redundant.cast=\
  1423     redundant cast to {0}
  1425 # 0: number
  1426 compiler.warn.position.overflow=\
  1427     Position encoding overflows at line {0}
  1429 # 0: file name, 1: number, 2: number
  1430 compiler.warn.big.major.version=\
  1431     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
  1432     It is recommended that the compiler be upgraded.
  1434 # 0: symbol kind, 1: symbol
  1435 compiler.warn.static.not.qualified.by.type=\
  1436     static {0} should be qualified by type name, {1}, instead of by an expression
  1438 # 0: string
  1439 compiler.warn.source.no.bootclasspath=\
  1440     bootstrap class path not set in conjunction with -source {0}
  1442 # 0: string
  1443 compiler.warn.option.obsolete.source=\
  1444     source value {0} is obsolete and will be removed in a future release
  1446 # 0: string
  1447 compiler.warn.option.obsolete.target=\
  1448     target value {0} is obsolete and will be removed in a future release
  1450 compiler.warn.option.obsolete.suppression=\
  1451     To suppress warnings about obsolete options, use -Xlint:-options.
  1453 # 0: name, 1: number, 2: number, 3: number, 4: number
  1454 compiler.warn.future.attr=\
  1455     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
  1457 # Warnings related to annotation processing
  1458 # 0: name
  1459 compiler.warn.proc.package.does.not.exist=\
  1460     package {0} does not exist
  1462 # 0: name
  1463 compiler.warn.proc.file.reopening=\
  1464     Attempt to create a file for ''{0}'' multiple times
  1466 # 0: name
  1467 compiler.warn.proc.type.already.exists=\
  1468     A file for type ''{0}'' already exists on the sourcepath or classpath
  1470 # 0: name
  1471 compiler.warn.proc.type.recreate=\
  1472     Attempt to create a file for type ''{0}'' multiple times
  1474 # 0: string
  1475 compiler.warn.proc.illegal.file.name=\
  1476     Cannot create file for illegal name ''{0}''.
  1478 # 0: string, 1: string
  1479 compiler.warn.proc.suspicious.class.name=\
  1480     Creating file for a type whose name ends in {1}: ''{0}''
  1482 # 0: name
  1483 compiler.warn.proc.file.create.last.round=\
  1484     File for type ''{0}'' created in the last round will not be subject to annotation processing.
  1486 # 0: string, 1: string
  1487 compiler.warn.proc.malformed.supported.string=\
  1488     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
  1490 # 0: set of string
  1491 compiler.warn.proc.annotations.without.processors=\
  1492     No processor claimed any of these annotations: {0}
  1494 # 0: source version, 1: string, 2: string
  1495 compiler.warn.proc.processor.incompatible.source.version=\
  1496     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
  1498 compiler.warn.proc.proc-only.requested.no.procs=\
  1499     Annotation processing without compilation requested but no processors were found.
  1501 compiler.warn.proc.use.implicit=\
  1502     Implicitly compiled files were not subject to annotation processing.\n\
  1503     Use -implicit to specify a policy for implicit compilation.
  1505 compiler.warn.proc.use.proc.or.implicit=\
  1506     Implicitly compiled files were not subject to annotation processing.\n\
  1507     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
  1509 # Print a client-generated warning; assumed to be localized, no translation required
  1510 # 0: string
  1511 compiler.warn.proc.messager=\
  1512     {0}
  1514 # 0: set of name
  1515 compiler.warn.proc.unclosed.type.files=\
  1516     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
  1518 # 0: string
  1519 compiler.warn.proc.unmatched.processor.options=\
  1520     The following options were not recognized by any processor: ''{0}''
  1522 compiler.warn.try.explicit.close.call=\
  1523     explicit call to close() on an auto-closeable resource
  1525 # 0: symbol
  1526 compiler.warn.try.resource.not.referenced=\
  1527     auto-closeable resource {0} is never referenced in body of corresponding try statement
  1529 # 0: type
  1530 compiler.warn.try.resource.throws.interrupted.exc=\
  1531     auto-closeable resource {0} has a member method close() that could throw InterruptedException
  1533 compiler.warn.unchecked.assign=\
  1534     unchecked assignment: {0} to {1}
  1536 # 0: symbol, 1: type
  1537 compiler.warn.unchecked.assign.to.var=\
  1538     unchecked assignment to variable {0} as member of raw type {1}
  1540 # 0: symbol, 1: type
  1541 compiler.warn.unchecked.call.mbr.of.raw.type=\
  1542     unchecked call to {0} as a member of the raw type {1}
  1544 compiler.warn.unchecked.cast.to.type=\
  1545     unchecked cast to type {0}
  1547 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
  1548 compiler.warn.unchecked.meth.invocation.applied=\
  1549     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
  1550     required: {2}\n\
  1551     found: {3}
  1553 # 0: type
  1554 compiler.warn.unchecked.generic.array.creation=\
  1555     unchecked generic array creation for varargs parameter of type {0}
  1557 # 0: type
  1558 compiler.warn.unchecked.varargs.non.reifiable.type=\
  1559     Possible heap pollution from parameterized vararg type {0}
  1561 # 0: symbol
  1562 compiler.warn.varargs.unsafe.use.varargs.param=\
  1563     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
  1565 compiler.warn.missing.deprecated.annotation=\
  1566     deprecated item is not annotated with @Deprecated
  1568 compiler.warn.invalid.archive.file=\
  1569     Unexpected file on path: {0}
  1571 compiler.warn.unexpected.archive.file=\
  1572     Unexpected extension for archive file: {0}
  1574 compiler.warn.div.zero=\
  1575     division by zero
  1577 compiler.warn.empty.if=\
  1578     empty statement after if
  1580 compiler.warn.annotation.method.not.found=\
  1581     Cannot find annotation method ''{1}()'' in type ''{0}''
  1583 compiler.warn.annotation.method.not.found.reason=\
  1584     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
  1586 # 0: symbol, 1: name
  1587 compiler.warn.unknown.enum.constant=\
  1588     unknown enum constant {1}.{2}
  1590 # 0: symbol, 1: name, 2: message segment
  1591 compiler.warn.unknown.enum.constant.reason=\
  1592     unknown enum constant {1}.{2}\n\
  1593     reason: {3}
  1595 # 0: type, 1: type
  1596 compiler.warn.raw.class.use=\
  1597     found raw type: {0}\n\
  1598     missing type arguments for generic class {1}
  1600 # 0: unused, 1: unused
  1601 compiler.warn.diamond.redundant.args=\
  1602     redundant type arguments in new expression (use diamond operator instead).
  1604 # 0: type, 1: type
  1605 compiler.warn.diamond.redundant.args.1=\
  1606     redundant type arguments in new expression (use diamond operator instead).\n\
  1607     explicit: {0}\n\
  1608     inferred: {1}
  1610 # 0: symbol, 1: message segment
  1611 compiler.warn.varargs.redundant.trustme.anno=\
  1612     Redundant {0} annotation. {1}
  1614 #####
  1616 ## The following are tokens which are non-terminals in the language. They should
  1617 ## be named as JLS3 calls them when translated to the appropriate language.
  1618 compiler.misc.token.identifier=\
  1619     <identifier>
  1621 compiler.misc.token.character=\
  1622     <character>
  1624 compiler.misc.token.string=\
  1625     <string>
  1627 compiler.misc.token.integer=\
  1628     <integer>
  1630 compiler.misc.token.long-integer=\
  1631     <long integer>
  1633 compiler.misc.token.float=\
  1634     <float>
  1636 compiler.misc.token.double=\
  1637     <double>
  1639 compiler.misc.token.bad-symbol=\
  1640     <bad symbol>
  1642 compiler.misc.token.end-of-input=\
  1643     <end of input>
  1645 ## The argument to the following string will always be one of the following:
  1646 ## 1. one of the above non-terminals
  1647 ## 2. a keyword (JLS1.8)
  1648 ## 3. a boolean literal (JLS3.10.3)
  1649 ## 4. the null literal (JLS3.10.7)
  1650 ## 5. a Java separator (JLS3.11)
  1651 ## 6. an operator (JLS3.12)
  1652 ##
  1653 ## This is the only place these tokens will be used.
  1654 # 0: token
  1655 compiler.err.expected=\
  1656     {0} expected
  1658 # 0: token, 1: token
  1659 compiler.err.expected2=\
  1660     {0} or {1} expected
  1662 # 0: token, 1: token, 2: token
  1663 compiler.err.expected3=\
  1664     {0}, {1}, or {2} expected
  1666 compiler.err.premature.eof=\
  1667     reached end of file while parsing
  1669 ## The following are related in form, but do not easily fit the above paradigm.
  1670 compiler.err.dot.class.expected=\
  1671     ''.class'' expected
  1673 ## The argument to this string will always be either 'case' or 'default'.
  1674 # 0: token
  1675 compiler.err.orphaned=\
  1676     orphaned {0}
  1678 # 0: name
  1679 compiler.misc.anonymous.class=\
  1680     <anonymous {0}>
  1682 # 0: name, 1: type
  1683 compiler.misc.type.captureof=\
  1684     capture#{0} of {1}
  1686 compiler.misc.type.captureof.1=\
  1687     capture#{0}
  1689 compiler.misc.type.none=\
  1690     <none>
  1692 compiler.misc.unnamed.package=\
  1693     unnamed package
  1695 #####
  1697 # 0: symbol, 1: message segment
  1698 compiler.err.cant.access=\
  1699     cannot access {0}\n\
  1700     {1}
  1702 # 0: file name, 1: message segment
  1703 compiler.misc.bad.class.file.header=\
  1704     bad class file: {0}\n\
  1705     {1}\n\
  1706     Please remove or make sure it appears in the correct subdirectory of the classpath.
  1708 # 0: file name, 1: message segment
  1709 compiler.misc.bad.source.file.header=\
  1710     bad source file: {0}\n\
  1711     {1}\n\
  1712     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
  1714 ## The following are all possible strings for the second argument ({1}) of the
  1715 ## above strings.
  1716 compiler.misc.bad.class.signature=\
  1717     bad class signature: {0}
  1719 #0: symbol, 1: symbol
  1720 compiler.misc.bad.enclosing.class=\
  1721     bad enclosing class for {0}: {1}
  1723 # 0: symbol
  1724 compiler.misc.bad.enclosing.method=\
  1725     bad enclosing method attribute for class {0}
  1727 compiler.misc.bad.runtime.invisible.param.annotations=\
  1728     bad RuntimeInvisibleParameterAnnotations attribute: {0}
  1730 compiler.misc.bad.const.pool.tag=\
  1731     bad constant pool tag: {0}
  1733 compiler.misc.bad.const.pool.tag.at=\
  1734     bad constant pool tag: {0} at {1}
  1736 compiler.misc.bad.signature=\
  1737     bad signature: {0}
  1739 compiler.misc.bad.type.annotation.value=\
  1740     bad type annotation target type value: {0}
  1742 compiler.misc.class.file.wrong.class=\
  1743     class file contains wrong class: {0}
  1745 compiler.misc.class.file.not.found=\
  1746     class file for {0} not found
  1748 # 0: classfile major version, 1: classfile minor version
  1749 compiler.misc.invalid.default.interface=\
  1750     default method found in version {0}.{1} classfile
  1752 # 0: classfile major version, 1: classfile minor version
  1753 compiler.misc.invalid.static.interface=\
  1754     static method found in version {0}.{1} classfile
  1756 # 0: name
  1757 compiler.misc.file.doesnt.contain.class=\
  1758     file does not contain class {0}
  1760 compiler.misc.file.does.not.contain.package=\
  1761     file does not contain package {0}
  1763 compiler.misc.illegal.start.of.class.file=\
  1764     illegal start of class file
  1766 compiler.misc.unable.to.access.file=\
  1767     unable to access file: {0}
  1769 compiler.misc.unicode.str.not.supported=\
  1770     unicode string in class file not supported
  1772 compiler.misc.undecl.type.var=\
  1773     undeclared type variable: {0}
  1775 compiler.misc.wrong.version=\
  1776     class file has wrong version {0}.{1}, should be {2}.{3}
  1778 #####
  1780 # 0: type, 1: type or symbol
  1781 compiler.err.not.within.bounds=\
  1782     type argument {0} is not within bounds of type-variable {1}
  1784 ## The following are all possible strings for the second argument ({1}) of the
  1785 ## above string.
  1787 ## none yet...
  1789 #####
  1791 # 0: message segment
  1792 compiler.err.prob.found.req=\
  1793     incompatible types: {0}
  1795 # 0: message segment
  1796 compiler.misc.prob.found.req=\
  1797     incompatible types: {0}
  1799 # 0: message segment, 1: type, 2: type
  1800 compiler.warn.prob.found.req=\
  1801     {0}\n\
  1802     required: {2}\n\
  1803     found:    {1}
  1805 # 0: type, 1: type
  1806 compiler.misc.inconvertible.types=\
  1807     {0} cannot be converted to {1}
  1809 # 0: type, 1: type
  1810 compiler.misc.possible.loss.of.precision=\
  1811     possible lossy conversion from {0} to {1}
  1813 compiler.misc.unchecked.assign=\
  1814     unchecked conversion
  1816 # compiler.misc.storecheck=\
  1817 #     assignment might cause later store checks to fail
  1818 # compiler.misc.unchecked=\
  1819 #     assigned array cannot dynamically check its stores
  1820 compiler.misc.unchecked.cast.to.type=\
  1821     unchecked cast
  1823 # compiler.err.star.expected=\
  1824 #     ''*'' expected
  1825 # compiler.err.no.elem.type=\
  1826 #     \[\*\] cannot have a type
  1828 # 0: type
  1829 compiler.misc.try.not.applicable.to.type=\
  1830     try-with-resources not applicable to variable type\n\
  1831     ({0})
  1833 #####
  1835 # 0: message segment or type, 1: message segment
  1836 compiler.err.type.found.req=\
  1837     unexpected type\n\
  1838     required: {1}\n\
  1839     found:    {0}
  1841 ## The following are all possible strings for the first argument ({0}) of the
  1842 ## above string.
  1843 compiler.misc.type.req.class=\
  1844     class
  1846 compiler.misc.type.req.class.array=\
  1847     class or array
  1849 compiler.misc.type.req.array.or.iterable=\
  1850     array or java.lang.Iterable
  1852 compiler.misc.type.req.ref=\
  1853     reference
  1855 compiler.misc.type.req.exact=\
  1856     class or interface without bounds
  1858 # 0: type
  1859 compiler.misc.type.parameter=\
  1860     type parameter {0}
  1862 #####
  1864 ## The following are all possible strings for the last argument of all those
  1865 ## diagnostics whose key ends in ".1"
  1867 # 0: type, 1: list of type
  1868 compiler.misc.no.unique.maximal.instance.exists=\
  1869     no unique maximal instance exists for type variable {0} with upper bounds {1}
  1871 compiler.misc.no.unique.minimal.instance.exists=\
  1872     no unique minimal instance exists for type variable {0} with lower bounds {1}
  1874 # 0: type, 1: list of type
  1875 compiler.misc.incompatible.upper.bounds=\
  1876     inference variable {0} has incompatible upper bounds {1}
  1878 # 0: type, 1: list of type, 2: list of type
  1879 compiler.misc.incompatible.eq.upper.bounds=\
  1880     inference variable {0} has incompatible bounds\n\
  1881     equality constraints: {1}\n\
  1882     upper bounds: {2}
  1884 # 0: type, 1: list of type, 2: list of type
  1885 compiler.misc.incompatible.eq.lower.bounds=\
  1886     inference variable {0} has incompatible bounds\n\
  1887     equality constraints: {1}\n\
  1888     lower bounds: {2}
  1890 # 0: list of type, 1: type, 2: type
  1891 compiler.misc.infer.no.conforming.instance.exists=\
  1892     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
  1894 # 0: list of type, 1: message segment
  1895 compiler.misc.infer.no.conforming.assignment.exists=\
  1896     cannot infer type-variable(s) {0}\n\
  1897     (argument mismatch; {1})
  1899 # 0: list of type
  1900 compiler.misc.infer.arg.length.mismatch=\
  1901     cannot infer type-variable(s) {0}\n\
  1902     (actual and formal argument lists differ in length)
  1904 # 0: list of type, 1: message segment
  1905 compiler.misc.infer.varargs.argument.mismatch=\
  1906     cannot infer type-variable(s) {0}\n\
  1907     (varargs mismatch; {1})
  1909 # 0: type, 1: list of type
  1910 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
  1911     inferred type does not conform to upper bound(s)\n\
  1912     inferred: {0}\n\
  1913     upper bound(s): {1}
  1915 # 0: type, 1: list of type
  1916 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
  1917     inferred type does not conform to lower bound(s)\n\
  1918     inferred: {0}\n\
  1919     lower bound(s): {1}
  1921 # 0: type, 1: list of type
  1922 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
  1923     inferred type does not conform to equality constraint(s)\n\
  1924     inferred: {0}\n\
  1925     equality constraints(s): {1}
  1927 # 0: symbol
  1928 compiler.misc.diamond=\
  1929     {0}<>
  1931 # 0: type
  1932 compiler.misc.diamond.non.generic=\
  1933     cannot use ''<>'' with non-generic class {0}
  1935 # 0: unused
  1936 compiler.misc.diamond.and.explicit.params=\
  1937     cannot use ''<>'' with explicit type parameters for constructor
  1939 # 0: unused
  1940 compiler.misc.mref.infer.and.explicit.params=\
  1941     cannot use raw constructor reference with explicit type parameters for constructor
  1943 # 0: type, 1: list of type
  1944 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  1945     explicit type argument {0} does not conform to declared bound(s) {1}
  1947 compiler.misc.arg.length.mismatch=\
  1948     actual and formal argument lists differ in length
  1950 # 0: message segment
  1951 compiler.misc.no.conforming.assignment.exists=\
  1952     argument mismatch; {0}
  1954 # 0: message segment
  1955 compiler.misc.varargs.argument.mismatch=\
  1956     varargs mismatch; {0}
  1958 #####
  1960 # 0: symbol or type, 1: file name
  1961 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
  1962     auxiliary class {0} in {1} should not be accessed from outside its own source file
  1964 ## The first argument ({0}) is a "kindname".
  1965 # 0: symbol kind, 1: symbol, 2: symbol
  1966 compiler.err.abstract.cant.be.accessed.directly=\
  1967     abstract {0} {1} in {2} cannot be accessed directly
  1969 ## The first argument ({0}) is a "kindname".
  1970 # 0: symbol kind, 1: symbol
  1971 compiler.err.non-static.cant.be.ref=\
  1972     non-static {0} {1} cannot be referenced from a static context
  1974 # 0: symbol kind, 1: symbol
  1975 compiler.misc.non-static.cant.be.ref=\
  1976     non-static {0} {1} cannot be referenced from a static context
  1978 # 0: symbol kind, 1: symbol
  1979 compiler.misc.static.method.in.unbound.lookup=\
  1980     static {0} {1} found in unbound lookup
  1982 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  1983 ## of kindnames (the list should be identical to that provided in source.
  1984 compiler.err.unexpected.type=\
  1985     unexpected type\n\
  1986     required: {0}\n\
  1987     found:    {1}
  1989 compiler.err.unexpected.lambda=\
  1990    lambda expression not expected here
  1992 compiler.err.unexpected.mref=\
  1993    method reference not expected here
  1995 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  1996 ## The second argument {1} is the non-resolved symbol
  1997 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  1998 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  1999 # 0: symbol kind, 1: name, 2: unused, 3: unused
  2000 compiler.err.cant.resolve=\
  2001     cannot find symbol\n\
  2002     symbol: {0} {1}
  2004 # 0: symbol kind, 1: name, 2: unused, 3: list of type
  2005 compiler.err.cant.resolve.args=\
  2006     cannot find symbol\n\
  2007     symbol: {0} {1}({3})
  2009 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
  2010 compiler.err.cant.resolve.args.params=\
  2011     cannot find symbol\n\
  2012     symbol: {0} <{2}>{1}({3})
  2014 ## arguments from {0} to {3} have the same meaning as above
  2015 ## The fifth argument {4} is a location subdiagnostic (see below)
  2016 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
  2017 compiler.err.cant.resolve.location=\
  2018     cannot find symbol\n\
  2019     symbol:   {0} {1}\n\
  2020     location: {4}
  2022 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2023 compiler.err.cant.resolve.location.args=\
  2024     cannot find symbol\n\
  2025     symbol:   {0} {1}({3})\n\
  2026     location: {4}
  2028 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2029 compiler.err.cant.resolve.location.args.params=\
  2030     cannot find symbol\n\
  2031     symbol:   {0} <{2}>{1}({3})\n\
  2032     location: {4}
  2034 ### Following are replicated/used for method reference diagnostics
  2036 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2037 compiler.misc.cant.resolve.location.args=\
  2038     cannot find symbol\n\
  2039     symbol:   {0} {1}({3})\n\
  2040     location: {4}
  2042 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2043 compiler.misc.cant.resolve.location.args.params=\
  2044     cannot find symbol\n\
  2045     symbol:   {0} <{2}>{1}({3})\n\
  2046     location: {4}
  2048 ##a location subdiagnostic is composed as follows:
  2049 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  2050 ## The second argument {1} is the location name
  2051 ## The third argument {2} is the location type (only when {1} is a variable name)
  2053 # 0: symbol kind, 1: type or symbol, 2: unused
  2054 compiler.misc.location=\
  2055     {0} {1}
  2057 # 0: symbol kind, 1: symbol, 2: type
  2058 compiler.misc.location.1=\
  2059     {0} {1} of type {2}
  2061 ## The following are all possible string for "kindname".
  2062 ## They should be called whatever the JLS calls them after it been translated
  2063 ## to the appropriate language.
  2064 # compiler.misc.kindname.constructor=\
  2065 #     static member
  2066 compiler.misc.kindname.annotation=\
  2067     @interface
  2069 compiler.misc.kindname.constructor=\
  2070     constructor
  2072 compiler.misc.kindname.enum=\
  2073     enum
  2075 compiler.misc.kindname.interface=\
  2076     interface
  2078 compiler.misc.kindname.static=\
  2079     static
  2081 compiler.misc.kindname.type.variable=\
  2082     type variable
  2084 compiler.misc.kindname.type.variable.bound=\
  2085     bound of type variable
  2087 compiler.misc.kindname.variable=\
  2088     variable
  2090 compiler.misc.kindname.value=\
  2091     value
  2093 compiler.misc.kindname.method=\
  2094     method
  2096 compiler.misc.kindname.class=\
  2097     class
  2099 compiler.misc.kindname.package=\
  2100     package
  2102 compiler.misc.kindname.static.init=\
  2103     static initializer
  2105 compiler.misc.kindname.instance.init=\
  2106     instance initializer
  2108 #####
  2110 compiler.misc.no.args=\
  2111     no arguments
  2113 # 0: message segment
  2114 compiler.err.override.static=\
  2115     {0}\n\
  2116     overriding method is static
  2118 # 0: message segment, 1: set of modifier
  2119 compiler.err.override.meth=\
  2120     {0}\n\
  2121     overridden method is {1}
  2123 # 0: message segment, 1: type
  2124 compiler.err.override.meth.doesnt.throw=\
  2125     {0}\n\
  2126     overridden method does not throw {1}
  2128 # In the following string {1} is a space separated list of Java Keywords, as
  2129 # they would have been declared in the source code
  2130 # 0: message segment, 1: set of modifier
  2131 compiler.err.override.weaker.access=\
  2132     {0}\n\
  2133     attempting to assign weaker access privileges; was {1}
  2135 # 0: message segment, 1: type, 2: type
  2136 compiler.err.override.incompatible.ret=\
  2137     {0}\n\
  2138     return type {1} is not compatible with {2}
  2140 # 0: message segment, 1: type, 2: type
  2141 compiler.warn.override.unchecked.ret=\
  2142     {0}\n\
  2143     return type requires unchecked conversion from {1} to {2}
  2145 # 0: message segment, 1: type
  2146 compiler.warn.override.unchecked.thrown=\
  2147     {0}\n\
  2148     overridden method does not throw {1}
  2150 # 0: symbol
  2151 compiler.warn.override.equals.but.not.hashcode=\
  2152     Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
  2154 ## The following are all possible strings for the first argument ({0}) of the
  2155 ## above strings.
  2156 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2157 compiler.misc.cant.override=\
  2158     {0} in {1} cannot override {2} in {3}
  2160 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2161 compiler.misc.cant.implement=\
  2162     {0} in {1} cannot implement {2} in {3}
  2164 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2165 compiler.misc.clashes.with=\
  2166     {0} in {1} clashes with {2} in {3}
  2168 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2169 compiler.misc.unchecked.override=\
  2170     {0} in {1} overrides {2} in {3}
  2172 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2173 compiler.misc.unchecked.implement=\
  2174     {0} in {1} implements {2} in {3}
  2176 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2177 compiler.misc.unchecked.clash.with=\
  2178     {0} in {1} overrides {2} in {3}
  2180 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2181 compiler.misc.varargs.override=\
  2182     {0} in {1} overrides {2} in {3}
  2184 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2185 compiler.misc.varargs.implement=\
  2186     {0} in {1} implements {2} in {3}
  2188 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2189 compiler.misc.varargs.clash.with=\
  2190     {0} in {1} overrides {2} in {3}
  2192 # 0: unused
  2193 compiler.misc.diamond.and.anon.class=\
  2194     cannot use ''<>'' with anonymous inner classes
  2196 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
  2197 compiler.misc.inapplicable.method=\
  2198     {0} {1}.{2} is not applicable\n\
  2199     ({3})
  2201 ########################################
  2202 # Diagnostics for language feature changes
  2203 ########################################
  2204 # 0: string
  2205 compiler.err.unsupported.fp.lit=\
  2206     hexadecimal floating point literals are not supported in -source {0}\n\
  2207     (use -source 5 or higher to enable hexadecimal floating point literals)
  2209 # 0: string
  2210 compiler.err.unsupported.binary.lit=\
  2211     binary literals are not supported in -source {0}\n\
  2212     (use -source 7 or higher to enable binary literals)
  2214 # 0: string
  2215 compiler.err.unsupported.underscore.lit=\
  2216     underscores in literals are not supported in -source {0}\n\
  2217     (use -source 7 or higher to enable underscores in literals)
  2219 # 0: string
  2220 compiler.err.try.with.resources.not.supported.in.source=\
  2221     try-with-resources is not supported in -source {0}\n\
  2222     (use -source 7 or higher to enable try-with-resources)
  2224 compiler.warn.enum.as.identifier=\
  2225     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2226     (use -source 5 or higher to use ''enum'' as a keyword)
  2228 compiler.warn.assert.as.identifier=\
  2229     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2230     (use -source 1.4 or higher to use ''assert'' as a keyword)
  2232 compiler.warn.underscore.as.identifier=\
  2233     ''_'' used as an identifier\n\
  2234     (use of ''_'' as an identifier might not be supported in releases after Java SE 8)
  2236 compiler.err.underscore.as.identifier.in.lambda=\
  2237     ''_'' used as an identifier\n\
  2238     (use of ''_'' as an identifier is forbidden for lambda parameters)
  2240 compiler.err.enum.as.identifier=\
  2241     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  2242     (use -source 1.4 or lower to use ''enum'' as an identifier)
  2244 compiler.err.assert.as.identifier=\
  2245     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  2246     (use -source 1.3 or lower to use ''assert'' as an identifier)
  2248 # TODO 308: make a better error message
  2249 compiler.err.this.as.identifier=\
  2250     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
  2252 # 0: symbol
  2253 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
  2254     receiver parameter not applicable for constructor of top-level class
  2256 # TODO 308: make a better error message
  2257 compiler.err.cant.annotate.static.class=\
  2258     enclosing static nested class cannot be annotated
  2260 # TODO 308: make a better error message
  2261 # 0: unused
  2262 compiler.err.cant.annotate.nested.type=\
  2263     scoping construct for static nested type cannot be annotated
  2265 # 0: type, 1: type
  2266 compiler.err.incorrect.receiver.name=\
  2267     the receiver name does not match the enclosing class type\n\
  2268     required: {0}\n\
  2269     found: {1}
  2271 # 0: type, 1: type
  2272 compiler.err.incorrect.receiver.type=\
  2273     the receiver type does not match the enclosing class type\n\
  2274     required: {0}\n\
  2275     found: {1}
  2277 # 0: type, 1: type
  2278 compiler.err.incorrect.constructor.receiver.type=\
  2279     the receiver type does not match the enclosing outer class type\n\
  2280     required: {0}\n\
  2281     found: {1}
  2283 # 0: type, 1: type
  2284 compiler.err.incorrect.constructor.receiver.name=\
  2285     the receiver name does not match the enclosing outer class type\n\
  2286     required: {0}\n\
  2287     found: {1}
  2289 compiler.err.no.annotations.on.dot.class=\
  2290     no annotations are allowed in the type of a class literal
  2292 # 0: string
  2293 compiler.err.generics.not.supported.in.source=\
  2294     generics are not supported in -source {0}\n\
  2295     (use -source 5 or higher to enable generics)
  2297 # 0: string
  2298 compiler.err.varargs.not.supported.in.source=\
  2299     variable-arity methods are not supported in -source {0}\n\
  2300     (use -source 5 or higher to enable variable-arity methods)
  2302 # 0: string
  2303 compiler.err.annotations.not.supported.in.source=\
  2304     annotations are not supported in -source {0}\n\
  2305     (use -source 5 or higher to enable annotations)
  2307 # 0: string
  2308 compiler.err.type.annotations.not.supported.in.source=\
  2309     type annotations are not supported in -source {0}\n\
  2310 (use -source 8 or higher to enable type annotations)
  2312 # 0: string
  2313 compiler.err.foreach.not.supported.in.source=\
  2314     for-each loops are not supported in -source {0}\n\
  2315     (use -source 5 or higher to enable for-each loops)
  2317 # 0: string
  2318 compiler.err.static.import.not.supported.in.source=\
  2319     static import declarations are not supported in -source {0}\n\
  2320     (use -source 5 or higher to enable static import declarations)
  2322 # 0: string
  2323 compiler.err.enums.not.supported.in.source=\
  2324     enums are not supported in -source {0}\n\
  2325     (use -source 5 or higher to enable enums)
  2327 # 0: string
  2328 compiler.err.diamond.not.supported.in.source=\
  2329     diamond operator is not supported in -source {0}\n\
  2330     (use -source 7 or higher to enable diamond operator)
  2332 # 0: string
  2333 compiler.err.multicatch.not.supported.in.source=\
  2334     multi-catch statement is not supported in -source {0}\n\
  2335     (use -source 7 or higher to enable multi-catch statement)
  2337 # 0: string
  2338 compiler.err.string.switch.not.supported.in.source=\
  2339     strings in switch are not supported in -source {0}\n\
  2340     (use -source 7 or higher to enable strings in switch)
  2342 # 0: string
  2343 compiler.err.lambda.not.supported.in.source=\
  2344     lambda expressions are not supported in -source {0}\n\
  2345     (use -source 8 or higher to enable lambda expressions)
  2347 # 0: string
  2348 compiler.err.method.references.not.supported.in.source=\
  2349     method references are not supported in -source {0}\n\
  2350     (use -source 8 or higher to enable method references)
  2352 # 0: string
  2353 compiler.err.default.methods.not.supported.in.source=\
  2354     default methods are not supported in -source {0}\n\
  2355     (use -source 8 or higher to enable default methods)
  2357 # 0: string
  2358 compiler.err.intersection.types.in.cast.not.supported.in.source=\
  2359     intersection types in cast are not supported in -source {0}\n\
  2360     (use -source 8 or higher to enable default methods)
  2362 # 0: string
  2363 compiler.err.static.intf.methods.not.supported.in.source=\
  2364     static interface methods are not supported in -source {0}\n\
  2365     (use -source 8 or higher to enable static interface methods)
  2367 ########################################
  2368 # Diagnostics for verbose resolution
  2369 # used by Resolve (debug only)
  2370 ########################################
  2372 # 0: number, 1: symbol, 2: unused
  2373 compiler.misc.applicable.method.found=\
  2374     #{0} applicable method found: {1}
  2376 # 0: number, 1: symbol, 2: message segment
  2377 compiler.misc.applicable.method.found.1=\
  2378     #{0} applicable method found: {1}\n\
  2379     ({2})
  2381 # 0: number, 1: symbol, 2: message segment
  2382 compiler.misc.not.applicable.method.found=\
  2383     #{0} not applicable method found: {1}\n\
  2384     ({2})
  2386 # 0: type
  2387 compiler.misc.partial.inst.sig=\
  2388     partially instantiated to: {0}
  2390 # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2391 compiler.note.verbose.resolve.multi=\
  2392     resolving method {0} in type {1} to candidate {2}\n\
  2393     phase: {3}\n\
  2394     with actuals: {4}\n\
  2395     with type-args: {5}\n\
  2396     candidates:
  2398 # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment
  2399 compiler.note.verbose.resolve.multi.1=\
  2400     erroneous resolution for method {0} in type {1}\n\
  2401     phase: {3}\n\
  2402     with actuals: {4}\n\
  2403     with type-args: {5}\n\
  2404     candidates:
  2406 # 0: symbol, 1: type, 2: type
  2407 compiler.note.deferred.method.inst=\
  2408     Deferred instantiation of method {0}\n\
  2409     instantiated signature: {1}\n\
  2410     target-type: {2}
  2412 ########################################
  2413 # Diagnostics for where clause implementation
  2414 # used by the RichDiagnosticFormatter.
  2415 ########################################
  2417 compiler.misc.type.null=\
  2418     <null>
  2420 # X#n (where n is an int id) is disambiguated tvar name
  2421 # 0: name, 1: number
  2422 compiler.misc.type.var=\
  2423     {0}#{1}
  2425 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
  2426 # 0: number
  2427 compiler.misc.captured.type=\
  2428     CAP#{0}
  2430 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
  2431 # 0: number
  2432 compiler.misc.intersection.type=\
  2433     INT#{0}
  2435 # where clause for captured type: contains upper ('extends {1}') and lower
  2436 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
  2437 # 0: type, 1: type, 2: type, 3: type
  2438 compiler.misc.where.captured=\
  2439     {0} extends {1} super: {2} from capture of {3}
  2441 # compact where clause for captured type: contains upper ('extends {1}') along
  2442 # with the wildcard that generated this captured type ({3})
  2443 # 0: type, 1: type, 2: unused, 3: type
  2444 compiler.misc.where.captured.1=\
  2445     {0} extends {1} from capture of {3}
  2447 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
  2448 # the kindname ({2}) and location ({3}) in which the typevar has been declared
  2449 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2450 compiler.misc.where.typevar=\
  2451     {0} extends {1} declared in {2} {3}
  2453 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
  2454 # in which the typevar has been declared
  2455 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  2456 compiler.misc.where.typevar.1=\
  2457     {0} declared in {2} {3}
  2459 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
  2460 # Since a fresh type-variable is synthetic - there's no location/kindname here.
  2461 # 0: type, 1: list of type
  2462 compiler.misc.where.fresh.typevar=\
  2463     {0} extends {1}
  2465 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
  2466 # of this intersection type
  2467 # 0: type, 1: list of type
  2468 compiler.misc.where.intersection=\
  2469     {0} extends {1}
  2471 ### Where clause headers ###
  2472 compiler.misc.where.description.captured=\
  2473     where {0} is a fresh type-variable:
  2475 # 0: set of type
  2476 compiler.misc.where.description.typevar=\
  2477     where {0} is a type-variable:
  2479 # 0: set of type
  2480 compiler.misc.where.description.intersection=\
  2481     where {0} is an intersection type:
  2483 # 0: set of type
  2484 compiler.misc.where.description.captured.1=\
  2485     where {0} are fresh type-variables:
  2487 # 0: set of type
  2488 compiler.misc.where.description.typevar.1=\
  2489     where {0} are type-variables:
  2491 compiler.misc.where.description.intersection.1=\
  2492     where {0} are intersection types:
  2494 ###
  2495 # errors related to doc comments
  2497 compiler.err.dc.bad.entity=\
  2498     bad HTML entity
  2500 compiler.err.dc.bad.gt=\
  2501     bad use of ''>''
  2503 compiler.err.dc.bad.inline.tag=\
  2504     incorrect use of inline tag
  2506 compiler.err.dc.identifier.expected=\
  2507     identifier expected
  2509 compiler.err.dc.malformed.html=\
  2510     malformed HTML
  2512 compiler.err.dc.missing.semicolon=\
  2513     semicolon missing
  2515 compiler.err.dc.no.content=\
  2516     no content
  2518 compiler.err.dc.no.tag.name=\
  2519     no tag name after '@'
  2521 compiler.err.dc.gt.expected=\
  2522     ''>'' expected
  2524 compiler.err.dc.ref.bad.parens=\
  2525     '')'' missing in reference
  2527 compiler.err.dc.ref.syntax.error=\
  2528     syntax error in reference
  2530 compiler.err.dc.ref.unexpected.input=\
  2531     unexpected text
  2533 compiler.err.dc.unexpected.content=\
  2534     unexpected content
  2536 compiler.err.dc.unterminated.inline.tag=\
  2537     unterminated inline tag
  2539 compiler.err.dc.unterminated.signature=\
  2540     unterminated signature
  2542 compiler.err.dc.unterminated.string=\
  2543     unterminated string

mercurial