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

Fri, 17 May 2019 18:41:21 +0100

author
sgroeger
date
Fri, 17 May 2019 18:41:21 +0100
changeset 3814
12045c5cae33
parent 2418
16a698253f33
child 3826
3fdfb200c295
permissions
-rw-r--r--

8218152: [javac] fails and exits with no error if a bad annotation processor provided
Summary: Handle exceptions thrown while loading annotation processors.
Reviewed-by: jlahoda, andrew

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

mercurial