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

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

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

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

duke@1 1 #
jjg@815 2 # Copyright (c) 1999, 2011, 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
jjg@842 26 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
jjg@842 27 # are preceded by a stylized comment describing the type of the corresponding
jjg@842 28 # values.
jjg@842 29 # The types currently in use are
jjg@842 30 #
jjg@842 31 # boolean true or false
jjg@842 32 # file name the name of an input file; e.g. MyFile.java
jjg@842 33 # message segment a sub-message; see compiler.misc.*
jjg@842 34 # modifier a Java modifier; e.g. public, private, protected
jjg@842 35 # name a name, typically a Java identifier
jjg@842 36 # number an integer
jjg@842 37 # option name the name of a command line option
jjg@842 38 # source version a source version number, such as 1.5, 1.6, 1.7
jjg@842 39 # string a general string
jjg@842 40 # symbol the name of a declared type
jjg@842 41 # symbol kind a description of the kind of a declaration; see compiler.misc.kindname.*
jjg@842 42 # token the name of a non-terminal in source code; see compiler.misc.token.*
jjg@842 43 # type a Java type; e.g. int, X, X<T>
jjg@842 44 # unused the value is not used in this message
jjg@842 45 #
jjg@842 46 # list of X a comma-separated list of items; e.g. list of type
jjg@842 47 # X or Y alternation; e.g. message segment or type
jjg@842 48 # set of X a comma-separated collection of items; e.g. set of modifier
jjg@842 49 #
jjg@842 50 # These may be composed: e.g. list of type or message segment
jjg@842 51 #
jjg@842 52 # These comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
jjg@842 53 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
jjg@842 54 # MessageInfo can also be run as a standalone utility providing more facilities
jjg@842 55 # for manipulating this file. For more details, see MessageInfo.java.
jjg@842 56
duke@1 57 ##
duke@1 58 ## errors
duke@1 59 ##
duke@1 60
jjg@842 61 # 0: symbol
duke@1 62 compiler.err.abstract.cant.be.instantiated=\
duke@1 63 {0} is abstract; cannot be instantiated
jjg@842 64
duke@1 65 compiler.err.abstract.meth.cant.have.body=\
duke@1 66 abstract methods cannot have a body
jjg@842 67
duke@1 68 compiler.err.already.annotated=\
duke@1 69 {0} {1} has already been annotated
jjg@842 70
jjg@842 71 # 0: symbol, 1: symbol
duke@1 72 compiler.err.already.defined=\
duke@1 73 {0} is already defined in {1}
jjg@842 74
jjg@842 75 # 0: string
duke@1 76 compiler.err.already.defined.single.import=\
duke@1 77 {0} is already defined in a single-type import
jjg@842 78
jjg@842 79 # 0: string
duke@1 80 compiler.err.already.defined.static.single.import=\
duke@1 81 {0} is already defined in a static single-type import
jjg@842 82
duke@1 83 compiler.err.already.defined.this.unit=\
duke@1 84 {0} is already defined in this compilation unit
jjg@842 85
jjg@842 86 # 0: type, 1: list of name
duke@1 87 compiler.err.annotation.missing.default.value=\
mcimadamore@632 88 annotation {0} is missing value for the attribute {1}
jjg@842 89
jjg@842 90 # 0: type, 1: list of name
mcimadamore@632 91 compiler.err.annotation.missing.default.value.1=\
mcimadamore@632 92 annotation {0} is missing values for attributes {1}
jjg@842 93
jjg@842 94 # 0: type
duke@1 95 compiler.err.annotation.not.valid.for.type=\
duke@1 96 annotation not valid for a value of type {0}
jjg@842 97
duke@1 98 compiler.err.annotation.type.not.applicable=\
duke@1 99 annotation type not applicable to this kind of declaration
jjg@842 100
duke@1 101 compiler.err.annotation.value.must.be.annotation=\
duke@1 102 annotation value must be an annotation
jjg@842 103
duke@1 104 compiler.err.annotation.value.must.be.class.literal=\
duke@1 105 annotation value must be a class literal
jjg@842 106
duke@1 107 compiler.err.annotation.value.must.be.name.value=\
duke@1 108 annotation values must be of the form ''name=value''
jjg@842 109
duke@1 110 compiler.err.annotation.value.not.allowable.type=\
duke@1 111 annotation value not of an allowable type
jjg@842 112
duke@1 113 compiler.err.anon.class.impl.intf.no.args=\
duke@1 114 anonymous class implements interface; cannot have arguments
jjg@842 115
duke@1 116 compiler.err.anon.class.impl.intf.no.typeargs=\
duke@1 117 anonymous class implements interface; cannot have type arguments
jjg@842 118
duke@1 119 compiler.err.anon.class.impl.intf.no.qual.for.new=\
duke@1 120 anonymous class implements interface; cannot have qualifier for new
jjg@842 121
jjg@842 122 # 0: symbol, 1: symbol, 2: symbol
duke@1 123 compiler.err.array.and.varargs=\
duke@1 124 cannot declare both {0} and {1} in {2}
jjg@842 125
duke@1 126 compiler.err.array.dimension.missing=\
duke@1 127 array dimension missing
jjg@842 128
jjg@842 129 # 0: type
duke@1 130 compiler.err.array.req.but.found=\
duke@1 131 array required, but {0} found
duke@1 132
duke@1 133 compiler.err.assignment.from.super-bound=\
duke@1 134 assigning from wildcard {0}
jjg@842 135
duke@1 136 compiler.err.assignment.to.extends-bound=\
duke@1 137 assigning to wildcard {0}
jjg@842 138
duke@1 139 compiler.err.attribute.value.must.be.constant=\
duke@1 140 attribute value must be constant
duke@1 141
duke@1 142 compiler.err.break.outside.switch.loop=\
duke@1 143 break outside switch or loop
duke@1 144
jjg@842 145 # 0: name
duke@1 146 compiler.err.call.must.be.first.stmt.in.ctor=\
duke@1 147 call to {0} must be first statement in constructor
jjg@842 148
duke@1 149 compiler.err.cant.apply.symbol=\
mcimadamore@80 150 {0} {1} in {4} {5} cannot be applied to given types\n\
mcimadamore@80 151 required: {2}\n\
mcimadamore@80 152 found: {3}
jjg@842 153
jjg@842 154 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
mcimadamore@299 155 compiler.err.cant.apply.symbol.1=\
mcimadamore@80 156 {0} {1} in {4} {5} cannot be applied to given types;\n\
mcimadamore@80 157 required: {2}\n\
mcimadamore@80 158 found: {3}\n\
mcimadamore@80 159 reason: {6}
jjg@842 160
jjg@842 161 # 0: symbol kind, 1: name, 2: list of type
mcimadamore@689 162 compiler.err.cant.apply.symbols=\
mcimadamore@689 163 no suitable {0} found for {1}({2})
jjg@842 164
jjg@842 165 # 0: symbol
duke@1 166 compiler.err.cant.assign.val.to.final.var=\
duke@1 167 cannot assign a value to final variable {0}
jjg@842 168
jjg@842 169 # 0: type
duke@1 170 compiler.err.cant.deref=\
duke@1 171 {0} cannot be dereferenced
jjg@842 172
duke@1 173 compiler.err.cant.extend.intf.annotation=\
duke@1 174 ''extends'' not allowed for @interfaces
jjg@842 175
jjg@842 176 # 0: symbol
duke@1 177 compiler.err.cant.inherit.from.final=\
duke@1 178 cannot inherit from final {0}
jjg@842 179
jjg@842 180 # 0: symbol
duke@1 181 compiler.err.cant.ref.before.ctor.called=\
duke@1 182 cannot reference {0} before supertype constructor has been called
jjg@842 183
duke@1 184 compiler.err.cant.ret.val.from.meth.decl.void=\
duke@1 185 cannot return a value from method whose result type is void
jjg@842 186
duke@1 187 compiler.err.cant.select.static.class.from.param.type=\
duke@1 188 cannot select a static class from a parameterized type
jjg@842 189
jjg@842 190 # 0: symbol, 1: string, 2: string
duke@1 191 compiler.err.cant.inherit.diff.arg=\
duke@1 192 {0} cannot be inherited with different arguments: <{1}> and <{2}>
jjg@842 193
duke@1 194 compiler.err.catch.without.try=\
duke@1 195 ''catch'' without ''try''
jjg@842 196
jjg@842 197 # 0: symbol kind, 1: symbol
duke@1 198 compiler.err.clash.with.pkg.of.same.name=\
mcimadamore@829 199 {0} {1} clashes with package of same name
jjg@842 200
duke@1 201 compiler.err.const.expr.req=\
duke@1 202 constant expression required
jjg@842 203
duke@1 204 compiler.err.cont.outside.loop=\
duke@1 205 continue outside of loop
jjg@842 206
jjg@842 207 # 0: symbol
duke@1 208 compiler.err.cyclic.inheritance=\
duke@1 209 cyclic inheritance involving {0}
jjg@842 210
duke@1 211 compiler.err.cyclic.annotation.element=\
duke@1 212 cyclic annotation element type
jjg@842 213
jjg@842 214 # 0: unused
duke@1 215 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
duke@1 216 call to super not allowed in enum constructor
jjg@842 217
jjg@842 218 # 0: type
duke@1 219 compiler.err.no.superclass=\
duke@1 220 {0} has no superclass
duke@1 221
mcimadamore@822 222 compiler.err.wrong.target.for.polymorphic.signature.definition=\
mcimadamore@674 223 MethodHandle API building requires -target 7 runtimes or better; current is -target {0}
mcimadamore@674 224
jjg@842 225 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
duke@1 226 compiler.err.concrete.inheritance.conflict=\
duke@1 227 methods {0} from {1} and {2} from {3} are inherited with the same signature
duke@1 228
duke@1 229 compiler.err.default.allowed.in.intf.annotation.member=\
duke@1 230 default value only allowed in an @interface member
jjg@842 231
jjg@842 232 # 0: symbol
duke@1 233 compiler.err.doesnt.exist=\
duke@1 234 package {0} does not exist
jjg@842 235
duke@1 236 compiler.err.duplicate.annotation=\
duke@1 237 duplicate annotation
jjg@842 238
jjg@842 239 # 0: name, 1: type
duke@1 240 compiler.err.duplicate.annotation.member.value=\
duke@1 241 duplicate annotation member value {0} in {1}
jjg@842 242
jjg@842 243 # 0: name
duke@1 244 compiler.err.duplicate.class=\
duke@1 245 duplicate class: {0}
jjg@842 246
duke@1 247 compiler.err.duplicate.case.label=\
duke@1 248 duplicate case label
jjg@842 249
duke@1 250 compiler.err.duplicate.default.label=\
duke@1 251 duplicate default label
duke@1 252
duke@1 253 compiler.err.else.without.if=\
duke@1 254 ''else'' without ''if''
jjg@842 255
duke@1 256 compiler.err.empty.char.lit=\
duke@1 257 empty character literal
jjg@842 258
jjg@842 259 # 0: symbol
duke@1 260 compiler.err.encl.class.required=\
duke@1 261 an enclosing instance that contains {0} is required
jjg@842 262
duke@1 263 compiler.err.enum.annotation.must.be.enum.constant=\
duke@1 264 an enum annotation value must be an enum constant
duke@1 265
duke@1 266 compiler.err.enum.cant.be.instantiated=\
duke@1 267 enum types may not be instantiated
jjg@842 268
duke@1 269 compiler.err.enum.label.must.be.unqualified.enum=\
duke@1 270 an enum switch case label must be the unqualified name of an enumeration constant
jjg@842 271
duke@1 272 compiler.err.enum.no.subclassing=\
duke@1 273 classes cannot directly extend java.lang.Enum
jjg@842 274
duke@1 275 compiler.err.enum.types.not.extensible=\
duke@1 276 enum types are not extensible
jjg@842 277
duke@1 278 compiler.err.enum.no.finalize=\
duke@1 279 enums cannot have finalize methods
jjg@842 280
jjg@842 281 # 0: file name, 1: string
duke@1 282 compiler.err.error.reading.file=\
duke@1 283 error reading {0}; {1}
jjg@842 284
jjg@842 285 # 0: type
duke@1 286 compiler.err.except.already.caught=\
duke@1 287 exception {0} has already been caught
jjg@842 288
jjg@842 289 # 0: type
duke@1 290 compiler.err.except.never.thrown.in.try=\
duke@1 291 exception {0} is never thrown in body of corresponding try statement
duke@1 292
jjg@842 293 # 0: symbol
duke@1 294 compiler.err.final.parameter.may.not.be.assigned=\
duke@1 295 final parameter {0} may not be assigned
jjg@842 296
jjg@842 297 # 0: symbol
mcimadamore@743 298 compiler.err.try.resource.may.not.be.assigned=\
mcimadamore@743 299 auto-closeable resource {0} may not be assigned
jjg@842 300
jjg@842 301 # 0: symbol
mcimadamore@550 302 compiler.err.multicatch.parameter.may.not.be.assigned=\
mcimadamore@550 303 multi-catch parameter {0} may not be assigned
jjg@842 304
duke@1 305 compiler.err.finally.without.try=\
duke@1 306 ''finally'' without ''try''
jjg@842 307
jjg@842 308 # 0: type, 1: message segment
duke@1 309 compiler.err.foreach.not.applicable.to.type=\
mcimadamore@829 310 for-each not applicable to expression type\n\
mcimadamore@829 311 required: {1}\n\
mcimadamore@829 312 found: {0}
jjg@842 313
duke@1 314 compiler.err.fp.number.too.large=\
duke@1 315 floating point number too large
jjg@842 316
duke@1 317 compiler.err.fp.number.too.small=\
duke@1 318 floating point number too small
duke@1 319
duke@1 320 compiler.err.generic.array.creation=\
duke@1 321 generic array creation
jjg@842 322
duke@1 323 compiler.err.generic.throwable=\
duke@1 324 a generic class may not extend java.lang.Throwable
duke@1 325
jjg@842 326 # 0: symbol
duke@1 327 compiler.err.icls.cant.have.static.decl=\
mcimadamore@830 328 Illegal static declaration in inner class {0}\n\
mcimadamore@830 329 modifier \''static\'' is only allowed in constant variable declarations
jjg@842 330
jjg@842 331 # 0: string
duke@1 332 compiler.err.illegal.char=\
duke@1 333 illegal character: \\{0}
jjg@842 334
duke@1 335 compiler.err.illegal.char.for.encoding=\
duke@1 336 unmappable character for encoding {0}
jjg@842 337
jjg@842 338 # 0: set of modifier, 1: set of modifier
duke@1 339 compiler.err.illegal.combination.of.modifiers=\
duke@1 340 illegal combination of modifiers: {0} and {1}
jjg@842 341
duke@1 342 compiler.err.illegal.enum.static.ref=\
duke@1 343 illegal reference to static field from initializer
jjg@842 344
duke@1 345 compiler.err.illegal.esc.char=\
duke@1 346 illegal escape character
jjg@842 347
duke@1 348 compiler.err.illegal.forward.ref=\
duke@1 349 illegal forward reference
jjg@842 350
jjg@842 351 # 0: symbol
duke@1 352 compiler.warn.forward.ref=\
duke@1 353 reference to variable ''{0}'' before it has been initialized
jjg@842 354
mcimadamore@94 355 compiler.err.illegal.self.ref=\
mcimadamore@94 356 self-reference in initializer
jjg@842 357
jjg@842 358 # 0: symbol
mcimadamore@94 359 compiler.warn.self.ref=\
mcimadamore@94 360 self-reference in initializer of variable ''{0}''
jjg@842 361
duke@1 362 compiler.err.illegal.generic.type.for.instof=\
duke@1 363 illegal generic type for instanceof
jjg@842 364
jjg@842 365 # 0: type
duke@1 366 compiler.err.illegal.initializer.for.type=\
duke@1 367 illegal initializer for {0}
jjg@842 368
duke@1 369 compiler.err.illegal.line.end.in.char.lit=\
duke@1 370 illegal line end in character literal
jjg@842 371
duke@1 372 compiler.err.illegal.nonascii.digit=\
duke@1 373 illegal non-ASCII digit
jjg@842 374
jjg@409 375 compiler.err.illegal.underscore=\
jjg@409 376 illegal underscore
jjg@842 377
jjg@842 378 # 0: symbol
duke@1 379 compiler.err.illegal.qual.not.icls=\
duke@1 380 illegal qualifier; {0} is not an inner class
jjg@842 381
duke@1 382 compiler.err.illegal.start.of.expr=\
duke@1 383 illegal start of expression
jjg@842 384
duke@1 385 compiler.err.illegal.start.of.type=\
duke@1 386 illegal start of type
jjg@842 387
duke@1 388 compiler.err.illegal.unicode.esc=\
duke@1 389 illegal unicode escape
jjg@842 390
jjg@842 391 # 0: symbol
duke@1 392 compiler.err.import.requires.canonical=\
duke@1 393 import requires canonical name for {0}
jjg@842 394
duke@1 395 compiler.err.improperly.formed.type.param.missing=\
duke@1 396 improperly formed type, some parameters are missing
jjg@842 397
duke@1 398 compiler.err.improperly.formed.type.inner.raw.param=\
mcimadamore@829 399 improperly formed type, type arguments given on a raw type
jjg@842 400
jjg@842 401 # 0: type, 1: type
duke@1 402 compiler.err.incomparable.types=\
duke@1 403 incomparable types: {0} and {1}
jjg@842 404
jjg@842 405 # 0: number
duke@1 406 compiler.err.int.number.too.large=\
duke@1 407 integer number too large: {0}
jjg@842 408
duke@1 409 compiler.err.internal.error.cant.instantiate=\
duke@1 410 internal error; cannot instantiate {0} at {1} to ({2})
jjg@842 411
duke@1 412 compiler.err.intf.annotation.members.cant.have.params=\
duke@1 413 @interface members may not have parameters
jjg@842 414
duke@1 415 compiler.err.intf.annotation.cant.have.type.params=\
duke@1 416 @interface may not have type parameters
jjg@842 417
duke@1 418 compiler.err.intf.annotation.members.cant.have.type.params=\
duke@1 419 @interface members may not have type parameters
jjg@842 420
jjg@842 421 # 0: symbol, 1: type
duke@1 422 compiler.err.intf.annotation.member.clash=\
duke@1 423 @interface member clashes with method ''{0}'' in {1}
jjg@842 424
duke@1 425 compiler.err.intf.expected.here=\
duke@1 426 interface expected here
jjg@842 427
duke@1 428 compiler.err.intf.meth.cant.have.body=\
duke@1 429 interface methods cannot have body
jjg@842 430
duke@1 431 compiler.err.invalid.annotation.member.type=\
duke@1 432 invalid type for annotation member
jjg@842 433
jjg@423 434 compiler.err.invalid.binary.number=\
jjg@423 435 binary numbers must contain at least one binary digit
jjg@842 436
duke@1 437 compiler.err.invalid.hex.number=\
duke@1 438 hexadecimal numbers must contain at least one hexadecimal digit
jjg@842 439
duke@1 440 compiler.err.invalid.meth.decl.ret.type.req=\
duke@1 441 invalid method declaration; return type required
jjg@842 442
mcimadamore@831 443 compiler.err.varargs.and.old.array.syntax=\
mcimadamore@831 444 legacy array notation not allowed on variable-arity parameter
duke@1 445
jjg@842 446 # 0: name
duke@1 447 compiler.err.label.already.in.use=\
duke@1 448 label {0} already in use
jjg@842 449
jjg@842 450 # 0: symbol
duke@1 451 compiler.err.local.var.accessed.from.icls.needs.final=\
duke@1 452 local variable {0} is accessed from within inner class; needs to be declared final
jjg@842 453
duke@1 454 compiler.err.local.enum=\
duke@1 455 enum types must not be local
jjg@842 456
duke@1 457 compiler.err.cannot.create.array.with.type.arguments=\
duke@1 458 cannot create array with type arguments
duke@1 459
duke@1 460 #
duke@1 461 # limits. We don't give the limits in the diagnostic because we expect
duke@1 462 # them to change, yet we want to use the same diagnostic. These are all
duke@1 463 # detected during code generation.
duke@1 464 #
duke@1 465 compiler.err.limit.code=\
duke@1 466 code too large
jjg@842 467
duke@1 468 compiler.err.limit.code.too.large.for.try.stmt=\
duke@1 469 code too large for try statement
jjg@842 470
duke@1 471 compiler.err.limit.dimensions=\
duke@1 472 array type has too many dimensions
jjg@842 473
duke@1 474 compiler.err.limit.locals=\
duke@1 475 too many local variables
jjg@842 476
duke@1 477 compiler.err.limit.parameters=\
duke@1 478 too many parameters
jjg@842 479
duke@1 480 compiler.err.limit.pool=\
duke@1 481 too many constants
jjg@842 482
duke@1 483 compiler.err.limit.pool.in.class=\
duke@1 484 too many constants in class {0}
jjg@842 485
duke@1 486 compiler.err.limit.stack=\
duke@1 487 code requires too much stack
jjg@842 488
duke@1 489 compiler.err.limit.string=\
duke@1 490 constant string too long
jjg@842 491
duke@1 492 compiler.err.limit.string.overflow=\
duke@1 493 UTF8 representation for string \"{0}...\" is too long for the constant pool
duke@1 494
duke@1 495 compiler.err.malformed.fp.lit=\
duke@1 496 malformed floating point literal
jjg@842 497
duke@1 498 compiler.err.method.does.not.override.superclass=\
duke@1 499 method does not override or implement a method from a supertype
jjg@842 500
duke@1 501 compiler.err.missing.meth.body.or.decl.abstract=\
duke@1 502 missing method body, or declare abstract
jjg@842 503
duke@1 504 compiler.err.missing.ret.stmt=\
duke@1 505 missing return statement
jjg@842 506
duke@1 507 compiler.err.missing.ret.val=\
duke@1 508 missing return value
jjg@842 509
jjg@842 510 # 0: set of modifier
duke@1 511 compiler.err.mod.not.allowed.here=\
duke@1 512 modifier {0} not allowed here
jjg@842 513
duke@1 514 compiler.err.intf.not.allowed.here=\
duke@1 515 interface not allowed here
jjg@842 516
duke@1 517 compiler.err.enums.must.be.static=\
duke@1 518 enum declarations allowed only in static contexts
duke@1 519
jjg@842 520 # 0: symbol, 1: symbol
duke@1 521 compiler.err.name.clash.same.erasure=\
duke@1 522 name clash: {0} and {1} have the same erasure
jjg@842 523
mcimadamore@858 524 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused
duke@1 525 compiler.err.name.clash.same.erasure.no.override=\
duke@1 526 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other
jjg@842 527
mcimadamore@858 528 # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol
mcimadamore@858 529 compiler.err.name.clash.same.erasure.no.override.1=\
mcimadamore@858 530 name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\
mcimadamore@858 531 first method: {2} in {3}\n\
mcimadamore@858 532 second method: {4} in {5}
mcimadamore@858 533
mcimadamore@858 534 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
mcimadamore@858 535 compiler.err.name.clash.same.erasure.no.hide=\
mcimadamore@858 536 name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
mcimadamore@858 537
duke@1 538 compiler.err.name.reserved.for.internal.use=\
duke@1 539 {0} is reserved for internal use
jjg@842 540
duke@1 541 compiler.err.native.meth.cant.have.body=\
duke@1 542 native methods cannot have a body
jjg@842 543
jjg@842 544 # 0: type, 1: type
duke@1 545 compiler.err.neither.conditional.subtype=\
jjg@842 546 incompatible types for ?: neither is a subtype of the other\n\
jjg@842 547 second operand: {0}\n\
jjg@842 548 third operand : {1}
jjg@842 549
duke@1 550 compiler.err.new.not.allowed.in.annotation=\
duke@1 551 ''new'' not allowed in an annotation
jjg@842 552
duke@1 553 compiler.err.no.annotation.member=\
duke@1 554 no annotation member {0} in {1}
jjg@842 555
duke@1 556 compiler.err.no.encl.instance.of.type.in.scope=\
duke@1 557 no enclosing instance of type {0} is in scope
jjg@842 558
duke@1 559 compiler.err.no.intf.expected.here=\
duke@1 560 no interface expected here
jjg@842 561
duke@1 562 compiler.err.no.match.entry=\
duke@1 563 {0} has no match in entry in {1}; required {2}
jjg@842 564
duke@1 565 compiler.err.not.annotation.type=\
duke@1 566 {0} is not an annotation type
jjg@842 567
jjg@842 568 # 0: symbol, 1: symbol
duke@1 569 compiler.err.not.def.access.class.intf.cant.access=\
duke@1 570 {0} in {1} is defined in an inaccessible class or interface
jjg@842 571
jjg@842 572 # 0: symbol, 1: symbol
duke@1 573 compiler.err.not.def.public.cant.access=\
duke@1 574 {0} is not public in {1}; cannot be accessed from outside package
jjg@842 575
jjg@842 576 # 0: name
duke@1 577 compiler.err.not.loop.label=\
duke@1 578 not a loop label: {0}
jjg@842 579
duke@1 580 compiler.err.not.stmt=\
duke@1 581 not a statement
jjg@842 582
jjg@842 583 # 0: symbol
duke@1 584 compiler.err.not.encl.class=\
duke@1 585 not an enclosing class: {0}
duke@1 586
jjg@842 587 # 0: name, 1: type, 2: unused
duke@1 588 compiler.err.operator.cant.be.applied=\
mcimadamore@829 589 bad operand type {1} for unary operator ''{0}''
jjg@842 590
jjg@842 591 # 0: name, 1: type, 2: type
mcimadamore@829 592 compiler.err.operator.cant.be.applied.1=\
mcimadamore@829 593 bad operand types for binary operator ''{0}''\n\
mcimadamore@829 594 first type: {1}\n\
mcimadamore@829 595 second type: {2}
duke@1 596
duke@1 597 compiler.err.pkg.annotations.sb.in.package-info.java=\
duke@1 598 package annotations should be in file package-info.java
jjg@842 599
jjg@842 600 # 0: symbol
duke@1 601 compiler.err.pkg.clashes.with.class.of.same.name=\
duke@1 602 package {0} clashes with class of same name
duke@1 603
jjg@215 604 compiler.err.warnings.and.werror=\
jjg@215 605 warnings found and -Werror specified
jjg@215 606
duke@1 607 # Errors related to annotation processing
duke@1 608
duke@1 609 compiler.err.proc.cant.access=\
jjg@842 610 cannot access {0}\n\
jjg@842 611 {1}\n\
jjg@842 612 Consult the following stack trace for details.\n\
jjg@842 613 {2}
duke@1 614
jjg@842 615 # 0: string
duke@1 616 compiler.err.proc.cant.find.class=\
duke@1 617 Could not find class file for ''{0}''.
duke@1 618
duke@1 619 # Print a client-generated error message; assumed to be localized, no translation required
jjg@842 620 # 0: string
duke@1 621 compiler.err.proc.messager=\
duke@1 622 {0}
duke@1 623
jjg@842 624 # 0: list of string
duke@1 625 compiler.err.proc.no.explicit.annotation.processing.requested=\
duke@1 626 Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
duke@1 627
duke@1 628 compiler.err.proc.no.service=\
duke@1 629 A service loader class could not be found.\n\
duke@1 630 Either java.util.ServiceLoader or sun.misc.Service must be available.
duke@1 631
duke@1 632 compiler.err.proc.processor.bad.option.name=\
duke@1 633 Bad option name ''{0}'' provided by processor ''{1}''
duke@1 634
jjg@842 635 # 0: string
duke@1 636 compiler.err.proc.processor.cant.instantiate=\
duke@1 637 Could not instantiate an instance of processor ''{0}''
duke@1 638
duke@1 639 compiler.err.proc.processor.constructor.error=\
duke@1 640 Exception thrown while constructing Processor object: {0}
duke@1 641
jjg@842 642 # 0: string
duke@1 643 compiler.err.proc.processor.not.found=\
duke@1 644 Annotation processor ''{0}'' not found
duke@1 645
jjg@842 646 # 0: string
duke@1 647 compiler.err.proc.processor.wrong.type=\
duke@1 648 Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
duke@1 649
duke@1 650 compiler.err.proc.service.problem=\
duke@1 651 Error creating a service loader to load Processors.
duke@1 652
duke@1 653 compiler.err.proc.bad.config.file=\
duke@1 654 Bad service configuration file, or exception thrown while constructing Processor object: {0}
duke@1 655
duke@1 656 compiler.err.proc.cant.create.loader=\
duke@1 657 Could not create class loader for annotation processors: {0}
duke@1 658
jjg@842 659 # 0: unused
duke@1 660 compiler.err.qualified.new.of.static.class=\
duke@1 661 qualified new of static class
duke@1 662
duke@1 663 compiler.err.recursive.ctor.invocation=\
duke@1 664 recursive constructor invocation
jjg@842 665
jjg@842 666 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
duke@1 667 compiler.err.ref.ambiguous=\
duke@1 668 reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match
jjg@842 669
duke@1 670 compiler.err.repeated.annotation.target=\
duke@1 671 repeated annotation target
jjg@842 672
duke@1 673 compiler.err.repeated.interface=\
duke@1 674 repeated interface
jjg@842 675
duke@1 676 compiler.err.repeated.modifier=\
duke@1 677 repeated modifier
jjg@842 678
jjg@842 679 # 0: symbol, 1: set of modifier, 2: symbol
duke@1 680 compiler.err.report.access=\
duke@1 681 {0} has {1} access in {2}
jjg@842 682
duke@1 683 compiler.err.ret.outside.meth=\
duke@1 684 return outside method
duke@1 685
duke@1 686 compiler.err.signature.doesnt.match.supertype=\
duke@1 687 signature does not match {0}; incompatible supertype
jjg@842 688
duke@1 689 compiler.err.signature.doesnt.match.intf=\
duke@1 690 signature does not match {0}; incompatible interfaces
jjg@842 691
jjg@842 692 # 0: symbol, 1: symbol, 2: symbol
duke@1 693 compiler.err.does.not.override.abstract=\
duke@1 694 {0} is not abstract and does not override abstract method {1} in {2}
jjg@842 695
duke@1 696 compiler.err.source.cant.overwrite.input.file=\
duke@1 697 error writing source; cannot overwrite input file {0}
jjg@842 698
duke@1 699 compiler.err.stack.sim.error=\
duke@1 700 Internal error: stack sim error on {0}
jjg@842 701
duke@1 702 compiler.err.static.imp.only.classes.and.interfaces=\
duke@1 703 static import only from classes and interfaces
jjg@842 704
darcy@430 705 compiler.err.string.const.req=\
darcy@430 706 constant string expression required
jjg@842 707
jjg@842 708 # 0: symbol, 1: symbol
duke@1 709 compiler.err.synthetic.name.conflict=\
duke@1 710 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
jjg@842 711
jjg@842 712 # 0: symbol, 1: symbol
mcimadamore@359 713 compiler.warn.synthetic.name.conflict=\
mcimadamore@359 714 the symbol {0} conflicts with a compiler-synthesized symbol in {1}
duke@1 715
duke@1 716 compiler.err.throws.not.allowed.in.intf.annotation=\
duke@1 717 throws clause not allowed in @interface members
jjg@842 718
duke@1 719 compiler.err.try.without.catch.or.finally=\
duke@1 720 ''try'' without ''catch'' or ''finally''
jjg@842 721
darcy@609 722 compiler.err.try.without.catch.finally.or.resource.decls=\
darcy@609 723 ''try'' without ''catch'', ''finally'' or resource declarations
jjg@842 724
jjg@842 725 # 0: symbol
duke@1 726 compiler.err.type.doesnt.take.params=\
duke@1 727 type {0} does not take parameters
jjg@842 728
duke@1 729 compiler.err.type.var.cant.be.deref=\
duke@1 730 cannot select from a type variable
jjg@842 731
duke@1 732 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
duke@1 733 a type variable may not be followed by other bounds
jjg@842 734
duke@1 735 compiler.err.type.var.more.than.once=\
duke@1 736 type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
jjg@842 737
duke@1 738 compiler.err.type.var.more.than.once.in.result=\
duke@1 739 type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
jjg@842 740
jjg@842 741 # 0: type, 1: type, 2: string
duke@1 742 compiler.err.types.incompatible.diff.ret=\
duke@1 743 types {0} and {1} are incompatible; both define {2}, but with unrelated return types
duke@1 744
duke@1 745 compiler.err.unclosed.char.lit=\
duke@1 746 unclosed character literal
jjg@842 747
duke@1 748 compiler.err.unclosed.comment=\
duke@1 749 unclosed comment
jjg@842 750
duke@1 751 compiler.err.unclosed.str.lit=\
duke@1 752 unclosed string literal
jjg@842 753
duke@1 754 compiler.err.unknown.enum.constant=\
duke@1 755 in class file {0}: unknown enum constant {1}.{2}
jjg@842 756
jjg@842 757 # 0: name
duke@1 758 compiler.err.unsupported.encoding=\
duke@1 759 unsupported encoding: {0}
jjg@842 760
duke@1 761 compiler.err.io.exception=\
duke@1 762 error reading source file: {0}
jjg@842 763
jjg@842 764 # 0: name
duke@1 765 compiler.err.undef.label=\
duke@1 766 undefined label: {0}
jjg@842 767
duke@1 768 compiler.err.undetermined.type=\
mcimadamore@829 769 cannot infer type arguments for {0}
jjg@842 770
jjg@842 771 # 0: type, 1: message segment
duke@1 772 compiler.err.undetermined.type.1=\
mcimadamore@829 773 cannot infer type arguments for {0};\n\
mcimadamore@829 774 reason: {1}
jjg@842 775
jjg@842 776 # 0: list of type, 1: message segment
mcimadamore@299 777 compiler.err.invalid.inferred.types=\
mcimadamore@299 778 invalid inferred types for {0}; {1}
jjg@842 779
jjg@842 780 # 0: message segment, 1: unused
mcimadamore@537 781 compiler.err.cant.apply.diamond=\
mcimadamore@537 782 cannot infer type arguments for {0}
jjg@842 783
jjg@842 784 # 0: message segment, 1: message segment
mcimadamore@537 785 compiler.err.cant.apply.diamond.1=\
mcimadamore@537 786 cannot infer type arguments for {0};\n\
mcimadamore@537 787 reason: {1}
jjg@842 788
duke@1 789 compiler.err.unreachable.stmt=\
duke@1 790 unreachable statement
jjg@842 791
duke@1 792 compiler.err.initializer.must.be.able.to.complete.normally=\
duke@1 793 initializer must be able to complete normally
jjg@842 794
jjg@842 795 # 0: type
duke@1 796 compiler.err.unreported.exception.need.to.catch.or.throw=\
duke@1 797 unreported exception {0}; must be caught or declared to be thrown
jjg@842 798
jjg@842 799 # 0: type
duke@1 800 compiler.err.unreported.exception.default.constructor=\
duke@1 801 unreported exception {0} in default constructor
jjg@842 802
mcimadamore@878 803 # 0: type, 1: name
mcimadamore@878 804 compiler.err.unreported.exception.implicit.close=\
mcimadamore@878 805 unreported exception {0}; must be caught or declared to be thrown\n\
mcimadamore@878 806 exception thrown from implicit call to close() on resource variable ''{1}''
mcimadamore@878 807
duke@1 808 compiler.err.unsupported.cross.fp.lit=\
duke@1 809 hexadecimal floating-point literals are not supported on this VM
jjg@842 810
duke@1 811 compiler.err.void.not.allowed.here=\
duke@1 812 ''void'' type not allowed here
duke@1 813
jjg@842 814 # 0: string
duke@1 815 compiler.err.wrong.number.type.args=\
duke@1 816 wrong number of type arguments; required {0}
duke@1 817
jjg@842 818 # 0: symbol
duke@1 819 compiler.err.var.might.already.be.assigned=\
duke@1 820 variable {0} might already have been assigned
jjg@842 821
jjg@842 822 # 0: symbol
duke@1 823 compiler.err.var.might.not.have.been.initialized=\
duke@1 824 variable {0} might not have been initialized
jjg@842 825
jjg@842 826 # 0: symbol
duke@1 827 compiler.err.var.might.be.assigned.in.loop=\
duke@1 828 variable {0} might be assigned in loop
duke@1 829
jjg@842 830 # 0: symbol, 1: message segment
mcimadamore@795 831 compiler.err.varargs.invalid.trustme.anno=\
mcimadamore@795 832 Invalid {0} annotation. {1}
jjg@842 833
jjg@842 834 # 0: type
mcimadamore@795 835 compiler.misc.varargs.trustme.on.reifiable.varargs=\
mcimadamore@795 836 Varargs element type {0} is reifiable.
jjg@842 837
jjg@842 838 # 0: symbol
mcimadamore@795 839 compiler.misc.varargs.trustme.on.non.varargs.meth=\
mcimadamore@795 840 Method {0} is not a varargs method.
jjg@842 841
jjg@842 842 # 0: symbol
mcimadamore@795 843 compiler.misc.varargs.trustme.on.virtual.varargs=\
mcimadamore@795 844 Instance method {0} is not final.
mcimadamore@795 845
mcimadamore@845 846 # 0: type, 1: kind, 2: symbol
mcimadamore@845 847 compiler.misc.inaccessible.varargs.type=\
mcimadamore@845 848 formal varargs element type {0} is not accessible from {1} {2}
mcimadamore@845 849
duke@1 850 # In the following string, {1} will always be the detail message from
duke@1 851 # java.io.IOException.
jjg@842 852 # 0: symbol, 1: string
duke@1 853 compiler.err.class.cant.write=\
duke@1 854 error while writing {0}: {1}
duke@1 855
duke@1 856 # In the following string, {0} is the name of the class in the Java source.
duke@1 857 # It really should be used two times..
jjg@842 858 # 0: name
duke@1 859 compiler.err.class.public.should.be.in.file=\
duke@1 860 class {0} is public, should be declared in a file named {0}.java
duke@1 861
duke@1 862 ## All errors which do not refer to a particular line in the source code are
duke@1 863 ## preceded by this string.
duke@1 864 compiler.err.error=\
duke@1 865 error:\u0020
duke@1 866
duke@1 867 # The following error messages do not refer to a line in the source code.
duke@1 868 compiler.err.cant.read.file=\
duke@1 869 cannot read: {0}
duke@1 870
duke@1 871 #####
duke@1 872
duke@1 873 # Fatal Errors
duke@1 874
duke@1 875 compiler.misc.fatal.err.no.java.lang=\
duke@1 876 Fatal Error: Unable to find package java.lang in classpath or bootclasspath
jjg@842 877
duke@1 878 compiler.misc.fatal.err.cant.locate.meth=\
duke@1 879 Fatal Error: Unable to find method {0}
jjg@842 880
duke@1 881 compiler.misc.fatal.err.cant.locate.field=\
duke@1 882 Fatal Error: Unable to find field {0}
jjg@842 883
duke@1 884 compiler.misc.fatal.err.cant.locate.ctor=\
duke@1 885 Fatal Error: Unable to find constructor for {0}
jjg@842 886
jjg@663 887 compiler.misc.fatal.err.cant.close.loader=\
jjg@663 888 Fatal Error: Cannot close class loader for annotation processors
duke@1 889
duke@1 890 #####
duke@1 891
duke@1 892 ##
duke@1 893 ## miscellaneous strings
duke@1 894 ##
duke@1 895
duke@1 896 compiler.misc.source.unavailable=\
duke@1 897 (source unavailable)
jjg@842 898
duke@1 899 compiler.misc.base.membership=\
duke@1 900 all your base class are belong to us
jjg@842 901
jjg@842 902 # 0: string, 1: string, 2: boolean
duke@1 903 compiler.misc.x.print.processor.info=\
duke@1 904 Processor {0} matches {1} and returns {2}.
jjg@842 905
jjg@842 906 # 0: number, 1: string, 2: set of symbol, 3: boolean
duke@1 907 compiler.misc.x.print.rounds=\
duke@1 908 Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
duke@1 909
duke@1 910 #####
duke@1 911
duke@1 912 ## The following string will appear before all messages keyed as:
duke@1 913 ## "compiler.note".
duke@1 914 compiler.note.note=\
duke@1 915 Note:\u0020
duke@1 916
jjg@842 917 # 0: file name
duke@1 918 compiler.note.deprecated.filename=\
duke@1 919 {0} uses or overrides a deprecated API.
jjg@842 920
duke@1 921 compiler.note.deprecated.plural=\
duke@1 922 Some input files use or override a deprecated API.
jjg@842 923
duke@1 924 # The following string may appear after one of the above deprecation
duke@1 925 # messages.
duke@1 926 compiler.note.deprecated.recompile=\
duke@1 927 Recompile with -Xlint:deprecation for details.
duke@1 928
jjg@842 929 # 0: file name
duke@1 930 compiler.note.deprecated.filename.additional=\
duke@1 931 {0} has additional uses or overrides of a deprecated API.
jjg@842 932
duke@1 933 compiler.note.deprecated.plural.additional=\
duke@1 934 Some input files additionally use or override a deprecated API.
duke@1 935
jjg@842 936 # 0: file name
duke@1 937 compiler.note.unchecked.filename=\
duke@1 938 {0} uses unchecked or unsafe operations.
jjg@842 939
duke@1 940 compiler.note.unchecked.plural=\
duke@1 941 Some input files use unchecked or unsafe operations.
jjg@842 942
duke@1 943 # The following string may appear after one of the above deprecation
duke@1 944 # messages.
duke@1 945 compiler.note.unchecked.recompile=\
duke@1 946 Recompile with -Xlint:unchecked for details.
duke@1 947
jjg@842 948 # 0: file name
duke@1 949 compiler.note.unchecked.filename.additional=\
duke@1 950 {0} has additional unchecked or unsafe operations.
jjg@842 951
duke@1 952 compiler.note.unchecked.plural.additional=\
duke@1 953 Some input files additionally use unchecked or unsafe operations.
duke@1 954
jjg@842 955 # 0: file name
jjg@377 956 compiler.note.sunapi.filename=\
jjg@582 957 {0} uses internal proprietary API that may be removed in a future release.
jjg@842 958
jjg@377 959 compiler.note.sunapi.plural=\
jjg@582 960 Some input files use internal proprietary API that may be removed in a future release.
jjg@842 961
jjg@377 962 # The following string may appear after one of the above sunapi messages.
jjg@377 963 compiler.note.sunapi.recompile=\
jjg@377 964 Recompile with -Xlint:sunapi for details.
jjg@377 965
jjg@842 966 # 0: file name
jjg@377 967 compiler.note.sunapi.filename.additional=\
jjg@582 968 {0} uses additional internal proprietary API that may be removed in a future release.
jjg@842 969
jjg@377 970 compiler.note.sunapi.plural.additional=\
jjg@582 971 Some input files additionally use internal proprietary API that may be removed in a future release.
jjg@377 972
jjg@377 973 # Notes related to annotation processing
jjg@377 974
jjg@377 975 # Print a client-generated note; assumed to be localized, no translation required
jjg@842 976 # 0: string
jjg@377 977 compiler.note.proc.messager=\
jjg@377 978 {0}
jjg@377 979
duke@1 980 #####
duke@1 981
jjg@842 982 # 0: number
duke@1 983 compiler.misc.count.error=\
duke@1 984 {0} error
jjg@842 985
jjg@842 986 # 0: number
duke@1 987 compiler.misc.count.error.plural=\
duke@1 988 {0} errors
jjg@842 989
jjg@842 990 # 0: number
duke@1 991 compiler.misc.count.warn=\
duke@1 992 {0} warning
jjg@842 993
jjg@842 994 # 0: number
duke@1 995 compiler.misc.count.warn.plural=\
duke@1 996 {0} warnings
duke@1 997
jjg@597 998 compiler.misc.version.not.available=\
jjg@597 999 (version info not available)
jjg@597 1000
duke@1 1001 ## extra output when using -verbose (JavaCompiler)
duke@1 1002
jjg@842 1003 # 0: symbol
duke@1 1004 compiler.misc.verbose.checking.attribution=\
duke@1 1005 [checking {0}]
jjg@842 1006
jjg@842 1007 # 0: string
duke@1 1008 compiler.misc.verbose.parsing.done=\
duke@1 1009 [parsing completed {0}ms]
jjg@842 1010
jjg@842 1011 # 0: file name
duke@1 1012 compiler.misc.verbose.parsing.started=\
duke@1 1013 [parsing started {0}]
jjg@842 1014
jjg@842 1015 # 0: string
duke@1 1016 compiler.misc.verbose.total=\
duke@1 1017 [total {0}ms]
jjg@842 1018
jjg@842 1019 # 0: file name
duke@1 1020 compiler.misc.verbose.wrote.file=\
duke@1 1021 [wrote {0}]
duke@1 1022
duke@1 1023 ## extra output when using -verbose (Retro)
duke@1 1024 compiler.misc.verbose.retro=\
duke@1 1025 [retrofitting {0}]
jjg@842 1026
duke@1 1027 compiler.misc.verbose.retro.with=\
duke@1 1028 \tretrofitting {0} with {1}
jjg@842 1029
duke@1 1030 compiler.misc.verbose.retro.with.list=\
duke@1 1031 \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3}
duke@1 1032
duke@1 1033 ## extra output when using -verbose (code/ClassReader)
jjg@842 1034 # 0: string
duke@1 1035 compiler.misc.verbose.loading=\
duke@1 1036 [loading {0}]
duke@1 1037
jjg@842 1038 # 0: string
duke@1 1039 compiler.misc.verbose.sourcepath=\
duke@1 1040 [search path for source files: {0}]
duke@1 1041
jjg@842 1042 # 0: string
duke@1 1043 compiler.misc.verbose.classpath=\
duke@1 1044 [search path for class files: {0}]
duke@1 1045
duke@1 1046 ## extra output when using -checkclassfile (code/ClassReader)
duke@1 1047 compiler.misc.ccf.found.later.version=\
duke@1 1048 class file has later version than expected: {0}
jjg@842 1049
duke@1 1050 compiler.misc.ccf.unrecognized.attribute=\
duke@1 1051 unrecognized attribute: {0}
duke@1 1052
duke@1 1053 ## extra output when using -prompt (util/Log)
duke@1 1054 compiler.misc.resume.abort=\
duke@1 1055 R)esume, A)bort>
duke@1 1056
duke@1 1057 #####
duke@1 1058
duke@1 1059 ##
duke@1 1060 ## warnings
duke@1 1061 ##
duke@1 1062
duke@1 1063 ## All warning messages are preceded by the following string.
duke@1 1064 compiler.warn.warning=\
duke@1 1065 warning:\u0020
duke@1 1066
jjg@612 1067 ## Warning messages may also include the following prefix to identify a
jjg@612 1068 ## lint option
jjg@842 1069 # 0: option name
jjg@612 1070 compiler.warn.lintOption=\
jjg@612 1071 [{0}]\u0020
jjg@612 1072
jjg@842 1073 # 0: symbol
duke@1 1074 compiler.warn.constant.SVUID=\
jjg@612 1075 serialVersionUID must be constant in class {0}
duke@1 1076
jjg@842 1077 # 0: file name
duke@1 1078 compiler.warn.dir.path.element.not.found=\
jjg@612 1079 bad path element "{0}": no such directory
duke@1 1080
duke@1 1081 compiler.warn.finally.cannot.complete=\
jjg@612 1082 finally clause cannot complete normally
duke@1 1083
jjg@842 1084 # 0: symbol, 1: symbol
duke@1 1085 compiler.warn.has.been.deprecated=\
jjg@612 1086 {0} in {1} has been deprecated
duke@1 1087
jjg@842 1088 # 0: symbol
duke@1 1089 compiler.warn.sun.proprietary=\
jjg@582 1090 {0} is internal proprietary API and may be removed in a future release
duke@1 1091
duke@1 1092 compiler.warn.illegal.char.for.encoding=\
duke@1 1093 unmappable character for encoding {0}
jjg@612 1094
jjg@842 1095 # 0: symbol
duke@1 1096 compiler.warn.improper.SVUID=\
jjg@612 1097 serialVersionUID must be declared static final in class {0}
duke@1 1098
jjg@842 1099 # 0: type, 1: type
duke@1 1100 compiler.warn.inexact.non-varargs.call=\
jjg@842 1101 non-varargs call of varargs method with inexact argument type for last parameter;\n\
jjg@842 1102 cast to {0} for a varargs call\n\
jjg@842 1103 cast to {1} for a non-varargs call and to suppress this warning
duke@1 1104
mcimadamore@935 1105 # 0: list of type
mcimadamore@935 1106 compiler.warn.unreachable.catch=\
mcimadamore@935 1107 unreachable catch clause\n\
mcimadamore@935 1108 thrown type {0} has already been caught
mcimadamore@935 1109
mcimadamore@935 1110 # 0: list of type
mcimadamore@935 1111 compiler.warn.unreachable.catch.1=\
mcimadamore@935 1112 unreachable catch clause\n\
mcimadamore@935 1113 thrown types {0} have already been caught
mcimadamore@935 1114
jjg@842 1115 # 0: symbol
duke@1 1116 compiler.warn.long.SVUID=\
jjg@612 1117 serialVersionUID must be of type long in class {0}
duke@1 1118
jjg@842 1119 # 0: symbol
duke@1 1120 compiler.warn.missing.SVUID=\
jjg@612 1121 serializable class {0} has no definition of serialVersionUID
duke@1 1122
jjg@842 1123 # 0: message segment
duke@1 1124 compiler.warn.override.varargs.missing=\
duke@1 1125 {0}; overridden method has no ''...''
jjg@842 1126
jjg@842 1127 # 0: message segment
duke@1 1128 compiler.warn.override.varargs.extra=\
duke@1 1129 {0}; overriding method is missing ''...''
jjg@842 1130
duke@1 1131 compiler.warn.override.bridge=\
duke@1 1132 {0}; overridden method is a bridge method
duke@1 1133
jjg@842 1134 # 0: symbol
duke@1 1135 compiler.warn.pkg-info.already.seen=\
jjg@457 1136 a package-info.java file has already been seen for package {0}
jjg@612 1137
jjg@842 1138 # 0: file name
duke@1 1139 compiler.warn.path.element.not.found=\
jjg@612 1140 bad path element "{0}": no such file or directory
jjg@612 1141
duke@1 1142 compiler.warn.possible.fall-through.into.case=\
jjg@612 1143 possible fall-through into case
duke@1 1144
jjg@842 1145 # 0: type
duke@1 1146 compiler.warn.redundant.cast=\
jjg@612 1147 redundant cast to {0}
duke@1 1148
jjg@842 1149 # 0: number
duke@1 1150 compiler.warn.position.overflow=\
duke@1 1151 Position encoding overflows at line {0}
duke@1 1152
jjg@842 1153 # 0: file name, 1: number, 2: number
duke@1 1154 compiler.warn.big.major.version=\
duke@1 1155 {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
duke@1 1156 It is recommended that the compiler be upgraded.
duke@1 1157
jjg@842 1158 # 0: symbol kind, 1: symbol
jjg@505 1159 compiler.warn.static.not.qualified.by.type=\
jjg@612 1160 static {0} should be qualified by type name, {1}, instead of by an expression
jjg@505 1161
jjg@842 1162 # 0: string
jjg@757 1163 compiler.warn.source.no.bootclasspath=\
jjg@757 1164 bootstrap class path not set in conjunction with -source {0}
jjg@757 1165
jjg@842 1166 # 0: name, 1: number, 2: number, 3: number, 4: number
jjg@776 1167 compiler.warn.future.attr=\
jjg@776 1168 {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
jjg@776 1169
duke@1 1170 # Warnings related to annotation processing
jjg@842 1171 # 0: name
duke@1 1172 compiler.warn.proc.package.does.not.exist=\
duke@1 1173 package {0} does not exist
jjg@842 1174
jjg@842 1175 # 0: name
duke@1 1176 compiler.warn.proc.file.reopening=\
duke@1 1177 Attempt to create a file for ''{0}'' multiple times
duke@1 1178
jjg@842 1179 # 0: name
duke@1 1180 compiler.warn.proc.type.already.exists=\
duke@1 1181 A file for type ''{0}'' already exists on the sourcepath or classpath
duke@1 1182
jjg@842 1183 # 0: name
duke@1 1184 compiler.warn.proc.type.recreate=\
duke@1 1185 Attempt to create a file for type ''{0}'' multiple times
duke@1 1186
jjg@842 1187 # 0: string
duke@1 1188 compiler.warn.proc.illegal.file.name=\
duke@1 1189 Cannot create file for illegal name ''{0}''.
duke@1 1190
jjg@842 1191 # 0: string, 1: string
jjg@618 1192 compiler.warn.proc.suspicious.class.name=\
jjg@618 1193 Creating file for a type whose name ends in {1}: ''{0}''
jjg@618 1194
jjg@842 1195 # 0: name
duke@1 1196 compiler.warn.proc.file.create.last.round=\
duke@1 1197 File for type ''{0}'' created in the last round will not be subject to annotation processing.
duke@1 1198
jjg@842 1199 # 0: string, 1: string
duke@1 1200 compiler.warn.proc.malformed.supported.string=\
duke@1 1201 Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
duke@1 1202
jjg@842 1203 # 0: set of string
duke@1 1204 compiler.warn.proc.annotations.without.processors=\
duke@1 1205 No processor claimed any of these annotations: {0}
duke@1 1206
jjg@842 1207 # 0: source version, 1: string, 2: string
duke@1 1208 compiler.warn.proc.processor.incompatible.source.version=\
duke@1 1209 Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
duke@1 1210
duke@1 1211 compiler.warn.proc.proc-only.requested.no.procs=\
duke@1 1212 Annotation processing without compilation requested but no processors were found.
duke@1 1213
duke@1 1214 compiler.warn.proc.use.implicit=\
jjg@842 1215 Implicitly compiled files were not subject to annotation processing.\n\
jjg@842 1216 Use -implicit to specify a policy for implicit compilation.
duke@1 1217
duke@1 1218 compiler.warn.proc.use.proc.or.implicit=\
jjg@842 1219 Implicitly compiled files were not subject to annotation processing.\n\
jjg@842 1220 Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
duke@1 1221
duke@1 1222 # Print a client-generated warning; assumed to be localized, no translation required
jjg@842 1223 # 0: string
duke@1 1224 compiler.warn.proc.messager=\
duke@1 1225 {0}
duke@1 1226
jjg@842 1227 # 0: set of name
duke@1 1228 compiler.warn.proc.unclosed.type.files=\
duke@1 1229 Unclosed files for the types ''{0}''; these types will not undergo annotation processing
duke@1 1230
jjg@842 1231 # 0: string
duke@1 1232 compiler.warn.proc.unmatched.processor.options=\
duke@1 1233 The following options were not recognized by any processor: ''{0}''
duke@1 1234
mcimadamore@743 1235 compiler.warn.try.explicit.close.call=\
mcimadamore@743 1236 explicit call to close() on an auto-closeable resource
jjg@842 1237
jjg@842 1238 # 0: symbol
mcimadamore@743 1239 compiler.warn.try.resource.not.referenced=\
mcimadamore@743 1240 auto-closeable resource {0} is never referenced in body of corresponding try statement
jjg@842 1241
duke@1 1242 compiler.warn.unchecked.assign=\
jjg@612 1243 unchecked assignment: {0} to {1}
jjg@842 1244
jjg@842 1245 # 0: symbol, 1: type
duke@1 1246 compiler.warn.unchecked.assign.to.var=\
jjg@612 1247 unchecked assignment to variable {0} as member of raw type {1}
jjg@842 1248
jjg@842 1249 # 0: symbol, 1: type
duke@1 1250 compiler.warn.unchecked.call.mbr.of.raw.type=\
jjg@612 1251 unchecked call to {0} as a member of the raw type {1}
jjg@842 1252
duke@1 1253 compiler.warn.unchecked.cast.to.type=\
jjg@612 1254 unchecked cast to type {0}
jjg@842 1255
jjg@842 1256 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
duke@1 1257 compiler.warn.unchecked.meth.invocation.applied=\
jjg@612 1258 unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
mcimadamore@161 1259 required: {2}\n\
mcimadamore@161 1260 found: {3}
mcimadamore@161 1261
jjg@842 1262 # 0: type
duke@1 1263 compiler.warn.unchecked.generic.array.creation=\
jjg@612 1264 unchecked generic array creation for varargs parameter of type {0}
duke@1 1265
jjg@842 1266 # 0: type
mcimadamore@795 1267 compiler.warn.unchecked.varargs.non.reifiable.type=\
jjg@612 1268 Possible heap pollution from parameterized vararg type {0}
mcimadamore@580 1269
jjg@842 1270 # 0: symbol
mcimadamore@795 1271 compiler.warn.varargs.unsafe.use.varargs.param=\
mcimadamore@795 1272 Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
mcimadamore@795 1273
duke@1 1274 compiler.warn.missing.deprecated.annotation=\
jjg@612 1275 deprecated item is not annotated with @Deprecated
duke@1 1276
duke@1 1277 compiler.warn.invalid.archive.file=\
jjg@612 1278 Unexpected file on path: {0}
duke@1 1279
duke@1 1280 compiler.warn.unexpected.archive.file=\
jjg@612 1281 Unexpected extension for archive file: {0}
duke@1 1282
duke@1 1283 compiler.warn.div.zero=\
jjg@612 1284 division by zero
duke@1 1285
duke@1 1286 compiler.warn.empty.if=\
jjg@612 1287 empty statement after if
duke@1 1288
duke@1 1289 compiler.warn.annotation.method.not.found=\
duke@1 1290 Cannot find annotation method ''{1}()'' in type ''{0}''
duke@1 1291
duke@1 1292 compiler.warn.annotation.method.not.found.reason=\
duke@1 1293 Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
duke@1 1294
jjg@842 1295 # 0: type, 1: type
mcimadamore@122 1296 compiler.warn.raw.class.use=\
jjg@612 1297 found raw type: {0}\n\
mcimadamore@829 1298 missing type arguments for generic class {1}
mcimadamore@122 1299
jjg@842 1300 # 0: unused, 1: unused
mcimadamore@731 1301 compiler.warn.diamond.redundant.args=\
mcimadamore@731 1302 redundant type arguments in new expression (use diamond operator instead).
jjg@842 1303
jjg@842 1304 # 0: type, 1: type
mcimadamore@731 1305 compiler.warn.diamond.redundant.args.1=\
mcimadamore@731 1306 redundant type arguments in new expression (use diamond operator instead).\n\
mcimadamore@731 1307 explicit: {0}\n\
mcimadamore@731 1308 inferred: {1}
mcimadamore@731 1309
jjg@842 1310 # 0: symbol, 1: message segment
mcimadamore@795 1311 compiler.warn.varargs.redundant.trustme.anno=\
mcimadamore@795 1312 Redundant {0} annotation. {1}
mcimadamore@795 1313
duke@1 1314 #####
duke@1 1315
duke@1 1316 ## The following are tokens which are non-terminals in the language. They should
duke@1 1317 ## be named as JLS3 calls them when translated to the appropriate language.
duke@1 1318 compiler.misc.token.identifier=\
duke@1 1319 <identifier>
jjg@842 1320
duke@1 1321 compiler.misc.token.character=\
duke@1 1322 <character>
jjg@842 1323
duke@1 1324 compiler.misc.token.string=\
duke@1 1325 <string>
jjg@842 1326
duke@1 1327 compiler.misc.token.integer=\
duke@1 1328 <integer>
jjg@842 1329
duke@1 1330 compiler.misc.token.long-integer=\
duke@1 1331 <long integer>
jjg@842 1332
duke@1 1333 compiler.misc.token.float=\
duke@1 1334 <float>
jjg@842 1335
duke@1 1336 compiler.misc.token.double=\
duke@1 1337 <double>
jjg@842 1338
duke@1 1339 compiler.misc.token.bad-symbol=\
duke@1 1340 <bad symbol>
jjg@842 1341
duke@1 1342 compiler.misc.token.end-of-input=\
duke@1 1343 <end of input>
duke@1 1344
duke@1 1345 ## The argument to the following string will always be one of the following:
duke@1 1346 ## 1. one of the above non-terminals
duke@1 1347 ## 2. a keyword (JLS1.8)
duke@1 1348 ## 3. a boolean literal (JLS3.10.3)
duke@1 1349 ## 4. the null literal (JLS3.10.7)
duke@1 1350 ## 5. a Java separator (JLS3.11)
duke@1 1351 ## 6. an operator (JLS3.12)
duke@1 1352 ##
duke@1 1353 ## This is the only place these tokens will be used.
jjg@842 1354 # 0: token
duke@1 1355 compiler.err.expected=\
duke@1 1356 {0} expected
jjg@842 1357
jjg@842 1358 # 0: token, 1: token
duke@1 1359 compiler.err.expected2=\
duke@1 1360 {0} or {1} expected
jjg@842 1361
jjg@842 1362 # 0: token, 1: token, 2: token
duke@1 1363 compiler.err.expected3=\
duke@1 1364 {0}, {1}, or {2} expected
duke@1 1365
duke@1 1366 compiler.err.premature.eof=\
duke@1 1367 reached end of file while parsing
duke@1 1368
duke@1 1369 ## The following are related in form, but do not easily fit the above paradigm.
duke@1 1370 compiler.err.dot.class.expected=\
duke@1 1371 ''.class'' expected
duke@1 1372
duke@1 1373 ## The argument to this string will always be either 'case' or 'default'.
jjg@842 1374 # 0: token
duke@1 1375 compiler.err.orphaned=\
duke@1 1376 orphaned {0}
duke@1 1377
jjg@842 1378 # 0: name
duke@1 1379 compiler.misc.anonymous.class=\
duke@1 1380 <anonymous {0}>
duke@1 1381
jjg@842 1382 # 0: name, 1: type
mcimadamore@121 1383 compiler.misc.type.captureof=\
mcimadamore@121 1384 capture#{0} of {1}
mcimadamore@121 1385
mcimadamore@238 1386 compiler.misc.type.captureof.1=\
mcimadamore@238 1387 capture#{0}
mcimadamore@238 1388
mcimadamore@121 1389 compiler.misc.type.none=\
mcimadamore@121 1390 <none>
mcimadamore@121 1391
duke@1 1392 compiler.misc.unnamed.package=\
duke@1 1393 unnamed package
duke@1 1394
duke@1 1395 #####
duke@1 1396
jjg@842 1397 # 0: symbol, 1: message segment
duke@1 1398 compiler.err.cant.access=\
jjg@842 1399 cannot access {0}\n\
jjg@842 1400 {1}
duke@1 1401
duke@1 1402 compiler.misc.bad.class.file.header=\
jjg@842 1403 bad class file: {0}\n\
jjg@842 1404 {1}\n\
jjg@842 1405 Please remove or make sure it appears in the correct subdirectory of the classpath.
jjg@842 1406
jjg@842 1407 # 0: file name, 1: message segment
jjg@12 1408 compiler.misc.bad.source.file.header=\
jjg@842 1409 bad source file: {0}\n\
jjg@842 1410 {1}\n\
jjg@842 1411 Please remove or make sure it appears in the correct subdirectory of the sourcepath.
duke@1 1412
duke@1 1413 ## The following are all possible strings for the second argument ({1}) of the
duke@1 1414 ## above strings.
duke@1 1415 compiler.misc.bad.class.signature=\
duke@1 1416 bad class signature: {0}
jjg@842 1417
duke@1 1418 compiler.misc.bad.enclosing.method=\
duke@1 1419 bad enclosing method attribute: {0}
jjg@842 1420
duke@1 1421 compiler.misc.bad.runtime.invisible.param.annotations=\
duke@1 1422 bad RuntimeInvisibleParameterAnnotations attribute: {0}
jjg@842 1423
duke@1 1424 compiler.misc.bad.const.pool.tag=\
duke@1 1425 bad constant pool tag: {0}
jjg@842 1426
duke@1 1427 compiler.misc.bad.const.pool.tag.at=\
duke@1 1428 bad constant pool tag: {0} at {1}
jjg@842 1429
duke@1 1430 compiler.misc.bad.signature=\
duke@1 1431 bad signature: {0}
jjg@842 1432
duke@1 1433 compiler.misc.class.file.wrong.class=\
duke@1 1434 class file contains wrong class: {0}
jjg@842 1435
duke@1 1436 compiler.misc.class.file.not.found=\
duke@1 1437 class file for {0} not found
jjg@842 1438
jjg@842 1439 # 0: name
duke@1 1440 compiler.misc.file.doesnt.contain.class=\
duke@1 1441 file does not contain class {0}
jjg@842 1442
duke@1 1443 compiler.misc.file.does.not.contain.package=\
duke@1 1444 file does not contain package {0}
jjg@842 1445
duke@1 1446 compiler.misc.illegal.start.of.class.file=\
duke@1 1447 illegal start of class file
jjg@842 1448
duke@1 1449 compiler.misc.unable.to.access.file=\
duke@1 1450 unable to access file: {0}
jjg@842 1451
duke@1 1452 compiler.misc.unicode.str.not.supported=\
duke@1 1453 unicode string in class file not supported
jjg@842 1454
duke@1 1455 compiler.misc.undecl.type.var=\
duke@1 1456 undeclared type variable: {0}
jjg@842 1457
duke@1 1458 compiler.misc.wrong.version=\
duke@1 1459 class file has wrong version {0}.{1}, should be {2}.{3}
duke@1 1460
duke@1 1461 #####
duke@1 1462
jjg@842 1463 # 0: type, 1: type or symbol
duke@1 1464 compiler.err.not.within.bounds=\
mcimadamore@829 1465 type argument {0} is not within bounds of type-variable {1}
duke@1 1466
duke@1 1467 ## The following are all possible strings for the second argument ({1}) of the
duke@1 1468 ## above string.
duke@1 1469
duke@1 1470 ## none yet...
duke@1 1471
duke@1 1472 #####
duke@1 1473
jjg@842 1474 # 0: message segment, 1: type, 2: type
duke@1 1475 compiler.err.prob.found.req=\
jjg@842 1476 {0}\n\
jjg@842 1477 required: {2}\n\
jjg@842 1478 found: {1}
jjg@842 1479
jjg@842 1480 # 0: message segment, 1: type, 2: type
duke@1 1481 compiler.warn.prob.found.req=\
jjg@842 1482 {0}\n\
jjg@842 1483 required: {2}\n\
jjg@842 1484 found: {1}
jjg@842 1485
duke@1 1486 compiler.err.prob.found.req.1=\
jjg@842 1487 {0} {3}\n\
jjg@842 1488 required: {2}\n\
jjg@842 1489 found: {1}
duke@1 1490
duke@1 1491 ## The following are all possible strings for the first argument ({0}) of the
duke@1 1492 ## above strings.
duke@1 1493 compiler.misc.incompatible.types=\
duke@1 1494 incompatible types
jjg@842 1495
jjg@842 1496 # 0: message segment
duke@1 1497 compiler.misc.incompatible.types.1=\
duke@1 1498 incompatible types; {0}
jjg@842 1499
duke@1 1500 compiler.misc.inconvertible.types=\
duke@1 1501 inconvertible types
jjg@842 1502
duke@1 1503 compiler.misc.possible.loss.of.precision=\
duke@1 1504 possible loss of precision
duke@1 1505
duke@1 1506 compiler.misc.unchecked.assign=\
jjg@612 1507 unchecked conversion
jjg@842 1508
duke@1 1509 # compiler.misc.storecheck=\
jjg@612 1510 # assignment might cause later store checks to fail
duke@1 1511 # compiler.misc.unchecked=\
jjg@612 1512 # assigned array cannot dynamically check its stores
duke@1 1513 compiler.misc.unchecked.cast.to.type=\
jjg@612 1514 unchecked cast
duke@1 1515
duke@1 1516 compiler.misc.assignment.from.super-bound=\
duke@1 1517 assignment from super-bound type {0}
jjg@842 1518
duke@1 1519 compiler.misc.assignment.to.extends-bound=\
duke@1 1520 assignment to extends-bound type {0}
jjg@842 1521
duke@1 1522 # compiler.err.star.expected=\
duke@1 1523 # ''*'' expected
duke@1 1524 # compiler.err.no.elem.type=\
duke@1 1525 # \[\*\] cannot have a type
duke@1 1526
mcimadamore@743 1527 compiler.misc.try.not.applicable.to.type=\
mcimadamore@743 1528 try-with-resources not applicable to variable type
mcimadamore@743 1529
duke@1 1530 #####
duke@1 1531
jjg@842 1532 # 0: message segment or type, 1: message segment
duke@1 1533 compiler.err.type.found.req=\
jjg@842 1534 unexpected type\n\
jjg@842 1535 required: {1}\n\
jjg@842 1536 found: {0}
duke@1 1537
duke@1 1538 ## The following are all possible strings for the first argument ({0}) of the
duke@1 1539 ## above string.
duke@1 1540 compiler.misc.type.req.class=\
duke@1 1541 class
jjg@842 1542
duke@1 1543 compiler.misc.type.req.class.array=\
duke@1 1544 class or array
jjg@842 1545
mcimadamore@829 1546 compiler.misc.type.req.array.or.iterable=\
mcimadamore@829 1547 array or java.lang.Iterable
jjg@842 1548
duke@1 1549 compiler.misc.type.req.ref=\
duke@1 1550 reference
jjg@842 1551
duke@1 1552 compiler.misc.type.req.exact=\
duke@1 1553 class or interface without bounds
jjg@842 1554
jjg@842 1555 # 0: type
duke@1 1556 compiler.misc.type.parameter=\
mcimadamore@80 1557 type parameter {0}
duke@1 1558
duke@1 1559 #####
duke@1 1560
duke@1 1561 ## The following are all possible strings for the last argument of all those
duke@1 1562 ## diagnostics whose key ends in ".1"
duke@1 1563 compiler.misc.undetermined.type=\
duke@1 1564 undetermined type
jjg@842 1565
jjg@597 1566 compiler.misc.type.variable.has.undetermined.type=\
duke@1 1567 type variable {0} has undetermined type
jjg@842 1568
jjg@842 1569 # 0: type, 1: list of type
duke@1 1570 compiler.misc.no.unique.maximal.instance.exists=\
duke@1 1571 no unique maximal instance exists for type variable {0} with upper bounds {1}
jjg@842 1572
duke@1 1573 compiler.misc.no.unique.minimal.instance.exists=\
duke@1 1574 no unique minimal instance exists for type variable {0} with lower bounds {1}
jjg@842 1575
jjg@842 1576 # 0: list of type, 1: type, 2: type
mcimadamore@689 1577 compiler.misc.infer.no.conforming.instance.exists=\
duke@1 1578 no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
jjg@842 1579
jjg@842 1580 # 0: list of type, 1: type, 2: type
mcimadamore@689 1581 compiler.misc.infer.no.conforming.assignment.exists=\
duke@1 1582 no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2}
jjg@842 1583
mcimadamore@689 1584 compiler.misc.infer.arg.length.mismatch=\
duke@1 1585 cannot instantiate from arguments because actual and formal argument lists differ in length
jjg@842 1586
jjg@842 1587 # 0: type, 1: list of type
duke@1 1588 compiler.misc.inferred.do.not.conform.to.bounds=\
mcimadamore@299 1589 inferred type does not conform to declared bound(s)\n\
mcimadamore@299 1590 inferred: {0}\n\
mcimadamore@299 1591 bound(s): {1}
jjg@842 1592
jjg@842 1593 # 0: symbol
mcimadamore@537 1594 compiler.misc.diamond=\
mcimadamore@537 1595 {0}<>
jjg@842 1596
mcimadamore@881 1597 # 0: type
mcimadamore@881 1598 compiler.misc.diamond.non.generic=\
mcimadamore@881 1599 cannot use ''<>'' with non-generic class {0}
mcimadamore@881 1600
jjg@842 1601 # 0: type, 1: list of type
mcimadamore@689 1602 compiler.misc.explicit.param.do.not.conform.to.bounds=\
mcimadamore@689 1603 explicit type argument {0} does not conform to declared bound(s) {1}
mcimadamore@689 1604
mcimadamore@689 1605 compiler.misc.arg.length.mismatch=\
mcimadamore@689 1606 actual and formal argument lists differ in length
jjg@842 1607
jjg@842 1608 # 0: type, 1: type
mcimadamore@689 1609 compiler.misc.no.conforming.assignment.exists=\
mcimadamore@689 1610 actual argument {0} cannot be converted to {1} by method invocation conversion
jjg@842 1611
jjg@842 1612 # 0: type, 1: type
mcimadamore@689 1613 compiler.misc.varargs.argument.mismatch=\
mcimadamore@689 1614 argument type {0} does not conform to vararg element type {1}
jjg@842 1615
duke@1 1616 #####
duke@1 1617
duke@1 1618 ## The first argument ({0}) is a "kindname".
jjg@842 1619 # 0: symbol kind, 1: symbol, 2: symbol
duke@1 1620 compiler.err.abstract.cant.be.accessed.directly=\
duke@1 1621 abstract {0} {1} in {2} cannot be accessed directly
duke@1 1622
duke@1 1623 ## The first argument ({0}) is a "kindname".
jjg@842 1624 # 0: symbol kind, 1: symbol
duke@1 1625 compiler.err.non-static.cant.be.ref=\
duke@1 1626 non-static {0} {1} cannot be referenced from a static context
duke@1 1627
duke@1 1628 ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list
duke@1 1629 ## of kindnames (the list should be identical to that provided in source.
duke@1 1630 compiler.err.unexpected.type=\
jjg@842 1631 unexpected type\n\
jjg@842 1632 required: {0}\n\
jjg@842 1633 found: {1}
duke@1 1634
mcimadamore@80 1635 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
mcimadamore@80 1636 ## The second argument {1} is the non-resolved symbol
mcimadamore@80 1637 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
mcimadamore@80 1638 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
jjg@842 1639 # 0: symbol kind, 1: name, 2: unused, 3: unused
duke@1 1640 compiler.err.cant.resolve=\
mcimadamore@80 1641 cannot find symbol\n\
mcimadamore@80 1642 symbol: {0} {1}
duke@1 1643
jjg@842 1644 # 0: symbol kind, 1: name, 2: unused, 3: list of type
mcimadamore@80 1645 compiler.err.cant.resolve.args=\
mcimadamore@80 1646 cannot find symbol\n\
mcimadamore@80 1647 symbol: {0} {1}({3})
mcimadamore@80 1648
jjg@842 1649 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
mcimadamore@80 1650 compiler.err.cant.resolve.args.params=\
mcimadamore@80 1651 cannot find symbol\n\
mcimadamore@80 1652 symbol: {0} <{2}>{1}({3})
mcimadamore@80 1653
mcimadamore@80 1654 ## arguments from {0} to {3} have the same meaning as above
mcimadamore@829 1655 ## The fifth argument {4} is a location subdiagnostic (see below)
jjg@842 1656 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
duke@1 1657 compiler.err.cant.resolve.location=\
mcimadamore@80 1658 cannot find symbol\n\
mcimadamore@221 1659 symbol: {0} {1}\n\
mcimadamore@829 1660 location: {4}
mcimadamore@80 1661
jjg@842 1662 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
mcimadamore@80 1663 compiler.err.cant.resolve.location.args=\
mcimadamore@80 1664 cannot find symbol\n\
mcimadamore@221 1665 symbol: {0} {1}({3})\n\
mcimadamore@829 1666 location: {4}
mcimadamore@80 1667
jjg@842 1668 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
mcimadamore@80 1669 compiler.err.cant.resolve.location.args.params=\
mcimadamore@80 1670 cannot find symbol\n\
mcimadamore@221 1671 symbol: {0} <{2}>{1}({3})\n\
mcimadamore@829 1672 location: {4}
mcimadamore@829 1673
mcimadamore@829 1674 ##a location subdiagnostic is composed as follows:
mcimadamore@829 1675 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
mcimadamore@829 1676 ## The second argument {1} is the location name
mcimadamore@829 1677 ## The third argument {2} is the location type (only when {1} is a variable name)
mcimadamore@829 1678
jjg@842 1679 # 0: symbol kind, 1: symbol, 2: unused
mcimadamore@829 1680 compiler.misc.location=\
mcimadamore@829 1681 {0} {1}
jjg@842 1682
jjg@842 1683 # 0: symbol kind, 1: symbol, 2: type
mcimadamore@829 1684 compiler.misc.location.1=\
mcimadamore@829 1685 {0} {1} of type {2}
duke@1 1686
duke@1 1687 ## The following are all possible string for "kindname".
duke@1 1688 ## They should be called whatever the JLS calls them after it been translated
duke@1 1689 ## to the appropriate language.
duke@1 1690 # compiler.misc.kindname.constructor=\
duke@1 1691 # static member
duke@1 1692 compiler.misc.kindname.annotation=\
duke@1 1693 @interface
jjg@842 1694
duke@1 1695 compiler.misc.kindname.constructor=\
duke@1 1696 constructor
jjg@842 1697
jjg@597 1698 compiler.misc.kindname.enum=\
jjg@597 1699 enum
jjg@842 1700
duke@1 1701 compiler.misc.kindname.interface=\
duke@1 1702 interface
jjg@842 1703
duke@1 1704 compiler.misc.kindname.static=\
duke@1 1705 static
jjg@842 1706
duke@1 1707 compiler.misc.kindname.type.variable=\
duke@1 1708 type variable
jjg@842 1709
duke@1 1710 compiler.misc.kindname.type.variable.bound=\
duke@1 1711 bound of type variable
jjg@842 1712
duke@1 1713 compiler.misc.kindname.variable=\
duke@1 1714 variable
jjg@842 1715
duke@1 1716 compiler.misc.kindname.value=\
duke@1 1717 value
jjg@842 1718
duke@1 1719 compiler.misc.kindname.method=\
duke@1 1720 method
jjg@842 1721
duke@1 1722 compiler.misc.kindname.class=\
duke@1 1723 class
jjg@842 1724
duke@1 1725 compiler.misc.kindname.package=\
duke@1 1726 package
jjg@842 1727
duke@1 1728 #####
duke@1 1729
mcimadamore@161 1730 compiler.misc.no.args=\
mcimadamore@161 1731 no arguments
mcimadamore@161 1732
jjg@842 1733 # 0: message segment
duke@1 1734 compiler.err.override.static=\
mcimadamore@362 1735 {0}\n\
mcimadamore@362 1736 overriding method is static
jjg@842 1737
jjg@842 1738 # 0: message segment, 1: set of modifier
duke@1 1739 compiler.err.override.meth=\
mcimadamore@362 1740 {0}\n\
mcimadamore@362 1741 overridden method is {1}
duke@1 1742
jjg@842 1743 # 0: message segment, 1: type
duke@1 1744 compiler.err.override.meth.doesnt.throw=\
mcimadamore@362 1745 {0}\n\
mcimadamore@362 1746 overridden method does not throw {1}
duke@1 1747
duke@1 1748 # In the following string {1} is a space separated list of Java Keywords, as
duke@1 1749 # they would have been declared in the source code
jjg@842 1750 # 0: message segment, 1: set of modifier
duke@1 1751 compiler.err.override.weaker.access=\
mcimadamore@362 1752 {0}\n\
mcimadamore@362 1753 attempting to assign weaker access privileges; was {1}
duke@1 1754
jjg@842 1755 # 0: message segment, 1: type, 2: type
mcimadamore@362 1756 compiler.err.override.incompatible.ret=\
mcimadamore@362 1757 {0}\n\
mcimadamore@362 1758 return type {1} is not compatible with {2}
duke@1 1759
jjg@842 1760 # 0: message segment, 1: type, 2: type
mcimadamore@362 1761 compiler.warn.override.unchecked.ret=\
jjg@612 1762 {0}\n\
mcimadamore@362 1763 return type requires unchecked conversion from {1} to {2}
mcimadamore@362 1764
jjg@842 1765 # 0: message segment, 1: type
mcimadamore@362 1766 compiler.warn.override.unchecked.thrown=\
jjg@612 1767 {0}\n\
mcimadamore@362 1768 overridden method does not throw {1}
duke@1 1769
duke@1 1770 ## The following are all possible strings for the first argument ({0}) of the
duke@1 1771 ## above strings.
jjg@842 1772 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1773 compiler.misc.cant.override=\
duke@1 1774 {0} in {1} cannot override {2} in {3}
jjg@842 1775
jjg@842 1776 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1777 compiler.misc.cant.implement=\
duke@1 1778 {0} in {1} cannot implement {2} in {3}
jjg@842 1779
jjg@842 1780 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1781 compiler.misc.clashes.with=\
duke@1 1782 {0} in {1} clashes with {2} in {3}
jjg@842 1783
jjg@842 1784 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1785 compiler.misc.unchecked.override=\
duke@1 1786 {0} in {1} overrides {2} in {3}
jjg@842 1787
jjg@842 1788 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1789 compiler.misc.unchecked.implement=\
duke@1 1790 {0} in {1} implements {2} in {3}
jjg@842 1791
jjg@842 1792 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1793 compiler.misc.unchecked.clash.with=\
duke@1 1794 {0} in {1} overrides {2} in {3}
jjg@842 1795
jjg@842 1796 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1797 compiler.misc.varargs.override=\
duke@1 1798 {0} in {1} overrides {2} in {3}
jjg@842 1799
jjg@842 1800 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1801 compiler.misc.varargs.implement=\
duke@1 1802 {0} in {1} implements {2} in {3}
jjg@842 1803
jjg@842 1804 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
duke@1 1805 compiler.misc.varargs.clash.with=\
duke@1 1806 {0} in {1} overrides {2} in {3}
jjg@842 1807
mcimadamore@914 1808 compiler.misc.diamond.and.anon.class=\
mcimadamore@914 1809 cannot use ''<>'' with anonymous inner classes
duke@1 1810
jjg@842 1811 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
mcimadamore@689 1812 compiler.misc.inapplicable.method=\
mcimadamore@689 1813 {0} {1}.{2} is not applicable\n\
mcimadamore@689 1814 ({3})
mcimadamore@689 1815
duke@1 1816 ########################################
duke@1 1817 # Diagnostics for language feature changes
duke@1 1818 ########################################
jjg@842 1819 # 0: string
duke@1 1820 compiler.err.unsupported.fp.lit=\
jjg@409 1821 hexadecimal floating point literals are not supported in -source {0}\n\
jjg@842 1822 (use -source 5 or higher to enable hexadecimal floating point literals)
jjg@409 1823
jjg@842 1824 # 0: string
jjg@409 1825 compiler.err.unsupported.binary.lit=\
jjg@409 1826 binary literals are not supported in -source {0}\n\
jjg@842 1827 (use -source 7 or higher to enable binary literals)
jjg@409 1828
jjg@842 1829 # 0: string
jjg@409 1830 compiler.err.unsupported.underscore.lit=\
jjg@409 1831 underscores in literals are not supported in -source {0}\n\
jjg@842 1832 (use -source 7 or higher to enable underscores in literals)
duke@1 1833
jjg@842 1834 # 0: string
mcimadamore@743 1835 compiler.err.try.with.resources.not.supported.in.source=\
mcimadamore@743 1836 try-with-resources is not supported in -source {0}\n\
jjg@842 1837 (use -source 7 or higher to enable try-with-resources)
darcy@609 1838
duke@1 1839 compiler.warn.enum.as.identifier=\
duke@1 1840 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
jjg@842 1841 (use -source 5 or higher to use ''enum'' as a keyword)
duke@1 1842
duke@1 1843 compiler.warn.assert.as.identifier=\
duke@1 1844 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
jjg@842 1845 (use -source 1.4 or higher to use ''assert'' as a keyword)
duke@1 1846
duke@1 1847 compiler.err.enum.as.identifier=\
duke@1 1848 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\
jjg@842 1849 (use -source 1.4 or lower to use ''enum'' as an identifier)
duke@1 1850
duke@1 1851 compiler.err.assert.as.identifier=\
duke@1 1852 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\
jjg@842 1853 (use -source 1.3 or lower to use ''assert'' as an identifier)
duke@1 1854
jjg@842 1855 # 0: string
duke@1 1856 compiler.err.generics.not.supported.in.source=\
duke@1 1857 generics are not supported in -source {0}\n\
jjg@842 1858 (use -source 5 or higher to enable generics)
duke@1 1859
jjg@842 1860 # 0: string
duke@1 1861 compiler.err.varargs.not.supported.in.source=\
duke@1 1862 variable-arity methods are not supported in -source {0}\n\
jjg@842 1863 (use -source 5 or higher to enable variable-arity methods)
duke@1 1864
jjg@842 1865 # 0: string
duke@1 1866 compiler.err.annotations.not.supported.in.source=\
duke@1 1867 annotations are not supported in -source {0}\n\
jjg@842 1868 (use -source 5 or higher to enable annotations)
duke@1 1869
jjg@722 1870 #308 compiler.err.type.annotations.not.supported.in.source=\
jjg@722 1871 #308 type annotations are not supported in -source {0}\n\
jjg@722 1872 #308 (use -source 7 or higher to enable type annotations)
jjg@308 1873
jjg@842 1874 # 0: string
duke@1 1875 compiler.err.foreach.not.supported.in.source=\
duke@1 1876 for-each loops are not supported in -source {0}\n\
jjg@842 1877 (use -source 5 or higher to enable for-each loops)
duke@1 1878
jjg@842 1879 # 0: string
duke@1 1880 compiler.err.static.import.not.supported.in.source=\
duke@1 1881 static import declarations are not supported in -source {0}\n\
jjg@842 1882 (use -source 5 or higher to enable static import declarations)
duke@1 1883
jjg@842 1884 # 0: string
duke@1 1885 compiler.err.enums.not.supported.in.source=\
duke@1 1886 enums are not supported in -source {0}\n\
jjg@842 1887 (use -source 5 or higher to enable enums)
mcimadamore@288 1888
jjg@842 1889 # 0: string
jjg@597 1890 compiler.err.diamond.not.supported.in.source=\
jjg@597 1891 diamond operator is not supported in -source {0}\n\
jjg@842 1892 (use -source 7 or higher to enable diamond operator)
jjg@597 1893
jjg@842 1894 # 0: string
mcimadamore@550 1895 compiler.err.multicatch.not.supported.in.source=\
mcimadamore@550 1896 multi-catch statement is not supported in -source {0}\n\
jjg@842 1897 (use -source 7 or higher to enable multi-catch statement)
mcimadamore@550 1898
jjg@842 1899 # 0: string
darcy@430 1900 compiler.err.string.switch.not.supported.in.source=\
darcy@430 1901 strings in switch are not supported in -source {0}\n\
jjg@842 1902 (use -source 7 or higher to enable strings in switch)
darcy@430 1903
mcimadamore@288 1904 ########################################
mcimadamore@288 1905 # Diagnostics for where clause implementation
mcimadamore@288 1906 # used by the RichDiagnosticFormatter.
mcimadamore@288 1907 ########################################
mcimadamore@288 1908
mcimadamore@288 1909 compiler.misc.type.null=\
mcimadamore@288 1910 <null>
mcimadamore@288 1911
mcimadamore@288 1912 # X#n (where n is an int id) is disambiguated tvar name
jjg@842 1913 # 0: name, 1: number
mcimadamore@288 1914 compiler.misc.type.var=\
mcimadamore@288 1915 {0}#{1}
mcimadamore@288 1916
mcimadamore@288 1917 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
jjg@842 1918 # 0: number
mcimadamore@288 1919 compiler.misc.captured.type=\
mcimadamore@288 1920 CAP#{0}
mcimadamore@288 1921
mcimadamore@288 1922 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
jjg@842 1923 # 0: number
mcimadamore@288 1924 compiler.misc.intersection.type=\
mcimadamore@288 1925 INT#{0}
mcimadamore@288 1926
mcimadamore@288 1927 # where clause for captured type: contains upper ('extends {1}') and lower
mcimadamore@288 1928 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
jjg@842 1929 # 0: type, 1: type, 2: type, 3: type
mcimadamore@288 1930 compiler.misc.where.captured=\
mcimadamore@288 1931 {0} extends {1} super: {2} from capture of {3}
mcimadamore@288 1932
mcimadamore@288 1933 # compact where clause for captured type: contains upper ('extends {1}') along
mcimadamore@288 1934 # with the wildcard that generated this captured type ({3})
jjg@842 1935 # 0: type, 1: type, 2: unused, 3: type
mcimadamore@288 1936 compiler.misc.where.captured.1=\
mcimadamore@288 1937 {0} extends {1} from capture of {3}
mcimadamore@288 1938
mcimadamore@288 1939 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
mcimadamore@288 1940 # the kindname ({2}) and location ({3}) in which the typevar has been declared
jjg@842 1941 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
mcimadamore@288 1942 compiler.misc.where.typevar=\
mcimadamore@288 1943 {0} extends {1} declared in {2} {3}
mcimadamore@288 1944
mcimadamore@288 1945 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
mcimadamore@288 1946 # in which the typevar has been declared
mcimadamore@288 1947 compiler.misc.where.typevar.1=\
mcimadamore@288 1948 {0} declared in {2} {3}
mcimadamore@288 1949
mcimadamore@288 1950 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
mcimadamore@288 1951 # of this intersection type
jjg@842 1952 # 0: type, 1: list of type
mcimadamore@288 1953 compiler.misc.where.intersection=\
mcimadamore@288 1954 {0} extends {1}
mcimadamore@288 1955
mcimadamore@288 1956 ### Where clause headers ###
mcimadamore@288 1957 compiler.misc.where.description.captured=\
mcimadamore@288 1958 where {0} is a fresh type-variable:
jjg@842 1959
jjg@842 1960 # 0: set of type
mcimadamore@288 1961 compiler.misc.where.description.typevar=\
mcimadamore@288 1962 where {0} is a type-variable:
jjg@842 1963
jjg@842 1964 # 0: set of type
mcimadamore@288 1965 compiler.misc.where.description.intersection=\
mcimadamore@288 1966 where {0} is an intersection type:
jjg@842 1967
jjg@842 1968 # 0: set of type
mcimadamore@288 1969 compiler.misc.where.description.captured.1=\
mcimadamore@288 1970 where {0} are fresh type-variables:
jjg@842 1971
jjg@842 1972 # 0: set of type
mcimadamore@288 1973 compiler.misc.where.description.typevar.1=\
mcimadamore@288 1974 where {0} are type-variables:
jjg@842 1975
mcimadamore@288 1976 compiler.misc.where.description.intersection.1=\
mcimadamore@288 1977 where {0} are intersection types:
mcimadamore@288 1978
mcimadamore@288 1979

mercurial