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

Fri, 28 Sep 2012 11:39:29 -0700

author
jfranck
date
Fri, 28 Sep 2012 11:39:29 -0700
changeset 1344
73312ec2cf7c
parent 1338
ad2ca2a4ab5e
child 1347
1408af4cd8b0
permissions
-rw-r--r--

7199925: Separate compilation breaks check that elements have a default for the containing annotation
Reviewed-by: jjg, mcimadamore

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

mercurial