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

Mon, 24 Jan 2011 15:44:51 +0000

author
mcimadamore
date
Mon, 24 Jan 2011 15:44:51 +0000
changeset 829
ce6175cfe11e
parent 822
712be35e40b5
child 830
02e6e7dd1a64
permissions
-rw-r--r--

6968793: issues with diagnostics
Summary: several diagnostic improvements
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 ##
    27 ## errors
    28 ##
    30 compiler.err.abstract.cant.be.instantiated=\
    31     {0} is abstract; cannot be instantiated
    32 compiler.err.abstract.meth.cant.have.body=\
    33     abstract methods cannot have a body
    34 compiler.err.already.annotated=\
    35     {0} {1} has already been annotated
    36 compiler.err.already.defined=\
    37     {0} is already defined in {1}
    38 compiler.err.already.defined.single.import=\
    39     {0} is already defined in a single-type import
    40 compiler.err.already.defined.static.single.import=\
    41     {0} is already defined in a static single-type import
    42 compiler.err.already.defined.this.unit=\
    43     {0} is already defined in this compilation unit
    44 compiler.err.annotation.missing.default.value=\
    45     annotation {0} is missing value for the attribute {1}
    46 compiler.err.annotation.missing.default.value.1=\
    47     annotation {0} is missing values for attributes {1}
    48 compiler.err.annotation.not.valid.for.type=\
    49     annotation not valid for a value of type {0}
    50 compiler.err.annotation.type.not.applicable=\
    51     annotation type not applicable to this kind of declaration
    52 compiler.err.annotation.value.must.be.annotation=\
    53     annotation value must be an annotation
    54 compiler.err.annotation.value.must.be.class.literal=\
    55     annotation value must be a class literal
    56 compiler.err.annotation.value.must.be.name.value=\
    57     annotation values must be of the form ''name=value''
    58 compiler.err.annotation.value.not.allowable.type=\
    59     annotation value not of an allowable type
    60 compiler.err.anon.class.impl.intf.no.args=\
    61     anonymous class implements interface; cannot have arguments
    62 compiler.err.anon.class.impl.intf.no.typeargs=\
    63     anonymous class implements interface; cannot have type arguments
    64 compiler.err.anon.class.impl.intf.no.qual.for.new=\
    65     anonymous class implements interface; cannot have qualifier for new
    66 compiler.err.array.and.varargs=\
    67     cannot declare both {0} and {1} in {2}
    68 compiler.err.array.dimension.missing=\
    69     array dimension missing
    70 compiler.err.array.req.but.found=\
    71     array required, but {0} found
    73 compiler.err.assignment.from.super-bound=\
    74     assigning from wildcard {0}
    75 compiler.err.assignment.to.extends-bound=\
    76     assigning to wildcard {0}
    77 compiler.err.attribute.value.must.be.constant=\
    78     attribute value must be constant
    80 compiler.err.break.outside.switch.loop=\
    81     break outside switch or loop
    83 compiler.err.call.must.be.first.stmt.in.ctor=\
    84     call to {0} must be first statement in constructor
    85 compiler.err.cant.apply.symbol=\
    86     {0} {1} in {4} {5} cannot be applied to given types\n\
    87     required: {2}\n\
    88     found: {3}
    89 compiler.err.cant.apply.symbol.1=\
    90     {0} {1} in {4} {5} cannot be applied to given types;\n\
    91     required: {2}\n\
    92     found: {3}\n\
    93     reason: {6}
    94 compiler.err.cant.apply.symbols=\
    95     no suitable {0} found for {1}({2})
    96 compiler.err.cant.assign.val.to.final.var=\
    97     cannot assign a value to final variable {0}
    98 compiler.err.cant.deref=\
    99     {0} cannot be dereferenced
   100 compiler.err.cant.extend.intf.annotation=\
   101     ''extends'' not allowed for @interfaces
   102 compiler.err.cant.inherit.from.final=\
   103     cannot inherit from final {0}
   104 compiler.err.cant.ref.before.ctor.called=\
   105     cannot reference {0} before supertype constructor has been called
   106 compiler.err.cant.ret.val.from.meth.decl.void=\
   107     cannot return a value from method whose result type is void
   108 compiler.err.cant.select.static.class.from.param.type=\
   109     cannot select a static class from a parameterized type
   110 compiler.err.cant.inherit.diff.arg=\
   111     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   112 compiler.err.catch.without.try=\
   113     ''catch'' without ''try''
   114 compiler.err.clash.with.pkg.of.same.name=\
   115     {0} {1} clashes with package of same name
   116 compiler.err.const.expr.req=\
   117     constant expression required
   118 compiler.err.cont.outside.loop=\
   119     continue outside of loop
   120 compiler.err.cyclic.inheritance=\
   121     cyclic inheritance involving {0}
   122 compiler.err.cyclic.annotation.element=\
   123     cyclic annotation element type
   124 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   125     call to super not allowed in enum constructor
   126 compiler.err.no.superclass=\
   127     {0} has no superclass
   129 compiler.err.wrong.target.for.polymorphic.signature.definition=\
   130     MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
   132 compiler.err.concrete.inheritance.conflict=\
   133     methods {0} from {1} and {2} from {3} are inherited with the same signature
   135 compiler.err.default.allowed.in.intf.annotation.member=\
   136     default value only allowed in an @interface member
   137 compiler.err.doesnt.exist=\
   138     package {0} does not exist
   139 compiler.err.duplicate.annotation=\
   140     duplicate annotation
   141 compiler.err.duplicate.annotation.member.value=\
   142     duplicate annotation member value {0} in {1}
   143 compiler.err.duplicate.class=\
   144     duplicate class: {0}
   145 compiler.err.duplicate.case.label=\
   146     duplicate case label
   147 compiler.err.duplicate.default.label=\
   148     duplicate default label
   150 compiler.err.else.without.if=\
   151     ''else'' without ''if''
   152 compiler.err.empty.char.lit=\
   153     empty character literal
   154 compiler.err.encl.class.required=\
   155     an enclosing instance that contains {0} is required
   156 compiler.err.enum.annotation.must.be.enum.constant=\
   157     an enum annotation value must be an enum constant
   159 compiler.err.enum.cant.be.instantiated=\
   160     enum types may not be instantiated
   161 compiler.err.enum.label.must.be.unqualified.enum=\
   162     an enum switch case label must be the unqualified name of an enumeration constant
   163 compiler.err.enum.no.subclassing=\
   164     classes cannot directly extend java.lang.Enum
   165 compiler.err.enum.types.not.extensible=\
   166     enum types are not extensible
   167 compiler.err.enum.no.finalize=\
   168     enums cannot have finalize methods
   169 compiler.err.error.reading.file=\
   170     error reading {0}; {1}
   171 compiler.err.except.already.caught=\
   172     exception {0} has already been caught
   173 compiler.err.except.never.thrown.in.try=\
   174     exception {0} is never thrown in body of corresponding try statement
   176 compiler.err.final.parameter.may.not.be.assigned=\
   177     final parameter {0} may not be assigned
   178 compiler.err.try.resource.may.not.be.assigned=\
   179     auto-closeable resource {0} may not be assigned
   180 compiler.err.multicatch.parameter.may.not.be.assigned=\
   181     multi-catch parameter {0} may not be assigned
   182 compiler.err.finally.without.try=\
   183     ''finally'' without ''try''
   184 compiler.err.foreach.not.applicable.to.type=\
   185     for-each not applicable to expression type\n\
   186     required: {1}\n\
   187     found:    {0}
   188 compiler.err.fp.number.too.large=\
   189     floating point number too large
   190 compiler.err.fp.number.too.small=\
   191     floating point number too small
   193 compiler.err.generic.array.creation=\
   194     generic array creation
   195 compiler.err.generic.throwable=\
   196     a generic class may not extend java.lang.Throwable
   198 compiler.err.icls.cant.have.static.decl=\
   199     inner classes cannot have static declarations
   200 compiler.err.illegal.char=\
   201     illegal character: \\{0}
   202 compiler.err.illegal.char.for.encoding=\
   203     unmappable character for encoding {0}
   204 compiler.err.illegal.combination.of.modifiers=\
   205     illegal combination of modifiers: {0} and {1}
   206 compiler.err.illegal.enum.static.ref=\
   207     illegal reference to static field from initializer
   208 compiler.err.illegal.esc.char=\
   209     illegal escape character
   210 compiler.err.illegal.forward.ref=\
   211     illegal forward reference
   212 compiler.warn.forward.ref=\
   213     reference to variable ''{0}'' before it has been initialized
   214 compiler.err.illegal.self.ref=\
   215     self-reference in initializer
   216 compiler.warn.self.ref=\
   217     self-reference in initializer of variable ''{0}''
   218 compiler.err.illegal.generic.type.for.instof=\
   219     illegal generic type for instanceof
   220 compiler.err.illegal.initializer.for.type=\
   221     illegal initializer for {0}
   222 compiler.err.illegal.line.end.in.char.lit=\
   223     illegal line end in character literal
   224 compiler.err.illegal.nonascii.digit=\
   225     illegal non-ASCII digit
   226 compiler.err.illegal.underscore=\
   227     illegal underscore
   228 compiler.err.illegal.qual.not.icls=\
   229     illegal qualifier; {0} is not an inner class
   230 compiler.err.illegal.start.of.expr=\
   231     illegal start of expression
   232 compiler.err.illegal.start.of.type=\
   233     illegal start of type
   234 compiler.err.illegal.unicode.esc=\
   235     illegal unicode escape
   236 compiler.err.import.requires.canonical=\
   237     import requires canonical name for {0}
   238 compiler.err.improperly.formed.type.param.missing=\
   239     improperly formed type, some parameters are missing
   240 compiler.err.improperly.formed.type.inner.raw.param=\
   241     improperly formed type, type arguments given on a raw type
   242 compiler.err.incomparable.types=\
   243     incomparable types: {0} and {1}
   244 compiler.err.int.number.too.large=\
   245     integer number too large: {0}
   246 compiler.err.internal.error.cant.instantiate=\
   247     internal error; cannot instantiate {0} at {1} to ({2})
   248 compiler.err.intf.annotation.members.cant.have.params=\
   249     @interface members may not have parameters
   250 compiler.err.intf.annotation.cant.have.type.params=\
   251     @interface may not have type parameters
   252 compiler.err.intf.annotation.members.cant.have.type.params=\
   253     @interface members may not have type parameters
   254 compiler.err.intf.annotation.member.clash=\
   255     @interface member clashes with method ''{0}'' in {1}
   256 compiler.err.intf.expected.here=\
   257     interface expected here
   258 compiler.err.intf.meth.cant.have.body=\
   259     interface methods cannot have body
   260 compiler.err.invalid.annotation.member.type=\
   261     invalid type for annotation member
   262 compiler.err.invalid.binary.number=\
   263     binary numbers must contain at least one binary digit
   264 compiler.err.invalid.hex.number=\
   265     hexadecimal numbers must contain at least one hexadecimal digit
   266 compiler.err.invalid.meth.decl.ret.type.req=\
   267     invalid method declaration; return type required
   269 compiler.err.label.already.in.use=\
   270     label {0} already in use
   271 compiler.err.local.var.accessed.from.icls.needs.final=\
   272     local variable {0} is accessed from within inner class; needs to be declared final
   273 compiler.err.local.enum=\
   274     enum types must not be local
   275 compiler.err.cannot.create.array.with.type.arguments=\
   276     cannot create array with type arguments
   278 #
   279 # limits.  We don't give the limits in the diagnostic because we expect
   280 # them to change, yet we want to use the same diagnostic.  These are all
   281 # detected during code generation.
   282 #
   283 compiler.err.limit.code=\
   284     code too large
   285 compiler.err.limit.code.too.large.for.try.stmt=\
   286     code too large for try statement
   287 compiler.err.limit.dimensions=\
   288     array type has too many dimensions
   289 compiler.err.limit.locals=\
   290     too many local variables
   291 compiler.err.limit.parameters=\
   292     too many parameters
   293 compiler.err.limit.pool=\
   294     too many constants
   295 compiler.err.limit.pool.in.class=\
   296     too many constants in class {0}
   297 compiler.err.limit.stack=\
   298     code requires too much stack
   299 compiler.err.limit.string=\
   300     constant string too long
   301 compiler.err.limit.string.overflow=\
   302     UTF8 representation for string \"{0}...\" is too long for the constant pool
   304 compiler.err.malformed.fp.lit=\
   305     malformed floating point literal
   306 compiler.err.method.does.not.override.superclass=\
   307     method does not override or implement a method from a supertype
   308 compiler.err.missing.meth.body.or.decl.abstract=\
   309     missing method body, or declare abstract
   310 compiler.err.missing.ret.stmt=\
   311     missing return statement
   312 compiler.err.missing.ret.val=\
   313     missing return value
   314 compiler.err.mod.not.allowed.here=\
   315     modifier {0} not allowed here
   316 compiler.err.intf.not.allowed.here=\
   317     interface not allowed here
   318 compiler.err.enums.must.be.static=\
   319     enum declarations allowed only in static contexts
   321 compiler.err.name.clash.same.erasure=\
   322     name clash: {0} and {1} have the same erasure
   323 compiler.err.name.clash.same.erasure.no.override=\
   324     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
   325 compiler.err.name.reserved.for.internal.use=\
   326     {0} is reserved for internal use
   327 compiler.err.native.meth.cant.have.body=\
   328     native methods cannot have a body
   329 compiler.err.neither.conditional.subtype=\
   330 incompatible types for ?: neither is a subtype of the other\n\
   331 second operand: {0}\n\
   332 third operand : {1}
   333 compiler.err.new.not.allowed.in.annotation=\
   334     ''new'' not allowed in an annotation
   335 compiler.err.no.annotation.member=\
   336     no annotation member {0} in {1}
   337 compiler.err.no.encl.instance.of.type.in.scope=\
   338     no enclosing instance of type {0} is in scope
   339 compiler.err.no.intf.expected.here=\
   340     no interface expected here
   341 compiler.err.no.match.entry=\
   342     {0} has no match in entry in {1}; required {2}
   343 compiler.err.not.annotation.type=\
   344     {0} is not an annotation type
   345 compiler.err.not.def.access.class.intf.cant.access=\
   346     {0} in {1} is defined in an inaccessible class or interface
   347 compiler.err.not.def.public.cant.access=\
   348     {0} is not public in {1}; cannot be accessed from outside package
   349 compiler.err.not.loop.label=\
   350     not a loop label: {0}
   351 compiler.err.not.stmt=\
   352     not a statement
   353 compiler.err.not.encl.class=\
   354     not an enclosing class: {0}
   356 compiler.err.operator.cant.be.applied=\
   357     bad operand type {1} for unary operator ''{0}''
   358 compiler.err.operator.cant.be.applied.1=\
   359     bad operand types for binary operator ''{0}''\n\
   360     first type:  {1}\n\
   361     second type: {2}
   363 compiler.err.pkg.annotations.sb.in.package-info.java=\
   364     package annotations should be in file package-info.java
   365 compiler.err.pkg.clashes.with.class.of.same.name=\
   366     package {0} clashes with class of same name
   368 compiler.err.warnings.and.werror=\
   369     warnings found and -Werror specified
   371 # Errors related to annotation processing
   373 compiler.err.proc.cant.access=\
   374 cannot access {0}\n\
   375 {1}\n\
   376 Consult the following stack trace for details.\n\
   377 {2}
   379 compiler.err.proc.cant.find.class=\
   380     Could not find class file for ''{0}''.
   382 # Print a client-generated error message; assumed to be localized, no translation required
   383 compiler.err.proc.messager=\
   384     {0}
   386 compiler.err.proc.no.explicit.annotation.processing.requested=\
   387     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   389 compiler.err.proc.no.service=\
   390     A service loader class could not be found.\n\
   391     Either java.util.ServiceLoader or sun.misc.Service must be available.
   393 compiler.err.proc.processor.bad.option.name=\
   394     Bad option name ''{0}'' provided by processor ''{1}''
   396 compiler.err.proc.processor.cant.instantiate=\
   397     Could not instantiate an instance of processor ''{0}''
   399 compiler.err.proc.processor.constructor.error=\
   400     Exception thrown while constructing Processor object: {0}
   402 compiler.err.proc.processor.not.found=\
   403     Annotation processor ''{0}'' not found
   405 compiler.err.proc.processor.wrong.type=\
   406     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
   408 compiler.err.proc.service.problem=\
   409     Error creating a service loader to load Processors.
   411 compiler.err.proc.bad.config.file=\
   412     Bad service configuration file, or exception thrown while constructing Processor object: {0}
   414 compiler.err.proc.cant.create.loader=\
   415     Could not create class loader for annotation processors: {0}
   417 compiler.err.qualified.new.of.static.class=\
   418     qualified new of static class
   420 compiler.err.recursive.ctor.invocation=\
   421     recursive constructor invocation
   422 compiler.err.ref.ambiguous=\
   423     reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
   424 compiler.err.repeated.annotation.target=\
   425     repeated annotation target
   426 compiler.err.repeated.interface=\
   427     repeated interface
   428 compiler.err.repeated.modifier=\
   429     repeated modifier
   430 compiler.err.report.access=\
   431     {0} has {1} access in {2}
   432 compiler.err.ret.outside.meth=\
   433     return outside method
   435 compiler.err.signature.doesnt.match.supertype=\
   436     signature does not match {0}; incompatible supertype
   437 compiler.err.signature.doesnt.match.intf=\
   438     signature does not match {0}; incompatible interfaces
   439 compiler.err.does.not.override.abstract=\
   440     {0} is not abstract and does not override abstract method {1} in {2}
   441 compiler.err.source.cant.overwrite.input.file=\
   442     error writing source; cannot overwrite input file {0}
   443 compiler.err.stack.sim.error=\
   444     Internal error: stack sim error on {0}
   445 compiler.err.static.imp.only.classes.and.interfaces=\
   446     static import only from classes and interfaces
   447 compiler.err.string.const.req=\
   448     constant string expression required
   449 compiler.err.synthetic.name.conflict=\
   450     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   451 compiler.warn.synthetic.name.conflict=\
   452     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
   454 compiler.err.throws.not.allowed.in.intf.annotation=\
   455     throws clause not allowed in @interface members
   456 compiler.err.try.without.catch.or.finally=\
   457     ''try'' without ''catch'' or ''finally''
   458 compiler.err.try.without.catch.finally.or.resource.decls=\
   459     ''try'' without ''catch'', ''finally'' or resource declarations
   460 compiler.err.type.doesnt.take.params=\
   461     type {0} does not take parameters
   462 compiler.err.type.var.cant.be.deref=\
   463     cannot select from a type variable
   464 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
   465     a type variable may not be followed by other bounds
   466 compiler.err.type.var.more.than.once=\
   467     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
   468 compiler.err.type.var.more.than.once.in.result=\
   469     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
   470 compiler.err.types.incompatible.diff.ret=\
   471     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
   473 compiler.err.unclosed.char.lit=\
   474     unclosed character literal
   475 compiler.err.unclosed.comment=\
   476     unclosed comment
   477 compiler.err.unclosed.str.lit=\
   478     unclosed string literal
   479 compiler.err.unknown.enum.constant=\
   480     in class file {0}: unknown enum constant {1}.{2}
   481 compiler.err.unsupported.encoding=\
   482     unsupported encoding: {0}
   483 compiler.err.io.exception=\
   484     error reading source file: {0}
   485 compiler.err.undef.label=\
   486     undefined label: {0}
   487 compiler.err.undetermined.type=\
   488     cannot infer type arguments for {0}
   489 compiler.err.undetermined.type.1=\
   490     cannot infer type arguments for {0};\n\
   491     reason: {1}
   492 compiler.err.invalid.inferred.types=\
   493     invalid inferred types for {0}; {1}
   494 compiler.err.cant.apply.diamond=\
   495     cannot infer type arguments for {0}
   496 compiler.err.cant.apply.diamond.1=\
   497     cannot infer type arguments for {0};\n\
   498     reason: {1}
   499 compiler.err.unreachable.stmt=\
   500     unreachable statement
   501 compiler.err.initializer.must.be.able.to.complete.normally=\
   502     initializer must be able to complete normally
   503 compiler.err.unreported.exception.need.to.catch.or.throw=\
   504     unreported exception {0}; must be caught or declared to be thrown
   505 compiler.err.unreported.exception.default.constructor=\
   506     unreported exception {0} in default constructor
   507 compiler.err.unsupported.cross.fp.lit=\
   508     hexadecimal floating-point literals are not supported on this VM
   509 compiler.err.void.not.allowed.here=\
   510     ''void'' type not allowed here
   512 compiler.err.wrong.number.type.args=\
   513     wrong number of type arguments; required {0}
   515 compiler.err.var.might.already.be.assigned=\
   516     variable {0} might already have been assigned
   517 compiler.err.var.might.not.have.been.initialized=\
   518     variable {0} might not have been initialized
   519 compiler.err.var.might.be.assigned.in.loop=\
   520     variable {0} might be assigned in loop
   522 compiler.err.varargs.invalid.trustme.anno=\
   523     Invalid {0} annotation. {1}
   524 compiler.misc.varargs.trustme.on.reifiable.varargs=\
   525     Varargs element type {0} is reifiable.
   526 compiler.misc.varargs.trustme.on.non.varargs.meth=\
   527     Method {0} is not a varargs method.
   528 compiler.misc.varargs.trustme.on.virtual.varargs=\
   529     Instance method {0} is not final.
   531 # In the following string, {1} will always be the detail message from
   532 # java.io.IOException.
   533 compiler.err.class.cant.write=\
   534     error while writing {0}: {1}
   536 # In the following string, {0} is the name of the class in the Java source.
   537 # It really should be used two times..
   538 compiler.err.class.public.should.be.in.file=\
   539     class {0} is public, should be declared in a file named {0}.java
   541 ## All errors which do not refer to a particular line in the source code are
   542 ## preceded by this string.
   543 compiler.err.error=\
   544     error:\u0020
   546 # The following error messages do not refer to a line in the source code.
   547 compiler.err.cant.read.file=\
   548     cannot read: {0}
   550 #####
   552 # Fatal Errors
   554 compiler.misc.fatal.err.no.java.lang=\
   555     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
   556 compiler.misc.fatal.err.cant.locate.meth=\
   557     Fatal Error: Unable to find method {0}
   558 compiler.misc.fatal.err.cant.locate.field=\
   559     Fatal Error: Unable to find field {0}
   560 compiler.misc.fatal.err.cant.locate.ctor=\
   561     Fatal Error: Unable to find constructor for {0}
   562 compiler.misc.fatal.err.cant.close.loader=\
   563     Fatal Error: Cannot close class loader for annotation processors
   565 #####
   567 ##
   568 ## miscellaneous strings
   569 ##
   571 compiler.misc.source.unavailable=\
   572     (source unavailable)
   573 compiler.misc.base.membership=\
   574     all your base class are belong to us
   575 compiler.misc.x.print.processor.info=\
   576     Processor {0} matches {1} and returns {2}.
   577 compiler.misc.x.print.rounds=\
   578     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
   580 #####
   582 ## The following string will appear before all messages keyed as:
   583 ## "compiler.note".
   584 compiler.note.note=\
   585     Note:\u0020
   587 compiler.note.deprecated.filename=\
   588     {0} uses or overrides a deprecated API.
   589 compiler.note.deprecated.plural=\
   590     Some input files use or override a deprecated API.
   591 # The following string may appear after one of the above deprecation
   592 # messages.
   593 compiler.note.deprecated.recompile=\
   594     Recompile with -Xlint:deprecation for details.
   596 compiler.note.deprecated.filename.additional=\
   597     {0} has additional uses or overrides of a deprecated API.
   598 compiler.note.deprecated.plural.additional=\
   599     Some input files additionally use or override a deprecated API.
   601 compiler.note.unchecked.filename=\
   602     {0} uses unchecked or unsafe operations.
   603 compiler.note.unchecked.plural=\
   604     Some input files use unchecked or unsafe operations.
   605 # The following string may appear after one of the above deprecation
   606 # messages.
   607 compiler.note.unchecked.recompile=\
   608     Recompile with -Xlint:unchecked for details.
   610 compiler.note.unchecked.filename.additional=\
   611     {0} has additional unchecked or unsafe operations.
   612 compiler.note.unchecked.plural.additional=\
   613     Some input files additionally use unchecked or unsafe operations.
   615 compiler.note.sunapi.filename=\
   616     {0} uses internal proprietary API that may be removed in a future release.
   617 compiler.note.sunapi.plural=\
   618     Some input files use internal proprietary API that may be removed in a future release.
   619 # The following string may appear after one of the above sunapi messages.
   620 compiler.note.sunapi.recompile=\
   621     Recompile with -Xlint:sunapi for details.
   623 compiler.note.sunapi.filename.additional=\
   624     {0} uses additional internal proprietary API that may be removed in a future release.
   625 compiler.note.sunapi.plural.additional=\
   626     Some input files additionally use internal proprietary API that may be removed in a future release.
   628 # Notes related to annotation processing
   630 # Print a client-generated note; assumed to be localized, no translation required
   631 compiler.note.proc.messager=\
   632     {0}
   634 #####
   636 compiler.misc.count.error=\
   637     {0} error
   638 compiler.misc.count.error.plural=\
   639     {0} errors
   640 compiler.misc.count.warn=\
   641     {0} warning
   642 compiler.misc.count.warn.plural=\
   643     {0} warnings
   645 compiler.misc.version.not.available=\
   646     (version info not available)
   648 ## extra output when using -verbose (JavaCompiler)
   650 compiler.misc.verbose.checking.attribution=\
   651     [checking {0}]
   652 compiler.misc.verbose.parsing.done=\
   653     [parsing completed {0}ms]
   654 compiler.misc.verbose.parsing.started=\
   655     [parsing started {0}]
   656 compiler.misc.verbose.total=\
   657     [total {0}ms]
   658 compiler.misc.verbose.wrote.file=\
   659     [wrote {0}]
   661 ## extra output when using -verbose (Retro)
   662 compiler.misc.verbose.retro=\
   663     [retrofitting {0}]
   664 compiler.misc.verbose.retro.with=\
   665     \tretrofitting {0} with {1}
   666 compiler.misc.verbose.retro.with.list=\
   667     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
   669 ## extra output when using -verbose (code/ClassReader)
   670 compiler.misc.verbose.loading=\
   671     [loading {0}]
   673 compiler.misc.verbose.sourcepath=\
   674     [search path for source files: {0}]
   676 compiler.misc.verbose.classpath=\
   677     [search path for class files: {0}]
   679 ## extra output when using -checkclassfile (code/ClassReader)
   680 compiler.misc.ccf.found.later.version=\
   681     class file has later version than expected: {0}
   682 compiler.misc.ccf.unrecognized.attribute=\
   683     unrecognized attribute: {0}
   685 ## extra output when using -prompt (util/Log)
   686 compiler.misc.resume.abort=\
   687     R)esume, A)bort>
   689 #####
   691 ##
   692 ## warnings
   693 ##
   695 ## All warning messages are preceded by the following string.
   696 compiler.warn.warning=\
   697     warning:\u0020
   699 ## Warning messages may also include the following prefix to identify a
   700 ## lint option
   701 compiler.warn.lintOption=\
   702     [{0}]\u0020
   704 compiler.warn.constant.SVUID=\
   705     serialVersionUID must be constant in class {0}
   707 compiler.warn.dir.path.element.not.found=\
   708     bad path element "{0}": no such directory
   710 compiler.warn.finally.cannot.complete=\
   711     finally clause cannot complete normally
   713 compiler.warn.has.been.deprecated=\
   714     {0} in {1} has been deprecated
   716 compiler.warn.sun.proprietary=\
   717     {0} is internal proprietary API and may be removed in a future release
   719 compiler.warn.illegal.char.for.encoding=\
   720     unmappable character for encoding {0}
   722 compiler.warn.improper.SVUID=\
   723     serialVersionUID must be declared static final in class {0}
   725 compiler.warn.inexact.non-varargs.call=\
   726 non-varargs call of varargs method with inexact argument type for last parameter;\n\
   727 cast to {0} for a varargs call\n\
   728 cast to {1} for a non-varargs call and to suppress this warning
   730 compiler.warn.long.SVUID=\
   731     serialVersionUID must be of type long in class {0}
   733 compiler.warn.missing.SVUID=\
   734     serializable class {0} has no definition of serialVersionUID
   736 compiler.warn.override.varargs.missing=\
   737     {0}; overridden method has no ''...''
   738 compiler.warn.override.varargs.extra=\
   739     {0}; overriding method is missing ''...''
   740 compiler.warn.override.bridge=\
   741     {0}; overridden method is a bridge method
   743 compiler.warn.pkg-info.already.seen=\
   744     a package-info.java file has already been seen for package {0}
   746 compiler.warn.path.element.not.found=\
   747     bad path element "{0}": no such file or directory
   749 compiler.warn.possible.fall-through.into.case=\
   750     possible fall-through into case
   752 compiler.warn.redundant.cast=\
   753     redundant cast to {0}
   755 compiler.warn.position.overflow=\
   756     Position encoding overflows at line {0}
   758 compiler.warn.big.major.version=\
   759     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
   760     It is recommended that the compiler be upgraded.
   762 compiler.warn.static.not.qualified.by.type=\
   763     static {0} should be qualified by type name, {1}, instead of by an expression
   765 compiler.warn.source.no.bootclasspath=\
   766     bootstrap class path not set in conjunction with -source {0}
   768 compiler.warn.future.attr=\
   769     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
   771 # Warnings related to annotation processing
   772 compiler.warn.proc.package.does.not.exist=\
   773     package {0} does not exist
   774 compiler.warn.proc.file.reopening=\
   775     Attempt to create a file for ''{0}'' multiple times
   777 compiler.warn.proc.type.already.exists=\
   778     A file for type ''{0}'' already exists on the sourcepath or classpath
   780 compiler.warn.proc.type.recreate=\
   781     Attempt to create a file for type ''{0}'' multiple times
   783 compiler.warn.proc.illegal.file.name=\
   784     Cannot create file for illegal name ''{0}''.
   786 compiler.warn.proc.suspicious.class.name=\
   787     Creating file for a type whose name ends in {1}: ''{0}''
   789 compiler.warn.proc.file.create.last.round=\
   790     File for type ''{0}'' created in the last round will not be subject to annotation processing.
   792 compiler.warn.proc.malformed.supported.string=\
   793     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
   795 compiler.warn.proc.annotations.without.processors=\
   796     No processor claimed any of these annotations: {0}
   798 compiler.warn.proc.processor.incompatible.source.version=\
   799     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
   801 compiler.warn.proc.proc-only.requested.no.procs=\
   802     Annotation processing without compilation requested but no processors were found.
   804 compiler.warn.proc.use.implicit=\
   805 Implicitly compiled files were not subject to annotation processing.\n\
   806 Use -implicit to specify a policy for implicit compilation.
   808 compiler.warn.proc.use.proc.or.implicit=\
   809 Implicitly compiled files were not subject to annotation processing.\n\
   810 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
   812 # Print a client-generated warning; assumed to be localized, no translation required
   813 compiler.warn.proc.messager=\
   814     {0}
   816 compiler.warn.proc.unclosed.type.files=\
   817     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
   819 compiler.warn.proc.unmatched.processor.options=\
   820     The following options were not recognized by any processor: ''{0}''
   822 compiler.warn.try.explicit.close.call=\
   823     explicit call to close() on an auto-closeable resource
   824 compiler.warn.try.resource.not.referenced=\
   825     auto-closeable resource {0} is never referenced in body of corresponding try statement
   826 compiler.warn.unchecked.assign=\
   827     unchecked assignment: {0} to {1}
   828 compiler.warn.unchecked.assign.to.var=\
   829     unchecked assignment to variable {0} as member of raw type {1}
   830 compiler.warn.unchecked.call.mbr.of.raw.type=\
   831     unchecked call to {0} as a member of the raw type {1}
   832 compiler.warn.unchecked.cast.to.type=\
   833     unchecked cast to type {0}
   834 compiler.warn.unchecked.meth.invocation.applied=\
   835     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
   836     required: {2}\n\
   837     found: {3}
   839 compiler.warn.unchecked.generic.array.creation=\
   840     unchecked generic array creation for varargs parameter of type {0}
   842 compiler.warn.unchecked.varargs.non.reifiable.type=\
   843     Possible heap pollution from parameterized vararg type {0}
   845 compiler.warn.varargs.unsafe.use.varargs.param=\
   846     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
   848 compiler.warn.missing.deprecated.annotation=\
   849     deprecated item is not annotated with @Deprecated
   851 compiler.warn.invalid.archive.file=\
   852     Unexpected file on path: {0}
   854 compiler.warn.unexpected.archive.file=\
   855     Unexpected extension for archive file: {0}
   857 compiler.warn.div.zero=\
   858     division by zero
   860 compiler.warn.empty.if=\
   861     empty statement after if
   863 compiler.warn.annotation.method.not.found=\
   864     Cannot find annotation method ''{1}()'' in type ''{0}''
   866 compiler.warn.annotation.method.not.found.reason=\
   867     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
   869 compiler.warn.raw.class.use=\
   870     found raw type: {0}\n\
   871     missing type arguments for generic class {1}
   873 compiler.warn.diamond.redundant.args=\
   874     redundant type arguments in new expression (use diamond operator instead).
   875 compiler.warn.diamond.redundant.args.1=\
   876     redundant type arguments in new expression (use diamond operator instead).\n\
   877     explicit: {0}\n\
   878     inferred: {1}
   880 compiler.warn.varargs.redundant.trustme.anno=\
   881     Redundant {0} annotation. {1}
   883 #####
   885 ## The following are tokens which are non-terminals in the language. They should
   886 ## be named as JLS3 calls them when translated to the appropriate language.
   887 compiler.misc.token.identifier=\
   888     <identifier>
   889 compiler.misc.token.character=\
   890     <character>
   891 compiler.misc.token.string=\
   892     <string>
   893 compiler.misc.token.integer=\
   894     <integer>
   895 compiler.misc.token.long-integer=\
   896     <long integer>
   897 compiler.misc.token.float=\
   898     <float>
   899 compiler.misc.token.double=\
   900     <double>
   901 compiler.misc.token.bad-symbol=\
   902     <bad symbol>
   903 compiler.misc.token.end-of-input=\
   904     <end of input>
   906 ## The argument to the following string will always be one of the following:
   907 ## 1. one of the above non-terminals
   908 ## 2. a keyword (JLS1.8)
   909 ## 3. a boolean literal (JLS3.10.3)
   910 ## 4. the null literal (JLS3.10.7)
   911 ## 5. a Java separator (JLS3.11)
   912 ## 6. an operator (JLS3.12)
   913 ##
   914 ## This is the only place these tokens will be used.
   915 compiler.err.expected=\
   916     {0} expected
   917 compiler.err.expected2=\
   918     {0} or {1} expected
   919 compiler.err.expected3=\
   920     {0}, {1}, or {2} expected
   922 compiler.err.premature.eof=\
   923     reached end of file while parsing
   925 ## The following are related in form, but do not easily fit the above paradigm.
   926 compiler.err.dot.class.expected=\
   927     ''.class'' expected
   929 ## The argument to this string will always be either 'case' or 'default'.
   930 compiler.err.orphaned=\
   931     orphaned {0}
   933 compiler.misc.anonymous.class=\
   934     <anonymous {0}>
   936 compiler.misc.type.captureof=\
   937     capture#{0} of {1}
   939 compiler.misc.type.captureof.1=\
   940     capture#{0}
   942 compiler.misc.type.none=\
   943     <none>
   945 compiler.misc.unnamed.package=\
   946     unnamed package
   948 #####
   950 compiler.err.cant.access=\
   951 cannot access {0}\n\
   952 {1}
   954 compiler.misc.bad.class.file.header=\
   955 bad class file: {0}\n\
   956 {1}\n\
   957 Please remove or make sure it appears in the correct subdirectory of the classpath.
   958 compiler.misc.bad.source.file.header=\
   959 bad source file: {0}\n\
   960 {1}\n\
   961 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
   963 ## The following are all possible strings for the second argument ({1}) of the
   964 ## above strings.
   965 compiler.misc.bad.class.signature=\
   966     bad class signature: {0}
   967 compiler.misc.bad.enclosing.method=\
   968     bad enclosing method attribute: {0}
   969 compiler.misc.bad.runtime.invisible.param.annotations=\
   970     bad RuntimeInvisibleParameterAnnotations attribute: {0}
   971 compiler.misc.bad.const.pool.tag=\
   972     bad constant pool tag: {0}
   973 compiler.misc.bad.const.pool.tag.at=\
   974     bad constant pool tag: {0} at {1}
   975 compiler.misc.bad.signature=\
   976     bad signature: {0}
   977 compiler.misc.class.file.wrong.class=\
   978     class file contains wrong class: {0}
   979 compiler.misc.class.file.not.found=\
   980     class file for {0} not found
   981 compiler.misc.file.doesnt.contain.class=\
   982     file does not contain class {0}
   983 compiler.misc.file.does.not.contain.package=\
   984     file does not contain package {0}
   985 compiler.misc.illegal.start.of.class.file=\
   986     illegal start of class file
   987 compiler.misc.unable.to.access.file=\
   988     unable to access file: {0}
   989 compiler.misc.unicode.str.not.supported=\
   990     unicode string in class file not supported
   991 compiler.misc.undecl.type.var=\
   992     undeclared type variable: {0}
   993 compiler.misc.wrong.version=\
   994     class file has wrong version {0}.{1}, should be {2}.{3}
   996 #####
   998 compiler.err.not.within.bounds=\
   999     type argument {0} is not within bounds of type-variable {1}
  1001 ## The following are all possible strings for the second argument ({1}) of the
  1002 ## above string.
  1004 ## none yet...
  1006 #####
  1008 compiler.err.prob.found.req=\
  1009 {0}\n\
  1010 required: {2}\n\
  1011 found:    {1}
  1012 compiler.warn.prob.found.req=\
  1013 {0}\n\
  1014 required: {2}\n\
  1015 found:    {1}
  1016 compiler.err.prob.found.req.1=\
  1017 {0} {3}\n\
  1018 required: {2}\n\
  1019 found:    {1}
  1021 ## The following are all possible strings for the first argument ({0}) of the
  1022 ## above strings.
  1023 compiler.misc.incompatible.types=\
  1024     incompatible types
  1025 compiler.misc.incompatible.types.1=\
  1026     incompatible types; {0}
  1027 compiler.misc.inconvertible.types=\
  1028     inconvertible types
  1029 compiler.misc.possible.loss.of.precision=\
  1030     possible loss of precision
  1032 compiler.misc.unchecked.assign=\
  1033     unchecked conversion
  1034 # compiler.misc.storecheck=\
  1035 #     assignment might cause later store checks to fail
  1036 # compiler.misc.unchecked=\
  1037 #     assigned array cannot dynamically check its stores
  1038 compiler.misc.unchecked.cast.to.type=\
  1039     unchecked cast
  1041 compiler.misc.assignment.from.super-bound=\
  1042     assignment from super-bound type {0}
  1043 compiler.misc.assignment.to.extends-bound=\
  1044     assignment to extends-bound type {0}
  1045 # compiler.err.star.expected=\
  1046 #     ''*'' expected
  1047 # compiler.err.no.elem.type=\
  1048 #     \[\*\] cannot have a type
  1050 compiler.misc.try.not.applicable.to.type=\
  1051     try-with-resources not applicable to variable type
  1053 #####
  1055 compiler.err.type.found.req=\
  1056 unexpected type\n\
  1057 required: {1}\n\
  1058 found:    {0}
  1060 ## The following are all possible strings for the first argument ({0}) of the
  1061 ## above string.
  1062 compiler.misc.type.req.class=\
  1063     class
  1064 compiler.misc.type.req.class.array=\
  1065     class or array
  1066 compiler.misc.type.req.array.or.iterable=\
  1067     array or java.lang.Iterable
  1068 compiler.misc.type.req.ref=\
  1069     reference
  1070 compiler.misc.type.req.exact=\
  1071     class or interface without bounds
  1072 compiler.misc.type.parameter=\
  1073     type parameter {0}
  1075 #####
  1077 ## The following are all possible strings for the last argument of all those
  1078 ## diagnostics whose key ends in ".1"
  1079 compiler.misc.undetermined.type=\
  1080     undetermined type
  1081 compiler.misc.type.variable.has.undetermined.type=\
  1082     type variable {0} has undetermined type
  1083 compiler.misc.no.unique.maximal.instance.exists=\
  1084     no unique maximal instance exists for type variable {0} with upper bounds {1}
  1085 compiler.misc.no.unique.minimal.instance.exists=\
  1086     no unique minimal instance exists for type variable {0} with lower bounds {1}
  1087 compiler.misc.infer.no.conforming.instance.exists=\
  1088     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
  1089 compiler.misc.infer.no.conforming.assignment.exists=\
  1090     no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
  1091 compiler.misc.infer.arg.length.mismatch=\
  1092     cannot instantiate from arguments because actual and formal argument lists differ in length
  1093 compiler.misc.inferred.do.not.conform.to.bounds=\
  1094     inferred type does not conform to declared bound(s)\n\
  1095     inferred: {0}\n\
  1096     bound(s): {1}
  1097 compiler.misc.inferred.do.not.conform.to.params=\
  1098     actual arguments do not conform to inferred formal arguments\n\
  1099     required: {0}\n\
  1100     found: {1}
  1101 compiler.misc.diamond=\
  1102     {0}<>
  1103 compiler.misc.diamond.invalid.arg=\
  1104     type argument {0} inferred for {1} is not allowed in this context
  1105 compiler.misc.diamond.invalid.args=\
  1106     type arguments {0} inferred for {1} are not allowed in this context
  1108 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  1109     explicit type argument {0} does not conform to declared bound(s) {1}
  1111 compiler.misc.arg.length.mismatch=\
  1112     actual and formal argument lists differ in length
  1113 compiler.misc.no.conforming.assignment.exists=\
  1114     actual argument {0} cannot be converted to {1} by method invocation conversion
  1115 compiler.misc.varargs.argument.mismatch=\
  1116     argument type {0} does not conform to vararg element type {1}
  1117 #####
  1119 ## The first argument ({0}) is a "kindname".
  1120 compiler.err.abstract.cant.be.accessed.directly=\
  1121     abstract {0} {1} in {2} cannot be accessed directly
  1123 ## The first argument ({0}) is a "kindname".
  1124 compiler.err.non-static.cant.be.ref=\
  1125     non-static {0} {1} cannot be referenced from a static context
  1127 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  1128 ## of kindnames (the list should be identical to that provided in source.
  1129 compiler.err.unexpected.type=\
  1130 unexpected type\n\
  1131 required: {0}\n\
  1132 found:    {1}
  1134 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  1135 ## The second argument {1} is the non-resolved symbol
  1136 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  1137 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  1138 compiler.err.cant.resolve=\
  1139     cannot find symbol\n\
  1140     symbol: {0} {1}
  1142 compiler.err.cant.resolve.args=\
  1143     cannot find symbol\n\
  1144     symbol: {0} {1}({3})
  1146 compiler.err.cant.resolve.args.params=\
  1147     cannot find symbol\n\
  1148     symbol: {0} <{2}>{1}({3})
  1150 ## arguments from {0} to {3} have the same meaning as above
  1151 ## The fifth argument {4} is a location subdiagnostic (see below)
  1152 compiler.err.cant.resolve.location=\
  1153     cannot find symbol\n\
  1154     symbol:   {0} {1}\n\
  1155     location: {4}
  1157 compiler.err.cant.resolve.location.args=\
  1158     cannot find symbol\n\
  1159     symbol:   {0} {1}({3})\n\
  1160     location: {4}
  1162 compiler.err.cant.resolve.location.args.params=\
  1163     cannot find symbol\n\
  1164     symbol:   {0} <{2}>{1}({3})\n\
  1165     location: {4}
  1167 ##a location subdiagnostic is composed as follows:
  1168 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  1169 ## The second argument {1} is the location name
  1170 ## The third argument {2} is the location type (only when {1} is a variable name)
  1172 compiler.misc.location=\
  1173     {0} {1}
  1174 compiler.misc.location.1=\
  1175     {0} {1} of type {2}
  1177 ## The following are all possible string for "kindname".
  1178 ## They should be called whatever the JLS calls them after it been translated
  1179 ## to the appropriate language.
  1180 # compiler.misc.kindname.constructor=\
  1181 #     static member
  1182 compiler.misc.kindname.annotation=\
  1183     @interface
  1184 compiler.misc.kindname.constructor=\
  1185     constructor
  1186 compiler.misc.kindname.enum=\
  1187     enum
  1188 compiler.misc.kindname.interface=\
  1189     interface
  1190 compiler.misc.kindname.static=\
  1191     static
  1192 compiler.misc.kindname.type.variable=\
  1193     type variable
  1194 compiler.misc.kindname.type.variable.bound=\
  1195     bound of type variable
  1196 compiler.misc.kindname.variable=\
  1197     variable
  1198 compiler.misc.kindname.value=\
  1199     value
  1200 compiler.misc.kindname.method=\
  1201     method
  1202 compiler.misc.kindname.class=\
  1203     class
  1204 compiler.misc.kindname.package=\
  1205     package
  1206 #####
  1208 compiler.misc.no.args=\
  1209     no arguments
  1211 compiler.err.override.static=\
  1212     {0}\n\
  1213     overriding method is static
  1214 compiler.err.override.meth=\
  1215     {0}\n\
  1216     overridden method is {1}
  1218 compiler.err.override.meth.doesnt.throw=\
  1219     {0}\n\
  1220     overridden method does not throw {1}
  1222 # In the following string {1} is a space separated list of Java Keywords, as
  1223 # they would have been declared in the source code
  1224 compiler.err.override.weaker.access=\
  1225     {0}\n\
  1226     attempting to assign weaker access privileges; was {1}
  1228 compiler.err.override.incompatible.ret=\
  1229     {0}\n\
  1230     return type {1} is not compatible with {2}
  1232 compiler.warn.override.unchecked.ret=\
  1233     {0}\n\
  1234     return type requires unchecked conversion from {1} to {2}
  1236 compiler.warn.override.unchecked.thrown=\
  1237     {0}\n\
  1238     overridden method does not throw {1}
  1240 ## The following are all possible strings for the first argument ({0}) of the
  1241 ## above strings.
  1242 compiler.misc.cant.override=\
  1243     {0} in {1} cannot override {2} in {3}
  1244 compiler.misc.cant.implement=\
  1245     {0} in {1} cannot implement {2} in {3}
  1246 compiler.misc.clashes.with=\
  1247     {0} in {1} clashes with {2} in {3}
  1248 compiler.misc.unchecked.override=\
  1249     {0} in {1} overrides {2} in {3}
  1250 compiler.misc.unchecked.implement=\
  1251     {0} in {1} implements {2} in {3}
  1252 compiler.misc.unchecked.clash.with=\
  1253     {0} in {1} overrides {2} in {3}
  1254 compiler.misc.varargs.override=\
  1255     {0} in {1} overrides {2} in {3}
  1256 compiler.misc.varargs.implement=\
  1257     {0} in {1} implements {2} in {3}
  1258 compiler.misc.varargs.clash.with=\
  1259     {0} in {1} overrides {2} in {3}
  1260 compiler.misc.non.denotable.type=\
  1261     Non-denotable type {0} not allowed here
  1263 compiler.misc.inapplicable.method=\
  1264     {0} {1}.{2} is not applicable\n\
  1265     ({3})
  1267 ########################################
  1268 # Diagnostics for language feature changes
  1269 ########################################
  1270 compiler.err.unsupported.fp.lit=\
  1271     hexadecimal floating point literals are not supported in -source {0}\n\
  1272 (use -source 5 or higher to enable hexadecimal floating point literals)
  1274 compiler.err.unsupported.binary.lit=\
  1275     binary literals are not supported in -source {0}\n\
  1276 (use -source 7 or higher to enable binary literals)
  1278 compiler.err.unsupported.underscore.lit=\
  1279     underscores in literals are not supported in -source {0}\n\
  1280 (use -source 7 or higher to enable underscores in literals)
  1282 compiler.err.try.with.resources.not.supported.in.source=\
  1283     try-with-resources is not supported in -source {0}\n\
  1284 (use -source 7 or higher to enable try-with-resources)
  1286 compiler.warn.enum.as.identifier=\
  1287     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  1288 (use -source 5 or higher to use ''enum'' as a keyword)
  1290 compiler.warn.assert.as.identifier=\
  1291     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  1292 (use -source 1.4 or higher to use ''assert'' as a keyword)
  1294 compiler.err.enum.as.identifier=\
  1295     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
  1296 (use -source 1.4 or lower to use ''enum'' as an identifier)
  1298 compiler.err.assert.as.identifier=\
  1299     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
  1300 (use -source 1.3 or lower to use ''assert'' as an identifier)
  1302 compiler.err.generics.not.supported.in.source=\
  1303     generics are not supported in -source {0}\n\
  1304 (use -source 5 or higher to enable generics)
  1306 compiler.err.varargs.not.supported.in.source=\
  1307     variable-arity methods are not supported in -source {0}\n\
  1308 (use -source 5 or higher to enable variable-arity methods)
  1310 compiler.err.annotations.not.supported.in.source=\
  1311     annotations are not supported in -source {0}\n\
  1312 (use -source 5 or higher to enable annotations)
  1314 #308 compiler.err.type.annotations.not.supported.in.source=\
  1315 #308     type annotations are not supported in -source {0}\n\
  1316 #308 (use -source 7 or higher to enable type annotations)
  1318 compiler.err.foreach.not.supported.in.source=\
  1319     for-each loops are not supported in -source {0}\n\
  1320 (use -source 5 or higher to enable for-each loops)
  1322 compiler.err.static.import.not.supported.in.source=\
  1323     static import declarations are not supported in -source {0}\n\
  1324 (use -source 5 or higher to enable static import declarations)
  1326 compiler.err.enums.not.supported.in.source=\
  1327     enums are not supported in -source {0}\n\
  1328 (use -source 5 or higher to enable enums)
  1330 compiler.err.diamond.not.supported.in.source=\
  1331     diamond operator is not supported in -source {0}\n\
  1332 (use -source 7 or higher to enable diamond operator)
  1334 compiler.err.multicatch.not.supported.in.source=\
  1335     multi-catch statement is not supported in -source {0}\n\
  1336 (use -source 7 or higher to enable multi-catch statement)
  1338 compiler.err.string.switch.not.supported.in.source=\
  1339     strings in switch are not supported in -source {0}\n\
  1340 (use -source 7 or higher to enable strings in switch)
  1342 ########################################
  1343 # Diagnostics for where clause implementation
  1344 # used by the RichDiagnosticFormatter.
  1345 ########################################
  1347 compiler.misc.type.null=\
  1348     <null>
  1350 # X#n (where n is an int id) is disambiguated tvar name
  1351 compiler.misc.type.var=\
  1352     {0}#{1}
  1354 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
  1355 compiler.misc.captured.type=\
  1356     CAP#{0}
  1358 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
  1359 compiler.misc.intersection.type=\
  1360     INT#{0}
  1362 # where clause for captured type: contains upper ('extends {1}') and lower
  1363 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
  1364 compiler.misc.where.captured=\
  1365     {0} extends {1} super: {2} from capture of {3}
  1367 # compact where clause for captured type: contains upper ('extends {1}') along
  1368 # with the wildcard that generated this captured type ({3})
  1369 compiler.misc.where.captured.1=\
  1370     {0} extends {1} from capture of {3}
  1372 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
  1373 # the kindname ({2}) and location ({3}) in which the typevar has been declared
  1374 compiler.misc.where.typevar=\
  1375     {0} extends {1} declared in {2} {3}
  1377 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
  1378 # in which the typevar has been declared
  1379 compiler.misc.where.typevar.1=\
  1380     {0} declared in {2} {3}
  1382 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
  1383 # of this intersection type
  1384 compiler.misc.where.intersection=\
  1385     {0} extends {1}
  1387 ### Where clause headers ###
  1388 compiler.misc.where.description.captured=\
  1389     where {0} is a fresh type-variable:
  1390 compiler.misc.where.description.typevar=\
  1391     where {0} is a type-variable:
  1392 compiler.misc.where.description.intersection=\
  1393     where {0} is an intersection type:
  1394 compiler.misc.where.description.captured.1=\
  1395     where {0} are fresh type-variables:
  1396 compiler.misc.where.description.typevar.1=\
  1397     where {0} are type-variables:
  1398 compiler.misc.where.description.intersection.1=\
  1399     where {0} are intersection types:

mercurial