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

Mon, 16 Oct 2017 16:07:48 +0800

author
aoqi
date
Mon, 16 Oct 2017 16:07:48 +0800
changeset 2893
ca5783d9a597
parent 2525
2eb010b6cb22
child 3826
3fdfb200c295
permissions
-rw-r--r--

merge

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

mercurial