1 #
   2 # Copyright (c) 1999, 2006, 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 #
  25 
  26 ##
  27 ## errors
  28 ##
  29 
  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 {1}
  46 compiler.err.annotation.not.valid.for.type=\
  47     annotation not valid for a value of type {0}
  48 compiler.err.annotation.type.not.applicable=\
  49     annotation type not applicable to this kind of declaration
  50 compiler.err.annotation.value.must.be.annotation=\
  51     annotation value must be an annotation
  52 compiler.err.annotation.value.must.be.class.literal=\
  53     annotation value must be a class literal
  54 compiler.err.annotation.value.must.be.name.value=\
  55     annotation values must be of the form ''name=value''
  56 compiler.err.annotation.value.not.allowable.type=\
  57     annotation value not of an allowable type
  58 compiler.err.anon.class.impl.intf.no.args=\
  59     anonymous class implements interface; cannot have arguments
  60 compiler.err.anon.class.impl.intf.no.typeargs=\
  61     anonymous class implements interface; cannot have type arguments
  62 compiler.err.anon.class.impl.intf.no.qual.for.new=\
  63     anonymous class implements interface; cannot have qualifier for new
  64 compiler.err.array.and.varargs=\
  65     cannot declare both {0} and {1} in {2}
  66 compiler.err.array.dimension.missing=\
  67     array dimension missing
  68 compiler.err.array.req.but.found=\
  69     array required, but {0} found
  70 
  71 compiler.err.assignment.from.super-bound=\
  72     assigning from wildcard {0}
  73 compiler.err.assignment.to.extends-bound=\
  74     assigning to wildcard {0}
  75 compiler.err.attribute.value.must.be.constant=\
  76     attribute value must be constant
  77 
  78 compiler.err.break.outside.switch.loop=\
  79     break outside switch or loop
  80 
  81 compiler.err.call.must.be.first.stmt.in.ctor=\
  82     call to {0} must be first statement in constructor
  83 compiler.err.cant.apply.symbol=\
  84     {0} in {1} cannot be applied to {2}({3})
  85 compiler.err.cant.apply.symbol.1=\
  86     {0} in {1} cannot be applied to {2}({3}); {4}
  87 compiler.err.cant.assign.val.to.final.var=\
  88     cannot assign a value to final variable {0}
  89 compiler.err.cant.deref=\
  90     {0} cannot be dereferenced
  91 compiler.err.cant.extend.intf.annotation=\
  92     ''extends'' not allowed for @interfaces
  93 compiler.err.cant.inherit.from.final=\
  94     cannot inherit from final {0}
  95 compiler.err.cant.ref.before.ctor.called=\
  96     cannot reference {0} before supertype constructor has been called
  97 compiler.err.cant.ret.val.from.meth.decl.void=\
  98     cannot return a value from method whose result type is void
  99 compiler.err.cant.select.static.class.from.param.type=\
 100     cannot select a static class from a parameterized type
 101 compiler.err.cant.inherit.diff.arg=\
 102     {0} cannot be inherited with different arguments: <{1}> and <{2}>
 103 compiler.err.catch.without.try=\
 104     ''catch'' without ''try''
 105 compiler.err.clash.with.pkg.of.same.name=\
 106     {0} clashes with package of same name
 107 compiler.err.const.expr.req=\
 108     constant expression required
 109 compiler.err.enum.const.req=\
 110     unqualified enumeration constant name required
 111 compiler.err.cont.outside.loop=\
 112     continue outside of loop
 113 compiler.err.cyclic.inheritance=\
 114     cyclic inheritance involving {0}
 115 compiler.err.cyclic.annotation.element=\
 116     cyclic annotation element type
 117 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
 118     call to super not allowed in enum constructor
 119 compiler.err.no.superclass=\
 120     {0} has no superclass
 121 
 122 compiler.err.concrete.inheritance.conflict=\
 123     methods {0} from {1} and {2} from {3} are inherited with the same signature
 124 
 125 compiler.err.default.allowed.in.intf.annotation.member=\
 126     default value only allowed in an @interface member
 127 compiler.err.doesnt.exist=\
 128     package {0} does not exist
 129 compiler.err.duplicate.annotation=\
 130     duplicate annotation
 131 compiler.err.duplicate.annotation.member.value=\
 132     duplicate annotation member value {0} in {1}
 133 compiler.err.duplicate.class=\
 134     duplicate class: {0}
 135 compiler.err.duplicate.case.label=\
 136     duplicate case label
 137 compiler.err.duplicate.default.label=\
 138     duplicate default label
 139 
 140 compiler.err.else.without.if=\
 141     ''else'' without ''if''
 142 compiler.err.empty.char.lit=\
 143     empty character literal
 144 compiler.err.encl.class.required=\
 145     an enclosing instance that contains {0} is required
 146 compiler.err.enum.annotation.must.be.enum.constant=\
 147     an enum annotation value must be an enum constant
 148 
 149 compiler.err.enum.cant.be.instantiated=\
 150     enum types may not be instantiated
 151 compiler.err.enum.label.must.be.unqualified.enum=\
 152     an enum switch case label must be the unqualified name of an enumeration constant
 153 compiler.err.enum.no.subclassing=\
 154     classes cannot directly extend java.lang.Enum
 155 compiler.err.enum.types.not.extensible=\
 156     enum types are not extensible
 157 compiler.err.enum.no.finalize=\
 158     enums cannot have finalize methods
 159 compiler.err.error.reading.file=\
 160     error reading {0}; {1}
 161 compiler.err.except.already.caught=\
 162     exception {0} has already been caught
 163 compiler.err.except.never.thrown.in.try=\
 164     exception {0} is never thrown in body of corresponding try statement
 165 
 166 compiler.err.final.parameter.may.not.be.assigned=\
 167     final parameter {0} may not be assigned
 168 compiler.err.finally.without.try=\
 169     ''finally'' without ''try''
 170 compiler.err.foreach.not.applicable.to.type=\
 171     foreach not applicable to expression type
 172 compiler.err.fp.number.too.large=\
 173     floating point number too large
 174 compiler.err.fp.number.too.small=\
 175     floating point number too small
 176 
 177 compiler.err.generic.array.creation=\
 178     generic array creation
 179 compiler.err.generic.throwable=\
 180     a generic class may not extend java.lang.Throwable
 181 
 182 compiler.err.icls.cant.have.static.decl=\
 183     inner classes cannot have static declarations
 184 compiler.err.illegal.char=\
 185     illegal character: \\{0}
 186 compiler.err.illegal.char.for.encoding=\
 187     unmappable character for encoding {0}
 188 compiler.err.illegal.combination.of.modifiers=\
 189     illegal combination of modifiers: {0} and {1}
 190 compiler.err.illegal.enum.static.ref=\
 191     illegal reference to static field from initializer
 192 compiler.err.illegal.esc.char=\
 193     illegal escape character
 194 compiler.err.illegal.forward.ref=\
 195     illegal forward reference
 196 compiler.warn.forward.ref=\
 197     reference to variable ''{0}'' before it has been initialized
 198 compiler.err.illegal.generic.type.for.instof=\
 199     illegal generic type for instanceof
 200 compiler.err.illegal.initializer.for.type=\
 201     illegal initializer for {0}
 202 compiler.err.illegal.line.end.in.char.lit=\
 203     illegal line end in character literal
 204 compiler.err.illegal.nonascii.digit=\
 205     illegal non-ASCII digit
 206 compiler.err.illegal.qual.not.icls=\
 207     illegal qualifier; {0} is not an inner class
 208 compiler.err.illegal.start.of.expr=\
 209     illegal start of expression
 210 compiler.err.illegal.start.of.type=\
 211     illegal start of type
 212 compiler.err.illegal.unicode.esc=\
 213     illegal unicode escape
 214 compiler.err.import.requires.canonical=\
 215     import requires canonical name for {0}
 216 compiler.err.improperly.formed.type.param.missing=\
 217     improperly formed type, some parameters are missing
 218 compiler.err.improperly.formed.type.inner.raw.param=\
 219     improperly formed type, type parameters given on a raw type
 220 compiler.err.incomparable.types=\
 221     incomparable types: {0} and {1}
 222 compiler.err.int.number.too.large=\
 223     integer number too large: {0}
 224 compiler.err.internal.error.cant.instantiate=\
 225     internal error; cannot instantiate {0} at {1} to ({2})
 226 compiler.err.intf.annotation.members.cant.have.params=\
 227     @interface members may not have parameters
 228 compiler.err.intf.annotation.cant.have.type.params=\
 229     @interface may not have type parameters
 230 compiler.err.intf.annotation.members.cant.have.type.params=\
 231     @interface members may not have type parameters
 232 compiler.err.intf.annotation.member.clash=\
 233     @interface member clashes with method ''{0}'' in {1}
 234 compiler.err.intf.expected.here=\
 235     interface expected here
 236 compiler.err.intf.meth.cant.have.body=\
 237     interface methods cannot have body
 238 compiler.err.invalid.annotation.member.type=\
 239     invalid type for annotation member
 240 compiler.err.invalid.hex.number=\
 241     hexadecimal numbers must contain at least one hexadecimal digit
 242 compiler.err.invalid.meth.decl.ret.type.req=\
 243     invalid method declaration; return type required
 244 
 245 compiler.err.label.already.in.use=\
 246     label {0} already in use
 247 compiler.err.local.var.accessed.from.icls.needs.final=\
 248     local variable {0} is accessed from within inner class; needs to be declared final
 249 compiler.err.local.enum=\
 250     enum types must not be local
 251 compiler.err.cannot.create.array.with.type.arguments=\
 252     cannot create array with type arguments
 253 
 254 #
 255 # limits.  We don't give the limits in the diagnostic because we expect
 256 # them to change, yet we want to use the same diagnostic.  These are all
 257 # detected during code generation.
 258 #
 259 compiler.err.limit.code=\
 260     code too large
 261 compiler.err.limit.code.too.large.for.try.stmt=\
 262     code too large for try statement
 263 compiler.err.limit.dimensions=\
 264     array type has too many dimensions
 265 compiler.err.limit.locals=\
 266     too many local variables
 267 compiler.err.limit.parameters=\
 268     too many parameters
 269 compiler.err.limit.pool=\
 270     too many constants
 271 compiler.err.limit.pool.in.class=\
 272     too many constants in class {0}
 273 compiler.err.limit.stack=\
 274     code requires too much stack
 275 compiler.err.limit.string=\
 276     constant string too long
 277 compiler.err.limit.string.overflow=\
 278     UTF8 representation for string \"{0}...\" is too long for the constant pool
 279 
 280 compiler.err.malformed.fp.lit=\
 281     malformed floating point literal
 282 compiler.err.method.does.not.override.superclass=\
 283     method does not override or implement a method from a supertype
 284 compiler.err.missing.meth.body.or.decl.abstract=\
 285     missing method body, or declare abstract
 286 compiler.err.missing.ret.stmt=\
 287     missing return statement
 288 compiler.err.missing.ret.val=\
 289     missing return value
 290 compiler.err.mod.not.allowed.here=\
 291     modifier {0} not allowed here
 292 compiler.err.intf.not.allowed.here=\
 293     interface not allowed here
 294 compiler.err.enums.must.be.static=\
 295     enum declarations allowed only in static contexts
 296 
 297 compiler.err.name.clash.same.erasure=\
 298     name clash: {0} and {1} have the same erasure
 299 compiler.err.name.clash.same.erasure.no.override=\
 300     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
 301 compiler.err.name.reserved.for.internal.use=\
 302     {0} is reserved for internal use
 303 compiler.err.native.meth.cant.have.body=\
 304     native methods cannot have a body
 305 compiler.err.neither.conditional.subtype=\
 306 incompatible types for ?: neither is a subtype of the other\n\
 307 second operand: {0}\n\
 308 third operand : {1}
 309 compiler.err.new.not.allowed.in.annotation=\
 310     ''new'' not allowed in an annotation
 311 compiler.err.no.annotation.member=\
 312     no annotation member {0} in {1}
 313 compiler.err.no.encl.instance.of.type.in.scope=\
 314     no enclosing instance of type {0} is in scope
 315 compiler.err.no.intf.expected.here=\
 316     no interface expected here
 317 compiler.err.no.match.entry=\
 318     {0} has no match in entry in {1}; required {2}
 319 compiler.err.not.annotation.type=\
 320     {0} is not an annotation type
 321 compiler.err.not.def.access.class.intf.cant.access=\
 322     {0} in {1} is defined in an inaccessible class or interface
 323 compiler.err.not.def.public.cant.access=\
 324     {0} is not public in {1}; cannot be accessed from outside package
 325 compiler.err.not.loop.label=\
 326     not a loop label: {0}
 327 compiler.err.not.stmt=\
 328     not a statement
 329 compiler.err.not.encl.class=\
 330     not an enclosing class: {0}
 331 
 332 compiler.err.operator.cant.be.applied=\
 333     operator {0} cannot be applied to {1}
 334 
 335 compiler.err.pkg.annotations.sb.in.package-info.java=\
 336     package annotations should be in file package-info.java
 337 compiler.err.pkg.clashes.with.class.of.same.name=\
 338     package {0} clashes with class of same name
 339 
 340 compiler.err.warnings.and.werror=\
 341     warnings found and -Werror specified
 342 
 343 # Errors related to annotation processing
 344 
 345 compiler.err.proc.cant.access=\
 346 cannot access {0}\n\
 347 {1}\n\
 348 Consult the following stack trace for details.\n\
 349 {2}
 350 
 351 compiler.err.proc.cant.find.class=\
 352     Could not find class file for ''{0}''.
 353 
 354 # Print a client-generated error message; assumed to be localized, no translation required
 355 compiler.err.proc.messager=\
 356     {0}
 357 
 358 compiler.err.proc.no.explicit.annotation.processing.requested=\
 359     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
 360 
 361 compiler.err.proc.no.service=\
 362     A service loader class could not be found.\n\
 363     Either java.util.ServiceLoader or sun.misc.Service must be available.
 364 
 365 compiler.err.proc.processor.bad.option.name=\
 366     Bad option name ''{0}'' provided by processor ''{1}''
 367 
 368 compiler.err.proc.processor.cant.instantiate=\
 369     Could not instantiate an instance of processor ''{0}''
 370 
 371 compiler.err.proc.processor.constructor.error=\
 372     Exception thrown while constructing Processor object: {0}
 373 
 374 compiler.err.proc.processor.not.found=\
 375     Annotation processor ''{0}'' not found
 376 
 377 compiler.err.proc.processor.wrong.type=\
 378     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
 379 
 380 compiler.err.proc.service.problem=\
 381     Error creating a service loader to load Processors.
 382 
 383 compiler.err.proc.bad.config.file=\
 384     Bad service configuration file, or exception thrown while constructing Processor object: {0}
 385 
 386 compiler.err.proc.cant.create.loader=\
 387     Could not create class loader for annotation processors: {0}
 388 
 389 compiler.err.qualified.new.of.static.class=\
 390     qualified new of static class
 391 
 392 compiler.err.recursive.ctor.invocation=\
 393     recursive constructor invocation
 394 compiler.err.ref.ambiguous=\
 395     reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
 396 compiler.err.repeated.annotation.target=\
 397     repeated annotation target
 398 compiler.err.repeated.interface=\
 399     repeated interface
 400 compiler.err.repeated.modifier=\
 401     repeated modifier
 402 compiler.err.report.access=\
 403     {0} has {1} access in {2}
 404 compiler.err.ret.outside.meth=\
 405     return outside method
 406 
 407 compiler.err.signature.doesnt.match.supertype=\
 408     signature does not match {0}; incompatible supertype
 409 compiler.err.signature.doesnt.match.intf=\
 410     signature does not match {0}; incompatible interfaces
 411 compiler.err.does.not.override.abstract=\
 412     {0} is not abstract and does not override abstract method {1} in {2}
 413 compiler.err.source.cant.overwrite.input.file=\
 414     error writing source; cannot overwrite input file {0}
 415 compiler.err.stack.sim.error=\
 416     Internal error: stack sim error on {0}
 417 compiler.err.static.imp.only.classes.and.interfaces=\
 418     static import only from classes and interfaces
 419 compiler.err.synthetic.name.conflict=\
 420     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
 421 
 422 compiler.err.throws.not.allowed.in.intf.annotation=\
 423     throws clause not allowed in @interface members
 424 compiler.err.try.without.catch.or.finally=\
 425     ''try'' without ''catch'' or ''finally''
 426 compiler.err.type.doesnt.take.params=\
 427     type {0} does not take parameters
 428 compiler.err.type.var.cant.be.deref=\
 429     cannot select from a type variable
 430 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
 431     a type variable may not be followed by other bounds
 432 compiler.err.type.var.more.than.once=\
 433     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
 434 compiler.err.type.var.more.than.once.in.result=\
 435     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
 436 compiler.err.types.incompatible.diff.ret=\
 437     types {0} and {1} are incompatible; both define {2}, but with unrelated return types
 438 
 439 compiler.err.unclosed.char.lit=\
 440     unclosed character literal
 441 compiler.err.unclosed.comment=\
 442     unclosed comment
 443 compiler.err.unclosed.str.lit=\
 444     unclosed string literal
 445 compiler.err.unknown.enum.constant=\
 446     in class file {0}: unknown enum constant {1}.{2}
 447 compiler.err.unsupported.encoding=\
 448     unsupported encoding: {0}
 449 compiler.err.io.exception=\
 450     error reading source file: {0}
 451 compiler.err.undef.label=\
 452     undefined label: {0}
 453 compiler.err.undetermined.type=\
 454     type parameters of {0} cannot be determined
 455 compiler.err.undetermined.type.1=\
 456     type parameters of {0} cannot be determined; {1}
 457 compiler.err.invalid.inferred.types=\
 458     invalid inferred types for {0}; {1}
 459 compiler.err.unreachable.stmt=\
 460     unreachable statement
 461 compiler.err.initializer.must.be.able.to.complete.normally=\
 462     initializer must be able to complete normally
 463 compiler.err.unreported.exception.need.to.catch.or.throw=\
 464     unreported exception {0}; must be caught or declared to be thrown
 465 compiler.err.unreported.exception.default.constructor=\
 466     unreported exception {0} in default constructor
 467 compiler.err.unsupported.cross.fp.lit=\
 468     hexadecimal floating-point literals are not supported on this VM
 469 compiler.err.void.not.allowed.here=\
 470     ''void'' type not allowed here
 471 
 472 compiler.err.wrong.number.type.args=\
 473     wrong number of type arguments; required {0}
 474 
 475 compiler.err.var.might.already.be.assigned=\
 476     variable {0} might already have been assigned
 477 compiler.err.var.might.not.have.been.initialized=\
 478     variable {0} might not have been initialized
 479 compiler.err.var.might.be.assigned.in.loop=\
 480     variable {0} might be assigned in loop
 481 
 482 # In the following string, {1} will always be the detail message from
 483 # java.io.IOException.
 484 compiler.err.class.cant.write=\
 485     error while writing {0}: {1}
 486 
 487 # In the following string, {0} is the name of the class in the Java source.
 488 # It really should be used two times..
 489 compiler.err.class.public.should.be.in.file=\
 490     class {0} is public, should be declared in a file named {0}.java
 491 
 492 ## All errors which do not refer to a particular line in the source code are
 493 ## preceded by this string.
 494 compiler.err.error=\
 495     error:\u0020
 496 
 497 # The following error messages do not refer to a line in the source code.
 498 compiler.err.cant.read.file=\
 499     cannot read: {0}
 500 
 501 #####
 502 
 503 # Fatal Errors
 504 
 505 compiler.misc.fatal.err.no.java.lang=\
 506     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
 507 compiler.misc.fatal.err.cant.locate.meth=\
 508     Fatal Error: Unable to find method {0}
 509 compiler.misc.fatal.err.cant.locate.field=\
 510     Fatal Error: Unable to find field {0}
 511 compiler.misc.fatal.err.cant.locate.ctor=\
 512     Fatal Error: Unable to find constructor for {0}
 513 
 514 #####
 515 
 516 ##
 517 ## miscellaneous strings
 518 ##
 519 
 520 compiler.misc.source.unavailable=\
 521     (source unavailable)
 522 compiler.misc.base.membership=\
 523     all your base class are belong to us
 524 compiler.misc.x.print.processor.info=\
 525     Processor {0} matches {1} and returns {2}.
 526 compiler.misc.x.print.rounds=\
 527     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
 528 
 529 #####
 530 
 531 ## The following string will appear before all messages keyed as:
 532 ## "compiler.note".
 533 compiler.note.note=\
 534     Note:\u0020
 535 
 536 compiler.note.deprecated.filename=\
 537     {0} uses or overrides a deprecated API.
 538 compiler.note.deprecated.plural=\
 539     Some input files use or override a deprecated API.
 540 # The following string may appear after one of the above deprecation
 541 # messages.
 542 compiler.note.deprecated.recompile=\
 543     Recompile with -Xlint:deprecation for details.
 544 
 545 compiler.note.deprecated.filename.additional=\
 546     {0} has additional uses or overrides of a deprecated API.
 547 compiler.note.deprecated.plural.additional=\
 548     Some input files additionally use or override a deprecated API.
 549 
 550 # Notes related to annotation processing
 551 
 552 # Print a client-generated note; assumed to be localized, no translation required
 553 compiler.note.proc.messager=\
 554     {0}
 555 
 556 compiler.note.unchecked.filename=\
 557     {0} uses unchecked or unsafe operations.
 558 compiler.note.unchecked.plural=\
 559     Some input files use unchecked or unsafe operations.
 560 # The following string may appear after one of the above deprecation
 561 # messages.
 562 compiler.note.unchecked.recompile=\
 563     Recompile with -Xlint:unchecked for details.
 564 
 565 compiler.note.unchecked.filename.additional=\
 566     {0} has additional unchecked or unsafe operations.
 567 compiler.note.unchecked.plural.additional=\
 568     Some input files additionally use unchecked or unsafe operations.
 569 
 570 #####
 571 
 572 compiler.misc.count.error=\
 573     {0} error
 574 compiler.misc.count.error.plural=\
 575     {0} errors
 576 compiler.misc.count.warn=\
 577     {0} warning
 578 compiler.misc.count.warn.plural=\
 579     {0} warnings
 580 
 581 ## extra output when using -verbose (JavaCompiler)
 582 
 583 compiler.misc.verbose.checking.attribution=\
 584     [checking {0}]
 585 compiler.misc.verbose.parsing.done=\
 586     [parsing completed {0}ms]
 587 compiler.misc.verbose.parsing.started=\
 588     [parsing started {0}]
 589 compiler.misc.verbose.total=\
 590     [total {0}ms]
 591 compiler.misc.verbose.wrote.file=\
 592     [wrote {0}]
 593 
 594 ## extra output when using -verbose (Retro)
 595 compiler.misc.verbose.retro=\
 596     [retrofitting {0}]
 597 compiler.misc.verbose.retro.with=\
 598     \tretrofitting {0} with {1}
 599 compiler.misc.verbose.retro.with.list=\
 600     \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
 601 
 602 ## extra output when using -verbose (code/ClassReader)
 603 compiler.misc.verbose.loading=\
 604     [loading {0}]
 605 
 606 compiler.misc.verbose.sourcepath=\
 607     [search path for source files: {0}]
 608 
 609 compiler.misc.verbose.classpath=\
 610     [search path for class files: {0}]
 611 
 612 ## extra output when using -checkclassfile (code/ClassReader)
 613 compiler.misc.ccf.found.later.version=\
 614     class file has later version than expected: {0}
 615 compiler.misc.ccf.unrecognized.attribute=\
 616     unrecognized attribute: {0}
 617 
 618 ## extra output when using -prompt (util/Log)
 619 compiler.misc.resume.abort=\
 620     R)esume, A)bort>
 621 
 622 #####
 623 
 624 ##
 625 ## warnings
 626 ##
 627 
 628 ## All warning messages are preceded by the following string.
 629 compiler.warn.warning=\
 630     warning:\u0020
 631 
 632 compiler.warn.constant.SVUID=\
 633     [serial] serialVersionUID must be constant in class {0}
 634 
 635 compiler.warn.dir.path.element.not.found=\
 636     [path] bad path element "{0}": no such directory
 637 
 638 compiler.warn.finally.cannot.complete=\
 639     [finally] finally clause cannot complete normally
 640 
 641 compiler.warn.has.been.deprecated=\
 642     [deprecation] {0} in {1} has been deprecated
 643 
 644 compiler.warn.sun.proprietary=\
 645     {0} is internal proprietary API and may be removed in a future release
 646 
 647 compiler.warn.illegal.char.for.encoding=\
 648     unmappable character for encoding {0}
 649 compiler.warn.improper.SVUID=\
 650     [serial] serialVersionUID must be declared static final in class {0}
 651 
 652 compiler.warn.inexact.non-varargs.call=\
 653 non-varargs call of varargs method with inexact argument type for last parameter;\n\
 654 cast to {0} for a varargs call\n\
 655 cast to {1} for a non-varargs call and to suppress this warning
 656 
 657 compiler.warn.long.SVUID=\
 658     [serial] serialVersionUID must be of type long in class {0}
 659 
 660 compiler.warn.missing.SVUID=\
 661     [serial] serializable class {0} has no definition of serialVersionUID
 662 
 663 compiler.warn.override.varargs.missing=\
 664     {0}; overridden method has no ''...''
 665 compiler.warn.override.varargs.extra=\
 666     {0}; overriding method is missing ''...''
 667 compiler.warn.override.bridge=\
 668     {0}; overridden method is a bridge method
 669 
 670 compiler.warn.pkg-info.already.seen=\
 671     [package-info] a package-info.java file has already been seen for package {0}
 672 compiler.warn.path.element.not.found=\
 673     [path] bad path element "{0}": no such file or directory
 674 compiler.warn.possible.fall-through.into.case=\
 675     [fallthrough] possible fall-through into case
 676 
 677 compiler.warn.redundant.cast=\
 678     [cast] redundant cast to {0}
 679 
 680 compiler.warn.position.overflow=\
 681     Position encoding overflows at line {0}
 682 
 683 compiler.warn.big.major.version=\
 684     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
 685     It is recommended that the compiler be upgraded.
 686 
 687 # Warnings related to annotation processing
 688 compiler.warn.proc.package.does.not.exist=\
 689     package {0} does not exist
 690 compiler.warn.proc.file.reopening=\
 691     Attempt to create a file for ''{0}'' multiple times
 692 
 693 compiler.warn.proc.type.already.exists=\
 694     A file for type ''{0}'' already exists on the sourcepath or classpath
 695 
 696 compiler.warn.proc.type.recreate=\
 697     Attempt to create a file for type ''{0}'' multiple times
 698 
 699 compiler.warn.proc.illegal.file.name=\
 700     Cannot create file for illegal name ''{0}''.
 701 
 702 compiler.warn.proc.file.create.last.round=\
 703     File for type ''{0}'' created in the last round will not be subject to annotation processing.
 704 
 705 compiler.warn.proc.malformed.supported.string=\
 706     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
 707 
 708 compiler.warn.proc.annotations.without.processors=\
 709     No processor claimed any of these annotations: {0}
 710 
 711 compiler.warn.proc.processor.incompatible.source.version=\
 712     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
 713 
 714 compiler.warn.proc.proc-only.requested.no.procs=\
 715     Annotation processing without compilation requested but no processors were found.
 716 
 717 compiler.warn.proc.use.implicit=\
 718 Implicitly compiled files were not subject to annotation processing.\n\
 719 Use -implicit to specify a policy for implicit compilation.
 720 
 721 compiler.warn.proc.use.proc.or.implicit=\
 722 Implicitly compiled files were not subject to annotation processing.\n\
 723 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
 724 
 725 # Print a client-generated warning; assumed to be localized, no translation required
 726 compiler.warn.proc.messager=\
 727     {0}
 728 
 729 compiler.warn.proc.unclosed.type.files=\
 730     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
 731 
 732 compiler.warn.proc.unmatched.processor.options=\
 733     The following options were not recognized by any processor: ''{0}''
 734 
 735 compiler.warn.unchecked.assign=\
 736     [unchecked] unchecked assignment: {0} to {1}
 737 compiler.warn.unchecked.assign.to.var=\
 738     [unchecked] unchecked assignment to variable {0} as member of raw type {1}
 739 compiler.warn.unchecked.call.mbr.of.raw.type=\
 740     [unchecked] unchecked call to {0} as a member of the raw type {1}
 741 compiler.warn.unchecked.cast.to.type=\
 742     [unchecked] unchecked cast to type {0}
 743 compiler.warn.unchecked.meth.invocation.applied=\
 744     [unchecked] unchecked method invocation: {0} in {1} is applied to {2}({3})
 745 compiler.warn.unchecked.generic.array.creation=\
 746     [unchecked] unchecked generic array creation of type {0} for varargs parameter
 747 
 748 compiler.warn.missing.deprecated.annotation=\
 749     [dep-ann] deprecated item is not annotated with @Deprecated
 750 
 751 compiler.warn.invalid.archive.file=\
 752     [path] Unexpected file on path: {0}
 753 
 754 compiler.warn.unexpected.archive.file=\
 755     [path] Unexpected extension for archive file: {0}
 756 
 757 compiler.warn.div.zero=\
 758     [divzero] division by zero
 759 
 760 compiler.warn.empty.if=\
 761     [empty] empty statement after if
 762 
 763 compiler.warn.annotation.method.not.found=\
 764     Cannot find annotation method ''{1}()'' in type ''{0}''
 765 
 766 compiler.warn.annotation.method.not.found.reason=\
 767     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
 768 
 769 #####
 770 
 771 ## The following are tokens which are non-terminals in the language. They should
 772 ## be named as JLS3 calls them when translated to the appropriate language.
 773 compiler.misc.token.identifier=\
 774     <identifier>
 775 compiler.misc.token.character=\
 776     <character>
 777 compiler.misc.token.string=\
 778     <string>
 779 compiler.misc.token.integer=\
 780     <integer>
 781 compiler.misc.token.long-integer=\
 782     <long integer>
 783 compiler.misc.token.float=\
 784     <float>
 785 compiler.misc.token.double=\
 786     <double>
 787 compiler.misc.token.bad-symbol=\
 788     <bad symbol>
 789 compiler.misc.token.end-of-input=\
 790     <end of input>
 791 
 792 ## The argument to the following string will always be one of the following:
 793 ## 1. one of the above non-terminals
 794 ## 2. a keyword (JLS1.8)
 795 ## 3. a boolean literal (JLS3.10.3)
 796 ## 4. the null literal (JLS3.10.7)
 797 ## 5. a Java separator (JLS3.11)
 798 ## 6. an operator (JLS3.12)
 799 ##
 800 ## This is the only place these tokens will be used.
 801 compiler.err.expected=\
 802     {0} expected
 803 compiler.err.expected2=\
 804     {0} or {1} expected
 805 compiler.err.expected3=\
 806     {0}, {1}, or {2} expected
 807 
 808 compiler.err.premature.eof=\
 809     reached end of file while parsing
 810 
 811 ## The following are related in form, but do not easily fit the above paradigm.
 812 compiler.err.dot.class.expected=\
 813     ''.class'' expected
 814 
 815 ## The argument to this string will always be either 'case' or 'default'.
 816 compiler.err.orphaned=\
 817     orphaned {0}
 818 
 819 compiler.misc.anonymous.class=\
 820     <anonymous {0}>
 821 
 822 compiler.misc.unnamed.package=\
 823     unnamed package
 824 
 825 #####
 826 
 827 compiler.err.cant.access=\
 828 cannot access {0}\n\
 829 {1}
 830 
 831 compiler.misc.bad.class.file.header=\
 832 bad class file: {0}\n\
 833 {1}\n\
 834 Please remove or make sure it appears in the correct subdirectory of the classpath.
 835 
 836 ## The following are all possible strings for the second argument ({1}) of the
 837 ## above strings.
 838 compiler.misc.bad.class.signature=\
 839     bad class signature: {0}
 840 compiler.misc.bad.enclosing.method=\
 841     bad enclosing method attribute: {0}
 842 compiler.misc.bad.runtime.invisible.param.annotations=\
 843     bad RuntimeInvisibleParameterAnnotations attribute: {0}
 844 compiler.misc.bad.const.pool.tag=\
 845     bad constant pool tag: {0}
 846 compiler.misc.bad.const.pool.tag.at=\
 847     bad constant pool tag: {0} at {1}
 848 compiler.misc.bad.signature=\
 849     bad signature: {0}
 850 compiler.misc.class.file.wrong.class=\
 851     class file contains wrong class: {0}
 852 compiler.misc.class.file.not.found=\
 853     class file for {0} not found
 854 compiler.misc.file.doesnt.contain.class=\
 855     file does not contain class {0}
 856 compiler.misc.file.does.not.contain.package=\
 857     file does not contain package {0}
 858 compiler.misc.illegal.start.of.class.file=\
 859     illegal start of class file
 860 compiler.misc.unable.to.access.file=\
 861     unable to access file: {0}
 862 compiler.misc.unicode.str.not.supported=\
 863     unicode string in class file not supported
 864 compiler.misc.undecl.type.var=\
 865     undeclared type variable: {0}
 866 compiler.misc.wrong.version=\
 867     class file has wrong version {0}.{1}, should be {2}.{3}
 868 
 869 #####
 870 
 871 compiler.err.not.within.bounds=\
 872     type parameter {0} is not within its bound
 873 
 874 compiler.err.not.within.bounds.explain=\
 875     type parameter {0} is not within its bound; {1}
 876 
 877 ## The following are all possible strings for the second argument ({1}) of the
 878 ## above string.
 879 
 880 ## none yet...
 881 
 882 #####
 883 
 884 compiler.err.prob.found.req=\
 885 {0}\n\
 886 found   : {1}\n\
 887 required: {2}
 888 compiler.warn.prob.found.req=\
 889 {0}\n\
 890 found   : {1}\n\
 891 required: {2}
 892 compiler.err.prob.found.req.1=\
 893 {0} {3}\n\
 894 found   : {1}\n\
 895 required: {2}
 896 
 897 ## The following are all possible strings for the first argument ({0}) of the
 898 ## above strings.
 899 compiler.misc.incompatible.types=\
 900     incompatible types
 901 compiler.misc.incompatible.types.1=\
 902     incompatible types; {0}
 903 compiler.misc.inconvertible.types=\
 904     inconvertible types
 905 compiler.misc.possible.loss.of.precision=\
 906     possible loss of precision
 907 
 908 compiler.misc.unchecked.assign=\
 909     [unchecked] unchecked conversion
 910 # compiler.misc.storecheck=\
 911 #     [unchecked] assignment might cause later store checks to fail
 912 # compiler.misc.unchecked=\
 913 #     [unchecked] assigned array cannot dynamically check its stores
 914 compiler.misc.unchecked.cast.to.type=\
 915     [unchecked] unchecked cast
 916 
 917 compiler.misc.assignment.from.super-bound=\
 918     assignment from super-bound type {0}
 919 compiler.misc.assignment.to.extends-bound=\
 920     assignment to extends-bound type {0}
 921 # compiler.err.star.expected=\
 922 #     ''*'' expected
 923 # compiler.err.no.elem.type=\
 924 #     \[\*\] cannot have a type
 925 
 926 #####
 927 
 928 compiler.err.type.found.req=\
 929 unexpected type\n\
 930 found   : {0}\n\
 931 required: {1}
 932 
 933 ## The following are all possible strings for the first argument ({0}) of the
 934 ## above string.
 935 compiler.misc.type.req.class=\
 936     class
 937 compiler.misc.type.req.class.array=\
 938     class or array
 939 compiler.misc.type.req.ref=\
 940     reference
 941 compiler.misc.type.req.exact=\
 942     class or interface without bounds
 943 compiler.misc.type.parameter=\
 944     type parameter {0} 
 945 
 946 #####
 947 
 948 ## The following are all possible strings for the last argument of all those
 949 ## diagnostics whose key ends in ".1"
 950 compiler.misc.undetermined.type=\
 951     undetermined type
 952 ncompiler.misc.type.variable.has.undetermined.type=\
 953     type variable {0} has undetermined type
 954 compiler.misc.no.unique.maximal.instance.exists=\
 955     no unique maximal instance exists for type variable {0} with upper bounds {1}
 956 compiler.misc.no.unique.minimal.instance.exists=\
 957     no unique minimal instance exists for type variable {0} with lower bounds {1}
 958 compiler.misc.no.conforming.instance.exists=\
 959     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
 960 compiler.misc.no.conforming.assignment.exists=\
 961     no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
 962 compiler.misc.arg.length.mismatch=\
 963     cannot instantiate from arguments because actual and formal argument lists differ in length
 964 compiler.misc.inferred.do.not.conform.to.bounds=\
 965     inferred type does not conform to declared bound(s)\n\
 966     inferred: {0}\n\
 967     bound(s): {1}
 968 compiler.misc.inferred.do.not.conform.to.params=\
 969     actual arguments do not conforms to inferred formal arguments\n\
 970     required: {0}\n\
 971     found: {1}
 972 
 973 #####
 974 
 975 ## The first argument ({0}) is a "kindname".
 976 compiler.err.abstract.cant.be.accessed.directly=\
 977     abstract {0} {1} in {2} cannot be accessed directly
 978 
 979 ## The first argument ({0}) is a "kindname".
 980 compiler.err.non-static.cant.be.ref=\
 981     non-static {0} {1} cannot be referenced from a static context
 982 
 983 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
 984 ## of kindnames (the list should be identical to that provided in source.
 985 compiler.err.unexpected.type=\
 986 unexpected type\n\
 987 required: {0}\n\
 988 found   : {1}
 989 
 990 ## The first argument ({0}) is a "kindname".
 991 compiler.err.cant.resolve=\
 992 cannot find symbol\n\
 993 symbol: {0} {3}{1}{2}
 994 
 995 ## The first argument ({0}) and fifth argument ({4}) are "kindname"s.
 996 compiler.err.cant.resolve.location=\
 997 cannot find symbol\n\
 998 symbol  : {0} {3}{1}{2}\n\
 999 location: {4} {5}
1000 
1001 ## The following are all possible string for "kindname".
1002 ## They should be called whatever the JLS calls them after it been translated
1003 ## to the appropriate language.
1004 # compiler.misc.kindname.constructor=\
1005 #     static member
1006 compiler.misc.kindname.annotation=\
1007     @interface
1008 compiler.misc.kindname.constructor=\
1009     constructor
1010 compiler.misc.kindname.interface=\
1011     interface
1012 compiler.misc.kindname.static=\
1013     static
1014 compiler.misc.kindname.type.variable=\
1015     type variable
1016 compiler.misc.kindname.type.variable.bound=\
1017     bound of type variable
1018 compiler.misc.kindname=\
1019     identifier({0})
1020 compiler.misc.kindname.variable=\
1021     variable
1022 compiler.misc.kindname.value=\
1023     value
1024 compiler.misc.kindname.method=\
1025     method
1026 compiler.misc.kindname.variable.method=\
1027     variable, method
1028 compiler.misc.kindname.value.method=\
1029     value, method
1030 compiler.misc.kindname.class=\
1031     class
1032 compiler.misc.kindname.variable.class=\
1033     variable, class
1034 compiler.misc.kindname.value.class=\
1035     value, class
1036 compiler.misc.kindname.method.class=\
1037     method, class
1038 compiler.misc.kindname.variable.method.class=\
1039     variable, method, class
1040 compiler.misc.kindname.value.method.class=\
1041     value, method, class
1042 compiler.misc.kindname.package=\
1043     package
1044 compiler.misc.kindname.variable.package=\
1045     variable, package
1046 compiler.misc.kindname.value.package=\
1047     value, package
1048 compiler.misc.kindname.method.package=\
1049     method, package
1050 compiler.misc.kindname.variable.method.package=\
1051     variable, method, package
1052 compiler.misc.kindname.value.method.package=\
1053     value, method, package
1054 compiler.misc.kindname.class.package=\
1055     class, package
1056 compiler.misc.kindname.variable.class.package=\
1057     variable, class, package
1058 compiler.misc.kindname.value.class.package=\
1059     value, class, package
1060 compiler.misc.kindname.method.class.package=\
1061     method, class, package
1062 compiler.misc.kindname.variable.method.class.package=\
1063     variable, method, class, package
1064 compiler.misc.kindname.value.method.class.package=\
1065     value, method, class, package
1066 
1067 #####
1068 
1069 compiler.err.override.static=\
1070     {0}; overriding method is static
1071 compiler.err.override.meth=\
1072     {0}; overridden method is {1}
1073 
1074 compiler.err.override.meth.doesnt.throw=\
1075     {0}; overridden method does not throw {1}
1076 
1077 # In the following string {1} is a space separated list of Java Keywords, as
1078 # they would have been declared in the source code
1079 compiler.err.override.weaker.access=\
1080     {0}; attempting to assign weaker access privileges; was {1}
1081 
1082 compiler.misc.override.incompatible.ret=\
1083     {0}; attempting to use incompatible return type
1084 
1085 compiler.misc.override.unchecked.ret=\
1086     {0}; return type requires unchecked conversion
1087 
1088 ## The following are all possible strings for the first argument ({0}) of the
1089 ## above strings.
1090 compiler.misc.cant.override=\
1091     {0} in {1} cannot override {2} in {3}
1092 compiler.misc.cant.implement=\
1093     {0} in {1} cannot implement {2} in {3}
1094 compiler.misc.clashes.with=\
1095     {0} in {1} clashes with {2} in {3}
1096 compiler.misc.unchecked.override=\
1097     {0} in {1} overrides {2} in {3}
1098 compiler.misc.unchecked.implement=\
1099     {0} in {1} implements {2} in {3}
1100 compiler.misc.unchecked.clash.with=\
1101     {0} in {1} overrides {2} in {3}
1102 compiler.misc.varargs.override=\
1103     {0} in {1} overrides {2} in {3}
1104 compiler.misc.varargs.implement=\
1105     {0} in {1} implements {2} in {3}
1106 compiler.misc.varargs.clash.with=\
1107     {0} in {1} overrides {2} in {3}
1108 
1109 ########################################
1110 # Diagnostics for language feature changes
1111 ########################################
1112 compiler.err.unsupported.fp.lit=\
1113     hexadecimal floating-point literals are not supported before -source 5
1114 
1115 compiler.warn.enum.as.identifier=\
1116     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1117 (use -source 5 or higher to use ''enum'' as a keyword)
1118 
1119 compiler.warn.assert.as.identifier=\
1120     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1121 (use -source 1.4 or higher to use ''assert'' as a keyword)
1122 
1123 compiler.err.enum.as.identifier=\
1124     as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
1125 (use -source 1.4 or lower to use ''enum'' as an identifier)
1126 
1127 compiler.err.assert.as.identifier=\
1128     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
1129 (use -source 1.3 or lower to use ''assert'' as an identifier)
1130 
1131 compiler.err.generics.not.supported.in.source=\
1132     generics are not supported in -source {0}\n\
1133 (use -source 5 or higher to enable generics)
1134 
1135 compiler.err.varargs.not.supported.in.source=\
1136     variable-arity methods are not supported in -source {0}\n\
1137 (use -source 5 or higher to enable variable-arity methods)
1138 
1139 compiler.err.annotations.not.supported.in.source=\
1140     annotations are not supported in -source {0}\n\
1141 (use -source 5 or higher to enable annotations)
1142 
1143 compiler.err.foreach.not.supported.in.source=\
1144     for-each loops are not supported in -source {0}\n\
1145 (use -source 5 or higher to enable for-each loops)
1146 
1147 compiler.err.static.import.not.supported.in.source=\
1148     static import declarations are not supported in -source {0}\n\
1149 (use -source 5 or higher to enable static import declarations)
1150 
1151 compiler.err.enums.not.supported.in.source=\
1152     enums are not supported in -source {0}\n\
1153 (use -source 5 or higher to enable enums)