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

Mon, 21 Jan 2013 20:19:53 +0000

author
mcimadamore
date
Mon, 21 Jan 2013 20:19:53 +0000
changeset 1513
cf84b07a82db
parent 1503
2d2b2be57c78
child 1521
71f35e4b93a5
permissions
-rw-r--r--

8005166: Add support for static interface methods
Summary: Support public static interface methods
Reviewed-by: jjg

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

mercurial