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

Tue, 29 Mar 2011 16:41:18 +0100

author
mcimadamore
date
Tue, 29 Mar 2011 16:41:18 +0100
changeset 951
de1c65ecfec2
parent 949
ddec8c712e85
child 952
02ba4ff98742
permissions
-rw-r--r--

7027157: Project Coin: javac warnings for AutoCloseable.close throwing InterruptedException
Summary: javac should warn about use/declaration of AutoCloseable subclasses that can throw InterruptedException
Reviewed-by: jjg

     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 # 0: type, 1: type
   306 compiler.err.multicatch.types.must.be.disjoint=\
   307     Alternatives in a multi-catch statement cannot be related by subclassing\n\
   308     Alternative {0} is a subclass of alternative {1}
   310 compiler.err.finally.without.try=\
   311     ''finally'' without ''try''
   313 # 0: type, 1: message segment
   314 compiler.err.foreach.not.applicable.to.type=\
   315     for-each not applicable to expression type\n\
   316     required: {1}\n\
   317     found:    {0}
   319 compiler.err.fp.number.too.large=\
   320     floating point number too large
   322 compiler.err.fp.number.too.small=\
   323     floating point number too small
   325 compiler.err.generic.array.creation=\
   326     generic array creation
   328 compiler.err.generic.throwable=\
   329     a generic class may not extend java.lang.Throwable
   331 # 0: symbol
   332 compiler.err.icls.cant.have.static.decl=\
   333     Illegal static declaration in inner class {0}\n\
   334     modifier \''static\'' is only allowed in constant variable declarations
   336 # 0: string
   337 compiler.err.illegal.char=\
   338     illegal character: \\{0}
   340 compiler.err.illegal.char.for.encoding=\
   341     unmappable character for encoding {0}
   343 # 0: set of modifier, 1: set of modifier
   344 compiler.err.illegal.combination.of.modifiers=\
   345     illegal combination of modifiers: {0} and {1}
   347 compiler.err.illegal.enum.static.ref=\
   348     illegal reference to static field from initializer
   350 compiler.err.illegal.esc.char=\
   351     illegal escape character
   353 compiler.err.illegal.forward.ref=\
   354     illegal forward reference
   356 # 0: symbol
   357 compiler.warn.forward.ref=\
   358     reference to variable ''{0}'' before it has been initialized
   360 compiler.err.illegal.self.ref=\
   361     self-reference in initializer
   363 # 0: symbol
   364 compiler.warn.self.ref=\
   365     self-reference in initializer of variable ''{0}''
   367 compiler.err.illegal.generic.type.for.instof=\
   368     illegal generic type for instanceof
   370 # 0: type
   371 compiler.err.illegal.initializer.for.type=\
   372     illegal initializer for {0}
   374 compiler.err.illegal.line.end.in.char.lit=\
   375     illegal line end in character literal
   377 compiler.err.illegal.nonascii.digit=\
   378     illegal non-ASCII digit
   380 compiler.err.illegal.underscore=\
   381     illegal underscore
   383 # 0: symbol
   384 compiler.err.illegal.qual.not.icls=\
   385     illegal qualifier; {0} is not an inner class
   387 compiler.err.illegal.start.of.expr=\
   388     illegal start of expression
   390 compiler.err.illegal.start.of.type=\
   391     illegal start of type
   393 compiler.err.illegal.unicode.esc=\
   394     illegal unicode escape
   396 # 0: symbol
   397 compiler.err.import.requires.canonical=\
   398     import requires canonical name for {0}
   400 compiler.err.improperly.formed.type.param.missing=\
   401     improperly formed type, some parameters are missing
   403 compiler.err.improperly.formed.type.inner.raw.param=\
   404     improperly formed type, type arguments given on a raw type
   406 # 0: type, 1: type
   407 compiler.err.incomparable.types=\
   408     incomparable types: {0} and {1}
   410 # 0: number
   411 compiler.err.int.number.too.large=\
   412     integer number too large: {0}
   414 compiler.err.internal.error.cant.instantiate=\
   415     internal error; cannot instantiate {0} at {1} to ({2})
   417 compiler.err.intf.annotation.members.cant.have.params=\
   418     @interface members may not have parameters
   420 compiler.err.intf.annotation.cant.have.type.params=\
   421     @interface may not have type parameters
   423 compiler.err.intf.annotation.members.cant.have.type.params=\
   424     @interface members may not have type parameters
   426 # 0: symbol, 1: type
   427 compiler.err.intf.annotation.member.clash=\
   428     @interface member clashes with method ''{0}'' in {1}
   430 compiler.err.intf.expected.here=\
   431     interface expected here
   433 compiler.err.intf.meth.cant.have.body=\
   434     interface methods cannot have body
   436 compiler.err.invalid.annotation.member.type=\
   437     invalid type for annotation member
   439 compiler.err.invalid.binary.number=\
   440     binary numbers must contain at least one binary digit
   442 compiler.err.invalid.hex.number=\
   443     hexadecimal numbers must contain at least one hexadecimal digit
   445 compiler.err.invalid.meth.decl.ret.type.req=\
   446     invalid method declaration; return type required
   448 compiler.err.varargs.and.old.array.syntax=\
   449     legacy array notation not allowed on variable-arity parameter
   451 # 0: name
   452 compiler.err.label.already.in.use=\
   453     label {0} already in use
   455 # 0: symbol
   456 compiler.err.local.var.accessed.from.icls.needs.final=\
   457     local variable {0} is accessed from within inner class; needs to be declared final
   459 compiler.err.local.enum=\
   460     enum types must not be local
   462 compiler.err.cannot.create.array.with.type.arguments=\
   463     cannot create array with type arguments
   465 #
   466 # limits.  We don't give the limits in the diagnostic because we expect
   467 # them to change, yet we want to use the same diagnostic.  These are all
   468 # detected during code generation.
   469 #
   470 compiler.err.limit.code=\
   471     code too large
   473 compiler.err.limit.code.too.large.for.try.stmt=\
   474     code too large for try statement
   476 compiler.err.limit.dimensions=\
   477     array type has too many dimensions
   479 compiler.err.limit.locals=\
   480     too many local variables
   482 compiler.err.limit.parameters=\
   483     too many parameters
   485 compiler.err.limit.pool=\
   486     too many constants
   488 compiler.err.limit.pool.in.class=\
   489     too many constants in class {0}
   491 compiler.err.limit.stack=\
   492     code requires too much stack
   494 compiler.err.limit.string=\
   495     constant string too long
   497 compiler.err.limit.string.overflow=\
   498     UTF8 representation for string \"{0}...\" is too long for the constant pool
   500 compiler.err.malformed.fp.lit=\
   501     malformed floating point literal
   503 compiler.err.method.does.not.override.superclass=\
   504     method does not override or implement a method from a supertype
   506 compiler.err.missing.meth.body.or.decl.abstract=\
   507     missing method body, or declare abstract
   509 compiler.err.missing.ret.stmt=\
   510     missing return statement
   512 compiler.err.missing.ret.val=\
   513     missing return value
   515 # 0: set of modifier
   516 compiler.err.mod.not.allowed.here=\
   517     modifier {0} not allowed here
   519 compiler.err.intf.not.allowed.here=\
   520     interface not allowed here
   522 compiler.err.enums.must.be.static=\
   523     enum declarations allowed only in static contexts
   525 # 0: symbol, 1: symbol
   526 compiler.err.name.clash.same.erasure=\
   527     name clash: {0} and {1} have the same erasure
   529 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
   530 compiler.err.name.clash.same.erasure.no.override=\
   531     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
   533 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
   534 compiler.err.name.clash.same.erasure.no.override.1=\
   535     name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
   536     first method:  {2} in {3}\n\
   537     second method: {4} in {5}
   539 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
   540 compiler.err.name.clash.same.erasure.no.hide=\
   541     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
   543 compiler.err.name.reserved.for.internal.use=\
   544     {0} is reserved for internal use
   546 compiler.err.native.meth.cant.have.body=\
   547     native methods cannot have a body
   549 # 0: type, 1: type
   550 compiler.err.neither.conditional.subtype=\
   551     incompatible types for ?: neither is a subtype of the other\n\
   552     second operand: {0}\n\
   553     third operand : {1}
   555 compiler.err.new.not.allowed.in.annotation=\
   556     ''new'' not allowed in an annotation
   558 compiler.err.no.annotation.member=\
   559     no annotation member {0} in {1}
   561 compiler.err.no.encl.instance.of.type.in.scope=\
   562     no enclosing instance of type {0} is in scope
   564 compiler.err.no.intf.expected.here=\
   565     no interface expected here
   567 compiler.err.no.match.entry=\
   568     {0} has no match in entry in {1}; required {2}
   570 compiler.err.not.annotation.type=\
   571     {0} is not an annotation type
   573 # 0: symbol, 1: symbol
   574 compiler.err.not.def.access.class.intf.cant.access=\
   575     {0} in {1} is defined in an inaccessible class or interface
   577 # 0: symbol, 1: symbol
   578 compiler.err.not.def.public.cant.access=\
   579     {0} is not public in {1}; cannot be accessed from outside package
   581 # 0: name
   582 compiler.err.not.loop.label=\
   583     not a loop label: {0}
   585 compiler.err.not.stmt=\
   586     not a statement
   588 # 0: symbol
   589 compiler.err.not.encl.class=\
   590     not an enclosing class: {0}
   592 # 0: name, 1: type, 2: unused
   593 compiler.err.operator.cant.be.applied=\
   594     bad operand type {1} for unary operator ''{0}''
   596 # 0: name, 1: type, 2: type
   597 compiler.err.operator.cant.be.applied.1=\
   598     bad operand types for binary operator ''{0}''\n\
   599     first type:  {1}\n\
   600     second type: {2}
   602 compiler.err.pkg.annotations.sb.in.package-info.java=\
   603     package annotations should be in file package-info.java
   605 # 0: symbol
   606 compiler.err.pkg.clashes.with.class.of.same.name=\
   607     package {0} clashes with class of same name
   609 compiler.err.warnings.and.werror=\
   610     warnings found and -Werror specified
   612 # Errors related to annotation processing
   614 compiler.err.proc.cant.access=\
   615     cannot access {0}\n\
   616     {1}\n\
   617     Consult the following stack trace for details.\n\
   618     {2}
   620 # 0: string
   621 compiler.err.proc.cant.find.class=\
   622     Could not find class file for ''{0}''.
   624 # Print a client-generated error message; assumed to be localized, no translation required
   625 # 0: string
   626 compiler.err.proc.messager=\
   627     {0}
   629 # 0: list of string
   630 compiler.err.proc.no.explicit.annotation.processing.requested=\
   631     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   633 compiler.err.proc.no.service=\
   634     A service loader class could not be found.\n\
   635     Either java.util.ServiceLoader or sun.misc.Service must be available.
   637 compiler.err.proc.processor.bad.option.name=\
   638     Bad option name ''{0}'' provided by processor ''{1}''
   640 # 0: string
   641 compiler.err.proc.processor.cant.instantiate=\
   642     Could not instantiate an instance of processor ''{0}''
   644 compiler.err.proc.processor.constructor.error=\
   645     Exception thrown while constructing Processor object: {0}
   647 # 0: string
   648 compiler.err.proc.processor.not.found=\
   649     Annotation processor ''{0}'' not found
   651 # 0: string
   652 compiler.err.proc.processor.wrong.type=\
   653     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
   655 compiler.err.proc.service.problem=\
   656     Error creating a service loader to load Processors.
   658 compiler.err.proc.bad.config.file=\
   659     Bad service configuration file, or exception thrown while constructing Processor object: {0}
   661 compiler.err.proc.cant.create.loader=\
   662     Could not create class loader for annotation processors: {0}
   664 # 0: unused
   665 compiler.err.qualified.new.of.static.class=\
   666     qualified new of static class
   668 compiler.err.recursive.ctor.invocation=\
   669     recursive constructor invocation
   671 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
   672 compiler.err.ref.ambiguous=\
   673     reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
   675 compiler.err.repeated.annotation.target=\
   676     repeated annotation target
   678 compiler.err.repeated.interface=\
   679     repeated interface
   681 compiler.err.repeated.modifier=\
   682     repeated modifier
   684 # 0: symbol, 1: set of modifier, 2: symbol
   685 compiler.err.report.access=\
   686     {0} has {1} access in {2}
   688 compiler.err.ret.outside.meth=\
   689     return outside method
   691 compiler.err.signature.doesnt.match.supertype=\
   692     signature does not match {0}; incompatible supertype
   694 compiler.err.signature.doesnt.match.intf=\
   695     signature does not match {0}; incompatible interfaces
   697 # 0: symbol, 1: symbol, 2: symbol
   698 compiler.err.does.not.override.abstract=\
   699     {0} is not abstract and does not override abstract method {1} in {2}
   701 compiler.err.source.cant.overwrite.input.file=\
   702     error writing source; cannot overwrite input file {0}
   704 compiler.err.stack.sim.error=\
   705     Internal error: stack sim error on {0}
   707 compiler.err.static.imp.only.classes.and.interfaces=\
   708     static import only from classes and interfaces
   710 compiler.err.string.const.req=\
   711     constant string expression required
   713 # 0: symbol, 1: symbol
   714 compiler.err.synthetic.name.conflict=\
   715     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   717 # 0: symbol, 1: symbol
   718 compiler.warn.synthetic.name.conflict=\
   719     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   721 compiler.err.throws.not.allowed.in.intf.annotation=\
   722     throws clause not allowed in @interface members
   724 compiler.err.try.without.catch.or.finally=\
   725     ''try'' without ''catch'' or ''finally''
   727 compiler.err.try.without.catch.finally.or.resource.decls=\
   728     ''try'' without ''catch'', ''finally'' or resource declarations
   730 # 0: symbol
   731 compiler.err.type.doesnt.take.params=\
   732     type {0} does not take parameters
   734 compiler.err.type.var.cant.be.deref=\
   735     cannot select from a type variable
   737 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
   738     a type variable may not be followed by other bounds
   740 compiler.err.type.var.more.than.once=\
   741     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
   743 compiler.err.type.var.more.than.once.in.result=\
   744     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
   746 # 0: type, 1: type, 2: string
   747 compiler.err.types.incompatible.diff.ret=\
   748     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
   750 compiler.err.unclosed.char.lit=\
   751     unclosed character literal
   753 compiler.err.unclosed.comment=\
   754     unclosed comment
   756 compiler.err.unclosed.str.lit=\
   757     unclosed string literal
   759 compiler.err.unknown.enum.constant=\
   760     in class file {0}: unknown enum constant {1}.{2}
   762 # 0: name
   763 compiler.err.unsupported.encoding=\
   764     unsupported encoding: {0}
   766 compiler.err.io.exception=\
   767     error reading source file: {0}
   769 # 0: name
   770 compiler.err.undef.label=\
   771     undefined label: {0}
   773 compiler.err.undetermined.type=\
   774     cannot infer type arguments for {0}
   776 # 0: type, 1: message segment
   777 compiler.err.undetermined.type.1=\
   778     cannot infer type arguments for {0};\n\
   779     reason: {1}
   781 # 0: list of type, 1: message segment
   782 compiler.err.invalid.inferred.types=\
   783     invalid inferred types for {0}; {1}
   785 # 0: message segment, 1: unused
   786 compiler.err.cant.apply.diamond=\
   787     cannot infer type arguments for {0}
   789 # 0: message segment, 1: message segment
   790 compiler.err.cant.apply.diamond.1=\
   791     cannot infer type arguments for {0};\n\
   792     reason: {1}
   794 compiler.err.unreachable.stmt=\
   795     unreachable statement
   797 compiler.err.initializer.must.be.able.to.complete.normally=\
   798     initializer must be able to complete normally
   800 # 0: type
   801 compiler.err.unreported.exception.need.to.catch.or.throw=\
   802     unreported exception {0}; must be caught or declared to be thrown
   804 # 0: type
   805 compiler.err.unreported.exception.default.constructor=\
   806     unreported exception {0} in default constructor
   808 # 0: type, 1: name
   809 compiler.err.unreported.exception.implicit.close=\
   810     unreported exception {0}; must be caught or declared to be thrown\n\
   811     exception thrown from implicit call to close() on resource variable ''{1}''
   813 compiler.err.unsupported.cross.fp.lit=\
   814     hexadecimal floating-point literals are not supported on this VM
   816 compiler.err.void.not.allowed.here=\
   817     ''void'' type not allowed here
   819 # 0: string
   820 compiler.err.wrong.number.type.args=\
   821     wrong number of type arguments; required {0}
   823 # 0: symbol
   824 compiler.err.var.might.already.be.assigned=\
   825     variable {0} might already have been assigned
   827 # 0: symbol
   828 compiler.err.var.might.not.have.been.initialized=\
   829     variable {0} might not have been initialized
   831 # 0: symbol
   832 compiler.err.var.might.be.assigned.in.loop=\
   833     variable {0} might be assigned in loop
   835 # 0: symbol, 1: message segment
   836 compiler.err.varargs.invalid.trustme.anno=\
   837     Invalid {0} annotation. {1}
   839 # 0: type
   840 compiler.misc.varargs.trustme.on.reifiable.varargs=\
   841     Varargs element type {0} is reifiable.
   843 # 0: symbol
   844 compiler.misc.varargs.trustme.on.non.varargs.meth=\
   845     Method {0} is not a varargs method.
   847 # 0: symbol
   848 compiler.misc.varargs.trustme.on.virtual.varargs=\
   849     Instance method {0} is not final.
   851 # 0: type, 1: kind, 2: symbol
   852 compiler.misc.inaccessible.varargs.type=\
   853     formal varargs element type {0} is not accessible from {1} {2}
   855 # In the following string, {1} will always be the detail message from
   856 # java.io.IOException.
   857 # 0: symbol, 1: string
   858 compiler.err.class.cant.write=\
   859     error while writing {0}: {1}
   861 # In the following string, {0} is the name of the class in the Java source.
   862 # It really should be used two times..
   863 # 0: name
   864 compiler.err.class.public.should.be.in.file=\
   865     class {0} is public, should be declared in a file named {0}.java
   867 ## All errors which do not refer to a particular line in the source code are
   868 ## preceded by this string.
   869 compiler.err.error=\
   870     error:\u0020
   872 # The following error messages do not refer to a line in the source code.
   873 compiler.err.cant.read.file=\
   874     cannot read: {0}
   876 #####
   878 # Fatal Errors
   880 compiler.misc.fatal.err.no.java.lang=\
   881     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
   883 compiler.misc.fatal.err.cant.locate.meth=\
   884     Fatal Error: Unable to find method {0}
   886 compiler.misc.fatal.err.cant.locate.field=\
   887     Fatal Error: Unable to find field {0}
   889 compiler.misc.fatal.err.cant.locate.ctor=\
   890     Fatal Error: Unable to find constructor for {0}
   892 compiler.misc.fatal.err.cant.close.loader=\
   893     Fatal Error: Cannot close class loader for annotation processors
   895 #####
   897 ##
   898 ## miscellaneous strings
   899 ##
   901 compiler.misc.source.unavailable=\
   902     (source unavailable)
   904 compiler.misc.base.membership=\
   905     all your base class are belong to us
   907 # 0: string, 1: string, 2: boolean
   908 compiler.misc.x.print.processor.info=\
   909     Processor {0} matches {1} and returns {2}.
   911 # 0: number, 1: string, 2: set of symbol, 3: boolean
   912 compiler.misc.x.print.rounds=\
   913     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
   915 #####
   917 ## The following string will appear before all messages keyed as:
   918 ## "compiler.note".
   919 compiler.note.note=\
   920     Note:\u0020
   922 # 0: file name
   923 compiler.note.deprecated.filename=\
   924     {0} uses or overrides a deprecated API.
   926 compiler.note.deprecated.plural=\
   927     Some input files use or override a deprecated API.
   929 # The following string may appear after one of the above deprecation
   930 # messages.
   931 compiler.note.deprecated.recompile=\
   932     Recompile with -Xlint:deprecation for details.
   934 # 0: file name
   935 compiler.note.deprecated.filename.additional=\
   936     {0} has additional uses or overrides of a deprecated API.
   938 compiler.note.deprecated.plural.additional=\
   939     Some input files additionally use or override a deprecated API.
   941 # 0: file name
   942 compiler.note.unchecked.filename=\
   943     {0} uses unchecked or unsafe operations.
   945 compiler.note.unchecked.plural=\
   946     Some input files use unchecked or unsafe operations.
   948 # The following string may appear after one of the above deprecation
   949 # messages.
   950 compiler.note.unchecked.recompile=\
   951     Recompile with -Xlint:unchecked for details.
   953 # 0: file name
   954 compiler.note.unchecked.filename.additional=\
   955     {0} has additional unchecked or unsafe operations.
   957 compiler.note.unchecked.plural.additional=\
   958     Some input files additionally use unchecked or unsafe operations.
   960 # 0: file name
   961 compiler.note.sunapi.filename=\
   962     {0} uses internal proprietary API that may be removed in a future release.
   964 compiler.note.sunapi.plural=\
   965     Some input files use internal proprietary API that may be removed in a future release.
   967 # The following string may appear after one of the above sunapi messages.
   968 compiler.note.sunapi.recompile=\
   969     Recompile with -Xlint:sunapi for details.
   971 # 0: file name
   972 compiler.note.sunapi.filename.additional=\
   973     {0} uses additional internal proprietary API that may be removed in a future release.
   975 compiler.note.sunapi.plural.additional=\
   976     Some input files additionally use internal proprietary API that may be removed in a future release.
   978 # Notes related to annotation processing
   980 # Print a client-generated note; assumed to be localized, no translation required
   981 # 0: string
   982 compiler.note.proc.messager=\
   983     {0}
   985 #####
   987 # 0: number
   988 compiler.misc.count.error=\
   989     {0} error
   991 # 0: number
   992 compiler.misc.count.error.plural=\
   993     {0} errors
   995 # 0: number
   996 compiler.misc.count.warn=\
   997     {0} warning
   999 # 0: number
  1000 compiler.misc.count.warn.plural=\
  1001     {0} warnings
  1003 compiler.misc.version.not.available=\
  1004     (version info not available)
  1006 ## extra output when using -verbose (JavaCompiler)
  1008 # 0: symbol
  1009 compiler.misc.verbose.checking.attribution=\
  1010     [checking {0}]
  1012 # 0: string
  1013 compiler.misc.verbose.parsing.done=\
  1014     [parsing completed {0}ms]
  1016 # 0: file name
  1017 compiler.misc.verbose.parsing.started=\
  1018     [parsing started {0}]
  1020 # 0: string
  1021 compiler.misc.verbose.total=\
  1022     [total {0}ms]
  1024 # 0: file name
  1025 compiler.misc.verbose.wrote.file=\
  1026     [wrote {0}]
  1028 ## extra output when using -verbose (Retro)
  1029 compiler.misc.verbose.retro=\
  1030     [retrofitting {0}]
  1032 compiler.misc.verbose.retro.with=\
  1033     \tretrofitting {0} with {1}
  1035 compiler.misc.verbose.retro.with.list=\
  1036     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
  1038 ## extra output when using -verbose (code/ClassReader)
  1039 # 0: string
  1040 compiler.misc.verbose.loading=\
  1041     [loading {0}]
  1043 # 0: string
  1044 compiler.misc.verbose.sourcepath=\
  1045     [search path for source files: {0}]
  1047 # 0: string
  1048 compiler.misc.verbose.classpath=\
  1049     [search path for class files: {0}]
  1051 ## extra output when using -checkclassfile (code/ClassReader)
  1052 compiler.misc.ccf.found.later.version=\
  1053     class file has later version than expected: {0}
  1055 compiler.misc.ccf.unrecognized.attribute=\
  1056     unrecognized attribute: {0}
  1058 ## extra output when using -prompt (util/Log)
  1059 compiler.misc.resume.abort=\
  1060     R)esume, A)bort>
  1062 #####
  1064 ##
  1065 ## warnings
  1066 ##
  1068 ## All warning messages are preceded by the following string.
  1069 compiler.warn.warning=\
  1070     warning:\u0020
  1072 ## Warning messages may also include the following prefix to identify a
  1073 ## lint option
  1074 # 0: option name
  1075 compiler.warn.lintOption=\
  1076     [{0}]\u0020
  1078 # 0: symbol
  1079 compiler.warn.constant.SVUID=\
  1080     serialVersionUID must be constant in class {0}
  1082 # 0: file name
  1083 compiler.warn.dir.path.element.not.found=\
  1084     bad path element "{0}": no such directory
  1086 compiler.warn.finally.cannot.complete=\
  1087     finally clause cannot complete normally
  1089 # 0: symbol, 1: symbol
  1090 compiler.warn.has.been.deprecated=\
  1091     {0} in {1} has been deprecated
  1093 # 0: symbol
  1094 compiler.warn.sun.proprietary=\
  1095     {0} is internal proprietary API and may be removed in a future release
  1097 compiler.warn.illegal.char.for.encoding=\
  1098     unmappable character for encoding {0}
  1100 # 0: symbol
  1101 compiler.warn.improper.SVUID=\
  1102     serialVersionUID must be declared static final in class {0}
  1104 # 0: type, 1: type
  1105 compiler.warn.inexact.non-varargs.call=\
  1106     non-varargs call of varargs method with inexact argument type for last parameter;\n\
  1107     cast to {0} for a varargs call\n\
  1108     cast to {1} for a non-varargs call and to suppress this warning
  1110 # 0: list of type
  1111 compiler.warn.unreachable.catch=\
  1112     unreachable catch clause\n\
  1113     thrown type {0} has already been caught
  1115 # 0: list of type
  1116 compiler.warn.unreachable.catch.1=\
  1117     unreachable catch clause\n\
  1118     thrown types {0} have already been caught
  1120 # 0: symbol
  1121 compiler.warn.long.SVUID=\
  1122     serialVersionUID must be of type long in class {0}
  1124 # 0: symbol
  1125 compiler.warn.missing.SVUID=\
  1126     serializable class {0} has no definition of serialVersionUID
  1128 # 0: message segment
  1129 compiler.warn.override.varargs.missing=\
  1130     {0}; overridden method has no ''...''
  1132 # 0: message segment
  1133 compiler.warn.override.varargs.extra=\
  1134     {0}; overriding method is missing ''...''
  1136 compiler.warn.override.bridge=\
  1137     {0}; overridden method is a bridge method
  1139 # 0: symbol
  1140 compiler.warn.pkg-info.already.seen=\
  1141     a package-info.java file has already been seen for package {0}
  1143 # 0: file name
  1144 compiler.warn.path.element.not.found=\
  1145     bad path element "{0}": no such file or directory
  1147 compiler.warn.possible.fall-through.into.case=\
  1148     possible fall-through into case
  1150 # 0: type
  1151 compiler.warn.redundant.cast=\
  1152     redundant cast to {0}
  1154 # 0: number
  1155 compiler.warn.position.overflow=\
  1156     Position encoding overflows at line {0}
  1158 # 0: file name, 1: number, 2: number
  1159 compiler.warn.big.major.version=\
  1160     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
  1161     It is recommended that the compiler be upgraded.
  1163 # 0: symbol kind, 1: symbol
  1164 compiler.warn.static.not.qualified.by.type=\
  1165     static {0} should be qualified by type name, {1}, instead of by an expression
  1167 # 0: string
  1168 compiler.warn.source.no.bootclasspath=\
  1169     bootstrap class path not set in conjunction with -source {0}
  1171 # 0: name, 1: number, 2: number, 3: number, 4: number
  1172 compiler.warn.future.attr=\
  1173     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
  1175 # Warnings related to annotation processing
  1176 # 0: name
  1177 compiler.warn.proc.package.does.not.exist=\
  1178     package {0} does not exist
  1180 # 0: name
  1181 compiler.warn.proc.file.reopening=\
  1182     Attempt to create a file for ''{0}'' multiple times
  1184 # 0: name
  1185 compiler.warn.proc.type.already.exists=\
  1186     A file for type ''{0}'' already exists on the sourcepath or classpath
  1188 # 0: name
  1189 compiler.warn.proc.type.recreate=\
  1190     Attempt to create a file for type ''{0}'' multiple times
  1192 # 0: string
  1193 compiler.warn.proc.illegal.file.name=\
  1194     Cannot create file for illegal name ''{0}''.
  1196 # 0: string, 1: string
  1197 compiler.warn.proc.suspicious.class.name=\
  1198     Creating file for a type whose name ends in {1}: ''{0}''
  1200 # 0: name
  1201 compiler.warn.proc.file.create.last.round=\
  1202     File for type ''{0}'' created in the last round will not be subject to annotation processing.
  1204 # 0: string, 1: string
  1205 compiler.warn.proc.malformed.supported.string=\
  1206     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
  1208 # 0: set of string
  1209 compiler.warn.proc.annotations.without.processors=\
  1210     No processor claimed any of these annotations: {0}
  1212 # 0: source version, 1: string, 2: string
  1213 compiler.warn.proc.processor.incompatible.source.version=\
  1214     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
  1216 compiler.warn.proc.proc-only.requested.no.procs=\
  1217     Annotation processing without compilation requested but no processors were found.
  1219 compiler.warn.proc.use.implicit=\
  1220     Implicitly compiled files were not subject to annotation processing.\n\
  1221     Use -implicit to specify a policy for implicit compilation.
  1223 compiler.warn.proc.use.proc.or.implicit=\
  1224     Implicitly compiled files were not subject to annotation processing.\n\
  1225     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
  1227 # Print a client-generated warning; assumed to be localized, no translation required
  1228 # 0: string
  1229 compiler.warn.proc.messager=\
  1230     {0}
  1232 # 0: set of name
  1233 compiler.warn.proc.unclosed.type.files=\
  1234     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
  1236 # 0: string
  1237 compiler.warn.proc.unmatched.processor.options=\
  1238     The following options were not recognized by any processor: ''{0}''
  1240 compiler.warn.try.explicit.close.call=\
  1241     explicit call to close() on an auto-closeable resource
  1243 # 0: symbol
  1244 compiler.warn.try.resource.not.referenced=\
  1245     auto-closeable resource {0} is never referenced in body of corresponding try statement
  1247 # 0: type
  1248 compiler.warn.try.resource.throws.interrupted.exc=\
  1249     auto-closeable resource {0} has a member method close() that could throw InterruptedException
  1251 compiler.warn.unchecked.assign=\
  1252     unchecked assignment: {0} to {1}
  1254 # 0: symbol, 1: type
  1255 compiler.warn.unchecked.assign.to.var=\
  1256     unchecked assignment to variable {0} as member of raw type {1}
  1258 # 0: symbol, 1: type
  1259 compiler.warn.unchecked.call.mbr.of.raw.type=\
  1260     unchecked call to {0} as a member of the raw type {1}
  1262 compiler.warn.unchecked.cast.to.type=\
  1263     unchecked cast to type {0}
  1265 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
  1266 compiler.warn.unchecked.meth.invocation.applied=\
  1267     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
  1268     required: {2}\n\
  1269     found: {3}
  1271 # 0: type
  1272 compiler.warn.unchecked.generic.array.creation=\
  1273     unchecked generic array creation for varargs parameter of type {0}
  1275 # 0: type
  1276 compiler.warn.unchecked.varargs.non.reifiable.type=\
  1277     Possible heap pollution from parameterized vararg type {0}
  1279 # 0: symbol
  1280 compiler.warn.varargs.unsafe.use.varargs.param=\
  1281     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
  1283 compiler.warn.missing.deprecated.annotation=\
  1284     deprecated item is not annotated with @Deprecated
  1286 compiler.warn.invalid.archive.file=\
  1287     Unexpected file on path: {0}
  1289 compiler.warn.unexpected.archive.file=\
  1290     Unexpected extension for archive file: {0}
  1292 compiler.warn.div.zero=\
  1293     division by zero
  1295 compiler.warn.empty.if=\
  1296     empty statement after if
  1298 compiler.warn.annotation.method.not.found=\
  1299     Cannot find annotation method ''{1}()'' in type ''{0}''
  1301 compiler.warn.annotation.method.not.found.reason=\
  1302     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
  1304 # 0: type, 1: type
  1305 compiler.warn.raw.class.use=\
  1306     found raw type: {0}\n\
  1307     missing type arguments for generic class {1}
  1309 # 0: unused, 1: unused
  1310 compiler.warn.diamond.redundant.args=\
  1311     redundant type arguments in new expression (use diamond operator instead).
  1313 # 0: type, 1: type
  1314 compiler.warn.diamond.redundant.args.1=\
  1315     redundant type arguments in new expression (use diamond operator instead).\n\
  1316     explicit: {0}\n\
  1317     inferred: {1}
  1319 # 0: symbol, 1: message segment
  1320 compiler.warn.varargs.redundant.trustme.anno=\
  1321     Redundant {0} annotation. {1}
  1323 #####
  1325 ## The following are tokens which are non-terminals in the language. They should
  1326 ## be named as JLS3 calls them when translated to the appropriate language.
  1327 compiler.misc.token.identifier=\
  1328     <identifier>
  1330 compiler.misc.token.character=\
  1331     <character>
  1333 compiler.misc.token.string=\
  1334     <string>
  1336 compiler.misc.token.integer=\
  1337     <integer>
  1339 compiler.misc.token.long-integer=\
  1340     <long integer>
  1342 compiler.misc.token.float=\
  1343     <float>
  1345 compiler.misc.token.double=\
  1346     <double>
  1348 compiler.misc.token.bad-symbol=\
  1349     <bad symbol>
  1351 compiler.misc.token.end-of-input=\
  1352     <end of input>
  1354 ## The argument to the following string will always be one of the following:
  1355 ## 1. one of the above non-terminals
  1356 ## 2. a keyword (JLS1.8)
  1357 ## 3. a boolean literal (JLS3.10.3)
  1358 ## 4. the null literal (JLS3.10.7)
  1359 ## 5. a Java separator (JLS3.11)
  1360 ## 6. an operator (JLS3.12)
  1361 ##
  1362 ## This is the only place these tokens will be used.
  1363 # 0: token
  1364 compiler.err.expected=\
  1365     {0} expected
  1367 # 0: token, 1: token
  1368 compiler.err.expected2=\
  1369     {0} or {1} expected
  1371 # 0: token, 1: token, 2: token
  1372 compiler.err.expected3=\
  1373     {0}, {1}, or {2} expected
  1375 compiler.err.premature.eof=\
  1376     reached end of file while parsing
  1378 ## The following are related in form, but do not easily fit the above paradigm.
  1379 compiler.err.dot.class.expected=\
  1380     ''.class'' expected
  1382 ## The argument to this string will always be either 'case' or 'default'.
  1383 # 0: token
  1384 compiler.err.orphaned=\
  1385     orphaned {0}
  1387 # 0: name
  1388 compiler.misc.anonymous.class=\
  1389     <anonymous {0}>
  1391 # 0: name, 1: type
  1392 compiler.misc.type.captureof=\
  1393     capture#{0} of {1}
  1395 compiler.misc.type.captureof.1=\
  1396     capture#{0}
  1398 compiler.misc.type.none=\
  1399     <none>
  1401 compiler.misc.unnamed.package=\
  1402     unnamed package
  1404 #####
  1406 # 0: symbol, 1: message segment
  1407 compiler.err.cant.access=\
  1408     cannot access {0}\n\
  1409     {1}
  1411 compiler.misc.bad.class.file.header=\
  1412     bad class file: {0}\n\
  1413     {1}\n\
  1414     Please remove or make sure it appears in the correct subdirectory of the classpath.
  1416 # 0: file name, 1: message segment
  1417 compiler.misc.bad.source.file.header=\
  1418     bad source file: {0}\n\
  1419     {1}\n\
  1420     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
  1422 ## The following are all possible strings for the second argument ({1}) of the
  1423 ## above strings.
  1424 compiler.misc.bad.class.signature=\
  1425     bad class signature: {0}
  1427 compiler.misc.bad.enclosing.method=\
  1428     bad enclosing method attribute: {0}
  1430 compiler.misc.bad.runtime.invisible.param.annotations=\
  1431     bad RuntimeInvisibleParameterAnnotations attribute: {0}
  1433 compiler.misc.bad.const.pool.tag=\
  1434     bad constant pool tag: {0}
  1436 compiler.misc.bad.const.pool.tag.at=\
  1437     bad constant pool tag: {0} at {1}
  1439 compiler.misc.bad.signature=\
  1440     bad signature: {0}
  1442 compiler.misc.class.file.wrong.class=\
  1443     class file contains wrong class: {0}
  1445 compiler.misc.class.file.not.found=\
  1446     class file for {0} not found
  1448 # 0: name
  1449 compiler.misc.file.doesnt.contain.class=\
  1450     file does not contain class {0}
  1452 compiler.misc.file.does.not.contain.package=\
  1453     file does not contain package {0}
  1455 compiler.misc.illegal.start.of.class.file=\
  1456     illegal start of class file
  1458 compiler.misc.unable.to.access.file=\
  1459     unable to access file: {0}
  1461 compiler.misc.unicode.str.not.supported=\
  1462     unicode string in class file not supported
  1464 compiler.misc.undecl.type.var=\
  1465     undeclared type variable: {0}
  1467 compiler.misc.wrong.version=\
  1468     class file has wrong version {0}.{1}, should be {2}.{3}
  1470 #####
  1472 # 0: type, 1: type or symbol
  1473 compiler.err.not.within.bounds=\
  1474     type argument {0} is not within bounds of type-variable {1}
  1476 ## The following are all possible strings for the second argument ({1}) of the
  1477 ## above string.
  1479 ## none yet...
  1481 #####
  1483 # 0: message segment, 1: type, 2: type
  1484 compiler.err.prob.found.req=\
  1485     {0}\n\
  1486     required: {2}\n\
  1487     found:    {1}
  1489 # 0: message segment, 1: type, 2: type
  1490 compiler.warn.prob.found.req=\
  1491     {0}\n\
  1492     required: {2}\n\
  1493     found:    {1}
  1495 compiler.err.prob.found.req.1=\
  1496     {0} {3}\n\
  1497     required: {2}\n\
  1498     found:    {1}
  1500 ## The following are all possible strings for the first argument ({0}) of the
  1501 ## above strings.
  1502 compiler.misc.incompatible.types=\
  1503     incompatible types
  1505 # 0: message segment
  1506 compiler.misc.incompatible.types.1=\
  1507     incompatible types; {0}
  1509 compiler.misc.inconvertible.types=\
  1510     inconvertible types
  1512 compiler.misc.possible.loss.of.precision=\
  1513     possible loss of precision
  1515 compiler.misc.unchecked.assign=\
  1516     unchecked conversion
  1518 # compiler.misc.storecheck=\
  1519 #     assignment might cause later store checks to fail
  1520 # compiler.misc.unchecked=\
  1521 #     assigned array cannot dynamically check its stores
  1522 compiler.misc.unchecked.cast.to.type=\
  1523     unchecked cast
  1525 compiler.misc.assignment.from.super-bound=\
  1526     assignment from super-bound type {0}
  1528 compiler.misc.assignment.to.extends-bound=\
  1529     assignment to extends-bound type {0}
  1531 # compiler.err.star.expected=\
  1532 #     ''*'' expected
  1533 # compiler.err.no.elem.type=\
  1534 #     \[\*\] cannot have a type
  1536 compiler.misc.try.not.applicable.to.type=\
  1537     try-with-resources not applicable to variable type
  1539 #####
  1541 # 0: message segment or type, 1: message segment
  1542 compiler.err.type.found.req=\
  1543     unexpected type\n\
  1544     required: {1}\n\
  1545     found:    {0}
  1547 ## The following are all possible strings for the first argument ({0}) of the
  1548 ## above string.
  1549 compiler.misc.type.req.class=\
  1550     class
  1552 compiler.misc.type.req.class.array=\
  1553     class or array
  1555 compiler.misc.type.req.array.or.iterable=\
  1556     array or java.lang.Iterable
  1558 compiler.misc.type.req.ref=\
  1559     reference
  1561 compiler.misc.type.req.exact=\
  1562     class or interface without bounds
  1564 # 0: type
  1565 compiler.misc.type.parameter=\
  1566     type parameter {0}
  1568 #####
  1570 ## The following are all possible strings for the last argument of all those
  1571 ## diagnostics whose key ends in ".1"
  1572 compiler.misc.undetermined.type=\
  1573     undetermined type
  1575 compiler.misc.type.variable.has.undetermined.type=\
  1576     type variable {0} has undetermined type
  1578 # 0: type, 1: list of type
  1579 compiler.misc.no.unique.maximal.instance.exists=\
  1580     no unique maximal instance exists for type variable {0} with upper bounds {1}
  1582 compiler.misc.no.unique.minimal.instance.exists=\
  1583     no unique minimal instance exists for type variable {0} with lower bounds {1}
  1585 # 0: list of type, 1: type, 2: type
  1586 compiler.misc.infer.no.conforming.instance.exists=\
  1587     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
  1589 # 0: list of type, 1: type, 2: type
  1590 compiler.misc.infer.no.conforming.assignment.exists=\
  1591     no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
  1593 compiler.misc.infer.arg.length.mismatch=\
  1594     cannot instantiate from arguments because actual and formal argument lists differ in length
  1596 # 0: type, 1: list of type
  1597 compiler.misc.inferred.do.not.conform.to.bounds=\
  1598     inferred type does not conform to declared bound(s)\n\
  1599     inferred: {0}\n\
  1600     bound(s): {1}
  1602 # 0: symbol
  1603 compiler.misc.diamond=\
  1604     {0}<>
  1606 # 0: type
  1607 compiler.misc.diamond.non.generic=\
  1608     cannot use ''<>'' with non-generic class {0}
  1610 # 0: type, 1: list of type
  1611 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  1612     explicit type argument {0} does not conform to declared bound(s) {1}
  1614 compiler.misc.arg.length.mismatch=\
  1615     actual and formal argument lists differ in length
  1617 # 0: type, 1: type
  1618 compiler.misc.no.conforming.assignment.exists=\
  1619     actual argument {0} cannot be converted to {1} by method invocation conversion
  1621 # 0: type, 1: type
  1622 compiler.misc.varargs.argument.mismatch=\
  1623     argument type {0} does not conform to vararg element type {1}
  1625 #####
  1627 ## The first argument ({0}) is a "kindname".
  1628 # 0: symbol kind, 1: symbol, 2: symbol
  1629 compiler.err.abstract.cant.be.accessed.directly=\
  1630     abstract {0} {1} in {2} cannot be accessed directly
  1632 ## The first argument ({0}) is a "kindname".
  1633 # 0: symbol kind, 1: symbol
  1634 compiler.err.non-static.cant.be.ref=\
  1635     non-static {0} {1} cannot be referenced from a static context
  1637 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  1638 ## of kindnames (the list should be identical to that provided in source.
  1639 compiler.err.unexpected.type=\
  1640     unexpected type\n\
  1641     required: {0}\n\
  1642     found:    {1}
  1644 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  1645 ## The second argument {1} is the non-resolved symbol
  1646 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  1647 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  1648 # 0: symbol kind, 1: name, 2: unused, 3: unused
  1649 compiler.err.cant.resolve=\
  1650     cannot find symbol\n\
  1651     symbol: {0} {1}
  1653 # 0: symbol kind, 1: name, 2: unused, 3: list of type
  1654 compiler.err.cant.resolve.args=\
  1655     cannot find symbol\n\
  1656     symbol: {0} {1}({3})
  1658 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
  1659 compiler.err.cant.resolve.args.params=\
  1660     cannot find symbol\n\
  1661     symbol: {0} <{2}>{1}({3})
  1663 ## arguments from {0} to {3} have the same meaning as above
  1664 ## The fifth argument {4} is a location subdiagnostic (see below)
  1665 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
  1666 compiler.err.cant.resolve.location=\
  1667     cannot find symbol\n\
  1668     symbol:   {0} {1}\n\
  1669     location: {4}
  1671 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  1672 compiler.err.cant.resolve.location.args=\
  1673     cannot find symbol\n\
  1674     symbol:   {0} {1}({3})\n\
  1675     location: {4}
  1677 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  1678 compiler.err.cant.resolve.location.args.params=\
  1679     cannot find symbol\n\
  1680     symbol:   {0} <{2}>{1}({3})\n\
  1681     location: {4}
  1683 ##a location subdiagnostic is composed as follows:
  1684 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  1685 ## The second argument {1} is the location name
  1686 ## The third argument {2} is the location type (only when {1} is a variable name)
  1688 # 0: symbol kind, 1: symbol, 2: unused
  1689 compiler.misc.location=\
  1690     {0} {1}
  1692 # 0: symbol kind, 1: symbol, 2: type
  1693 compiler.misc.location.1=\
  1694     {0} {1} of type {2}
  1696 ## The following are all possible string for "kindname".
  1697 ## They should be called whatever the JLS calls them after it been translated
  1698 ## to the appropriate language.
  1699 # compiler.misc.kindname.constructor=\
  1700 #     static member
  1701 compiler.misc.kindname.annotation=\
  1702     @interface
  1704 compiler.misc.kindname.constructor=\
  1705     constructor
  1707 compiler.misc.kindname.enum=\
  1708     enum
  1710 compiler.misc.kindname.interface=\
  1711     interface
  1713 compiler.misc.kindname.static=\
  1714     static
  1716 compiler.misc.kindname.type.variable=\
  1717     type variable
  1719 compiler.misc.kindname.type.variable.bound=\
  1720     bound of type variable
  1722 compiler.misc.kindname.variable=\
  1723     variable
  1725 compiler.misc.kindname.value=\
  1726     value
  1728 compiler.misc.kindname.method=\
  1729     method
  1731 compiler.misc.kindname.class=\
  1732     class
  1734 compiler.misc.kindname.package=\
  1735     package
  1737 #####
  1739 compiler.misc.no.args=\
  1740     no arguments
  1742 # 0: message segment
  1743 compiler.err.override.static=\
  1744     {0}\n\
  1745     overriding method is static
  1747 # 0: message segment, 1: set of modifier
  1748 compiler.err.override.meth=\
  1749     {0}\n\
  1750     overridden method is {1}
  1752 # 0: message segment, 1: type
  1753 compiler.err.override.meth.doesnt.throw=\
  1754     {0}\n\
  1755     overridden method does not throw {1}
  1757 # In the following string {1} is a space separated list of Java Keywords, as
  1758 # they would have been declared in the source code
  1759 # 0: message segment, 1: set of modifier
  1760 compiler.err.override.weaker.access=\
  1761     {0}\n\
  1762     attempting to assign weaker access privileges; was {1}
  1764 # 0: message segment, 1: type, 2: type
  1765 compiler.err.override.incompatible.ret=\
  1766     {0}\n\
  1767     return type {1} is not compatible with {2}
  1769 # 0: message segment, 1: type, 2: type
  1770 compiler.warn.override.unchecked.ret=\
  1771     {0}\n\
  1772     return type requires unchecked conversion from {1} to {2}
  1774 # 0: message segment, 1: type
  1775 compiler.warn.override.unchecked.thrown=\
  1776     {0}\n\
  1777     overridden method does not throw {1}
  1779 ## The following are all possible strings for the first argument ({0}) of the
  1780 ## above strings.
  1781 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1782 compiler.misc.cant.override=\
  1783     {0} in {1} cannot override {2} in {3}
  1785 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1786 compiler.misc.cant.implement=\
  1787     {0} in {1} cannot implement {2} in {3}
  1789 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1790 compiler.misc.clashes.with=\
  1791     {0} in {1} clashes with {2} in {3}
  1793 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1794 compiler.misc.unchecked.override=\
  1795     {0} in {1} overrides {2} in {3}
  1797 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1798 compiler.misc.unchecked.implement=\
  1799     {0} in {1} implements {2} in {3}
  1801 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1802 compiler.misc.unchecked.clash.with=\
  1803     {0} in {1} overrides {2} in {3}
  1805 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1806 compiler.misc.varargs.override=\
  1807     {0} in {1} overrides {2} in {3}
  1809 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1810 compiler.misc.varargs.implement=\
  1811     {0} in {1} implements {2} in {3}
  1813 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  1814 compiler.misc.varargs.clash.with=\
  1815     {0} in {1} overrides {2} in {3}
  1817 compiler.misc.diamond.and.anon.class=\
  1818     cannot use ''<>'' with anonymous inner classes
  1820 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
  1821 compiler.misc.inapplicable.method=\
  1822     {0} {1}.{2} is not applicable\n\
  1823     ({3})
  1825 ########################################
  1826 # Diagnostics for language feature changes
  1827 ########################################
  1828 # 0: string
  1829 compiler.err.unsupported.fp.lit=\
  1830     hexadecimal floating point literals are not supported in -source {0}\n\
  1831     (use -source 5 or higher to enable hexadecimal floating point literals)
  1833 # 0: string
  1834 compiler.err.unsupported.binary.lit=\
  1835     binary literals are not supported in -source {0}\n\
  1836     (use -source 7 or higher to enable binary literals)
  1838 # 0: string
  1839 compiler.err.unsupported.underscore.lit=\
  1840     underscores in literals are not supported in -source {0}\n\
  1841     (use -source 7 or higher to enable underscores in literals)
  1843 # 0: string
  1844 compiler.err.try.with.resources.not.supported.in.source=\
  1845     try-with-resources is not supported in -source {0}\n\
  1846     (use -source 7 or higher to enable try-with-resources)
  1848 compiler.warn.enum.as.identifier=\
  1849     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  1850     (use -source 5 or higher to use ''enum'' as a keyword)
  1852 compiler.warn.assert.as.identifier=\
  1853     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  1854     (use -source 1.4 or higher to use ''assert'' as a keyword)
  1856 compiler.err.enum.as.identifier=\
  1857     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  1858     (use -source 1.4 or lower to use ''enum'' as an identifier)
  1860 compiler.err.assert.as.identifier=\
  1861     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  1862     (use -source 1.3 or lower to use ''assert'' as an identifier)
  1864 # 0: string
  1865 compiler.err.generics.not.supported.in.source=\
  1866     generics are not supported in -source {0}\n\
  1867     (use -source 5 or higher to enable generics)
  1869 # 0: string
  1870 compiler.err.varargs.not.supported.in.source=\
  1871     variable-arity methods are not supported in -source {0}\n\
  1872     (use -source 5 or higher to enable variable-arity methods)
  1874 # 0: string
  1875 compiler.err.annotations.not.supported.in.source=\
  1876     annotations are not supported in -source {0}\n\
  1877     (use -source 5 or higher to enable annotations)
  1879 #308 compiler.err.type.annotations.not.supported.in.source=\
  1880 #308     type annotations are not supported in -source {0}\n\
  1881 #308 (use -source 7 or higher to enable type annotations)
  1883 # 0: string
  1884 compiler.err.foreach.not.supported.in.source=\
  1885     for-each loops are not supported in -source {0}\n\
  1886     (use -source 5 or higher to enable for-each loops)
  1888 # 0: string
  1889 compiler.err.static.import.not.supported.in.source=\
  1890     static import declarations are not supported in -source {0}\n\
  1891     (use -source 5 or higher to enable static import declarations)
  1893 # 0: string
  1894 compiler.err.enums.not.supported.in.source=\
  1895     enums are not supported in -source {0}\n\
  1896     (use -source 5 or higher to enable enums)
  1898 # 0: string
  1899 compiler.err.diamond.not.supported.in.source=\
  1900     diamond operator is not supported in -source {0}\n\
  1901     (use -source 7 or higher to enable diamond operator)
  1903 # 0: string
  1904 compiler.err.multicatch.not.supported.in.source=\
  1905     multi-catch statement is not supported in -source {0}\n\
  1906     (use -source 7 or higher to enable multi-catch statement)
  1908 # 0: string
  1909 compiler.err.string.switch.not.supported.in.source=\
  1910     strings in switch are not supported in -source {0}\n\
  1911     (use -source 7 or higher to enable strings in switch)
  1913 ########################################
  1914 # Diagnostics for where clause implementation
  1915 # used by the RichDiagnosticFormatter.
  1916 ########################################
  1918 compiler.misc.type.null=\
  1919     <null>
  1921 # X#n (where n is an int id) is disambiguated tvar name
  1922 # 0: name, 1: number
  1923 compiler.misc.type.var=\
  1924     {0}#{1}
  1926 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
  1927 # 0: number
  1928 compiler.misc.captured.type=\
  1929     CAP#{0}
  1931 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
  1932 # 0: number
  1933 compiler.misc.intersection.type=\
  1934     INT#{0}
  1936 # where clause for captured type: contains upper ('extends {1}') and lower
  1937 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
  1938 # 0: type, 1: type, 2: type, 3: type
  1939 compiler.misc.where.captured=\
  1940     {0} extends {1} super: {2} from capture of {3}
  1942 # compact where clause for captured type: contains upper ('extends {1}') along
  1943 # with the wildcard that generated this captured type ({3})
  1944 # 0: type, 1: type, 2: unused, 3: type
  1945 compiler.misc.where.captured.1=\
  1946     {0} extends {1} from capture of {3}
  1948 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
  1949 # the kindname ({2}) and location ({3}) in which the typevar has been declared
  1950 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
  1951 compiler.misc.where.typevar=\
  1952     {0} extends {1} declared in {2} {3}
  1954 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
  1955 # in which the typevar has been declared
  1956 compiler.misc.where.typevar.1=\
  1957     {0} declared in {2} {3}
  1959 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
  1960 # of this intersection type
  1961 # 0: type, 1: list of type
  1962 compiler.misc.where.intersection=\
  1963     {0} extends {1}
  1965 ### Where clause headers ###
  1966 compiler.misc.where.description.captured=\
  1967     where {0} is a fresh type-variable:
  1969 # 0: set of type
  1970 compiler.misc.where.description.typevar=\
  1971     where {0} is a type-variable:
  1973 # 0: set of type
  1974 compiler.misc.where.description.intersection=\
  1975     where {0} is an intersection type:
  1977 # 0: set of type
  1978 compiler.misc.where.description.captured.1=\
  1979     where {0} are fresh type-variables:
  1981 # 0: set of type
  1982 compiler.misc.where.description.typevar.1=\
  1983     where {0} are type-variables:
  1985 compiler.misc.where.description.intersection.1=\
  1986     where {0} are intersection types:

mercurial