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

Mon, 26 Mar 2012 15:28:22 +0100

author
mcimadamore
date
Mon, 26 Mar 2012 15:28:22 +0100
changeset 1238
e28a06a3c5d9
parent 1186
51fb17abfc32
child 1239
2827076dbf64
permissions
-rw-r--r--

7151492: Encapsulate check logic into Attr.ResultInfo
Summary: ResultInfo class should be used to make attribution code transparent w.r.t. check logic being used
Reviewed-by: jjg, dlsmith

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

mercurial