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

Wed, 17 Oct 2012 16:43:26 +0100

author
mcimadamore
date
Wed, 17 Oct 2012 16:43:26 +0100
changeset 1366
12cf6bfd8c05
parent 1352
d4b3cb1ece84
child 1384
bf54daa9dcd8
permissions
-rw-r--r--

7192245: Add parser support for default methods
Summary: Add support for 'default' keyword in modifier position
Reviewed-by: jjg

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

mercurial