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

Fri, 08 Apr 2011 15:25:47 -0700

author
mfang
date
Fri, 08 Apr 2011 15:25:47 -0700
changeset 963
7278b5b61c17
parent 935
5b29f2a85085
child 949
ddec8c712e85
permissions
-rw-r--r--

7034940: message drop 2 translation integration
Reviewed-by: yhuang

     1 #
     2 # Copyright (c) 1999, 2011, 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, 1: symbol
    72 compiler.err.already.defined=\
    73     {0} is already defined in {1}
    75 # 0: string
    76 compiler.err.already.defined.single.import=\
    77     {0} is already defined in a single-type import
    79 # 0: string
    80 compiler.err.already.defined.static.single.import=\
    81     {0} is already defined in a static single-type import
    83 compiler.err.already.defined.this.unit=\
    84     {0} is already defined in this compilation unit
    86 # 0: type, 1: list of name
    87 compiler.err.annotation.missing.default.value=\
    88     annotation {0} is missing value for the attribute {1}
    90 # 0: type, 1: list of name
    91 compiler.err.annotation.missing.default.value.1=\
    92     annotation {0} is missing values for attributes {1}
    94 # 0: type
    95 compiler.err.annotation.not.valid.for.type=\
    96     annotation not valid for a value of type {0}
    98 compiler.err.annotation.type.not.applicable=\
    99     annotation type not applicable to this kind of declaration
   101 compiler.err.annotation.value.must.be.annotation=\
   102     annotation value must be an annotation
   104 compiler.err.annotation.value.must.be.class.literal=\
   105     annotation value must be a class literal
   107 compiler.err.annotation.value.must.be.name.value=\
   108     annotation values must be of the form ''name=value''
   110 compiler.err.annotation.value.not.allowable.type=\
   111     annotation value not of an allowable type
   113 compiler.err.anon.class.impl.intf.no.args=\
   114     anonymous class implements interface; cannot have arguments
   116 compiler.err.anon.class.impl.intf.no.typeargs=\
   117     anonymous class implements interface; cannot have type arguments
   119 compiler.err.anon.class.impl.intf.no.qual.for.new=\
   120     anonymous class implements interface; cannot have qualifier for new
   122 # 0: symbol, 1: symbol, 2: symbol
   123 compiler.err.array.and.varargs=\
   124     cannot declare both {0} and {1} in {2}
   126 compiler.err.array.dimension.missing=\
   127     array dimension missing
   129 # 0: type
   130 compiler.err.array.req.but.found=\
   131     array required, but {0} found
   133 compiler.err.assignment.from.super-bound=\
   134     assigning from wildcard {0}
   136 compiler.err.assignment.to.extends-bound=\
   137     assigning to wildcard {0}
   139 compiler.err.attribute.value.must.be.constant=\
   140     attribute value must be constant
   142 compiler.err.break.outside.switch.loop=\
   143     break outside switch or loop
   145 # 0: name
   146 compiler.err.call.must.be.first.stmt.in.ctor=\
   147     call to {0} must be first statement in constructor
   149 compiler.err.cant.apply.symbol=\
   150     {0} {1} in {4} {5} cannot be applied to given types\n\
   151     required: {2}\n\
   152     found: {3}
   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.1=\
   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
   166 compiler.err.cant.assign.val.to.final.var=\
   167     cannot assign a value to final variable {0}
   169 # 0: type
   170 compiler.err.cant.deref=\
   171     {0} cannot be dereferenced
   173 compiler.err.cant.extend.intf.annotation=\
   174     ''extends'' not allowed for @interfaces
   176 # 0: symbol
   177 compiler.err.cant.inherit.from.final=\
   178     cannot inherit from final {0}
   180 # 0: symbol
   181 compiler.err.cant.ref.before.ctor.called=\
   182     cannot reference {0} before supertype constructor has been called
   184 compiler.err.cant.ret.val.from.meth.decl.void=\
   185     cannot return a value from method whose result type is void
   187 compiler.err.cant.select.static.class.from.param.type=\
   188     cannot select a static class from a parameterized type
   190 # 0: symbol, 1: string, 2: string
   191 compiler.err.cant.inherit.diff.arg=\
   192     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   194 compiler.err.catch.without.try=\
   195     ''catch'' without ''try''
   197 # 0: symbol kind, 1: symbol
   198 compiler.err.clash.with.pkg.of.same.name=\
   199     {0} {1} clashes with package of same name
   201 compiler.err.const.expr.req=\
   202     constant expression required
   204 compiler.err.cont.outside.loop=\
   205     continue outside of loop
   207 # 0: symbol
   208 compiler.err.cyclic.inheritance=\
   209     cyclic inheritance involving {0}
   211 compiler.err.cyclic.annotation.element=\
   212     cyclic annotation element type
   214 # 0: unused
   215 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   216     call to super not allowed in enum constructor
   218 # 0: type
   219 compiler.err.no.superclass=\
   220     {0} has no superclass
   222 compiler.err.wrong.target.for.polymorphic.signature.definition=\
   223     MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
   225 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
   226 compiler.err.concrete.inheritance.conflict=\
   227     methods {0} from {1} and {2} from {3} are inherited with the same signature
   229 compiler.err.default.allowed.in.intf.annotation.member=\
   230     default value only allowed in an @interface member
   232 # 0: symbol
   233 compiler.err.doesnt.exist=\
   234     package {0} does not exist
   236 compiler.err.duplicate.annotation=\
   237     duplicate annotation
   239 # 0: name, 1: type
   240 compiler.err.duplicate.annotation.member.value=\
   241     duplicate annotation member value {0} in {1}
   243 # 0: name
   244 compiler.err.duplicate.class=\
   245     duplicate class: {0}
   247 compiler.err.duplicate.case.label=\
   248     duplicate case label
   250 compiler.err.duplicate.default.label=\
   251     duplicate default label
   253 compiler.err.else.without.if=\
   254     ''else'' without ''if''
   256 compiler.err.empty.char.lit=\
   257     empty character literal
   259 # 0: symbol
   260 compiler.err.encl.class.required=\
   261     an enclosing instance that contains {0} is required
   263 compiler.err.enum.annotation.must.be.enum.constant=\
   264     an enum annotation value must be an enum constant
   266 compiler.err.enum.cant.be.instantiated=\
   267     enum types may not be instantiated
   269 compiler.err.enum.label.must.be.unqualified.enum=\
   270     an enum switch case label must be the unqualified name of an enumeration constant
   272 compiler.err.enum.no.subclassing=\
   273     classes cannot directly extend java.lang.Enum
   275 compiler.err.enum.types.not.extensible=\
   276     enum types are not extensible
   278 compiler.err.enum.no.finalize=\
   279     enums cannot have finalize methods
   281 # 0: file name, 1: string
   282 compiler.err.error.reading.file=\
   283     error reading {0}; {1}
   285 # 0: type
   286 compiler.err.except.already.caught=\
   287     exception {0} has already been caught
   289 # 0: type
   290 compiler.err.except.never.thrown.in.try=\
   291     exception {0} is never thrown in body of corresponding try statement
   293 # 0: symbol
   294 compiler.err.final.parameter.may.not.be.assigned=\
   295     final parameter {0} may not be assigned
   297 # 0: symbol
   298 compiler.err.try.resource.may.not.be.assigned=\
   299     auto-closeable resource {0} may not be assigned
   301 # 0: symbol
   302 compiler.err.multicatch.parameter.may.not.be.assigned=\
   303     multi-catch parameter {0} may not be assigned
   305 compiler.err.finally.without.try=\
   306     ''finally'' without ''try''
   308 # 0: type, 1: message segment
   309 compiler.err.foreach.not.applicable.to.type=\
   310     for-each not applicable to expression type\n\
   311     required: {1}\n\
   312     found:    {0}
   314 compiler.err.fp.number.too.large=\
   315     floating point number too large
   317 compiler.err.fp.number.too.small=\
   318     floating point number too small
   320 compiler.err.generic.array.creation=\
   321     generic array creation
   323 compiler.err.generic.throwable=\
   324     a generic class may not extend java.lang.Throwable
   326 # 0: symbol
   327 compiler.err.icls.cant.have.static.decl=\
   328     Illegal static declaration in inner class {0}\n\
   329     modifier \''static\'' is only allowed in constant variable declarations
   331 # 0: string
   332 compiler.err.illegal.char=\
   333     illegal character: \\{0}
   335 compiler.err.illegal.char.for.encoding=\
   336     unmappable character for encoding {0}
   338 # 0: set of modifier, 1: set of modifier
   339 compiler.err.illegal.combination.of.modifiers=\
   340     illegal combination of modifiers: {0} and {1}
   342 compiler.err.illegal.enum.static.ref=\
   343     illegal reference to static field from initializer
   345 compiler.err.illegal.esc.char=\
   346     illegal escape character
   348 compiler.err.illegal.forward.ref=\
   349     illegal forward reference
   351 # 0: symbol
   352 compiler.warn.forward.ref=\
   353     reference to variable ''{0}'' before it has been initialized
   355 compiler.err.illegal.self.ref=\
   356     self-reference in initializer
   358 # 0: symbol
   359 compiler.warn.self.ref=\
   360     self-reference in initializer of variable ''{0}''
   362 compiler.err.illegal.generic.type.for.instof=\
   363     illegal generic type for instanceof
   365 # 0: type
   366 compiler.err.illegal.initializer.for.type=\
   367     illegal initializer for {0}
   369 compiler.err.illegal.line.end.in.char.lit=\
   370     illegal line end in character literal
   372 compiler.err.illegal.nonascii.digit=\
   373     illegal non-ASCII digit
   375 compiler.err.illegal.underscore=\
   376     illegal underscore
   378 # 0: symbol
   379 compiler.err.illegal.qual.not.icls=\
   380     illegal qualifier; {0} is not an inner class
   382 compiler.err.illegal.start.of.expr=\
   383     illegal start of expression
   385 compiler.err.illegal.start.of.type=\
   386     illegal start of type
   388 compiler.err.illegal.unicode.esc=\
   389     illegal unicode escape
   391 # 0: symbol
   392 compiler.err.import.requires.canonical=\
   393     import requires canonical name for {0}
   395 compiler.err.improperly.formed.type.param.missing=\
   396     improperly formed type, some parameters are missing
   398 compiler.err.improperly.formed.type.inner.raw.param=\
   399     improperly formed type, type arguments given on a raw type
   401 # 0: type, 1: type
   402 compiler.err.incomparable.types=\
   403     incomparable types: {0} and {1}
   405 # 0: number
   406 compiler.err.int.number.too.large=\
   407     integer number too large: {0}
   409 compiler.err.internal.error.cant.instantiate=\
   410     internal error; cannot instantiate {0} at {1} to ({2})
   412 compiler.err.intf.annotation.members.cant.have.params=\
   413     @interface members may not have parameters
   415 compiler.err.intf.annotation.cant.have.type.params=\
   416     @interface may not have type parameters
   418 compiler.err.intf.annotation.members.cant.have.type.params=\
   419     @interface members may not have type parameters
   421 # 0: symbol, 1: type
   422 compiler.err.intf.annotation.member.clash=\
   423     @interface member clashes with method ''{0}'' in {1}
   425 compiler.err.intf.expected.here=\
   426     interface expected here
   428 compiler.err.intf.meth.cant.have.body=\
   429     interface methods cannot have body
   431 compiler.err.invalid.annotation.member.type=\
   432     invalid type for annotation member
   434 compiler.err.invalid.binary.number=\
   435     binary numbers must contain at least one binary digit
   437 compiler.err.invalid.hex.number=\
   438     hexadecimal numbers must contain at least one hexadecimal digit
   440 compiler.err.invalid.meth.decl.ret.type.req=\
   441     invalid method declaration; return type required
   443 compiler.err.varargs.and.old.array.syntax=\
   444     legacy array notation not allowed on variable-arity parameter
   446 # 0: name
   447 compiler.err.label.already.in.use=\
   448     label {0} already in use
   450 # 0: symbol
   451 compiler.err.local.var.accessed.from.icls.needs.final=\
   452     local variable {0} is accessed from within inner class; needs to be declared final
   454 compiler.err.local.enum=\
   455     enum types must not be local
   457 compiler.err.cannot.create.array.with.type.arguments=\
   458     cannot create array with type arguments
   460 #
   461 # limits.  We don't give the limits in the diagnostic because we expect
   462 # them to change, yet we want to use the same diagnostic.  These are all
   463 # detected during code generation.
   464 #
   465 compiler.err.limit.code=\
   466     code too large
   468 compiler.err.limit.code.too.large.for.try.stmt=\
   469     code too large for try statement
   471 compiler.err.limit.dimensions=\
   472     array type has too many dimensions
   474 compiler.err.limit.locals=\
   475     too many local variables
   477 compiler.err.limit.parameters=\
   478     too many parameters
   480 compiler.err.limit.pool=\
   481     too many constants
   483 compiler.err.limit.pool.in.class=\
   484     too many constants in class {0}
   486 compiler.err.limit.stack=\
   487     code requires too much stack
   489 compiler.err.limit.string=\
   490     constant string too long
   492 compiler.err.limit.string.overflow=\
   493     UTF8 representation for string \"{0}...\" is too long for the constant pool
   495 compiler.err.malformed.fp.lit=\
   496     malformed floating point literal
   498 compiler.err.method.does.not.override.superclass=\
   499     method does not override or implement a method from a supertype
   501 compiler.err.missing.meth.body.or.decl.abstract=\
   502     missing method body, or declare abstract
   504 compiler.err.missing.ret.stmt=\
   505     missing return statement
   507 compiler.err.missing.ret.val=\
   508     missing return value
   510 # 0: set of modifier
   511 compiler.err.mod.not.allowed.here=\
   512     modifier {0} not allowed here
   514 compiler.err.intf.not.allowed.here=\
   515     interface not allowed here
   517 compiler.err.enums.must.be.static=\
   518     enum declarations allowed only in static contexts
   520 # 0: symbol, 1: symbol
   521 compiler.err.name.clash.same.erasure=\
   522     name clash: {0} and {1} have the same erasure
   524 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
   525 compiler.err.name.clash.same.erasure.no.override=\
   526     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
   528 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
   529 compiler.err.name.clash.same.erasure.no.override.1=\
   530     name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
   531     first method:  {2} in {3}\n\
   532     second method: {4} in {5}
   534 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
   535 compiler.err.name.clash.same.erasure.no.hide=\
   536     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
   538 compiler.err.name.reserved.for.internal.use=\
   539     {0} is reserved for internal use
   541 compiler.err.native.meth.cant.have.body=\
   542     native methods cannot have a body
   544 # 0: type, 1: type
   545 compiler.err.neither.conditional.subtype=\
   546     incompatible types for ?: neither is a subtype of the other\n\
   547     second operand: {0}\n\
   548     third operand : {1}
   550 compiler.err.new.not.allowed.in.annotation=\
   551     ''new'' not allowed in an annotation
   553 compiler.err.no.annotation.member=\
   554     no annotation member {0} in {1}
   556 compiler.err.no.encl.instance.of.type.in.scope=\
   557     no enclosing instance of type {0} is in scope
   559 compiler.err.no.intf.expected.here=\
   560     no interface expected here
   562 compiler.err.no.match.entry=\
   563     {0} has no match in entry in {1}; required {2}
   565 compiler.err.not.annotation.type=\
   566     {0} is not an annotation type
   568 # 0: symbol, 1: symbol
   569 compiler.err.not.def.access.class.intf.cant.access=\
   570     {0} in {1} is defined in an inaccessible class or interface
   572 # 0: symbol, 1: symbol
   573 compiler.err.not.def.public.cant.access=\
   574     {0} is not public in {1}; cannot be accessed from outside package
   576 # 0: name
   577 compiler.err.not.loop.label=\
   578     not a loop label: {0}
   580 compiler.err.not.stmt=\
   581     not a statement
   583 # 0: symbol
   584 compiler.err.not.encl.class=\
   585     not an enclosing class: {0}
   587 # 0: name, 1: type, 2: unused
   588 compiler.err.operator.cant.be.applied=\
   589     bad operand type {1} for unary operator ''{0}''
   591 # 0: name, 1: type, 2: type
   592 compiler.err.operator.cant.be.applied.1=\
   593     bad operand types for binary operator ''{0}''\n\
   594     first type:  {1}\n\
   595     second type: {2}
   597 compiler.err.pkg.annotations.sb.in.package-info.java=\
   598     package annotations should be in file package-info.java
   600 # 0: symbol
   601 compiler.err.pkg.clashes.with.class.of.same.name=\
   602     package {0} clashes with class of same name
   604 compiler.err.warnings.and.werror=\
   605     warnings found and -Werror specified
   607 # Errors related to annotation processing
   609 compiler.err.proc.cant.access=\
   610     cannot access {0}\n\
   611     {1}\n\
   612     Consult the following stack trace for details.\n\
   613     {2}
   615 # 0: string
   616 compiler.err.proc.cant.find.class=\
   617     Could not find class file for ''{0}''.
   619 # Print a client-generated error message; assumed to be localized, no translation required
   620 # 0: string
   621 compiler.err.proc.messager=\
   622     {0}
   624 # 0: list of string
   625 compiler.err.proc.no.explicit.annotation.processing.requested=\
   626     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   628 compiler.err.proc.no.service=\
   629     A service loader class could not be found.\n\
   630     Either java.util.ServiceLoader or sun.misc.Service must be available.
   632 compiler.err.proc.processor.bad.option.name=\
   633     Bad option name ''{0}'' provided by processor ''{1}''
   635 # 0: string
   636 compiler.err.proc.processor.cant.instantiate=\
   637     Could not instantiate an instance of processor ''{0}''
   639 compiler.err.proc.processor.constructor.error=\
   640     Exception thrown while constructing Processor object: {0}
   642 # 0: string
   643 compiler.err.proc.processor.not.found=\
   644     Annotation processor ''{0}'' not found
   646 # 0: string
   647 compiler.err.proc.processor.wrong.type=\
   648     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
   650 compiler.err.proc.service.problem=\
   651     Error creating a service loader to load Processors.
   653 compiler.err.proc.bad.config.file=\
   654     Bad service configuration file, or exception thrown while constructing Processor object: {0}
   656 compiler.err.proc.cant.create.loader=\
   657     Could not create class loader for annotation processors: {0}
   659 # 0: unused
   660 compiler.err.qualified.new.of.static.class=\
   661     qualified new of static class
   663 compiler.err.recursive.ctor.invocation=\
   664     recursive constructor invocation
   666 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   667 compiler.err.ref.ambiguous=\
   668     reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
   670 compiler.err.repeated.annotation.target=\
   671     repeated annotation target
   673 compiler.err.repeated.interface=\
   674     repeated interface
   676 compiler.err.repeated.modifier=\
   677     repeated modifier
   679 # 0: symbol, 1: set of modifier, 2: symbol
   680 compiler.err.report.access=\
   681     {0} has {1} access in {2}
   683 compiler.err.ret.outside.meth=\
   684     return outside method
   686 compiler.err.signature.doesnt.match.supertype=\
   687     signature does not match {0}; incompatible supertype
   689 compiler.err.signature.doesnt.match.intf=\
   690     signature does not match {0}; incompatible interfaces
   692 # 0: symbol, 1: symbol, 2: symbol
   693 compiler.err.does.not.override.abstract=\
   694     {0} is not abstract and does not override abstract method {1} in {2}
   696 compiler.err.source.cant.overwrite.input.file=\
   697     error writing source; cannot overwrite input file {0}
   699 compiler.err.stack.sim.error=\
   700     Internal error: stack sim error on {0}
   702 compiler.err.static.imp.only.classes.and.interfaces=\
   703     static import only from classes and interfaces
   705 compiler.err.string.const.req=\
   706     constant string expression required
   708 # 0: symbol, 1: symbol
   709 compiler.err.synthetic.name.conflict=\
   710     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   712 # 0: symbol, 1: symbol
   713 compiler.warn.synthetic.name.conflict=\
   714     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   716 compiler.err.throws.not.allowed.in.intf.annotation=\
   717     throws clause not allowed in @interface members
   719 compiler.err.try.without.catch.or.finally=\
   720     ''try'' without ''catch'' or ''finally''
   722 compiler.err.try.without.catch.finally.or.resource.decls=\
   723     ''try'' without ''catch'', ''finally'' or resource declarations
   725 # 0: symbol
   726 compiler.err.type.doesnt.take.params=\
   727     type {0} does not take parameters
   729 compiler.err.type.var.cant.be.deref=\
   730     cannot select from a type variable
   732 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
   733     a type variable may not be followed by other bounds
   735 compiler.err.type.var.more.than.once=\
   736     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
   738 compiler.err.type.var.more.than.once.in.result=\
   739     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
   741 # 0: type, 1: type, 2: string
   742 compiler.err.types.incompatible.diff.ret=\
   743     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
   745 compiler.err.unclosed.char.lit=\
   746     unclosed character literal
   748 compiler.err.unclosed.comment=\
   749     unclosed comment
   751 compiler.err.unclosed.str.lit=\
   752     unclosed string literal
   754 compiler.err.unknown.enum.constant=\
   755     in class file {0}: unknown enum constant {1}.{2}
   757 # 0: name
   758 compiler.err.unsupported.encoding=\
   759     unsupported encoding: {0}
   761 compiler.err.io.exception=\
   762     error reading source file: {0}
   764 # 0: name
   765 compiler.err.undef.label=\
   766     undefined label: {0}
   768 compiler.err.undetermined.type=\
   769     cannot infer type arguments for {0}
   771 # 0: type, 1: message segment
   772 compiler.err.undetermined.type.1=\
   773     cannot infer type arguments for {0};\n\
   774     reason: {1}
   776 # 0: list of type, 1: message segment
   777 compiler.err.invalid.inferred.types=\
   778     invalid inferred types for {0}; {1}
   780 # 0: message segment, 1: unused
   781 compiler.err.cant.apply.diamond=\
   782     cannot infer type arguments for {0}
   784 # 0: message segment, 1: message segment
   785 compiler.err.cant.apply.diamond.1=\
   786     cannot infer type arguments for {0};\n\
   787     reason: {1}
   789 compiler.err.unreachable.stmt=\
   790     unreachable statement
   792 compiler.err.initializer.must.be.able.to.complete.normally=\
   793     initializer must be able to complete normally
   795 # 0: type
   796 compiler.err.unreported.exception.need.to.catch.or.throw=\
   797     unreported exception {0}; must be caught or declared to be thrown
   799 # 0: type
   800 compiler.err.unreported.exception.default.constructor=\
   801     unreported exception {0} in default constructor
   803 # 0: type, 1: name
   804 compiler.err.unreported.exception.implicit.close=\
   805     unreported exception {0}; must be caught or declared to be thrown\n\
   806     exception thrown from implicit call to close() on resource variable ''{1}''
   808 compiler.err.unsupported.cross.fp.lit=\
   809     hexadecimal floating-point literals are not supported on this VM
   811 compiler.err.void.not.allowed.here=\
   812     ''void'' type not allowed here
   814 # 0: string
   815 compiler.err.wrong.number.type.args=\
   816     wrong number of type arguments; required {0}
   818 # 0: symbol
   819 compiler.err.var.might.already.be.assigned=\
   820     variable {0} might already have been assigned
   822 # 0: symbol
   823 compiler.err.var.might.not.have.been.initialized=\
   824     variable {0} might not have been initialized
   826 # 0: symbol
   827 compiler.err.var.might.be.assigned.in.loop=\
   828     variable {0} might be assigned in loop
   830 # 0: symbol, 1: message segment
   831 compiler.err.varargs.invalid.trustme.anno=\
   832     Invalid {0} annotation. {1}
   834 # 0: type
   835 compiler.misc.varargs.trustme.on.reifiable.varargs=\
   836     Varargs element type {0} is reifiable.
   838 # 0: symbol
   839 compiler.misc.varargs.trustme.on.non.varargs.meth=\
   840     Method {0} is not a varargs method.
   842 # 0: symbol
   843 compiler.misc.varargs.trustme.on.virtual.varargs=\
   844     Instance method {0} is not final.
   846 # 0: type, 1: kind, 2: symbol
   847 compiler.misc.inaccessible.varargs.type=\
   848     formal varargs element type {0} is not accessible from {1} {2}
   850 # In the following string, {1} will always be the detail message from
   851 # java.io.IOException.
   852 # 0: symbol, 1: string
   853 compiler.err.class.cant.write=\
   854     error while writing {0}: {1}
   856 # In the following string, {0} is the name of the class in the Java source.
   857 # It really should be used two times..
   858 # 0: name
   859 compiler.err.class.public.should.be.in.file=\
   860     class {0} is public, should be declared in a file named {0}.java
   862 ## All errors which do not refer to a particular line in the source code are
   863 ## preceded by this string.
   864 compiler.err.error=\
   865     error:\u0020
   867 # The following error messages do not refer to a line in the source code.
   868 compiler.err.cant.read.file=\
   869     cannot read: {0}
   871 #####
   873 # Fatal Errors
   875 compiler.misc.fatal.err.no.java.lang=\
   876     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
   878 compiler.misc.fatal.err.cant.locate.meth=\
   879     Fatal Error: Unable to find method {0}
   881 compiler.misc.fatal.err.cant.locate.field=\
   882     Fatal Error: Unable to find field {0}
   884 compiler.misc.fatal.err.cant.locate.ctor=\
   885     Fatal Error: Unable to find constructor for {0}
   887 compiler.misc.fatal.err.cant.close.loader=\
   888     Fatal Error: Cannot close class loader for annotation processors
   890 #####
   892 ##
   893 ## miscellaneous strings
   894 ##
   896 compiler.misc.source.unavailable=\
   897     (source unavailable)
   899 compiler.misc.base.membership=\
   900     all your base class are belong to us
   902 # 0: string, 1: string, 2: boolean
   903 compiler.misc.x.print.processor.info=\
   904     Processor {0} matches {1} and returns {2}.
   906 # 0: number, 1: string, 2: set of symbol, 3: boolean
   907 compiler.misc.x.print.rounds=\
   908     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
   910 #####
   912 ## The following string will appear before all messages keyed as:
   913 ## "compiler.note".
   914 compiler.note.note=\
   915     Note:\u0020
   917 # 0: file name
   918 compiler.note.deprecated.filename=\
   919     {0} uses or overrides a deprecated API.
   921 compiler.note.deprecated.plural=\
   922     Some input files use or override a deprecated API.
   924 # The following string may appear after one of the above deprecation
   925 # messages.
   926 compiler.note.deprecated.recompile=\
   927     Recompile with -Xlint:deprecation for details.
   929 # 0: file name
   930 compiler.note.deprecated.filename.additional=\
   931     {0} has additional uses or overrides of a deprecated API.
   933 compiler.note.deprecated.plural.additional=\
   934     Some input files additionally use or override a deprecated API.
   936 # 0: file name
   937 compiler.note.unchecked.filename=\
   938     {0} uses unchecked or unsafe operations.
   940 compiler.note.unchecked.plural=\
   941     Some input files use unchecked or unsafe operations.
   943 # The following string may appear after one of the above deprecation
   944 # messages.
   945 compiler.note.unchecked.recompile=\
   946     Recompile with -Xlint:unchecked for details.
   948 # 0: file name
   949 compiler.note.unchecked.filename.additional=\
   950     {0} has additional unchecked or unsafe operations.
   952 compiler.note.unchecked.plural.additional=\
   953     Some input files additionally use unchecked or unsafe operations.
   955 # 0: file name
   956 compiler.note.sunapi.filename=\
   957     {0} uses internal proprietary API that may be removed in a future release.
   959 compiler.note.sunapi.plural=\
   960     Some input files use internal proprietary API that may be removed in a future release.
   962 # The following string may appear after one of the above sunapi messages.
   963 compiler.note.sunapi.recompile=\
   964     Recompile with -Xlint:sunapi for details.
   966 # 0: file name
   967 compiler.note.sunapi.filename.additional=\
   968     {0} uses additional internal proprietary API that may be removed in a future release.
   970 compiler.note.sunapi.plural.additional=\
   971     Some input files additionally use internal proprietary API that may be removed in a future release.
   973 # Notes related to annotation processing
   975 # Print a client-generated note; assumed to be localized, no translation required
   976 # 0: string
   977 compiler.note.proc.messager=\
   978     {0}
   980 #####
   982 # 0: number
   983 compiler.misc.count.error=\
   984     {0} error
   986 # 0: number
   987 compiler.misc.count.error.plural=\
   988     {0} errors
   990 # 0: number
   991 compiler.misc.count.warn=\
   992     {0} warning
   994 # 0: number
   995 compiler.misc.count.warn.plural=\
   996     {0} warnings
   998 compiler.misc.version.not.available=\
   999     (version info not available)
  1001 ## extra output when using -verbose (JavaCompiler)
  1003 # 0: symbol
  1004 compiler.misc.verbose.checking.attribution=\
  1005     [checking {0}]
  1007 # 0: string
  1008 compiler.misc.verbose.parsing.done=\
  1009     [parsing completed {0}ms]
  1011 # 0: file name
  1012 compiler.misc.verbose.parsing.started=\
  1013     [parsing started {0}]
  1015 # 0: string
  1016 compiler.misc.verbose.total=\
  1017     [total {0}ms]
  1019 # 0: file name
  1020 compiler.misc.verbose.wrote.file=\
  1021     [wrote {0}]
  1023 ## extra output when using -verbose (Retro)
  1024 compiler.misc.verbose.retro=\
  1025     [retrofitting {0}]
  1027 compiler.misc.verbose.retro.with=\
  1028     \tretrofitting {0} with {1}
  1030 compiler.misc.verbose.retro.with.list=\
  1031     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
  1033 ## extra output when using -verbose (code/ClassReader)
  1034 # 0: string
  1035 compiler.misc.verbose.loading=\
  1036     [loading {0}]
  1038 # 0: string
  1039 compiler.misc.verbose.sourcepath=\
  1040     [search path for source files: {0}]
  1042 # 0: string
  1043 compiler.misc.verbose.classpath=\
  1044     [search path for class files: {0}]
  1046 ## extra output when using -checkclassfile (code/ClassReader)
  1047 compiler.misc.ccf.found.later.version=\
  1048     class file has later version than expected: {0}
  1050 compiler.misc.ccf.unrecognized.attribute=\
  1051     unrecognized attribute: {0}
  1053 ## extra output when using -prompt (util/Log)
  1054 compiler.misc.resume.abort=\
  1055     R)esume, A)bort>
  1057 #####
  1059 ##
  1060 ## warnings
  1061 ##
  1063 ## All warning messages are preceded by the following string.
  1064 compiler.warn.warning=\
  1065     warning:\u0020
  1067 ## Warning messages may also include the following prefix to identify a
  1068 ## lint option
  1069 # 0: option name
  1070 compiler.warn.lintOption=\
  1071     [{0}]\u0020
  1073 # 0: symbol
  1074 compiler.warn.constant.SVUID=\
  1075     serialVersionUID must be constant in class {0}
  1077 # 0: file name
  1078 compiler.warn.dir.path.element.not.found=\
  1079     bad path element "{0}": no such directory
  1081 compiler.warn.finally.cannot.complete=\
  1082     finally clause cannot complete normally
  1084 # 0: symbol, 1: symbol
  1085 compiler.warn.has.been.deprecated=\
  1086     {0} in {1} has been deprecated
  1088 # 0: symbol
  1089 compiler.warn.sun.proprietary=\
  1090     {0} is internal proprietary API and may be removed in a future release
  1092 compiler.warn.illegal.char.for.encoding=\
  1093     unmappable character for encoding {0}
  1095 # 0: symbol
  1096 compiler.warn.improper.SVUID=\
  1097     serialVersionUID must be declared static final in class {0}
  1099 # 0: type, 1: type
  1100 compiler.warn.inexact.non-varargs.call=\
  1101     non-varargs call of varargs method with inexact argument type for last parameter;\n\
  1102     cast to {0} for a varargs call\n\
  1103     cast to {1} for a non-varargs call and to suppress this warning
  1105 # 0: list of type
  1106 compiler.warn.unreachable.catch=\
  1107     unreachable catch clause\n\
  1108     thrown type {0} has already been caught
  1110 # 0: list of type
  1111 compiler.warn.unreachable.catch.1=\
  1112     unreachable catch clause\n\
  1113     thrown types {0} have already been caught
  1115 # 0: symbol
  1116 compiler.warn.long.SVUID=\
  1117     serialVersionUID must be of type long in class {0}
  1119 # 0: symbol
  1120 compiler.warn.missing.SVUID=\
  1121     serializable class {0} has no definition of serialVersionUID
  1123 # 0: message segment
  1124 compiler.warn.override.varargs.missing=\
  1125     {0}; overridden method has no ''...''
  1127 # 0: message segment
  1128 compiler.warn.override.varargs.extra=\
  1129     {0}; overriding method is missing ''...''
  1131 compiler.warn.override.bridge=\
  1132     {0}; overridden method is a bridge method
  1134 # 0: symbol
  1135 compiler.warn.pkg-info.already.seen=\
  1136     a package-info.java file has already been seen for package {0}
  1138 # 0: file name
  1139 compiler.warn.path.element.not.found=\
  1140     bad path element "{0}": no such file or directory
  1142 compiler.warn.possible.fall-through.into.case=\
  1143     possible fall-through into case
  1145 # 0: type
  1146 compiler.warn.redundant.cast=\
  1147     redundant cast to {0}
  1149 # 0: number
  1150 compiler.warn.position.overflow=\
  1151     Position encoding overflows at line {0}
  1153 # 0: file name, 1: number, 2: number
  1154 compiler.warn.big.major.version=\
  1155     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
  1156     It is recommended that the compiler be upgraded.
  1158 # 0: symbol kind, 1: symbol
  1159 compiler.warn.static.not.qualified.by.type=\
  1160     static {0} should be qualified by type name, {1}, instead of by an expression
  1162 # 0: string
  1163 compiler.warn.source.no.bootclasspath=\
  1164     bootstrap class path not set in conjunction with -source {0}
  1166 # 0: name, 1: number, 2: number, 3: number, 4: number
  1167 compiler.warn.future.attr=\
  1168     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
  1170 # Warnings related to annotation processing
  1171 # 0: name
  1172 compiler.warn.proc.package.does.not.exist=\
  1173     package {0} does not exist
  1175 # 0: name
  1176 compiler.warn.proc.file.reopening=\
  1177     Attempt to create a file for ''{0}'' multiple times
  1179 # 0: name
  1180 compiler.warn.proc.type.already.exists=\
  1181     A file for type ''{0}'' already exists on the sourcepath or classpath
  1183 # 0: name
  1184 compiler.warn.proc.type.recreate=\
  1185     Attempt to create a file for type ''{0}'' multiple times
  1187 # 0: string
  1188 compiler.warn.proc.illegal.file.name=\
  1189     Cannot create file for illegal name ''{0}''.
  1191 # 0: string, 1: string
  1192 compiler.warn.proc.suspicious.class.name=\
  1193     Creating file for a type whose name ends in {1}: ''{0}''
  1195 # 0: name
  1196 compiler.warn.proc.file.create.last.round=\
  1197     File for type ''{0}'' created in the last round will not be subject to annotation processing.
  1199 # 0: string, 1: string
  1200 compiler.warn.proc.malformed.supported.string=\
  1201     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
  1203 # 0: set of string
  1204 compiler.warn.proc.annotations.without.processors=\
  1205     No processor claimed any of these annotations: {0}
  1207 # 0: source version, 1: string, 2: string
  1208 compiler.warn.proc.processor.incompatible.source.version=\
  1209     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
  1211 compiler.warn.proc.proc-only.requested.no.procs=\
  1212     Annotation processing without compilation requested but no processors were found.
  1214 compiler.warn.proc.use.implicit=\
  1215     Implicitly compiled files were not subject to annotation processing.\n\
  1216     Use -implicit to specify a policy for implicit compilation.
  1218 compiler.warn.proc.use.proc.or.implicit=\
  1219     Implicitly compiled files were not subject to annotation processing.\n\
  1220     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
  1222 # Print a client-generated warning; assumed to be localized, no translation required
  1223 # 0: string
  1224 compiler.warn.proc.messager=\
  1225     {0}
  1227 # 0: set of name
  1228 compiler.warn.proc.unclosed.type.files=\
  1229     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
  1231 # 0: string
  1232 compiler.warn.proc.unmatched.processor.options=\
  1233     The following options were not recognized by any processor: ''{0}''
  1235 compiler.warn.try.explicit.close.call=\
  1236     explicit call to close() on an auto-closeable resource
  1238 # 0: symbol
  1239 compiler.warn.try.resource.not.referenced=\
  1240     auto-closeable resource {0} is never referenced in body of corresponding try statement
  1242 compiler.warn.unchecked.assign=\
  1243     unchecked assignment: {0} to {1}
  1245 # 0: symbol, 1: type
  1246 compiler.warn.unchecked.assign.to.var=\
  1247     unchecked assignment to variable {0} as member of raw type {1}
  1249 # 0: symbol, 1: type
  1250 compiler.warn.unchecked.call.mbr.of.raw.type=\
  1251     unchecked call to {0} as a member of the raw type {1}
  1253 compiler.warn.unchecked.cast.to.type=\
  1254     unchecked cast to type {0}
  1256 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
  1257 compiler.warn.unchecked.meth.invocation.applied=\
  1258     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
  1259     required: {2}\n\
  1260     found: {3}
  1262 # 0: type
  1263 compiler.warn.unchecked.generic.array.creation=\
  1264     unchecked generic array creation for varargs parameter of type {0}
  1266 # 0: type
  1267 compiler.warn.unchecked.varargs.non.reifiable.type=\
  1268     Possible heap pollution from parameterized vararg type {0}
  1270 # 0: symbol
  1271 compiler.warn.varargs.unsafe.use.varargs.param=\
  1272     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
  1274 compiler.warn.missing.deprecated.annotation=\
  1275     deprecated item is not annotated with @Deprecated
  1277 compiler.warn.invalid.archive.file=\
  1278     Unexpected file on path: {0}
  1280 compiler.warn.unexpected.archive.file=\
  1281     Unexpected extension for archive file: {0}
  1283 compiler.warn.div.zero=\
  1284     division by zero
  1286 compiler.warn.empty.if=\
  1287     empty statement after if
  1289 compiler.warn.annotation.method.not.found=\
  1290     Cannot find annotation method ''{1}()'' in type ''{0}''
  1292 compiler.warn.annotation.method.not.found.reason=\
  1293     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
  1295 # 0: type, 1: type
  1296 compiler.warn.raw.class.use=\
  1297     found raw type: {0}\n\
  1298     missing type arguments for generic class {1}
  1300 # 0: unused, 1: unused
  1301 compiler.warn.diamond.redundant.args=\
  1302     redundant type arguments in new expression (use diamond operator instead).
  1304 # 0: type, 1: type
  1305 compiler.warn.diamond.redundant.args.1=\
  1306     redundant type arguments in new expression (use diamond operator instead).\n\
  1307     explicit: {0}\n\
  1308     inferred: {1}
  1310 # 0: symbol, 1: message segment
  1311 compiler.warn.varargs.redundant.trustme.anno=\
  1312     Redundant {0} annotation. {1}
  1314 #####
  1316 ## The following are tokens which are non-terminals in the language. They should
  1317 ## be named as JLS3 calls them when translated to the appropriate language.
  1318 compiler.misc.token.identifier=\
  1319     <identifier>
  1321 compiler.misc.token.character=\
  1322     <character>
  1324 compiler.misc.token.string=\
  1325     <string>
  1327 compiler.misc.token.integer=\
  1328     <integer>
  1330 compiler.misc.token.long-integer=\
  1331     <long integer>
  1333 compiler.misc.token.float=\
  1334     <float>
  1336 compiler.misc.token.double=\
  1337     <double>
  1339 compiler.misc.token.bad-symbol=\
  1340     <bad symbol>
  1342 compiler.misc.token.end-of-input=\
  1343     <end of input>
  1345 ## The argument to the following string will always be one of the following:
  1346 ## 1. one of the above non-terminals
  1347 ## 2. a keyword (JLS1.8)
  1348 ## 3. a boolean literal (JLS3.10.3)
  1349 ## 4. the null literal (JLS3.10.7)
  1350 ## 5. a Java separator (JLS3.11)
  1351 ## 6. an operator (JLS3.12)
  1352 ##
  1353 ## This is the only place these tokens will be used.
  1354 # 0: token
  1355 compiler.err.expected=\
  1356     {0} expected
  1358 # 0: token, 1: token
  1359 compiler.err.expected2=\
  1360     {0} or {1} expected
  1362 # 0: token, 1: token, 2: token
  1363 compiler.err.expected3=\
  1364     {0}, {1}, or {2} expected
  1366 compiler.err.premature.eof=\
  1367     reached end of file while parsing
  1369 ## The following are related in form, but do not easily fit the above paradigm.
  1370 compiler.err.dot.class.expected=\
  1371     ''.class'' expected
  1373 ## The argument to this string will always be either 'case' or 'default'.
  1374 # 0: token
  1375 compiler.err.orphaned=\
  1376     orphaned {0}
  1378 # 0: name
  1379 compiler.misc.anonymous.class=\
  1380     <anonymous {0}>
  1382 # 0: name, 1: type
  1383 compiler.misc.type.captureof=\
  1384     capture#{0} of {1}
  1386 compiler.misc.type.captureof.1=\
  1387     capture#{0}
  1389 compiler.misc.type.none=\
  1390     <none>
  1392 compiler.misc.unnamed.package=\
  1393     unnamed package
  1395 #####
  1397 # 0: symbol, 1: message segment
  1398 compiler.err.cant.access=\
  1399     cannot access {0}\n\
  1400     {1}
  1402 compiler.misc.bad.class.file.header=\
  1403     bad class file: {0}\n\
  1404     {1}\n\
  1405     Please remove or make sure it appears in the correct subdirectory of the classpath.
  1407 # 0: file name, 1: message segment
  1408 compiler.misc.bad.source.file.header=\
  1409     bad source file: {0}\n\
  1410     {1}\n\
  1411     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
  1413 ## The following are all possible strings for the second argument ({1}) of the
  1414 ## above strings.
  1415 compiler.misc.bad.class.signature=\
  1416     bad class signature: {0}
  1418 compiler.misc.bad.enclosing.method=\
  1419     bad enclosing method attribute: {0}
  1421 compiler.misc.bad.runtime.invisible.param.annotations=\
  1422     bad RuntimeInvisibleParameterAnnotations attribute: {0}
  1424 compiler.misc.bad.const.pool.tag=\
  1425     bad constant pool tag: {0}
  1427 compiler.misc.bad.const.pool.tag.at=\
  1428     bad constant pool tag: {0} at {1}
  1430 compiler.misc.bad.signature=\
  1431     bad signature: {0}
  1433 compiler.misc.class.file.wrong.class=\
  1434     class file contains wrong class: {0}
  1436 compiler.misc.class.file.not.found=\
  1437     class file for {0} not found
  1439 # 0: name
  1440 compiler.misc.file.doesnt.contain.class=\
  1441     file does not contain class {0}
  1443 compiler.misc.file.does.not.contain.package=\
  1444     file does not contain package {0}
  1446 compiler.misc.illegal.start.of.class.file=\
  1447     illegal start of class file
  1449 compiler.misc.unable.to.access.file=\
  1450     unable to access file: {0}
  1452 compiler.misc.unicode.str.not.supported=\
  1453     unicode string in class file not supported
  1455 compiler.misc.undecl.type.var=\
  1456     undeclared type variable: {0}
  1458 compiler.misc.wrong.version=\
  1459     class file has wrong version {0}.{1}, should be {2}.{3}
  1461 #####
  1463 # 0: type, 1: type or symbol
  1464 compiler.err.not.within.bounds=\
  1465     type argument {0} is not within bounds of type-variable {1}
  1467 ## The following are all possible strings for the second argument ({1}) of the
  1468 ## above string.
  1470 ## none yet...
  1472 #####
  1474 # 0: message segment, 1: type, 2: type
  1475 compiler.err.prob.found.req=\
  1476     {0}\n\
  1477     required: {2}\n\
  1478     found:    {1}
  1480 # 0: message segment, 1: type, 2: type
  1481 compiler.warn.prob.found.req=\
  1482     {0}\n\
  1483     required: {2}\n\
  1484     found:    {1}
  1486 compiler.err.prob.found.req.1=\
  1487     {0} {3}\n\
  1488     required: {2}\n\
  1489     found:    {1}
  1491 ## The following are all possible strings for the first argument ({0}) of the
  1492 ## above strings.
  1493 compiler.misc.incompatible.types=\
  1494     incompatible types
  1496 # 0: message segment
  1497 compiler.misc.incompatible.types.1=\
  1498     incompatible types; {0}
  1500 compiler.misc.inconvertible.types=\
  1501     inconvertible types
  1503 compiler.misc.possible.loss.of.precision=\
  1504     possible loss of precision
  1506 compiler.misc.unchecked.assign=\
  1507     unchecked conversion
  1509 # compiler.misc.storecheck=\
  1510 #     assignment might cause later store checks to fail
  1511 # compiler.misc.unchecked=\
  1512 #     assigned array cannot dynamically check its stores
  1513 compiler.misc.unchecked.cast.to.type=\
  1514     unchecked cast
  1516 compiler.misc.assignment.from.super-bound=\
  1517     assignment from super-bound type {0}
  1519 compiler.misc.assignment.to.extends-bound=\
  1520     assignment to extends-bound type {0}
  1522 # compiler.err.star.expected=\
  1523 #     ''*'' expected
  1524 # compiler.err.no.elem.type=\
  1525 #     \[\*\] cannot have a type
  1527 compiler.misc.try.not.applicable.to.type=\
  1528     try-with-resources not applicable to variable type
  1530 #####
  1532 # 0: message segment or type, 1: message segment
  1533 compiler.err.type.found.req=\
  1534     unexpected type\n\
  1535     required: {1}\n\
  1536     found:    {0}
  1538 ## The following are all possible strings for the first argument ({0}) of the
  1539 ## above string.
  1540 compiler.misc.type.req.class=\
  1541     class
  1543 compiler.misc.type.req.class.array=\
  1544     class or array
  1546 compiler.misc.type.req.array.or.iterable=\
  1547     array or java.lang.Iterable
  1549 compiler.misc.type.req.ref=\
  1550     reference
  1552 compiler.misc.type.req.exact=\
  1553     class or interface without bounds
  1555 # 0: type
  1556 compiler.misc.type.parameter=\
  1557     type parameter {0}
  1559 #####
  1561 ## The following are all possible strings for the last argument of all those
  1562 ## diagnostics whose key ends in ".1"
  1563 compiler.misc.undetermined.type=\
  1564     undetermined type
  1566 compiler.misc.type.variable.has.undetermined.type=\
  1567     type variable {0} has undetermined type
  1569 # 0: type, 1: list of type
  1570 compiler.misc.no.unique.maximal.instance.exists=\
  1571     no unique maximal instance exists for type variable {0} with upper bounds {1}
  1573 compiler.misc.no.unique.minimal.instance.exists=\
  1574     no unique minimal instance exists for type variable {0} with lower bounds {1}
  1576 # 0: list of type, 1: type, 2: type
  1577 compiler.misc.infer.no.conforming.instance.exists=\
  1578     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
  1580 # 0: list of type, 1: type, 2: type
  1581 compiler.misc.infer.no.conforming.assignment.exists=\
  1582     no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
  1584 compiler.misc.infer.arg.length.mismatch=\
  1585     cannot instantiate from arguments because actual and formal argument lists differ in length
  1587 # 0: type, 1: list of type
  1588 compiler.misc.inferred.do.not.conform.to.bounds=\
  1589     inferred type does not conform to declared bound(s)\n\
  1590     inferred: {0}\n\
  1591     bound(s): {1}
  1593 # 0: symbol
  1594 compiler.misc.diamond=\
  1595     {0}<>
  1597 # 0: type
  1598 compiler.misc.diamond.non.generic=\
  1599     cannot use ''<>'' with non-generic class {0}
  1601 # 0: type, 1: list of type
  1602 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  1603     explicit type argument {0} does not conform to declared bound(s) {1}
  1605 compiler.misc.arg.length.mismatch=\
  1606     actual and formal argument lists differ in length
  1608 # 0: type, 1: type
  1609 compiler.misc.no.conforming.assignment.exists=\
  1610     actual argument {0} cannot be converted to {1} by method invocation conversion
  1612 # 0: type, 1: type
  1613 compiler.misc.varargs.argument.mismatch=\
  1614     argument type {0} does not conform to vararg element type {1}
  1616 #####
  1618 ## The first argument ({0}) is a "kindname".
  1619 # 0: symbol kind, 1: symbol, 2: symbol
  1620 compiler.err.abstract.cant.be.accessed.directly=\
  1621     abstract {0} {1} in {2} cannot be accessed directly
  1623 ## The first argument ({0}) is a "kindname".
  1624 # 0: symbol kind, 1: symbol
  1625 compiler.err.non-static.cant.be.ref=\
  1626     non-static {0} {1} cannot be referenced from a static context
  1628 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  1629 ## of kindnames (the list should be identical to that provided in source.
  1630 compiler.err.unexpected.type=\
  1631     unexpected type\n\
  1632     required: {0}\n\
  1633     found:    {1}
  1635 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  1636 ## The second argument {1} is the non-resolved symbol
  1637 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  1638 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  1639 # 0: symbol kind, 1: name, 2: unused, 3: unused
  1640 compiler.err.cant.resolve=\
  1641     cannot find symbol\n\
  1642     symbol: {0} {1}
  1644 # 0: symbol kind, 1: name, 2: unused, 3: list of type
  1645 compiler.err.cant.resolve.args=\
  1646     cannot find symbol\n\
  1647     symbol: {0} {1}({3})
  1649 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
  1650 compiler.err.cant.resolve.args.params=\
  1651     cannot find symbol\n\
  1652     symbol: {0} <{2}>{1}({3})
  1654 ## arguments from {0} to {3} have the same meaning as above
  1655 ## The fifth argument {4} is a location subdiagnostic (see below)
  1656 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
  1657 compiler.err.cant.resolve.location=\
  1658     cannot find symbol\n\
  1659     symbol:   {0} {1}\n\
  1660     location: {4}
  1662 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  1663 compiler.err.cant.resolve.location.args=\
  1664     cannot find symbol\n\
  1665     symbol:   {0} {1}({3})\n\
  1666     location: {4}
  1668 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  1669 compiler.err.cant.resolve.location.args.params=\
  1670     cannot find symbol\n\
  1671     symbol:   {0} <{2}>{1}({3})\n\
  1672     location: {4}
  1674 ##a location subdiagnostic is composed as follows:
  1675 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  1676 ## The second argument {1} is the location name
  1677 ## The third argument {2} is the location type (only when {1} is a variable name)
  1679 # 0: symbol kind, 1: symbol, 2: unused
  1680 compiler.misc.location=\
  1681     {0} {1}
  1683 # 0: symbol kind, 1: symbol, 2: type
  1684 compiler.misc.location.1=\
  1685     {0} {1} of type {2}
  1687 ## The following are all possible string for "kindname".
  1688 ## They should be called whatever the JLS calls them after it been translated
  1689 ## to the appropriate language.
  1690 # compiler.misc.kindname.constructor=\
  1691 #     static member
  1692 compiler.misc.kindname.annotation=\
  1693     @interface
  1695 compiler.misc.kindname.constructor=\
  1696     constructor
  1698 compiler.misc.kindname.enum=\
  1699     enum
  1701 compiler.misc.kindname.interface=\
  1702     interface
  1704 compiler.misc.kindname.static=\
  1705     static
  1707 compiler.misc.kindname.type.variable=\
  1708     type variable
  1710 compiler.misc.kindname.type.variable.bound=\
  1711     bound of type variable
  1713 compiler.misc.kindname.variable=\
  1714     variable
  1716 compiler.misc.kindname.value=\
  1717     value
  1719 compiler.misc.kindname.method=\
  1720     method
  1722 compiler.misc.kindname.class=\
  1723     class
  1725 compiler.misc.kindname.package=\
  1726     package
  1728 #####
  1730 compiler.misc.no.args=\
  1731     no arguments
  1733 # 0: message segment
  1734 compiler.err.override.static=\
  1735     {0}\n\
  1736     overriding method is static
  1738 # 0: message segment, 1: set of modifier
  1739 compiler.err.override.meth=\
  1740     {0}\n\
  1741     overridden method is {1}
  1743 # 0: message segment, 1: type
  1744 compiler.err.override.meth.doesnt.throw=\
  1745     {0}\n\
  1746     overridden method does not throw {1}
  1748 # In the following string {1} is a space separated list of Java Keywords, as
  1749 # they would have been declared in the source code
  1750 # 0: message segment, 1: set of modifier
  1751 compiler.err.override.weaker.access=\
  1752     {0}\n\
  1753     attempting to assign weaker access privileges; was {1}
  1755 # 0: message segment, 1: type, 2: type
  1756 compiler.err.override.incompatible.ret=\
  1757     {0}\n\
  1758     return type {1} is not compatible with {2}
  1760 # 0: message segment, 1: type, 2: type
  1761 compiler.warn.override.unchecked.ret=\
  1762     {0}\n\
  1763     return type requires unchecked conversion from {1} to {2}
  1765 # 0: message segment, 1: type
  1766 compiler.warn.override.unchecked.thrown=\
  1767     {0}\n\
  1768     overridden method does not throw {1}
  1770 ## The following are all possible strings for the first argument ({0}) of the
  1771 ## above strings.
  1772 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1773 compiler.misc.cant.override=\
  1774     {0} in {1} cannot override {2} in {3}
  1776 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1777 compiler.misc.cant.implement=\
  1778     {0} in {1} cannot implement {2} in {3}
  1780 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1781 compiler.misc.clashes.with=\
  1782     {0} in {1} clashes with {2} in {3}
  1784 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1785 compiler.misc.unchecked.override=\
  1786     {0} in {1} overrides {2} in {3}
  1788 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1789 compiler.misc.unchecked.implement=\
  1790     {0} in {1} implements {2} in {3}
  1792 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1793 compiler.misc.unchecked.clash.with=\
  1794     {0} in {1} overrides {2} in {3}
  1796 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1797 compiler.misc.varargs.override=\
  1798     {0} in {1} overrides {2} in {3}
  1800 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1801 compiler.misc.varargs.implement=\
  1802     {0} in {1} implements {2} in {3}
  1804 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1805 compiler.misc.varargs.clash.with=\
  1806     {0} in {1} overrides {2} in {3}
  1808 compiler.misc.diamond.and.anon.class=\
  1809     cannot use ''<>'' with anonymous inner classes
  1811 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
  1812 compiler.misc.inapplicable.method=\
  1813     {0} {1}.{2} is not applicable\n\
  1814     ({3})
  1816 ########################################
  1817 # Diagnostics for language feature changes
  1818 ########################################
  1819 # 0: string
  1820 compiler.err.unsupported.fp.lit=\
  1821     hexadecimal floating point literals are not supported in -source {0}\n\
  1822     (use -source 5 or higher to enable hexadecimal floating point literals)
  1824 # 0: string
  1825 compiler.err.unsupported.binary.lit=\
  1826     binary literals are not supported in -source {0}\n\
  1827     (use -source 7 or higher to enable binary literals)
  1829 # 0: string
  1830 compiler.err.unsupported.underscore.lit=\
  1831     underscores in literals are not supported in -source {0}\n\
  1832     (use -source 7 or higher to enable underscores in literals)
  1834 # 0: string
  1835 compiler.err.try.with.resources.not.supported.in.source=\
  1836     try-with-resources is not supported in -source {0}\n\
  1837     (use -source 7 or higher to enable try-with-resources)
  1839 compiler.warn.enum.as.identifier=\
  1840     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  1841     (use -source 5 or higher to use ''enum'' as a keyword)
  1843 compiler.warn.assert.as.identifier=\
  1844     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  1845     (use -source 1.4 or higher to use ''assert'' as a keyword)
  1847 compiler.err.enum.as.identifier=\
  1848     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  1849     (use -source 1.4 or lower to use ''enum'' as an identifier)
  1851 compiler.err.assert.as.identifier=\
  1852     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  1853     (use -source 1.3 or lower to use ''assert'' as an identifier)
  1855 # 0: string
  1856 compiler.err.generics.not.supported.in.source=\
  1857     generics are not supported in -source {0}\n\
  1858     (use -source 5 or higher to enable generics)
  1860 # 0: string
  1861 compiler.err.varargs.not.supported.in.source=\
  1862     variable-arity methods are not supported in -source {0}\n\
  1863     (use -source 5 or higher to enable variable-arity methods)
  1865 # 0: string
  1866 compiler.err.annotations.not.supported.in.source=\
  1867     annotations are not supported in -source {0}\n\
  1868     (use -source 5 or higher to enable annotations)
  1870 #308 compiler.err.type.annotations.not.supported.in.source=\
  1871 #308     type annotations are not supported in -source {0}\n\
  1872 #308 (use -source 7 or higher to enable type annotations)
  1874 # 0: string
  1875 compiler.err.foreach.not.supported.in.source=\
  1876     for-each loops are not supported in -source {0}\n\
  1877     (use -source 5 or higher to enable for-each loops)
  1879 # 0: string
  1880 compiler.err.static.import.not.supported.in.source=\
  1881     static import declarations are not supported in -source {0}\n\
  1882     (use -source 5 or higher to enable static import declarations)
  1884 # 0: string
  1885 compiler.err.enums.not.supported.in.source=\
  1886     enums are not supported in -source {0}\n\
  1887     (use -source 5 or higher to enable enums)
  1889 # 0: string
  1890 compiler.err.diamond.not.supported.in.source=\
  1891     diamond operator is not supported in -source {0}\n\
  1892     (use -source 7 or higher to enable diamond operator)
  1894 # 0: string
  1895 compiler.err.multicatch.not.supported.in.source=\
  1896     multi-catch statement is not supported in -source {0}\n\
  1897     (use -source 7 or higher to enable multi-catch statement)
  1899 # 0: string
  1900 compiler.err.string.switch.not.supported.in.source=\
  1901     strings in switch are not supported in -source {0}\n\
  1902     (use -source 7 or higher to enable strings in switch)
  1904 ########################################
  1905 # Diagnostics for where clause implementation
  1906 # used by the RichDiagnosticFormatter.
  1907 ########################################
  1909 compiler.misc.type.null=\
  1910     <null>
  1912 # X#n (where n is an int id) is disambiguated tvar name
  1913 # 0: name, 1: number
  1914 compiler.misc.type.var=\
  1915     {0}#{1}
  1917 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
  1918 # 0: number
  1919 compiler.misc.captured.type=\
  1920     CAP#{0}
  1922 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
  1923 # 0: number
  1924 compiler.misc.intersection.type=\
  1925     INT#{0}
  1927 # where clause for captured type: contains upper ('extends {1}') and lower
  1928 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
  1929 # 0: type, 1: type, 2: type, 3: type
  1930 compiler.misc.where.captured=\
  1931     {0} extends {1} super: {2} from capture of {3}
  1933 # compact where clause for captured type: contains upper ('extends {1}') along
  1934 # with the wildcard that generated this captured type ({3})
  1935 # 0: type, 1: type, 2: unused, 3: type
  1936 compiler.misc.where.captured.1=\
  1937     {0} extends {1} from capture of {3}
  1939 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
  1940 # the kindname ({2}) and location ({3}) in which the typevar has been declared
  1941 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  1942 compiler.misc.where.typevar=\
  1943     {0} extends {1} declared in {2} {3}
  1945 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
  1946 # in which the typevar has been declared
  1947 compiler.misc.where.typevar.1=\
  1948     {0} declared in {2} {3}
  1950 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
  1951 # of this intersection type
  1952 # 0: type, 1: list of type
  1953 compiler.misc.where.intersection=\
  1954     {0} extends {1}
  1956 ### Where clause headers ###
  1957 compiler.misc.where.description.captured=\
  1958     where {0} is a fresh type-variable:
  1960 # 0: set of type
  1961 compiler.misc.where.description.typevar=\
  1962     where {0} is a type-variable:
  1964 # 0: set of type
  1965 compiler.misc.where.description.intersection=\
  1966     where {0} is an intersection type:
  1968 # 0: set of type
  1969 compiler.misc.where.description.captured.1=\
  1970     where {0} are fresh type-variables:
  1972 # 0: set of type
  1973 compiler.misc.where.description.typevar.1=\
  1974     where {0} are type-variables:
  1976 compiler.misc.where.description.intersection.1=\
  1977     where {0} are intersection types:

mercurial