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

Mon, 26 Jul 2010 14:25:56 -0700

author
jjg
date
Mon, 26 Jul 2010 14:25:56 -0700
changeset 612
d1bd93028447
parent 609
13354e1abba7
child 618
4a7979c3ce15
permissions
-rw-r--r--

6957438: improve code for generating warning messages containing option names
Reviewed-by: mcimadamore

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

mercurial