1 #
   2 # Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
  27 # are preceded by a stylized comment describing the type of the corresponding
  28 # values.
  29 # The simple types currently in use are:
  30 #
  31 # annotation        annotation compound
  32 # boolean           true or false
  33 # diagnostic        a sub-message; see compiler.misc.*
  34 # fragment          similar to 'message segment', but with more specific type
  35 # modifier          a Java modifier; e.g. public, private, protected
  36 # file              a file URL
  37 # file object       a file URL - similar to 'file' but typically used for source/class files, hence more specific
  38 # flag              a Flags.Flag instance
  39 # name              a name, typically a Java identifier
  40 # number            an integer
  41 # option name       the name of a command line option
  42 # path              a path
  43 # profile           a profile name
  44 # source            a source version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.code.Source
  45 # source version    a source version number, such as 1.5, 1.6, 1.7, taken from a javax.lang.model.SourceVersion
  46 # string            a general string
  47 # symbol            the name of a declared type
  48 # symbol kind       the kind of a symbol (i.e. method, variable)
  49 # kind name         an informative description of the kind of a declaration; see compiler.misc.kindname.*
  50 # target            a target version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.jvm.Target
  51 # token             the name of a non-terminal in source code; see compiler.misc.token.*
  52 # tree tag          the name of a non-terminal in source code; see compiler.misc.token.*
  53 # type              a Java type; e.g. int, X, X<T>
  54 # url               a URL
  55 # object            a Java object (unspecified)
  56 # unused            the value is not used in this message
  57 #
  58 # The following compound types are also used:
  59 #
  60 # collection of X   a comma-separated collection of items; e.g. collection of type
  61 # list of X         a comma-separated list of items; e.g. list of type
  62 # set of X          a comma-separated set of items; e.g. set of modifier
  63 #
  64 # These may be composed:
  65 #
  66 # list of type or message segment
  67 #
  68 # The following type aliases are supported:
  69 #
  70 # message segment --> diagnostic or fragment
  71 # file name --> file, path or file object
  72 #
  73 # Custom comments are supported in parenthesis i.e.
  74 #
  75 # number (classfile major version)
  76 #
  77 # These comments are used internally in order to generate an enum-like class declaration containing
  78 # a method/field for each of the diagnostic keys listed here. Those methods/fields can then be used
  79 # by javac code to build diagnostics in a type-safe fashion.
  80 #
  81 # In addition, these comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
  82 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
  83 # MessageInfo can also be run as a standalone utility providing more facilities
  84 # for manipulating this file. For more details, see MessageInfo.java.
  85 
  86 ##
  87 ## errors
  88 ##
  89 
  90 # 0: symbol
  91 compiler.err.abstract.cant.be.instantiated=\
  92     {0} is abstract; cannot be instantiated
  93 
  94 compiler.err.abstract.meth.cant.have.body=\
  95     abstract methods cannot have a body
  96 
  97 # 0: kind name, 1: symbol
  98 compiler.err.already.annotated=\
  99     {0} {1} has already been annotated
 100 
 101 # 0: kind name, 1: symbol, 2: kind name, 3: symbol
 102 compiler.err.already.defined=\
 103     {0} {1} is already defined in {2} {3}
 104 
 105 # 0: kind name, 1: symbol, 2: kind name, 3: kind name, 4: symbol
 106 compiler.err.already.defined.in.clinit=\
 107     {0} {1} is already defined in {2} of {3} {4}
 108 
 109 # 0: symbol
 110 compiler.err.already.defined.single.import=\
 111     a type with the same simple name is already defined by the single-type-import of {0}
 112 
 113 # 0: symbol
 114 compiler.err.already.defined.static.single.import=\
 115     a type with the same simple name is already defined by the static single-type-import of {0}
 116 
 117 # 0: symbol
 118 compiler.err.already.defined.this.unit=\
 119     {0} is already defined in this compilation unit
 120 
 121 compiler.err.annotation.missing.element.value=\
 122     annotation is missing element value
 123 
 124 # 0: type, 1: list of name
 125 compiler.err.annotation.missing.default.value=\
 126     annotation @{0} is missing a default value for the element ''{1}''
 127 
 128 # 0: type, 1: list of name
 129 compiler.err.annotation.missing.default.value.1=\
 130     annotation @{0} is missing default values for elements {1}
 131 
 132 # 0: type
 133 compiler.err.annotation.not.valid.for.type=\
 134     annotation not valid for an element of type {0}
 135 
 136 compiler.err.annotation.type.not.applicable=\
 137     annotation interface not applicable to this kind of declaration
 138 
 139 # 0: type
 140 compiler.err.annotation.type.not.applicable.to.type=\
 141     annotation @{0} not applicable in this type context
 142 
 143 compiler.err.annotation.value.must.be.annotation=\
 144     annotation value must be an annotation
 145 
 146 compiler.err.annotation.value.must.be.class.literal=\
 147     annotation value must be a class literal
 148 
 149 compiler.err.annotation.value.must.be.name.value=\
 150     annotation values must be of the form ''name=value''
 151 
 152 compiler.err.annotation.value.not.allowable.type=\
 153     annotation value not of an allowable type
 154 
 155 compiler.err.expression.not.allowable.as.annotation.value=\
 156     expression not allowed as annotation value
 157 
 158 # 0: type, 1: name
 159 compiler.err.annotation.unrecognized.attribute.name=\
 160     annotation @{0} has an unknown attribute named ''{1}''
 161 
 162 compiler.err.anon.class.impl.intf.no.args=\
 163     anonymous class implements interface; cannot have arguments
 164 
 165 compiler.err.anon.class.impl.intf.no.typeargs=\
 166     anonymous class implements interface; cannot have type arguments
 167 
 168 compiler.err.anon.class.impl.intf.no.qual.for.new=\
 169     anonymous class implements interface; cannot have qualifier for new
 170 
 171 compiler.err.cant.inherit.from.anon=\
 172     cannot inherit from anonymous class
 173 
 174 # 0: symbol, 1: symbol, 2: symbol
 175 compiler.err.array.and.varargs=\
 176     cannot declare both {0} and {1} in {2}
 177 
 178 compiler.err.array.dimension.missing=\
 179     array dimension missing
 180 
 181 compiler.err.illegal.array.creation.both.dimension.and.initialization=\
 182     array creation with both dimension expression and initialization is illegal
 183 
 184 # 0: type
 185 compiler.err.array.req.but.found=\
 186     array required, but {0} found
 187 
 188 compiler.err.attribute.value.must.be.constant=\
 189     element value must be a constant expression
 190 
 191 # 0: string (statement type)
 192 compiler.err.bad.initializer=\
 193     bad initializer for {0}
 194 
 195 compiler.err.break.outside.switch.loop=\
 196     break outside switch or loop
 197 
 198 compiler.err.break.outside.switch.expression=\
 199     attempt to break out of a switch expression
 200 
 201 compiler.err.continue.outside.switch.expression=\
 202     attempt to continue out of a switch expression
 203 
 204 compiler.err.return.outside.switch.expression=\
 205     attempt to return out of a switch expression
 206 
 207 compiler.err.rule.completes.normally=\
 208     switch rule completes without providing a value\n\
 209     (switch rules in switch expressions must either provide a value or throw)
 210 
 211 compiler.err.switch.expression.completes.normally=\
 212     switch expression completes without providing a value\n\
 213     (switch expressions must either provide a value or throw for all possible input values)
 214 
 215 compiler.err.no.switch.expression =\
 216     yield outside of switch expression
 217 
 218 compiler.err.no.switch.expression.qualify=\
 219     yield outside of switch expression\n\
 220     (to invoke a method called yield, qualify the yield with a receiver or type name)
 221 
 222 compiler.err.invalid.yield=\
 223     invalid use of a restricted identifier ''yield''\n\
 224     (to invoke a method called yield, qualify the yield with a receiver or type name)
 225 
 226 compiler.warn.invalid.yield=\
 227     ''yield'' may become a restricted identifier in a future release\n\
 228     (to invoke a method called yield, qualify the yield with a receiver or type name)
 229 
 230 compiler.err.switch.expression.empty=\
 231     switch expression does not have any case clauses
 232 
 233 compiler.err.switch.expression.no.result.expressions=\
 234     switch expression does not have any result expressions
 235 
 236 compiler.err.call.must.only.appear.in.ctor=\
 237     explicit constructor invocation may only appear within a constructor body
 238 
 239 compiler.err.redundant.superclass.init=\
 240     redundant explicit constructor invocation
 241 
 242 compiler.err.ctor.calls.not.allowed.here=\
 243     explicit constructor invocation not allowed here
 244 
 245 compiler.err.return.before.superclass.initialized=\
 246     ''return'' not allowed before explicit constructor invocation
 247 
 248 # 0: symbol kind, 1: name, 2: symbol kind, 3: type, 4: message segment
 249 compiler.err.cant.apply.symbol.noargs=\
 250     {0} {1} in {2} {3} cannot be applied to given types;\n\
 251     reason: {4}
 252 
 253 # 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
 254 compiler.err.cant.apply.symbol=\
 255     {0} {1} in {4} {5} cannot be applied to given types;\n\
 256     required: {2}\n\
 257     found:    {3}\n\
 258     reason: {6}
 259 
 260 # 0: symbol kind, 1: name, 2: list of type
 261 compiler.err.cant.apply.symbols=\
 262     no suitable {0} found for {1}({2})
 263 
 264 # 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
 265 compiler.misc.cant.apply.symbol=\
 266     {0} {1} in {4} {5} cannot be applied to given types\n\
 267     required: {2}\n\
 268     found:    {3}\n\
 269     reason: {6}
 270 
 271 # 0: list of type or message segment, 1: list of type or message segment, 2: message segment
 272 compiler.misc.cant.apply.array.ctor=\
 273     cannot create array from given types\n\
 274     required: {0}\n\
 275     found:    {1}\n\
 276     reason:   {2}
 277 
 278 # 0: symbol kind, 1: name, 2: list of type
 279 compiler.misc.cant.apply.symbols=\
 280     no suitable {0} found for {1}({2})
 281 
 282 # 0: kind name, 1: symbol
 283 compiler.misc.no.abstracts=\
 284     no abstract method found in {0} {1}
 285 
 286 # 0: kind name, 1: symbol
 287 compiler.misc.incompatible.abstracts=\
 288     multiple non-overriding abstract methods found in {0} {1}
 289 
 290 compiler.err.bad.functional.intf.anno=\
 291     Unexpected @FunctionalInterface annotation
 292 
 293 # 0: message segment
 294 compiler.err.bad.functional.intf.anno.1=\
 295     Unexpected @FunctionalInterface annotation\n\
 296     {0}
 297 
 298 # 0: message segment
 299 compiler.err.anonymous.diamond.method.does.not.override.superclass=\
 300     method does not override or implement a method from a supertype\n\
 301     {0}
 302 
 303 # 0: symbol
 304 compiler.misc.not.a.functional.intf=\
 305     {0} is not a functional interface
 306 
 307 # 0: symbol, 1: message segment
 308 compiler.misc.not.a.functional.intf.1=\
 309     {0} is not a functional interface\n\
 310     {1}
 311 
 312 # 0: type, 1: kind name, 2: symbol
 313 compiler.misc.invalid.generic.lambda.target=\
 314     invalid functional descriptor for lambda expression\n\
 315     method {0} in {1} {2} is generic
 316 
 317 # 0: kind name, 1: symbol
 318 compiler.misc.incompatible.descs.in.functional.intf=\
 319     incompatible function descriptors found in {0} {1}
 320 
 321 # 0: name, 1: list of type, 2: type, 3: list of type
 322 compiler.misc.descriptor=\
 323     descriptor: {2} {0}({1})
 324 
 325 # 0: name, 1: list of type, 2: type, 3: list of type
 326 compiler.misc.descriptor.throws=\
 327     descriptor: {2} {0}({1}) throws {3}
 328 
 329 # 0: type
 330 compiler.misc.no.suitable.functional.intf.inst=\
 331     cannot infer functional interface descriptor for {0}
 332 
 333 # 0: message segment
 334 compiler.misc.bad.intersection.target.for.functional.expr=\
 335     bad intersection type target for lambda or method reference\n\
 336     {0}
 337 
 338 # 0: symbol or type
 339 compiler.misc.not.an.intf.component=\
 340     component type {0} is not an interface or java.lang.Object
 341 
 342 # 0: kind name, 1: message segment
 343 compiler.err.invalid.mref=\
 344     invalid {0} reference\n\
 345     {1}
 346 
 347 # 0: kind name, 1: message segment
 348 compiler.misc.invalid.mref=\
 349     invalid {0} reference\n\
 350     {1}
 351 
 352 compiler.misc.static.mref.with.targs=\
 353     parameterized qualifier on static method reference
 354 
 355 # 0: set of flag or string, 1: symbol
 356 compiler.err.cant.assign.val.to.var=\
 357     cannot assign a value to {0} variable {1}
 358 
 359 compiler.err.cant.assign.val.to.this=\
 360     cannot assign to ''this''
 361 
 362 # 0: symbol, 1: message segment
 363 compiler.err.cant.ref.non.effectively.final.var=\
 364     local variables referenced from {1} must be final or effectively final
 365 
 366 compiler.err.try.with.resources.expr.needs.var=\
 367     the try-with-resources resource must either be a variable declaration or an expression denoting \
 368 a reference to a final or effectively final variable
 369 
 370 # 0: symbol
 371 compiler.err.try.with.resources.expr.effectively.final.var=\
 372     variable {0} used as a try-with-resources resource neither final nor effectively final
 373 
 374 
 375 compiler.misc.lambda=\
 376     a lambda expression
 377 
 378 compiler.misc.inner.cls=\
 379     an inner class
 380 
 381 compiler.misc.guard=\
 382     a guard
 383 
 384 # 0: type
 385 compiler.err.cant.deref=\
 386     {0} cannot be dereferenced
 387 
 388 compiler.err.cant.extend.intf.annotation=\
 389     ''extends'' not allowed for @interfaces
 390 
 391 compiler.err.annotation.decl.not.allowed.here=\
 392     annotation interface declaration not allowed here
 393 
 394 # 0: symbol
 395 compiler.err.cant.inherit.from.final=\
 396     cannot inherit from final {0}
 397 
 398 # 0: symbol or name
 399 compiler.err.cant.ref.before.ctor.called=\
 400     cannot reference {0} before supertype constructor has been called
 401 
 402 # 0: symbol or name
 403 compiler.err.cant.assign.initialized.before.ctor.called=\
 404     cannot assign initialized field ''{0}'' before supertype constructor has been called
 405 
 406 compiler.err.cant.select.static.class.from.param.type=\
 407     cannot select a static class from a parameterized type
 408 
 409 # 0: symbol, 1: string, 2: string
 410 compiler.err.cant.inherit.diff.arg=\
 411     {0} cannot be inherited with different arguments: <{1}> and <{2}>
 412 
 413 compiler.err.catch.without.try=\
 414     ''catch'' without ''try''
 415 
 416 # 0: kind name, 1: symbol
 417 compiler.err.clash.with.pkg.of.same.name=\
 418     {0} {1} clashes with package of same name
 419 
 420 compiler.err.class.not.allowed=\
 421     class, interface or enum declaration not allowed here
 422 
 423 compiler.err.const.expr.req=\
 424     constant expression required
 425 
 426 compiler.err.pattern.or.enum.req=\
 427     pattern or enum constant required
 428 
 429 compiler.err.cont.outside.loop=\
 430     continue outside of loop
 431 
 432 # 0: symbol or type
 433 compiler.err.cyclic.inheritance=\
 434     cyclic inheritance involving {0}
 435 
 436 # 0: symbol
 437 compiler.err.cyclic.annotation.element=\
 438     type of element {0} is cyclic
 439 
 440 # 0: symbol
 441 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
 442     call to super not allowed in enum constructor
 443 
 444 # 0: type
 445 compiler.err.no.superclass=\
 446     {0} has no superclass.
 447 
 448 # 0: symbol, 1: type, 2: symbol, 3: type, 4: type
 449 compiler.err.concrete.inheritance.conflict=\
 450     methods {0} from {1} and {2} from {3} are inherited with the same signature
 451 
 452 compiler.err.default.allowed.in.intf.annotation.member=\
 453     default value only allowed in an annotation interface declaration
 454 
 455 # 0: symbol
 456 compiler.err.doesnt.exist=\
 457     package {0} does not exist
 458 
 459 # 0: type
 460 compiler.err.duplicate.annotation.invalid.repeated=\
 461     annotation {0} is not a valid repeatable annotation
 462 
 463 # 0: name, 1: type
 464 compiler.err.duplicate.annotation.member.value=\
 465     duplicate element ''{0}'' in annotation @{1}.
 466 
 467 # 0: type
 468 compiler.err.duplicate.annotation.missing.container=\
 469     {0} is not a repeatable annotation interface
 470 
 471 # 0: symbol
 472 compiler.err.invalid.repeatable.annotation=\
 473     duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
 474 
 475 # 0: symbol or type
 476 compiler.err.invalid.repeatable.annotation.no.value=\
 477     {0} is not a valid @Repeatable, no value element method declared
 478 
 479 # 0: type, 1: number
 480 compiler.err.invalid.repeatable.annotation.multiple.values=\
 481     {0} is not a valid @Repeatable, {1} element methods named ''value'' declared
 482 
 483 # 0: type
 484 compiler.err.invalid.repeatable.annotation.invalid.value=\
 485     {0} is not a valid @Repeatable: invalid value element
 486 
 487 # 0: symbol or type, 1: type, 2: type
 488 compiler.err.invalid.repeatable.annotation.value.return=\
 489     containing annotation interface ({0}) must declare an element named ''value'' of type {2}
 490 
 491 # 0: symbol or type, 1: symbol
 492 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
 493     containing annotation interface ({0}) does not have a default value for element {1}
 494 
 495 # 0: symbol, 1: string, 2: symbol, 3: string
 496 compiler.err.invalid.repeatable.annotation.retention=\
 497     retention of containing annotation interface ({0}) is shorter than the retention of repeatable annotation interface ({2})
 498 
 499 # 0: symbol, 1: symbol
 500 compiler.err.invalid.repeatable.annotation.not.documented=\
 501     repeatable annotation interface ({1}) is @Documented while containing annotation interface ({0}) is not
 502 
 503 # 0: symbol, 1: symbol
 504 compiler.err.invalid.repeatable.annotation.not.inherited=\
 505     repeatable annotation interface ({1}) is @Inherited while containing annotation interface ({0}) is not
 506 
 507 # 0: symbol, 1: symbol
 508 compiler.err.invalid.repeatable.annotation.incompatible.target=\
 509     containing annotation interface ({0}) is applicable to more targets than repeatable annotation interface ({1})
 510 
 511 # 0: symbol
 512 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
 513     container {0} must not be present at the same time as the element it contains
 514 
 515 # 0: type, 1: symbol
 516 compiler.err.invalid.repeatable.annotation.not.applicable=\
 517     container {0} is not applicable to element {1}
 518 
 519 # 0: type
 520 compiler.err.invalid.repeatable.annotation.not.applicable.in.context=\
 521     container {0} is not applicable in this type context
 522 
 523 # 0: name
 524 compiler.err.duplicate.class=\
 525     duplicate class: {0}
 526 
 527 # 0: string
 528 compiler.err.bad.file.name=\
 529     bad file name: {0}
 530 
 531 compiler.err.implicit.class.should.not.have.package.declaration=\
 532     compact source file should not have package declaration
 533 
 534 compiler.err.implicit.class.does.not.have.main.method=\
 535     compact source file does not have main method in the form of void main() or void main(String[] args)
 536 
 537 # 0: name, 1: name
 538 compiler.err.same.binary.name=\
 539     classes: {0} and {1} have the same binary name
 540 
 541 compiler.err.duplicate.case.label=\
 542     duplicate case label
 543 
 544 compiler.err.pattern.dominated=\
 545     this case label is dominated by a preceding case label
 546 
 547 compiler.err.duplicate.default.label=\
 548     duplicate default label
 549 
 550 compiler.err.duplicate.unconditional.pattern=\
 551     duplicate unconditional pattern
 552 
 553 compiler.err.unconditional.pattern.and.default=\
 554     switch has both an unconditional pattern and a default label
 555 
 556 compiler.err.unconditional.pattern.and.both.boolean.values=\
 557     switch has both boolean values and an unconditional pattern
 558 
 559 compiler.err.default.and.both.boolean.values=\
 560     switch has both boolean values and a default label
 561 
 562 compiler.err.guard.not.allowed=\
 563     guards are only allowed for case with a pattern
 564 
 565 compiler.err.guard.has.constant.expression.false=\
 566     this case label has a guard that is a constant expression with value ''false''
 567 
 568 # 0: symbol
 569 compiler.err.cannot.assign.not.declared.guard=\
 570     cannot assign to {0}, as it was not declared inside the guard
 571 
 572 # 0: type, 1: type
 573 compiler.err.constant.label.not.compatible=\
 574     constant label of type {0} is not compatible with switch selector type {1}
 575 
 576 compiler.err.flows.through.to.pattern=\
 577     illegal fall-through to a pattern\n\
 578     (the previous case label is missing a break)
 579 
 580 compiler.err.flows.through.from.pattern=\
 581     illegal fall-through from a pattern\n\
 582     (the current case label is missing a break)
 583 
 584 compiler.err.invalid.case.label.combination=\
 585     invalid case label combination
 586 
 587 compiler.err.default.label.not.allowed=\
 588     default label not allowed here
 589 
 590 compiler.err.pattern.type.cannot.infer=\
 591     cannot infer pattern type
 592 
 593 compiler.err.else.without.if=\
 594     ''else'' without ''if''
 595 
 596 compiler.err.empty.char.lit=\
 597     empty character literal
 598 
 599 # 0: symbol
 600 compiler.err.encl.class.required=\
 601     an enclosing instance that contains {0} is required
 602 
 603 compiler.err.enum.annotation.must.be.enum.constant=\
 604     an enum annotation value must be an enum constant
 605 
 606 compiler.err.enum.cant.be.instantiated=\
 607     enum classes may not be instantiated
 608 
 609 compiler.err.enum.label.must.be.unqualified.enum=\
 610     an enum switch case label must be the unqualified name of an enumeration constant
 611 
 612 compiler.err.enum.label.must.be.enum.constant=\
 613     an enum switch constant case label must be an enumeration constant
 614 
 615 compiler.err.enum.no.subclassing=\
 616     classes cannot directly extend java.lang.Enum
 617 
 618 compiler.err.enum.types.not.extensible=\
 619     enum classes are not extensible
 620 
 621 compiler.err.enum.no.finalize=\
 622     enums cannot have finalize methods
 623 
 624 compiler.err.enum.cant.be.generic=\
 625     enums cannot be generic
 626 
 627 # 0: file name, 1: string
 628 compiler.err.error.reading.file=\
 629     error reading {0}; {1}
 630 
 631 # 0: type
 632 compiler.err.except.already.caught=\
 633     exception {0} has already been caught
 634 
 635 # 0: type
 636 compiler.err.except.never.thrown.in.try=\
 637     exception {0} is never thrown in body of corresponding try statement
 638 
 639 # 0: symbol
 640 compiler.err.final.parameter.may.not.be.assigned=\
 641     final parameter {0} may not be assigned
 642 
 643 # 0: symbol
 644 compiler.err.try.resource.may.not.be.assigned=\
 645     auto-closeable resource {0} may not be assigned
 646 
 647 # 0: symbol
 648 compiler.err.multicatch.parameter.may.not.be.assigned=\
 649     multi-catch parameter {0} may not be assigned
 650 
 651 # 0: type, 1: type
 652 compiler.err.multicatch.types.must.be.disjoint=\
 653     Alternatives in a multi-catch statement cannot be related by subclassing\n\
 654     Alternative {0} is a subclass of alternative {1}
 655 
 656 compiler.err.finally.without.try=\
 657     ''finally'' without ''try''
 658 
 659 # 0: type, 1: message segment
 660 compiler.err.foreach.not.applicable.to.type=\
 661     for-each not applicable to expression type\n\
 662     required: {1}\n\
 663     found:    {0}
 664 
 665 compiler.err.fp.number.too.large=\
 666     floating-point number too large
 667 
 668 compiler.err.fp.number.too.small=\
 669     floating-point number too small
 670 
 671 compiler.err.generic.array.creation=\
 672     generic array creation
 673 
 674 compiler.err.generic.throwable=\
 675     a generic class may not extend java.lang.Throwable
 676 
 677 # 0: symbol
 678 compiler.err.icls.cant.have.static.decl=\
 679     Illegal static declaration in inner class {0}\n\
 680     modifier \''static\'' is only allowed in constant variable declarations
 681 
 682 # 0: string
 683 compiler.err.illegal.char=\
 684     illegal character: ''{0}''
 685 
 686 # 0: string, 1: string
 687 compiler.err.illegal.char.for.encoding=\
 688     unmappable character (0x{0}) for encoding {1}
 689 
 690 # 0: set of flag, 1: set of flag
 691 compiler.err.illegal.combination.of.modifiers=\
 692     illegal combination of modifiers: {0} and {1}
 693 
 694 compiler.err.illegal.enum.static.ref=\
 695     illegal reference to static field from initializer
 696 
 697 compiler.err.illegal.char.literal.multiple.surrogates=\
 698     character literal contains more than one UTF-16 code unit
 699 
 700 compiler.err.illegal.esc.char=\
 701     illegal escape character
 702 
 703 compiler.err.illegal.forward.ref=\
 704     illegal forward reference
 705 
 706 # 0: symbol, 1: object
 707 compiler.err.not.in.profile=\
 708     {0} is not available in profile ''{1}''
 709 
 710 # 0: symbol
 711 compiler.warn.forward.ref=\
 712     reference to variable ''{0}'' before it has been initialized
 713 
 714 # lint: this-escape
 715 compiler.warn.possible.this.escape=\
 716     possible ''this'' escape before subclass is fully initialized
 717 
 718 # lint: this-escape
 719 compiler.warn.possible.this.escape.location=\
 720     previous possible ''this'' escape happens here via invocation
 721 
 722 compiler.err.illegal.self.ref=\
 723     self-reference in initializer
 724 
 725 # 0: symbol
 726 compiler.warn.self.ref=\
 727     self-reference in initializer of variable ''{0}''
 728 
 729 # 0: type
 730 compiler.err.illegal.initializer.for.type=\
 731     illegal initializer for {0}
 732 
 733 compiler.err.illegal.line.end.in.char.lit=\
 734     illegal line end in character literal
 735 
 736 compiler.err.illegal.text.block.open=\
 737     illegal text block open delimiter sequence, missing line terminator
 738 
 739 # lint: text-blocks
 740 compiler.warn.inconsistent.white.space.indentation=\
 741     inconsistent white space indentation
 742 
 743 # lint: text-blocks
 744 compiler.warn.trailing.white.space.will.be.removed=\
 745     trailing white space will be removed
 746 
 747 compiler.err.illegal.nonascii.digit=\
 748     illegal non-ASCII digit
 749 
 750 compiler.err.illegal.underscore=\
 751     illegal underscore
 752 
 753 compiler.err.illegal.dot=\
 754     illegal ''.''
 755 
 756 compiler.err.illegal.digit.in.binary.literal=\
 757     illegal digit in a binary literal
 758 
 759 compiler.err.illegal.digit.in.octal.literal=\
 760     illegal digit in an octal literal
 761 
 762 # 0: symbol
 763 compiler.err.illegal.qual.not.icls=\
 764     illegal qualifier; {0} is not an inner class
 765 
 766 compiler.err.illegal.start.of.expr=\
 767     illegal start of expression
 768 
 769 compiler.err.illegal.start.of.stmt=\
 770     illegal start of statement
 771 
 772 compiler.err.illegal.start.of.type=\
 773     illegal start of type
 774 
 775 compiler.err.illegal.parenthesized.expression=\
 776     illegal parenthesized expression
 777 
 778 compiler.err.illegal.unicode.esc=\
 779     illegal unicode escape
 780 
 781 # 0: symbol
 782 compiler.err.import.requires.canonical=\
 783     import requires canonical name for {0}
 784 
 785 compiler.err.improperly.formed.type.param.missing=\
 786     improperly formed type, some parameters are missing
 787 
 788 compiler.err.improperly.formed.type.inner.raw.param=\
 789     improperly formed type, type arguments given on a raw type
 790 
 791 # 0: type, 1: type
 792 compiler.err.incomparable.types=\
 793     incomparable types: {0} and {1}
 794 
 795 # 0: string
 796 compiler.err.int.number.too.large=\
 797     integer number too large
 798 
 799 compiler.err.intf.annotation.members.cant.have.params=\
 800     elements in annotation interface declarations cannot declare formal parameters
 801 
 802 # 0: symbol
 803 compiler.err.intf.annotation.cant.have.type.params=\
 804     annotation interface {0} cannot be generic
 805 
 806 compiler.err.intf.annotation.members.cant.have.type.params=\
 807     elements in annotation interface declarations cannot be generic methods
 808 
 809 # 0: symbol, 1: type
 810 compiler.err.intf.annotation.member.clash=\
 811     annotation interface {1} declares an element with the same name as method {0}
 812 
 813 compiler.err.intf.expected.here=\
 814     interface expected here
 815 
 816 compiler.err.intf.meth.cant.have.body=\
 817     interface abstract methods cannot have body
 818 
 819 compiler.err.invalid.annotation.member.type=\
 820     invalid type for annotation interface element
 821 
 822 compiler.err.invalid.binary.number=\
 823     binary numbers must contain at least one binary digit
 824 
 825 compiler.err.invalid.hex.number=\
 826     hexadecimal numbers must contain at least one hexadecimal digit
 827 
 828 compiler.err.invalid.meth.decl.ret.type.req=\
 829     invalid method declaration; return type required
 830 
 831 compiler.err.varargs.and.old.array.syntax=\
 832     legacy array notation not allowed on variable-arity parameter
 833 
 834 compiler.err.varargs.and.receiver =\
 835     varargs notation not allowed on receiver parameter
 836 
 837 compiler.err.varargs.must.be.last =\
 838     varargs parameter must be the last parameter
 839 
 840 compiler.err.array.and.receiver =\
 841     legacy array notation not allowed on receiver parameter
 842 
 843 compiler.err.wrong.receiver =\
 844     wrong receiver parameter name
 845 
 846 compiler.err.variable.not.allowed=\
 847     variable declaration not allowed here
 848 
 849 # 0: name
 850 compiler.err.label.already.in.use=\
 851     label {0} already in use
 852 
 853 compiler.err.local.enum=\
 854     enum classes must not be local
 855 
 856 compiler.err.cannot.create.array.with.type.arguments=\
 857     cannot create array with type arguments
 858 
 859 compiler.err.cannot.create.array.with.diamond=\
 860     cannot create array with ''<>''
 861 
 862 compiler.err.invalid.module.directive=\
 863   module directive keyword or ''}'' expected
 864 
 865 #
 866 # limits.  We don't give the limits in the diagnostic because we expect
 867 # them to change, yet we want to use the same diagnostic.  These are all
 868 # detected during code generation.
 869 #
 870 compiler.err.limit.code=\
 871     code too large
 872 
 873 compiler.err.limit.code.too.large.for.try.stmt=\
 874     code too large for try statement
 875 
 876 compiler.err.limit.dimensions=\
 877     array type has too many dimensions
 878 
 879 compiler.err.limit.locals=\
 880     too many local variables
 881 
 882 compiler.err.limit.parameters=\
 883     too many parameters
 884 
 885 compiler.err.limit.pool=\
 886     too many constants
 887 
 888 compiler.err.limit.pool.in.class=\
 889     too many constants in class {0}
 890 
 891 compiler.err.limit.stack=\
 892     code requires too much stack
 893 
 894 compiler.err.limit.string=\
 895     constant string too long
 896 
 897 # 0: symbol
 898 compiler.err.annotation.array.too.large=\
 899     Annotation array element too large in \"{0}\"
 900 
 901 # 0: string
 902 compiler.err.limit.string.overflow=\
 903     UTF8 representation for string \"{0}...\" is too long for the constant pool
 904 
 905 compiler.err.malformed.fp.lit=\
 906     malformed floating-point literal
 907 
 908 compiler.err.method.does.not.override.superclass=\
 909     method does not override or implement a method from a supertype
 910 
 911 compiler.err.static.methods.cannot.be.annotated.with.override=\
 912     static methods cannot be annotated with @Override
 913 
 914 compiler.err.missing.meth.body.or.decl.abstract=\
 915     missing method body, or declare abstract
 916 
 917 compiler.err.missing.ret.stmt=\
 918     missing return statement
 919 
 920 # 0: type
 921 compiler.misc.missing.ret.val=\
 922     missing return value
 923 
 924 compiler.misc.unexpected.ret.val=\
 925     unexpected return value
 926 
 927 # 0: set of flag
 928 compiler.err.mod.not.allowed.here=\
 929     modifier {0} not allowed here
 930 
 931 compiler.err.intf.not.allowed.here=\
 932     interface not allowed here
 933 
 934 # 0: symbol, 1: symbol
 935 compiler.err.name.clash.same.erasure=\
 936     name clash: {0} and {1} have the same erasure
 937 
 938 # 0: name, 1: list of type, 2: symbol, 3: name, 4: list of type, 5: symbol
 939 compiler.err.name.clash.same.erasure.no.override=\
 940     name clash: {0}({1}) in {2} and {3}({4}) in {5} have the same erasure, yet neither overrides the other
 941 
 942 # 0: string, 1: name, 2: name, 3: list of type, 4: symbol, 5: name, 6: list of type, 7: symbol
 943 compiler.err.name.clash.same.erasure.no.override.1=\
 944     name clash: {0} {1} has two methods with the same erasure, yet neither overrides the other\n\
 945     first method:  {2}({3}) in {4}\n\
 946     second method: {5}({6}) in {7}
 947 
 948 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
 949 compiler.err.name.clash.same.erasure.no.hide=\
 950     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
 951 
 952 compiler.err.name.reserved.for.internal.use=\
 953     {0} is reserved for internal use
 954 
 955 compiler.err.native.meth.cant.have.body=\
 956     native methods cannot have a body
 957 
 958 
 959 # 0: message segment
 960 compiler.misc.incompatible.type.in.conditional=\
 961     bad type in conditional expression\n\
 962     {0}
 963 
 964 compiler.misc.conditional.target.cant.be.void=\
 965     target-type for conditional expression cannot be void
 966 
 967 compiler.misc.switch.expression.target.cant.be.void=\
 968     target-type for switch expression cannot be void
 969 
 970 # 0: message segment
 971 compiler.misc.incompatible.type.in.switch.expression=\
 972     bad type in switch expression\n\
 973     {0}
 974 
 975 # 0: message segment
 976 compiler.misc.incompatible.ret.type.in.lambda=\
 977     bad return type in lambda expression\n\
 978     {0}
 979 
 980 compiler.misc.stat.expr.expected=\
 981     lambda body is not compatible with a void functional interface\n\
 982     (consider using a block lambda body, or use a statement expression instead)
 983 
 984 # 0: message segment
 985 compiler.misc.incompatible.ret.type.in.mref=\
 986     bad return type in method reference\n\
 987     {0}
 988 
 989 compiler.err.lambda.body.neither.value.nor.void.compatible=\
 990     lambda body is neither value nor void compatible
 991 
 992 # 0: list of type
 993 compiler.err.incompatible.thrown.types.in.mref=\
 994     incompatible thrown types {0} in functional expression
 995 
 996 compiler.misc.incompatible.arg.types.in.lambda=\
 997     incompatible parameter types in lambda expression
 998 
 999 compiler.misc.incompatible.arg.types.in.mref=\
1000     incompatible parameter types in method reference
1001 
1002 compiler.err.new.not.allowed.in.annotation=\
1003     ''new'' not allowed in an annotation
1004 
1005 # 0: name, 1: type
1006 compiler.err.no.annotation.member=\
1007     no annotation member {0} in {1}
1008 
1009 # 0: symbol
1010 compiler.err.no.encl.instance.of.type.in.scope=\
1011     no enclosing instance of type {0} is in scope
1012 
1013 compiler.err.no.intf.expected.here=\
1014     no interface expected here
1015 
1016 compiler.err.no.match.entry=\
1017     {0} has no match in entry in {1}; required {2}
1018 
1019 # 0: type
1020 compiler.err.not.annotation.type=\
1021     {0} is not an annotation interface
1022 
1023 # 0: symbol, 1: symbol, 2: message segment
1024 compiler.err.not.def.access.package.cant.access=\
1025     {0} is not visible\n\
1026     ({2})
1027 
1028 # 0: symbol, 1: symbol, 2: message segment
1029 compiler.misc.not.def.access.package.cant.access=\
1030     {0} is not visible\n\
1031     ({2})
1032 
1033 # 0: symbol, 1: message segment
1034 compiler.err.package.not.visible=\
1035     package {0} is not visible\n\
1036     ({1})
1037 
1038 # 0: symbol, 1: message segment
1039 compiler.misc.package.not.visible=\
1040     package {0} is not visible\n\
1041     ({1})
1042 
1043 # {0} - current module
1044 # {1} - package in which the invisible class is declared
1045 # {2} - module in which {1} is declared
1046 # 0: symbol, 1: symbol, 2: symbol
1047 compiler.misc.not.def.access.does.not.read=\
1048     package {1} is declared in module {2}, but module {0} does not read it
1049 
1050 # {0} - package in which the invisible class is declared
1051 # {1} - module in which {0} is declared
1052 # 0: symbol, 1: symbol
1053 compiler.misc.not.def.access.does.not.read.from.unnamed=\
1054     package {0} is declared in module {1}, which is not in the module graph
1055 
1056 # {0} - package in which the invisible class is declared
1057 # {1} - current module
1058 # 0: symbol, 1: symbol
1059 compiler.misc.not.def.access.does.not.read.unnamed=\
1060     package {0} is declared in the unnamed module, but module {1} does not read it
1061 
1062 # {0} - package in which the invisible class is declared
1063 # {1} - module in which {0} is declared
1064 # 0: symbol, 1: symbol
1065 compiler.misc.not.def.access.not.exported=\
1066     package {0} is declared in module {1}, which does not export it
1067 
1068 # {0} - package in which the invisible class is declared
1069 # {1} - module in which {0} is declared
1070 # 0: symbol, 1: symbol
1071 compiler.misc.not.def.access.not.exported.from.unnamed=\
1072     package {0} is declared in module {1}, which does not export it
1073 
1074 # {0} - package in which the invisible class is declared
1075 # {1} - module in which {0} is declared
1076 # {2} - current module
1077 # 0: symbol, 1: symbol, 2: symbol
1078 compiler.misc.not.def.access.not.exported.to.module=\
1079     package {0} is declared in module {1}, which does not export it to module {2}
1080 
1081 # {0} - package in which the invisible class is declared
1082 # {1} - module in which {0} is declared
1083 # 0: symbol, 1: symbol
1084 compiler.misc.not.def.access.not.exported.to.module.from.unnamed=\
1085     package {0} is declared in module {1}, which does not export it to the unnamed module
1086 
1087 # 0: symbol, 1: symbol
1088 compiler.err.not.def.access.class.intf.cant.access=\
1089     {1}.{0} is defined in an inaccessible class or interface
1090 
1091 # 0: symbol, 1: symbol
1092 compiler.misc.not.def.access.class.intf.cant.access=\
1093     {1}.{0} is defined in an inaccessible class or interface
1094 
1095 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
1096 compiler.err.not.def.access.class.intf.cant.access.reason=\
1097     {1}.{0} in package {2} is not accessible\n\
1098     ({3})
1099 
1100 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
1101 compiler.misc.not.def.access.class.intf.cant.access.reason=\
1102     {1}.{0} in package {2} is not accessible\n\
1103     ({3})
1104 
1105 # 0: symbol, 1: symbol
1106 compiler.err.not.def.public.cant.access=\
1107     {0} is not public in {1}; cannot be accessed from outside package
1108 
1109 # 0: symbol, 1: symbol
1110 compiler.err.not.def.public=\
1111     {0} is not public in {1}
1112 
1113 # 0: symbol, 1: symbol
1114 compiler.misc.not.def.public.cant.access=\
1115     {0} is not public in {1}; cannot be accessed from outside package
1116 
1117 # 0: name
1118 compiler.err.not.loop.label=\
1119     not a loop label: {0}
1120 
1121 compiler.err.not.stmt=\
1122     not a statement
1123 
1124 # 0: symbol
1125 compiler.err.not.encl.class=\
1126     not an enclosing class: {0}
1127 
1128 # 0: name, 1: type
1129 compiler.err.operator.cant.be.applied=\
1130     bad operand type {1} for unary operator ''{0}''
1131 
1132 # 0: name, 1: type, 2: type
1133 compiler.err.operator.cant.be.applied.1=\
1134     bad operand types for binary operator ''{0}''\n\
1135     first type:  {1}\n\
1136     second type: {2}
1137 
1138 compiler.err.pkg.annotations.sb.in.package-info.java=\
1139     package annotations should be in file package-info.java
1140 
1141 compiler.err.no.pkg.in.module-info.java=\
1142     package declarations not allowed in file module-info.java
1143 
1144 # 0: symbol
1145 compiler.err.pkg.clashes.with.class.of.same.name=\
1146     package {0} clashes with class of same name
1147 
1148 compiler.err.warnings.and.werror=\
1149     warnings found and -Werror specified
1150 
1151 # Errors related to annotation processing
1152 
1153 # 0: symbol, 1: message segment, 2: string (stack-trace)
1154 compiler.err.proc.cant.access=\
1155     cannot access {0}\n\
1156     {1}\n\
1157     Consult the following stack trace for details.\n\
1158     {2}
1159 
1160 # 0: symbol, 1: message segment
1161 compiler.err.proc.cant.access.1=\
1162     cannot access {0}\n\
1163     {1}
1164 
1165 # 0: string
1166 compiler.err.proc.cant.find.class=\
1167     Could not find class file for ''{0}''.
1168 
1169 # 0: string
1170 compiler.err.proc.cant.load.class=\
1171     Could not load processor class file due to ''{0}''.
1172 
1173 # Print a client-generated error message; assumed to be localized, no translation required
1174 # 0: string
1175 compiler.err.proc.messager=\
1176     {0}
1177 
1178 # 0: string
1179 compiler.misc.exception.message=\
1180     {0}
1181 
1182 compiler.misc.user.selected.completion.failure=\
1183     user-selected completion failure by class name
1184 
1185 # 0: collection of string
1186 compiler.err.proc.no.explicit.annotation.processing.requested=\
1187     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
1188 
1189 # 0: string, 1: string
1190 compiler.err.proc.processor.bad.option.name=\
1191     Bad option name ''{0}'' provided by processor ''{1}''
1192 
1193 # 0: string
1194 compiler.err.proc.processor.cant.instantiate=\
1195     Could not instantiate an instance of processor ''{0}''
1196 
1197 # 0: string
1198 compiler.err.proc.processor.not.found=\
1199     Annotation processor ''{0}'' not found
1200 
1201 # 0: string
1202 compiler.err.proc.processor.wrong.type=\
1203     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
1204 
1205 compiler.err.proc.service.problem=\
1206     Error creating a service loader to load Processors.
1207 
1208 # 0: string
1209 compiler.err.proc.bad.config.file=\
1210     Bad service configuration file, or exception thrown while constructing Processor object: {0}
1211 
1212 compiler.err.proc.cant.create.loader=\
1213     Could not create class loader for annotation processors: {0}
1214 
1215 # 0: symbol
1216 compiler.err.qualified.new.of.static.class=\
1217     qualified new of static class
1218 
1219 compiler.err.recursive.ctor.invocation=\
1220     recursive constructor invocation
1221 
1222 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
1223 compiler.err.ref.ambiguous=\
1224     reference to {0} is ambiguous\n\
1225     both {1} {2} in {3} and {4} {5} in {6} match
1226 
1227 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
1228 compiler.misc.ref.ambiguous=\
1229     reference to {0} is ambiguous\n\
1230     both {1} {2} in {3} and {4} {5} in {6} match
1231 
1232 compiler.err.repeated.annotation.target=\
1233     repeated annotation target
1234 
1235 compiler.err.repeated.interface=\
1236     repeated interface
1237 
1238 compiler.err.repeated.modifier=\
1239     repeated modifier
1240 
1241 # 0: symbol, 1: set of modifier, 2: symbol
1242 compiler.err.report.access=\
1243     {0} has {1} access in {2}
1244 
1245 # 0: symbol, 1: set of modifier, 2: symbol
1246 compiler.misc.report.access=\
1247     {0} has {1} access in {2}
1248 
1249 compiler.err.ret.outside.meth=\
1250     return outside method
1251 
1252 compiler.err.signature.doesnt.match.supertype=\
1253     signature does not match {0}; incompatible supertype
1254 
1255 compiler.err.signature.doesnt.match.intf=\
1256     signature does not match {0}; incompatible interfaces
1257 
1258 # 0: symbol, 1: symbol, 2: symbol
1259 compiler.err.does.not.override.abstract=\
1260     {0} is not abstract and does not override abstract method {1} in {2}
1261 
1262 # 0: file object
1263 compiler.err.source.cant.overwrite.input.file=\
1264     error writing source; cannot overwrite input file {0}
1265 
1266 # 0: symbol
1267 compiler.err.stack.sim.error=\
1268     Internal error: stack sim error on {0}
1269 
1270 compiler.err.static.imp.only.classes.and.interfaces=\
1271     static import only from classes and interfaces
1272 
1273 compiler.err.string.const.req=\
1274     constant string expression required
1275 
1276 compiler.err.pattern.expected=\
1277     type pattern expected
1278 
1279 # 0: symbol, 1: fragment
1280 compiler.err.cannot.generate.class=\
1281     error while generating class {0}\n\
1282     ({1})
1283 
1284 # 0: symbol, 1: symbol
1285 compiler.misc.synthetic.name.conflict=\
1286     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
1287 
1288 # 0: symbol, 1: type
1289 compiler.misc.illegal.signature=\
1290     illegal signature attribute for type {1}
1291 
1292 compiler.err.throws.not.allowed.in.intf.annotation=\
1293     throws clause not allowed in @interface members
1294 
1295 compiler.err.try.without.catch.finally.or.resource.decls=\
1296     ''try'' without ''catch'', ''finally'' or resource declarations
1297 
1298 # 0: symbol
1299 compiler.err.type.doesnt.take.params=\
1300     type {0} does not take parameters
1301 
1302 compiler.err.type.var.cant.be.deref=\
1303     cannot select from a type variable
1304 
1305 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
1306     a type variable may not be followed by other bounds
1307 
1308 compiler.err.type.var.more.than.once=\
1309     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
1310 
1311 compiler.err.type.var.more.than.once.in.result=\
1312     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
1313 
1314 # 0: type, 1: type, 2: fragment
1315 compiler.err.types.incompatible=\
1316     types {0} and {1} are incompatible;\n\
1317     {2}
1318 
1319 # 0: name, 1: list of type
1320 compiler.misc.incompatible.diff.ret=\
1321     both define {0}({1}), but with unrelated return types
1322 
1323 # 0: type, 1: name, 2: list of type
1324 compiler.err.incompatible.diff.ret.same.type=\
1325     type {0} defines {1}({2}) more than once with unrelated return types
1326 
1327 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1328 compiler.misc.incompatible.unrelated.defaults=\
1329     {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
1330 
1331 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1332 compiler.misc.incompatible.abstract.default=\
1333     {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
1334 
1335 # 0: name, 1: kind name, 2: symbol
1336 compiler.err.default.overrides.object.member=\
1337     default method {0} in {1} {2} overrides a member of java.lang.Object
1338 
1339 # 0: type
1340 compiler.err.illegal.static.intf.meth.call=\
1341     illegal static interface method call\n\
1342     the receiver expression should be replaced with the type qualifier ''{0}''
1343 
1344 # 0: symbol or type, 1: message segment
1345 compiler.err.illegal.default.super.call=\
1346     bad type qualifier {0} in default super call\n\
1347     {1}
1348 
1349 # 0: symbol, 1: type
1350 compiler.misc.overridden.default=\
1351     method {0} is overridden in {1}
1352 
1353 # 0: symbol, 1: type or symbol
1354 compiler.misc.redundant.supertype=\
1355     redundant interface {0} is extended by {1}
1356 
1357 compiler.err.unclosed.char.lit=\
1358     unclosed character literal
1359 
1360 compiler.err.unclosed.comment=\
1361     unclosed comment
1362 
1363 compiler.err.unclosed.str.lit=\
1364     unclosed string literal
1365 
1366 compiler.err.unclosed.text.block=\
1367     unclosed text block
1368 
1369 # 0: string
1370 compiler.err.unsupported.encoding=\
1371     unsupported encoding: {0}
1372 
1373 compiler.err.io.exception=\
1374     error reading source file: {0}
1375 
1376 # 0: name
1377 compiler.err.undef.label=\
1378     undefined label: {0}
1379 
1380 # 0: name
1381 compiler.err.illegal.ref.to.restricted.type=\
1382     illegal reference to restricted type ''{0}''
1383 
1384 # 0: name
1385 compiler.warn.illegal.ref.to.restricted.type=\
1386     illegal reference to restricted type ''{0}''
1387 
1388 # 0: name, 1: source
1389 compiler.err.restricted.type.not.allowed=\
1390     ''{0}'' not allowed here\n\
1391     as of release {1}, ''{0}'' is a restricted type name and cannot be used for type declarations
1392 
1393 # 0: name, 1: source
1394 compiler.warn.restricted.type.not.allowed=\
1395     as of release {1}, ''{0}'' is a restricted type name and cannot be used for type declarations or as the element type of an array
1396 
1397 # 0: name, 1: source
1398 compiler.warn.restricted.type.not.allowed.preview=\
1399     ''{0}'' may become a restricted type name in a future release and may be unusable for type declarations or as the element type of an array
1400 
1401 # 0: name (variable), 1: message segment
1402 compiler.err.cant.infer.local.var.type=\
1403     cannot infer type for local variable {0}\n\
1404     ({1})
1405 
1406 compiler.err.bad.quoted.lambda.null.return=\
1407     invalid ''null'' return expression in quoted lambda
1408 
1409 # 0: list of type
1410 compiler.err.cant.infer.quoted.lambda.return.type=\
1411     cannot infer return type for quoted lambda expression\n\
1412     (found: {0})
1413 
1414 compiler.err.quoted.lambda.must.be.explicit=\
1415     Quoted lambda cannot have implicit parameter types
1416 
1417 # 0: name
1418 compiler.err.restricted.type.not.allowed.here=\
1419     ''{0}'' is not allowed here
1420 
1421 # 0: name
1422 compiler.err.restricted.type.not.allowed.array=\
1423     ''{0}'' is not allowed as an element type of an array
1424 
1425 # 0: name
1426 compiler.err.restricted.type.not.allowed.compound=\
1427     ''{0}'' is not allowed in a compound declaration
1428 
1429 # 0: fragment
1430 compiler.err.invalid.lambda.parameter.declaration=\
1431     invalid lambda parameter declaration\n\
1432     ({0})
1433 
1434 compiler.misc.implicit.and.explicit.not.allowed=\
1435     cannot mix implicitly-typed and explicitly-typed parameters
1436 
1437 compiler.misc.var.and.explicit.not.allowed=\
1438     cannot mix ''var'' and explicitly-typed parameters
1439 
1440 compiler.misc.var.and.implicit.not.allowed=\
1441     cannot mix ''var'' and implicitly-typed parameters
1442 
1443 compiler.misc.local.cant.infer.null=\
1444     variable initializer is ''null''
1445 
1446 compiler.misc.local.cant.infer.void=\
1447     variable initializer is ''void''
1448 
1449 compiler.misc.local.missing.init=\
1450     cannot use ''var'' on variable without initializer
1451 
1452 compiler.misc.local.lambda.missing.target=\
1453     lambda expression needs an explicit target-type
1454 
1455 compiler.misc.local.mref.missing.target=\
1456     method reference needs an explicit target-type
1457 
1458 compiler.misc.local.array.missing.target=\
1459     array initializer needs an explicit target-type
1460 
1461 compiler.misc.local.self.ref=\
1462     cannot use ''var'' on self-referencing variable
1463 
1464 # 0: message segment, 1: unused
1465 compiler.err.cant.apply.diamond=\
1466     cannot infer type arguments for {0}
1467 
1468 # 0: message segment or type, 1: message segment
1469 compiler.err.cant.apply.diamond.1=\
1470     cannot infer type arguments for {0}\n\
1471     reason: {1}
1472 
1473 # 0: message segment or type, 1: message segment
1474 compiler.misc.cant.apply.diamond.1=\
1475     cannot infer type arguments for {0}\n\
1476     reason: {1}
1477 
1478 compiler.err.unreachable.stmt=\
1479     unreachable statement
1480 
1481 compiler.err.not.exhaustive=\
1482     the switch expression does not cover all possible input values
1483 
1484 compiler.err.not.exhaustive.statement=\
1485     the switch statement does not cover all possible input values
1486 
1487 compiler.err.initializer.must.be.able.to.complete.normally=\
1488     initializer must be able to complete normally
1489 
1490 compiler.err.initializer.not.allowed=\
1491     initializers not allowed in interfaces
1492 
1493 # 0: type
1494 compiler.err.unreported.exception.need.to.catch.or.throw=\
1495     unreported exception {0}; must be caught or declared to be thrown
1496 
1497 # 0: type
1498 compiler.err.unreported.exception.default.constructor=\
1499     unreported exception {0} in default constructor
1500 
1501 # 0: type, 1: name
1502 compiler.err.unreported.exception.implicit.close=\
1503     unreported exception {0}; must be caught or declared to be thrown\n\
1504     exception thrown from implicit call to close() on resource variable ''{1}''
1505 
1506 compiler.err.void.not.allowed.here=\
1507     ''void'' type not allowed here
1508 
1509 # 0: string
1510 compiler.err.wrong.number.type.args=\
1511     wrong number of type arguments; required {0}
1512 
1513 # 0: symbol
1514 compiler.err.var.might.already.be.assigned=\
1515     variable {0} might already have been assigned
1516 
1517 # 0: symbol
1518 compiler.err.var.might.not.have.been.initialized=\
1519     variable {0} might not have been initialized
1520 
1521 # 0: symbol
1522 compiler.err.var.not.initialized.in.default.constructor=\
1523     variable {0} not initialized in the default constructor
1524 
1525 # 0: symbol
1526 compiler.err.var.might.be.assigned.in.loop=\
1527     variable {0} might be assigned in loop
1528 
1529 # 0: symbol, 1: message segment
1530 compiler.err.varargs.invalid.trustme.anno=\
1531     Invalid {0} annotation. {1}
1532 
1533 # 0: type
1534 compiler.misc.varargs.trustme.on.reifiable.varargs=\
1535     Varargs element type {0} is reifiable.
1536 
1537 # 0: type, 1: type
1538 compiler.err.instanceof.reifiable.not.safe=\
1539     {0} cannot be safely cast to {1}
1540 
1541 # 0: symbol
1542 compiler.misc.varargs.trustme.on.non.varargs.meth=\
1543     Method {0} is not a varargs method.
1544 
1545 # 0: symbol
1546 compiler.misc.varargs.trustme.on.non.varargs.accessor=\
1547     Accessor {0} is not a varargs method.
1548 
1549 # 0: symbol
1550 compiler.misc.varargs.trustme.on.virtual.varargs=\
1551     Instance method {0} is neither final nor private.
1552 
1553 # 0: symbol
1554 compiler.misc.varargs.trustme.on.virtual.varargs.final.only=\
1555     Instance method {0} is not final.
1556 
1557 # 0: type, 1: symbol kind, 2: symbol
1558 compiler.misc.inaccessible.varargs.type=\
1559     formal varargs element type {0} is not accessible from {1} {2}
1560 
1561 # In the following string, {1} will always be the detail message from
1562 # java.io.IOException.
1563 # 0: symbol, 1: string
1564 compiler.err.class.cant.write=\
1565     error while writing {0}: {1}
1566 
1567 # In the following string, {0} is the name of the class in the Java source.
1568 # It really should be used two times..
1569 # 0: kind name, 1: name
1570 compiler.err.class.public.should.be.in.file=\
1571     {0} {1} is public, should be declared in a file named {1}.java
1572 
1573 ## All errors which do not refer to a particular line in the source code are
1574 ## preceded by this string.
1575 compiler.err.error=\
1576     error:\u0020
1577 
1578 # The following error messages do not refer to a line in the source code.
1579 compiler.err.cant.read.file=\
1580     cannot read: {0}
1581 
1582 # 0: string
1583 compiler.err.plugin.not.found=\
1584     plug-in not found: {0}
1585 
1586 # 0: path
1587 # lint: path
1588 compiler.warn.locn.unknown.file.on.module.path=\
1589     unknown file on module path: {0}
1590 
1591 
1592 # 0: path
1593 compiler.err.locn.bad.module-info=\
1594     problem reading module-info.class in {0}
1595 
1596 # 0: path
1597 compiler.err.locn.cant.read.directory=\
1598     cannot read directory {0}
1599 
1600 # 0: path
1601 compiler.err.locn.cant.read.file=\
1602     cannot read file {0}
1603 
1604 # 0: path
1605 compiler.err.locn.cant.get.module.name.for.jar=\
1606     cannot determine module name for {0}
1607 
1608 # 0: path
1609 compiler.err.multi-module.outdir.cannot.be.exploded.module=\
1610     in multi-module mode, the output directory cannot be an exploded module: {0}
1611 
1612 # 0: path
1613 # lint: path
1614 compiler.warn.outdir.is.in.exploded.module=\
1615     the output directory is within an exploded module: {0}
1616 
1617 # 0: file object
1618 compiler.err.locn.module-info.not.allowed.on.patch.path=\
1619     module-info.class not allowed on patch path: {0}
1620 
1621 # 0: string
1622 compiler.err.locn.invalid.arg.for.xpatch=\
1623     invalid argument for --patch-module option: {0}
1624 
1625 compiler.err.file.sb.on.source.or.patch.path.for.module=\
1626     file should be on source path, or on patch path for module
1627 
1628 compiler.err.no.java.lang=\
1629     Unable to find package java.lang in platform classes
1630 
1631 compiler.err.statement.not.expected=\
1632     statements not expected outside of methods and initializers
1633 
1634 compiler.err.class.method.or.field.expected=\
1635     class, interface, annotation type, enum, record, method or field expected
1636 
1637 #####
1638 
1639 # Fatal Errors
1640 
1641 # 0: name
1642 compiler.misc.fatal.err.cant.locate.meth=\
1643     Fatal Error: Unable to find method {0}
1644 
1645 # 0: name
1646 compiler.misc.fatal.err.cant.locate.field=\
1647     Fatal Error: Unable to find field {0}
1648 
1649 # 0: type
1650 compiler.misc.fatal.err.cant.locate.ctor=\
1651     Fatal Error: Unable to find constructor for {0}
1652 
1653 compiler.misc.fatal.err.cant.close=\
1654     Fatal Error: Cannot close compiler resources
1655 
1656 #####
1657 
1658 ##
1659 ## miscellaneous strings
1660 ##
1661 
1662 compiler.misc.diamond.anonymous.methods.implicitly.override=\
1663     (due to <>, every non-private method declared in this anonymous class must override or implement a method from a supertype)
1664 
1665 compiler.misc.source.unavailable=\
1666     (source unavailable)
1667 
1668 # 0: string, 1: string, 2: boolean
1669 compiler.misc.x.print.processor.info=\
1670     Processor {0} matches {1} and returns {2}.
1671 
1672 # 0: number, 1: string, 2: set of symbol, 3: boolean
1673 compiler.misc.x.print.rounds=\
1674     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1675 
1676 # 0: file name
1677 compiler.warn.file.from.future=\
1678     Modification date is in the future for file {0}
1679 
1680 # 0: path
1681 # lint: output-file-clash
1682 compiler.warn.output.file.clash=\
1683     output file written more than once: {0}
1684 
1685 #####
1686 
1687 ## The following string will appear before all messages keyed as:
1688 ## "compiler.note".
1689 
1690 compiler.note.compressed.diags=\
1691     Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1692 
1693 # 0: boolean, 1: symbol
1694 compiler.note.lambda.stat=\
1695     Translating lambda expression\n\
1696     alternate metafactory = {0}\n\
1697     synthetic method = {1}
1698 
1699 # 0: boolean, 1: unused
1700 compiler.note.mref.stat=\
1701     Translating method reference\n\
1702     alternate metafactory = {0}\n\
1703 
1704 # 0: boolean, 1: symbol
1705 compiler.note.mref.stat.1=\
1706     Translating method reference\n\
1707     alternate metafactory = {0}\n\
1708     bridge method = {1}
1709 
1710 compiler.note.note=\
1711     Note:\u0020
1712 
1713 # 0: file name
1714 compiler.note.deprecated.filename=\
1715     {0} uses or overrides a deprecated API.
1716 
1717 compiler.note.deprecated.plural=\
1718     Some input files use or override a deprecated API.
1719 
1720 # The following string may appear after one of the above deprecation
1721 # messages.
1722 compiler.note.deprecated.recompile=\
1723     Recompile with -Xlint:deprecation for details.
1724 
1725 # 0: file name
1726 compiler.note.deprecated.filename.additional=\
1727     {0} has additional uses or overrides of a deprecated API.
1728 
1729 compiler.note.deprecated.plural.additional=\
1730     Some input files additionally use or override a deprecated API.
1731 
1732 # 0: file name
1733 compiler.note.removal.filename=\
1734     {0} uses or overrides a deprecated API that is marked for removal.
1735 
1736 compiler.note.removal.plural=\
1737     Some input files use or override a deprecated API that is marked for removal.
1738 
1739 # The following string may appear after one of the above removal messages.
1740 compiler.note.removal.recompile=\
1741     Recompile with -Xlint:removal for details.
1742 
1743 # 0: file name
1744 compiler.note.removal.filename.additional=\
1745     {0} has additional uses or overrides of a deprecated API that is marked for removal.
1746 
1747 compiler.note.removal.plural.additional=\
1748     Some input files additionally use or override a deprecated API that is marked for removal.
1749 
1750 # 0: file name
1751 compiler.note.unchecked.filename=\
1752     {0} uses unchecked or unsafe operations.
1753 
1754 compiler.note.unchecked.plural=\
1755     Some input files use unchecked or unsafe operations.
1756 
1757 # The following string may appear after one of the above unchecked messages.
1758 compiler.note.unchecked.recompile=\
1759     Recompile with -Xlint:unchecked for details.
1760 
1761 # 0: file name
1762 compiler.note.unchecked.filename.additional=\
1763     {0} has additional unchecked or unsafe operations.
1764 
1765 compiler.note.unchecked.plural.additional=\
1766     Some input files additionally use unchecked or unsafe operations.
1767 
1768 # 0: file name, 1: source
1769 compiler.note.preview.filename=\
1770     {0} uses preview features of Java SE {1}.
1771 
1772 # 0: source
1773 compiler.note.preview.plural=\
1774     Some input files use preview features of Java SE {0}.
1775 
1776 # The following string may appear after one of the above deprecation
1777 # messages.
1778 compiler.note.preview.recompile=\
1779     Recompile with -Xlint:preview for details.
1780 
1781 # 0: file name, 1: source
1782 compiler.note.preview.filename.additional=\
1783     {0} has additional uses of preview features of Java SE {1}.
1784 
1785 # 0: source
1786 compiler.note.preview.plural.additional=\
1787     Some input files additionally use preview features of Java SE {0}.
1788 
1789 # Notes related to annotation processing
1790 
1791 # Print a client-generated note; assumed to be localized, no translation required
1792 # 0: string
1793 compiler.note.proc.messager=\
1794     {0}
1795 
1796 # 0: string, 1: string, 2: string
1797 compiler.note.multiple.elements=\
1798     Multiple elements named ''{1}'' in modules ''{2}'' were found by javax.lang.model.util.Elements.{0}.
1799 
1800 compiler.note.implicit.annotation.processing=\
1801     Annotation processing is enabled because one or more processors were found\n\
1802     on the class path. A future release of javac may disable annotation processing\n\
1803     unless at least one processor is specified by name (-processor), or a search\n\
1804     path is specified (--processor-path, --processor-module-path), or annotation\n\
1805     processing is enabled explicitly (-proc:only, -proc:full).\n\
1806     Use -Xlint:-options to suppress this message.\n\
1807     Use -proc:none to disable annotation processing.
1808 
1809 #####
1810 
1811 # 0: number
1812 compiler.misc.count.error=\
1813     {0} error
1814 
1815 # 0: number
1816 compiler.misc.count.error.plural=\
1817     {0} errors
1818 
1819 # 0: number, 1: number
1820 compiler.misc.count.error.recompile=\
1821     only showing the first {0} errors, of {1} total; use -Xmaxerrs if you would like to see more
1822 
1823 # 0: number, 1: number
1824 compiler.misc.count.warn.recompile=\
1825     only showing the first {0} warnings, of {1} total; use -Xmaxwarns if you would like to see more
1826 
1827 # 0: number
1828 compiler.misc.count.warn=\
1829     {0} warning
1830 
1831 # 0: number
1832 compiler.misc.count.warn.plural=\
1833     {0} warnings
1834 
1835 compiler.misc.version.not.available=\
1836     (version info not available)
1837 
1838 ## extra output when using -verbose (JavaCompiler)
1839 
1840 # 0: symbol
1841 compiler.misc.verbose.checking.attribution=\
1842     [checking {0}]
1843 
1844 # 0: string
1845 compiler.misc.verbose.parsing.done=\
1846     [parsing completed {0}ms]
1847 
1848 # 0: file name
1849 compiler.misc.verbose.parsing.started=\
1850     [parsing started {0}]
1851 
1852 # 0: string
1853 compiler.misc.verbose.total=\
1854     [total {0}ms]
1855 
1856 # 0: file name
1857 compiler.misc.verbose.wrote.file=\
1858     [wrote {0}]
1859 
1860 ## extra output when using -verbose (code/ClassReader)
1861 # 0: string
1862 compiler.misc.verbose.loading=\
1863     [loading {0}]
1864 
1865 # 0: string
1866 compiler.misc.verbose.sourcepath=\
1867     [search path for source files: {0}]
1868 
1869 # 0: string
1870 compiler.misc.verbose.classpath=\
1871     [search path for class files: {0}]
1872 
1873 ## extra output when using -prompt (util/Log)
1874 compiler.misc.resume.abort=\
1875     R)esume, A)bort>
1876 
1877 #####
1878 
1879 ##
1880 ## warnings
1881 ##
1882 
1883 ## All warning messages are preceded by the following string.
1884 compiler.warn.warning=\
1885     warning:\u0020
1886 
1887 ## Warning messages may also include the following prefix to identify a
1888 ## lint option
1889 # 0: option name
1890 compiler.warn.lintOption=\
1891     [{0}]\u0020
1892 
1893 # 0: symbol
1894 # lint: serial
1895 compiler.warn.constant.SVUID=\
1896     serialVersionUID must be constant in class {0}
1897 
1898 # lint: dangling-doc-comments
1899 compiler.warn.dangling.doc.comment=\
1900     documentation comment is not attached to any declaration
1901 
1902 # 0: path
1903 # lint: path
1904 compiler.warn.dir.path.element.not.found=\
1905     bad path element "{0}": no such directory
1906 
1907 # 0: file name
1908 # lint: path
1909 compiler.warn.dir.path.element.not.directory=\
1910     bad path element "{0}": not a directory
1911 
1912 # 0: symbol, 1: symbol, 2: symbol
1913 # lint: missing-explicit-ctor
1914 compiler.warn.missing-explicit-ctor=\
1915     class {0} in exported package {1} declares no explicit constructors, thereby exposing a default constructor to clients of module {2}
1916 
1917 # lint: strictfp
1918 compiler.warn.strictfp=\
1919     as of release 17, all floating-point expressions are evaluated strictly and ''strictfp'' is not required
1920 
1921 # lint: finally
1922 compiler.warn.finally.cannot.complete=\
1923     finally clause cannot complete normally
1924 
1925 # 0: name
1926 # lint: module
1927 compiler.warn.poor.choice.for.module.name=\
1928     module name component {0} should avoid terminal digits
1929 
1930 # 0: string
1931 # lint: incubating
1932 compiler.warn.incubating.modules=\
1933     using incubating module(s): {0}
1934 
1935 # 0: symbol, 1: symbol
1936 # lint: deprecation
1937 compiler.warn.has.been.deprecated=\
1938     {0} in {1} has been deprecated
1939 
1940 # 0: symbol, 1: symbol
1941 # lint: removal
1942 compiler.warn.has.been.deprecated.for.removal=\
1943     {0} in {1} has been deprecated and marked for removal
1944 
1945 # 0: symbol
1946 # lint: preview
1947 compiler.warn.is.preview=\
1948     {0} is a preview API and may be removed in a future release.
1949 
1950 # 0: symbol
1951 compiler.err.is.preview=\
1952     {0} is a preview API and is disabled by default.\n\
1953     (use --enable-preview to enable preview APIs)
1954 
1955 # 0: symbol
1956 # lint: preview
1957 compiler.warn.is.preview.reflective=\
1958     {0} is a reflective preview API and may be removed in a future release.
1959 
1960 # 0: symbol, 1: symbol
1961 # lint: restricted
1962 compiler.warn.restricted.method=\
1963     {0}.{1} is a restricted method.\n\
1964     (Restricted methods are unsafe and, if used incorrectly, might crash the Java runtime or corrupt memory)
1965 
1966 # 0: symbol
1967 # lint: deprecation
1968 compiler.warn.has.been.deprecated.module=\
1969     module {0} has been deprecated
1970 
1971 # 0: symbol
1972 # lint: removal
1973 compiler.warn.has.been.deprecated.for.removal.module=\
1974     module {0} has been deprecated and marked for removal
1975 
1976 # 0: symbol
1977 compiler.warn.sun.proprietary=\
1978     {0} is internal proprietary API and may be removed in a future release
1979 
1980 compiler.warn.illegal.char.for.encoding=\
1981     unmappable character for encoding {0}
1982 
1983 # 0: symbol
1984 # lint: serial
1985 compiler.warn.improper.SVUID=\
1986     serialVersionUID must be declared static final in class {0}
1987 
1988 # lint: serial
1989 compiler.warn.improper.SPF=\
1990     serialPersistentFields must be declared private static final to be effective
1991 
1992 # lint: serial
1993 compiler.warn.SPF.null.init=\
1994     serialPersistentFields ineffective if initialized to null.\n\
1995     Initialize to an empty array to indicate no fields
1996 
1997 
1998 # 0: type, 1: type
1999 compiler.warn.inexact.non-varargs.call=\
2000     non-varargs call of varargs method with inexact argument type for last parameter;\n\
2001     cast to {0} for a varargs call\n\
2002     cast to {1} for a non-varargs call and to suppress this warning
2003 
2004 # 0: list of type
2005 compiler.warn.unreachable.catch=\
2006     unreachable catch clause\n\
2007     thrown type {0} has already been caught
2008 
2009 # 0: list of type
2010 compiler.warn.unreachable.catch.1=\
2011     unreachable catch clause\n\
2012     thrown types {0} have already been caught
2013 
2014 # 0: symbol
2015 # lint: serial
2016 compiler.warn.long.SVUID=\
2017     serialVersionUID must be of type long in class {0}
2018 
2019 # lint: serial
2020 compiler.warn.OSF.array.SPF=\
2021     serialPersistentFields must be of type java.io.ObjectStreamField[] to be effective
2022 
2023 # 0: symbol
2024 # lint: serial
2025 compiler.warn.missing.SVUID=\
2026     serializable class {0} has no definition of serialVersionUID
2027 
2028 # 0: name
2029 # lint: serial
2030 compiler.warn.serializable.missing.access.no.arg.ctor=\
2031     cannot access a no-arg constructor in first non-serializable superclass {0}
2032 
2033 # 0: name
2034 # lint: serial
2035 compiler.warn.serial.method.not.private=\
2036     serialization-related method {0} not declared private
2037 
2038 # 0: name
2039 # lint: serial
2040 compiler.warn.serial.concrete.instance.method=\
2041     serialization-related method {0} must be a concrete instance method to be effective, neither abstract nor static
2042 
2043 # 0: name
2044 # lint: serial
2045 compiler.warn.serial.method.static=\
2046     serialization-related method {0} declared static; must instead be an instance method to be effective
2047 
2048 # 0: name
2049 # lint: serial
2050 compiler.warn.serial.method.no.args=\
2051     to be effective serialization-related method {0} must have no parameters
2052 
2053 # 0: name, 1: number
2054 # lint: serial
2055 compiler.warn.serial.method.one.arg=\
2056     to be effective serialization-related method {0} must have exactly one parameter rather than {1} parameters
2057 
2058 # 0: name, 1: type, 2: type
2059 # lint: serial
2060 compiler.warn.serial.method.parameter.type=\
2061     sole parameter of serialization-related method {0} must have type {1} to be effective rather than type {2}
2062 
2063 # 0: name, 1: type, 2: type
2064 # lint: serial
2065 compiler.warn.serial.method.unexpected.return.type=\
2066     serialization-related method {0} declared with a return type of {1} rather than expected type {2}.\n\
2067     As declared, the method will be ineffective for serialization
2068 
2069 # 0: name, 1: type
2070 # lint: serial
2071 compiler.warn.serial.method.unexpected.exception=\
2072     serialization-related method {0} declared to throw an unexpected type {1}
2073 
2074 # lint: serial
2075 compiler.warn.ineffectual.serial.field.interface=\
2076     serialPersistentFields is not effective in an interface
2077 
2078 # 0: string
2079 # lint: serial
2080 compiler.warn.ineffectual.serial.field.enum=\
2081      serialization-related field {0} is not effective in an enum class
2082 
2083 # 0: string
2084 # lint: serial
2085 compiler.warn.ineffectual.serial.method.enum=\
2086     serialization-related method {0} is not effective in an enum class
2087 
2088 # 0: string
2089 # lint: serial
2090 compiler.warn.ineffectual.extern.method.enum=\
2091     externalization-related method {0} is not effective in an enum class
2092 
2093 # lint: serial
2094 compiler.warn.ineffectual.serial.field.record=\
2095     serialPersistentFields is not effective in a record class
2096 
2097 # 0: string
2098 # lint: serial
2099 compiler.warn.ineffectual.serial.method.record=\
2100     serialization-related method {0} is not effective in a record class
2101 
2102 # 0: string
2103 # lint: serial
2104 compiler.warn.ineffectual.externalizable.method.record=\
2105     externalization-related method {0} is not effective in a record class
2106 
2107 # 0: name
2108 # lint: serial
2109 compiler.warn.ineffectual.serial.method.externalizable=\
2110     serialization-related method {0} is not effective in an Externalizable class
2111 
2112 # lint: serial
2113 compiler.warn.ineffectual.serial.field.externalizable=\
2114     serialPersistentFields is not effective in an Externalizable class
2115 
2116 # lint: serial
2117 compiler.warn.externalizable.missing.public.no.arg.ctor=\
2118     an Externalizable class needs a public no-arg constructor
2119 
2120 # lint: serial
2121 compiler.warn.non.serializable.instance.field=\
2122     non-transient instance field of a serializable class declared with a non-serializable type
2123 
2124 # 0: type
2125 # lint: serial
2126 compiler.warn.non.serializable.instance.field.array=\
2127     non-transient instance field of a serializable class declared with an array having a non-serializable base component type {0}
2128 
2129 # lint: serial
2130 compiler.warn.non.private.method.weaker.access=\
2131     serialization-related method declared non-private in an interface will prevent\n\
2132     classes implementing the interface from declaring the method as private
2133 
2134 # lint: serial
2135 compiler.warn.default.ineffective=\
2136     serialization-related default method from an interface will not be run by serialization for an implementing class
2137 
2138 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2139 # lint: overloads
2140 compiler.warn.potentially.ambiguous.overload=\
2141     {0} in {1} is potentially ambiguous with {2} in {3}
2142 
2143 # 0: message segment
2144 # lint: overrides
2145 compiler.warn.override.varargs.missing=\
2146     {0}; overridden method has no ''...''
2147 
2148 # 0: message segment
2149 # lint: overrides
2150 compiler.warn.override.varargs.extra=\
2151     {0}; overriding method is missing ''...''
2152 
2153 # 0: message segment
2154 compiler.warn.override.bridge=\
2155     {0}; overridden method is a bridge method
2156 
2157 # 0: symbol
2158 compiler.warn.pkg-info.already.seen=\
2159     a package-info.java file has already been seen for package {0}
2160 
2161 # 0: path
2162 # lint: path
2163 compiler.warn.path.element.not.found=\
2164     bad path element "{0}": no such file or directory
2165 
2166 # lint: fallthrough
2167 compiler.warn.possible.fall-through.into.case=\
2168     possible fall-through into case
2169 
2170 # 0: type
2171 # lint: cast
2172 compiler.warn.redundant.cast=\
2173     redundant cast to {0}
2174 
2175 # 0: number
2176 compiler.warn.position.overflow=\
2177     Position encoding overflows at line {0}
2178 
2179 # 0: file name, 1: number, 2: number
2180 compiler.warn.big.major.version=\
2181     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
2182     It is recommended that the compiler be upgraded.
2183 
2184 # 0: file name, 1: fragment
2185 compiler.warn.invalid.utf8.in.classfile=\
2186     {0}: classfile contains invalid UTF-8: {1}
2187 
2188 # 0: kind name, 1: symbol
2189 # lint: static
2190 compiler.warn.static.not.qualified.by.type=\
2191     static {0} should be qualified by type name, {1}, instead of by an expression
2192 
2193 # 0: kind name
2194 # lint: static
2195 compiler.warn.static.not.qualified.by.type2=\
2196     static {0} should not be used as a member of an anonymous class
2197 
2198 # 0: string, 1: fragment
2199 # lint: options
2200 compiler.warn.source.no.bootclasspath=\
2201     bootstrap class path is not set in conjunction with -source {0}\n{1}
2202 
2203 # 0: string, 1: fragment
2204 # lint: options
2205 compiler.warn.source.no.system.modules.path=\
2206     location of system modules is not set in conjunction with -source {0}\n{1}
2207 
2208 # 0: string
2209 compiler.misc.source.no.bootclasspath=\
2210   not setting the bootstrap class path may lead to class files that cannot run on JDK {0}\n\
2211   --release {0} is recommended instead of -source {0} because it sets the bootstrap class path automatically
2212 
2213 # 0: string
2214 compiler.misc.source.no.system.modules.path=\
2215   not setting the location of system modules may lead to class files that cannot run on JDK {0}\n\
2216   --release {0} is recommended instead of -source {0} because it sets the location of system modules automatically
2217 
2218 # 0: string, 1: string
2219 compiler.misc.source.no.bootclasspath.with.target=\
2220   not setting the bootstrap class path may lead to class files that cannot run on JDK 8\n\
2221   --release {0} is recommended instead of -source {0} -target {1} because it sets the bootstrap class path automatically
2222 
2223 # 0: string, 1: string
2224 compiler.misc.source.no.system.modules.path.with.target=\
2225   not setting the location of system modules may lead to class files that cannot run on JDK {0}\n\
2226   --release {0} is recommended instead of -source {0} -target {1} because it sets the location of system modules automatically
2227 
2228 # 0: string
2229 # lint: options
2230 compiler.warn.option.obsolete.source=\
2231     source value {0} is obsolete and will be removed in a future release
2232 
2233 # 0: target
2234 # lint: options
2235 compiler.warn.option.obsolete.target=\
2236     target value {0} is obsolete and will be removed in a future release
2237 
2238 # 0: string, 1: string
2239 compiler.err.option.removed.source=\
2240     Source option {0} is no longer supported. Use {1} or later.
2241 
2242 # 0: target, 1: target
2243 compiler.err.option.removed.target=\
2244     Target option {0} is no longer supported. Use {1} or later.
2245 
2246 # lint: options
2247 compiler.warn.option.obsolete.suppression=\
2248     To suppress warnings about obsolete options, use -Xlint:-options.
2249 
2250 # 0: name, 1: number, 2: number, 3: number, 4: number
2251 # lint: classfile
2252 compiler.warn.future.attr=\
2253     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
2254 
2255 # lint: requires-automatic
2256 compiler.warn.requires.automatic=\
2257     requires directive for an automatic module
2258 
2259 # lint: requires-transitive-automatic
2260 compiler.warn.requires.transitive.automatic=\
2261     requires transitive directive for an automatic module
2262 
2263 # Warnings related to annotation processing
2264 # 0: string
2265 compiler.warn.proc.package.does.not.exist=\
2266     package {0} does not exist
2267 
2268 # 0: string
2269 # lint: processing
2270 compiler.warn.proc.file.reopening=\
2271     Attempt to create a file for ''{0}'' multiple times
2272 
2273 # 0: string
2274 # lint: processing
2275 compiler.warn.proc.type.already.exists=\
2276     A file for type ''{0}'' already exists on the sourcepath or classpath
2277 
2278 # 0: string
2279 # lint: processing
2280 compiler.warn.proc.type.recreate=\
2281     Attempt to create a file for type ''{0}'' multiple times
2282 
2283 # 0: string
2284 # lint: processing
2285 compiler.warn.proc.illegal.file.name=\
2286     Cannot create file for illegal name ''{0}''.
2287 
2288 # 0: string, 1: string
2289 # lint: processing
2290 compiler.warn.proc.suspicious.class.name=\
2291     Creating file for a type whose name ends in {1}: ''{0}''
2292 
2293 # 0: string
2294 compiler.warn.proc.file.create.last.round=\
2295     File for type ''{0}'' created in the last round will not be subject to annotation processing.
2296 
2297 # 0: string, 1: string
2298 # lint: processing
2299 compiler.warn.proc.malformed.supported.string=\
2300     Malformed string ''{0}'' for a supported annotation interface returned by processor ''{1}''
2301 
2302 # 0: set of string
2303 # lint: processing
2304 compiler.warn.proc.annotations.without.processors=\
2305     No processor claimed any of these annotations: {0}
2306 
2307 # 0: source version, 1: string, 2: string
2308 compiler.warn.proc.processor.incompatible.source.version=\
2309     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
2310 
2311 # 0: string, 1: string
2312 # lint: processing
2313 compiler.warn.proc.duplicate.option.name=\
2314     Duplicate supported option ''{0}'' returned by annotation processor ''{1}''
2315 
2316 # 0: string, 1: string
2317 # lint: processing
2318 compiler.warn.proc.duplicate.supported.annotation=\
2319     Duplicate supported annotation interface ''{0}'' returned by annotation processor ''{1}''
2320 
2321 
2322 # 0: string
2323 # lint: processing
2324 compiler.warn.proc.redundant.types.with.wildcard=\
2325     Annotation processor ''{0}'' redundantly supports both ''*'' and other annotation interfaces
2326 
2327 compiler.warn.proc.proc-only.requested.no.procs=\
2328     Annotation processing without compilation requested but no processors were found.
2329 
2330 compiler.warn.proc.use.implicit=\
2331     Implicitly compiled files were not subject to annotation processing.\n\
2332     Use -implicit to specify a policy for implicit compilation.
2333 
2334 compiler.warn.proc.use.proc.or.implicit=\
2335     Implicitly compiled files were not subject to annotation processing.\n\
2336     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
2337 
2338 # Print a client-generated warning; assumed to be localized, no translation required
2339 # 0: string
2340 compiler.warn.proc.messager=\
2341     {0}
2342 
2343 # 0: set of string
2344 compiler.warn.proc.unclosed.type.files=\
2345     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
2346 
2347 # 0: string
2348 compiler.warn.proc.unmatched.processor.options=\
2349     The following options were not recognized by any processor: ''{0}''
2350 
2351 # lint: try
2352 compiler.warn.try.explicit.close.call=\
2353     explicit call to close() on an auto-closeable resource
2354 
2355 # 0: symbol
2356 # lint: try
2357 compiler.warn.try.resource.not.referenced=\
2358     auto-closeable resource {0} is never referenced in body of corresponding try statement
2359 
2360 # 0: type
2361 # lint: try
2362 compiler.warn.try.resource.throws.interrupted.exc=\
2363     auto-closeable resource {0} has a member method close() that could throw InterruptedException
2364 
2365 # lint: unchecked
2366 compiler.warn.unchecked.assign=\
2367     unchecked assignment: {0} to {1}
2368 
2369 # 0: symbol, 1: type
2370 # lint: unchecked
2371 compiler.warn.unchecked.assign.to.var=\
2372     unchecked assignment to variable {0} as member of raw type {1}
2373 
2374 # 0: symbol, 1: type
2375 # lint: unchecked
2376 compiler.warn.unchecked.call.mbr.of.raw.type=\
2377     unchecked call to {0} as a member of the raw type {1}
2378 
2379 # lint: unchecked
2380 compiler.warn.unchecked.cast.to.type=\
2381     unchecked cast to type {0}
2382 
2383 # 0: kind name, 1: name, 2: object, 3: object, 4: kind name, 5: symbol
2384 # lint: unchecked
2385 compiler.warn.unchecked.meth.invocation.applied=\
2386     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
2387     required: {2}\n\
2388     found:    {3}
2389 
2390 # 0: type
2391 # lint: unchecked
2392 compiler.warn.unchecked.generic.array.creation=\
2393     unchecked generic array creation for varargs parameter of type {0}
2394 
2395 # 0: type
2396 # lint: unchecked
2397 compiler.warn.unchecked.varargs.non.reifiable.type=\
2398     Possible heap pollution from parameterized vararg type {0}
2399 
2400 # 0: symbol
2401 # lint: varargs
2402 compiler.warn.varargs.unsafe.use.varargs.param=\
2403     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
2404 
2405 # lint: dep-ann
2406 compiler.warn.missing.deprecated.annotation=\
2407     deprecated item is not annotated with @Deprecated
2408 
2409 # 0: kind name
2410 # lint: deprecation
2411 compiler.warn.deprecated.annotation.has.no.effect=\
2412     @Deprecated annotation has no effect on this {0} declaration
2413 
2414 # 0: string
2415 # lint: path
2416 compiler.warn.invalid.path=\
2417     Invalid filename: {0}
2418 
2419 compiler.warn.doclint.not.available=\
2420     No service provider for doclint is available
2421 
2422 # 0: string
2423 compiler.err.invalid.path=\
2424     Invalid filename: {0}
2425 
2426 
2427 # 0: path
2428 # lint: path
2429 compiler.warn.invalid.archive.file=\
2430     Unexpected file on path: {0}
2431 
2432 # 0: path
2433 # lint: path
2434 compiler.warn.unexpected.archive.file=\
2435     Unexpected extension for archive file: {0}
2436 
2437 # 0: path
2438 compiler.err.no.zipfs.for.archive=\
2439     No file system provider is available to handle this file: {0}
2440 
2441 # lint: divzero
2442 compiler.warn.div.zero=\
2443     division by zero
2444 
2445 # lint: empty
2446 compiler.warn.empty.if=\
2447     empty statement after if
2448 
2449 # 0: type, 1: name
2450 # lint: classfile
2451 compiler.warn.annotation.method.not.found=\
2452     Cannot find annotation method ''{1}()'' in type ''{0}''
2453 
2454 # 0: type, 1: name, 2: message segment
2455 # lint: classfile
2456 compiler.warn.annotation.method.not.found.reason=\
2457     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
2458 
2459 # 0: list of annotation, 1: symbol, 2: name, 3: message segment
2460 compiler.err.cant.attach.type.annotations=\
2461     Cannot attach type annotations {0} to {1}.{2}:\n\
2462     {3}
2463 
2464 # 0: file object, 1: symbol, 2: name
2465 compiler.warn.unknown.enum.constant=\
2466     unknown enum constant {1}.{2}
2467 
2468 # 0: file object, 1: symbol, 2: name, 3: message segment
2469 compiler.warn.unknown.enum.constant.reason=\
2470     unknown enum constant {1}.{2}\n\
2471     reason: {3}
2472 
2473 # 0: type, 1: type
2474 # lint: rawtypes
2475 compiler.warn.raw.class.use=\
2476     found raw type: {0}\n\
2477     missing type arguments for generic class {1}
2478 
2479 compiler.warn.diamond.redundant.args=\
2480     Redundant type arguments in new expression (use diamond operator instead).
2481 
2482 compiler.warn.local.redundant.type=\
2483     Redundant type for local variable (replace explicit type with ''var'').
2484 
2485 compiler.warn.potential.lambda.found=\
2486     This anonymous inner class creation can be turned into a lambda expression.
2487 
2488 compiler.warn.method.redundant.typeargs=\
2489     Redundant type arguments in method call.
2490 
2491 # 0: symbol, 1: message segment
2492 # lint: varargs
2493 compiler.warn.varargs.redundant.trustme.anno=\
2494     Redundant {0} annotation. {1}
2495 
2496 # 0: symbol
2497 # lint: serial
2498 compiler.warn.access.to.member.from.serializable.element=\
2499     access to member {0} from serializable element can be publicly accessible to untrusted code
2500 
2501 # 0: symbol
2502 # lint: serial
2503 compiler.warn.access.to.member.from.serializable.lambda=\
2504     access to member {0} from serializable lambda can be publicly accessible to untrusted code
2505 
2506 #####
2507 
2508 ## The following are tokens which are non-terminals in the language. They should
2509 ## be named as JLS3 calls them when translated to the appropriate language.
2510 compiler.misc.token.identifier=\
2511     <identifier>
2512 
2513 compiler.misc.token.character=\
2514     <character>
2515 
2516 compiler.misc.token.string=\
2517     <string>
2518 
2519 compiler.misc.token.integer=\
2520     <integer>
2521 
2522 compiler.misc.token.long-integer=\
2523     <long integer>
2524 
2525 compiler.misc.token.float=\
2526     <float>
2527 
2528 compiler.misc.token.double=\
2529     <double>
2530 
2531 compiler.misc.token.bad-symbol=\
2532     <bad symbol>
2533 
2534 compiler.misc.token.end-of-input=\
2535     <end of input>
2536 
2537 ## The argument to the following string will always be one of the following:
2538 ## 1. one of the above non-terminals
2539 ## 2. a keyword (JLS1.8)
2540 ## 3. a boolean literal (JLS3.10.3)
2541 ## 4. the null literal (JLS3.10.7)
2542 ## 5. a Java separator (JLS3.11)
2543 ## 6. an operator (JLS3.12)
2544 ##
2545 ## This is the only place these tokens will be used.
2546 # 0: token
2547 compiler.err.expected=\
2548     {0} expected
2549 
2550 # 0: string
2551 compiler.err.expected.str=\
2552     {0} expected
2553 
2554 # 0: token, 1: token
2555 compiler.err.expected2=\
2556     {0} or {1} expected
2557 
2558 # 0: token, 1: token, 2: token
2559 compiler.err.expected3=\
2560     {0}, {1}, or {2} expected
2561 
2562 # 0: token, 1: token, 2: token, 3: string
2563 compiler.err.expected4=\
2564     {0}, {1}, {2}, or {3} expected
2565 
2566 compiler.err.premature.eof=\
2567     reached end of file while parsing
2568 
2569 compiler.err.enum.constant.expected=\
2570     enum constant expected here
2571 
2572 compiler.err.enum.constant.not.expected=\
2573     enum constant not expected here
2574 
2575 compiler.err.extraneous.semicolon=\
2576     extraneous semicolon
2577 
2578 compiler.warn.extraneous.semicolon=\
2579     extraneous semicolon
2580 
2581 ## The following are related in form, but do not easily fit the above paradigm.
2582 compiler.err.expected.module.or.open=\
2583     ''module'' or ''open'' expected
2584 
2585 compiler.err.dot.class.expected=\
2586     ''.class'' expected
2587 
2588 ## The argument to this string will always be either 'case' or 'default'.
2589 # 0: token
2590 compiler.err.orphaned=\
2591     orphaned {0}
2592 
2593 # 0: name
2594 compiler.misc.anonymous.class=\
2595     <anonymous {0}>
2596 
2597 # 0: name, 1: type
2598 compiler.misc.type.captureof=\
2599     capture#{0} of {1}
2600 
2601 compiler.misc.type.captureof.1=\
2602     capture#{0}
2603 
2604 compiler.misc.type.none=\
2605     <none>
2606 
2607 compiler.misc.unnamed.package=\
2608     unnamed package
2609 
2610 compiler.misc.unnamed.module=\
2611     unnamed module
2612 
2613 #####
2614 
2615 # 0: symbol, 1: message segment
2616 compiler.err.cant.access=\
2617     cannot access {0}\n\
2618     {1}
2619 
2620 # 0: name
2621 compiler.misc.bad.class.file=\
2622     class file is invalid for class {0}
2623 
2624 # 0: file name, 1: string (expected constant pool entry type), 2: number (constant pool index)
2625 compiler.misc.bad.const.pool.entry=\
2626     bad constant pool entry in {0}\n\
2627     expected {1} at index {2}
2628 
2629 # 0: file name, 1: number (constant pool index), 2: number (constant pool size)
2630 compiler.misc.bad.const.pool.index=\
2631     bad constant pool index in {0}\n\
2632     index {1} is not within pool size {2}.
2633 
2634 # 0: file name, 1: message segment
2635 compiler.misc.bad.class.file.header=\
2636     bad class file: {0}\n\
2637     {1}\n\
2638     Please remove or make sure it appears in the correct subdirectory of the classpath.
2639 
2640 # 0: file name, 1: message segment
2641 compiler.misc.bad.source.file.header=\
2642     bad source file: {0}\n\
2643     {1}\n\
2644     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2645 
2646 ## The following are all possible strings for the second argument ({1}) of the
2647 ## above strings.
2648 compiler.misc.bad.class.signature=\
2649     bad class signature: {0}
2650 
2651 #0: symbol, 1: symbol
2652 compiler.misc.bad.enclosing.class=\
2653     bad enclosing class for {0}: {1}
2654 
2655 # 0: symbol
2656 compiler.misc.bad.enclosing.method=\
2657     bad enclosing method attribute for class {0}
2658 
2659 # 0: file name
2660 # lint: classfile
2661 compiler.warn.runtime.visible.invisible.param.annotations.mismatch=\
2662     the length of parameters in RuntimeVisibleParameterAnnotations attribute and \
2663     RuntimeInvisibleParameterAnnotations attribute in: {0} \
2664     do not match, ignoring both attributes
2665 
2666 # 0: file name
2667 # lint: classfile
2668 compiler.warn.runtime.invisible.parameter.annotations=\
2669     the RuntimeVisibleParameterAnnotations and RuntimeInvisibleParameterAnnotations attributes \
2670     in: {0} \
2671     cannot be mapped to the method''s parameters
2672 
2673 compiler.misc.bad.const.pool.tag=\
2674     bad constant pool tag: {0}
2675 
2676 compiler.misc.bad.const.pool.tag.at=\
2677     bad constant pool tag: {0} at {1}
2678 
2679 # 0: number
2680 compiler.misc.bad.utf8.byte.sequence.at=\
2681     bad UTF-8 byte sequence at {0}
2682 
2683 compiler.misc.unexpected.const.pool.tag.at=\
2684     unexpected constant pool tag: {0} at {1}
2685 
2686 # 0: number
2687 compiler.misc.bad.class.truncated.at.offset=\
2688     class file truncated at offset {0}
2689 
2690 compiler.misc.bad.signature=\
2691     bad signature: {0}
2692 
2693 compiler.misc.bad.type.annotation.value=\
2694     bad type annotation target type value: {0}
2695 
2696 compiler.misc.bad.module-info.name=\
2697     bad class name
2698 
2699 compiler.misc.class.file.wrong.class=\
2700     class file contains wrong class: {0}
2701 
2702 compiler.misc.module.info.invalid.super.class=\
2703     module-info with invalid super class
2704 
2705 # 0: name
2706 compiler.misc.class.file.not.found=\
2707     class file for {0} not found
2708 
2709 # 0: string (constant value), 1: symbol (constant field), 2: type (field type)
2710 compiler.misc.bad.constant.range=\
2711     constant value ''{0}'' for {1} is outside the expected range for {2}
2712 
2713 # 0: string (constant value), 1: symbol (constant field), 2: string (expected class)
2714 compiler.misc.bad.constant.value=\
2715     bad constant value ''{0}'' for {1}, expected {2}
2716 
2717 # 0: type (field type)
2718 compiler.misc.bad.constant.value.type=\
2719     variable of type ''{0}'' cannot have a constant value, but has one specified
2720 
2721 # 0: string (classfile major version), 1: string (classfile minor version)
2722 compiler.misc.invalid.default.interface=\
2723     default method found in version {0}.{1} classfile
2724 
2725 # 0: string (classfile major version), 1: string (classfile minor version)
2726 compiler.misc.invalid.static.interface=\
2727     static method found in version {0}.{1} classfile
2728 
2729 # 0: string (classfile major version), 1: string (classfile minor version)
2730 compiler.misc.anachronistic.module.info=\
2731     module declaration found in version {0}.{1} classfile
2732 
2733 compiler.misc.module.info.definition.expected=\
2734     module-info definition expected
2735 
2736 # 0: name
2737 compiler.misc.file.doesnt.contain.class=\
2738     file does not contain class {0}
2739 
2740 # 0: symbol
2741 compiler.misc.file.does.not.contain.package=\
2742     file does not contain package {0}
2743 
2744 compiler.misc.file.does.not.contain.module=\
2745     file does not contain module declaration
2746 
2747 compiler.misc.illegal.start.of.class.file=\
2748     illegal start of class file
2749 
2750 # 0: name
2751 compiler.misc.method.descriptor.invalid=\
2752     method descriptor invalid for {0}
2753 
2754 compiler.misc.unable.to.access.file=\
2755     unable to access file: {0}
2756 
2757 compiler.misc.unicode.str.not.supported=\
2758     unicode string in class file not supported
2759 
2760 compiler.misc.undecl.type.var=\
2761     undeclared type variable: {0}
2762 
2763 compiler.misc.malformed.vararg.method=\
2764     class file contains malformed variable arity method: {0}
2765 
2766 compiler.misc.wrong.version=\
2767     class file has wrong version {0}.{1}, should be {2}.{3}
2768 
2769 compiler.misc.illegal.flag.combo=\
2770     class file contains illegal flag combination {0} for {1} {2}
2771 
2772 #####
2773 
2774 # 0: type, 1: type or symbol
2775 compiler.err.not.within.bounds=\
2776     type argument {0} is not within bounds of type-variable {1}
2777 
2778 ## The following are all possible strings for the second argument ({1}) of the
2779 ## above string.
2780 
2781 ## none yet...
2782 
2783 #####
2784 
2785 # 0: message segment
2786 compiler.err.prob.found.req=\
2787     incompatible types: {0}
2788 
2789 # 0: message segment
2790 compiler.misc.prob.found.req=\
2791     incompatible types: {0}
2792 
2793 # 0: message segment, 1: type, 2: type
2794 # lint: unchecked
2795 compiler.warn.prob.found.req=\
2796     {0}\n\
2797     required: {2}\n\
2798     found:    {1}
2799 
2800 # 0: type, 1: type
2801 compiler.misc.inconvertible.types=\
2802     {0} cannot be converted to {1}
2803 
2804 # 0: type, 1: type
2805 compiler.misc.possible.loss.of.precision=\
2806     possible lossy conversion from {0} to {1}
2807 
2808 # 0: type, 1: type
2809 # lint: lossy-conversions
2810 compiler.warn.possible.loss.of.precision=\
2811     implicit cast from {0} to {1} in compound assignment is possibly lossy
2812 
2813 compiler.misc.unchecked.assign=\
2814     unchecked conversion
2815 
2816 # compiler.misc.storecheck=\
2817 #     assignment might cause later store checks to fail
2818 # compiler.misc.unchecked=\
2819 #     assigned array cannot dynamically check its stores
2820 compiler.misc.unchecked.cast.to.type=\
2821     unchecked cast
2822 
2823 # compiler.err.star.expected=\
2824 #     ''*'' expected
2825 # compiler.err.no.elem.type=\
2826 #     \[\*\] cannot have a type
2827 
2828 # 0: message segment
2829 compiler.misc.try.not.applicable.to.type=\
2830     try-with-resources not applicable to variable type\n\
2831     ({0})
2832 
2833 #####
2834 
2835 # 0: object, 1: message segment
2836 compiler.err.type.found.req=\
2837     unexpected type\n\
2838     required: {1}\n\
2839     found:    {0}
2840 
2841 ## The following are all possible strings for the first argument ({0}) of the
2842 ## above string.
2843 compiler.misc.type.req.class=\
2844     class
2845 
2846 compiler.misc.type.req.class.array=\
2847     class or array
2848 
2849 compiler.misc.type.req.array.or.iterable=\
2850     array or java.lang.Iterable
2851 
2852 compiler.misc.type.req.ref=\
2853     reference
2854 
2855 compiler.misc.type.req.exact=\
2856     class or interface without bounds
2857 
2858 # 0: type
2859 compiler.misc.type.parameter=\
2860     type parameter {0}
2861 
2862 #####
2863 
2864 ## The following are all possible strings for the last argument of all those
2865 ## diagnostics whose key ends in ".1"
2866 
2867 # 0: type, 1: list of type
2868 compiler.misc.no.unique.maximal.instance.exists=\
2869     no unique maximal instance exists for type variable {0} with upper bounds {1}
2870 
2871 # 0: type, 1: list of type
2872 compiler.misc.no.unique.minimal.instance.exists=\
2873     no unique minimal instance exists for type variable {0} with lower bounds {1}
2874 
2875 # 0: type, 1: list of type
2876 compiler.misc.incompatible.upper.bounds=\
2877     inference variable {0} has incompatible upper bounds {1}
2878 
2879 # 0: type, 1: list of type
2880 compiler.misc.incompatible.eq.bounds=\
2881     inference variable {0} has incompatible equality constraints {1}
2882 
2883 # 0: type, 1: fragment, 2: fragment
2884 compiler.misc.incompatible.bounds=\
2885     inference variable {0} has incompatible bounds\n\
2886     {1}\n\
2887     {2}
2888 
2889 # 0: list of type
2890 compiler.misc.lower.bounds=\
2891         lower bounds: {0}
2892 
2893 # 0: list of type
2894 compiler.misc.eq.bounds=\
2895         equality constraints: {0}
2896 
2897 # 0: list of type
2898 compiler.misc.upper.bounds=\
2899         upper bounds: {0}
2900 
2901 # 0: list of type, 1: type, 2: type
2902 compiler.misc.infer.no.conforming.instance.exists=\
2903     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
2904 
2905 # 0: list of type, 1: message segment
2906 compiler.misc.infer.no.conforming.assignment.exists=\
2907     cannot infer type-variable(s) {0}\n\
2908     (argument mismatch; {1})
2909 
2910 # 0: list of type
2911 compiler.misc.infer.arg.length.mismatch=\
2912     cannot infer type-variable(s) {0}\n\
2913     (actual and formal argument lists differ in length)
2914 
2915 # 0: list of type, 1: message segment
2916 compiler.misc.infer.varargs.argument.mismatch=\
2917     cannot infer type-variable(s) {0}\n\
2918     (varargs mismatch; {1})
2919 
2920 # 0: type, 1: list of type
2921 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
2922     inferred type does not conform to upper bound(s)\n\
2923     inferred: {0}\n\
2924     upper bound(s): {1}
2925 
2926 # 0: type, 1: list of type
2927 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
2928     inferred type does not conform to lower bound(s)\n\
2929     inferred: {0}\n\
2930     lower bound(s): {1}
2931 
2932 # 0: type, 1: list of type
2933 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
2934     inferred type does not conform to equality constraint(s)\n\
2935     inferred: {0}\n\
2936     equality constraints(s): {1}
2937 
2938 # 0: symbol
2939 compiler.misc.diamond=\
2940     {0}<>
2941 
2942 # 0: type
2943 compiler.misc.diamond.non.generic=\
2944     cannot use ''<>'' with non-generic class {0}
2945 
2946 # 0: list of type, 1: message segment
2947 compiler.misc.diamond.invalid.arg=\
2948     type argument {0} inferred for {1} is not allowed in this context\n\
2949     inferred argument is not expressible in the Signature attribute
2950 
2951 # 0: list of type, 1: message segment
2952 compiler.misc.diamond.invalid.args=\
2953     type arguments {0} inferred for {1} are not allowed in this context\n\
2954     inferred arguments are not expressible in the Signature attribute
2955 
2956 # 0: type
2957 compiler.misc.diamond.and.explicit.params=\
2958     cannot use ''<>'' with explicit type parameters for constructor
2959 
2960 compiler.misc.mref.infer.and.explicit.params=\
2961     cannot use raw constructor reference with explicit type parameters for constructor
2962 
2963 # 0: type, 1: list of type
2964 compiler.misc.explicit.param.do.not.conform.to.bounds=\
2965     explicit type argument {0} does not conform to declared bound(s) {1}
2966 
2967 compiler.misc.arg.length.mismatch=\
2968     actual and formal argument lists differ in length
2969 
2970 # 0: string
2971 compiler.misc.wrong.number.type.args=\
2972     wrong number of type arguments; required {0}
2973 
2974 # 0: message segment
2975 compiler.misc.no.conforming.assignment.exists=\
2976     argument mismatch; {0}
2977 
2978 # 0: message segment
2979 compiler.misc.varargs.argument.mismatch=\
2980     varargs mismatch; {0}
2981 
2982 #####
2983 
2984 # 0: symbol or type, 1: file name
2985 # lint: auxiliaryclass
2986 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
2987     auxiliary class {0} in {1} should not be accessed from outside its own source file
2988 
2989 ## The first argument ({0}) is a "kindname".
2990 # 0: kind name, 1: symbol, 2: symbol
2991 compiler.err.abstract.cant.be.accessed.directly=\
2992     abstract {0} {1} in {2} cannot be accessed directly
2993 
2994 ## The first argument ({0}) is a "kindname".
2995 # 0: symbol kind, 1: symbol
2996 compiler.err.non-static.cant.be.ref=\
2997     non-static {0} {1} cannot be referenced from a static context
2998 
2999 ## The first argument ({0}) is a "kindname".
3000 # 0: symbol kind, 1: symbol
3001 compiler.err.local.cant.be.inst.static=\
3002     local {0} {1} cannot be instantiated from a static context
3003 
3004 # 0: symbol kind, 1: symbol
3005 compiler.misc.bad.static.method.in.unbound.lookup=\
3006     unexpected static {0} {1} found in unbound lookup
3007 
3008 # 0: symbol kind, 1: symbol
3009 compiler.misc.bad.instance.method.in.unbound.lookup=\
3010     unexpected instance {0} {1} found in unbound lookup
3011 
3012 # 0: symbol kind, 1: symbol
3013 compiler.misc.bad.static.method.in.bound.lookup=\
3014     unexpected static {0} {1} found in bound lookup
3015 
3016 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
3017 ## of kindnames (the list should be identical to that provided in source.
3018 # 0: set of kind name, 1: set of kind name
3019 compiler.err.unexpected.type=\
3020     unexpected type\n\
3021     required: {0}\n\
3022     found:    {1}
3023 
3024 compiler.err.unexpected.lambda=\
3025    lambda expression not expected here
3026 
3027 compiler.err.unexpected.mref=\
3028    method reference not expected here
3029 
3030 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
3031 ## The second argument {1} is the non-resolved symbol
3032 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
3033 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
3034 # 0: kind name, 1: name, 2: unused, 3: unused
3035 compiler.err.cant.resolve=\
3036     cannot find symbol\n\
3037     symbol: {0} {1}
3038 
3039 # 0: kind name, 1: name, 2: unused, 3: list of type
3040 compiler.err.cant.resolve.args=\
3041     cannot find symbol\n\
3042     symbol: {0} {1}({3})
3043 
3044 # 0: kind name, 1: name, 2: unused, 3: list of type
3045 compiler.misc.cant.resolve.args=\
3046     cannot find symbol\n\
3047     symbol: {0} {1}({3})
3048 
3049 # 0: kind name, 1: name, 2: list of type, 3: list of type
3050 compiler.err.cant.resolve.args.params=\
3051     cannot find symbol\n\
3052     symbol: {0} <{2}>{1}({3})
3053 
3054 ## arguments from {0} to {3} have the same meaning as above
3055 ## The fifth argument {4} is a location subdiagnostic (see below)
3056 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment
3057 compiler.err.cant.resolve.location=\
3058     cannot find symbol\n\
3059     symbol:   {0} {1}\n\
3060     location: {4}
3061 
3062 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
3063 compiler.err.cant.resolve.location.args=\
3064     cannot find symbol\n\
3065     symbol:   {0} {1}({3})\n\
3066     location: {4}
3067 
3068 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
3069 compiler.err.cant.resolve.location.args.params=\
3070     cannot find symbol\n\
3071     symbol:   {0} <{2}>{1}({3})\n\
3072     location: {4}
3073 
3074 ### Following are replicated/used for method reference diagnostics
3075 
3076 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
3077 compiler.misc.cant.resolve.location.args=\
3078     cannot find symbol\n\
3079     symbol:   {0} {1}({3})\n\
3080     location: {4}
3081 
3082 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
3083 compiler.misc.cant.resolve.location.args.params=\
3084     cannot find symbol\n\
3085     symbol:   {0} <{2}>{1}({3})\n\
3086     location: {4}
3087 
3088 ##a location subdiagnostic is composed as follows:
3089 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
3090 ## The second argument {1} is the location name
3091 ## The third argument {2} is the location type (only when {1} is a variable name)
3092 
3093 # 0: kind name, 1: type or symbol, 2: unused
3094 compiler.misc.location=\
3095     {0} {1}
3096 
3097 # 0: kind name, 1: symbol, 2: type
3098 compiler.misc.location.1=\
3099     {0} {1} of type {2}
3100 
3101 ## The following are all possible string for "kindname".
3102 ## They should be called whatever the JLS calls them after it been translated
3103 ## to the appropriate language.
3104 # compiler.misc.kindname.constructor=\
3105 #     static member
3106 compiler.misc.kindname.annotation=\
3107     @interface
3108 
3109 compiler.misc.kindname.constructor=\
3110     constructor
3111 
3112 compiler.misc.kindname.enum=\
3113     enum
3114 
3115 compiler.misc.kindname.interface=\
3116     interface
3117 
3118 compiler.misc.kindname.static=\
3119     static
3120 
3121 compiler.misc.kindname.type.variable=\
3122     type variable
3123 
3124 compiler.misc.kindname.type.variable.bound=\
3125     bound of type variable
3126 
3127 compiler.misc.kindname.variable=\
3128     variable
3129 
3130 compiler.misc.kindname.value=\
3131     value
3132 
3133 compiler.misc.kindname.method=\
3134     method
3135 
3136 compiler.misc.kindname.class=\
3137     class
3138 
3139 compiler.misc.kindname.package=\
3140     package
3141 
3142 compiler.misc.kindname.module=\
3143     module
3144 
3145 compiler.misc.kindname.static.init=\
3146     static initializer
3147 
3148 compiler.misc.kindname.instance.init=\
3149     instance initializer
3150 
3151 compiler.misc.kindname.record.component=\
3152     record component
3153 
3154 compiler.misc.kindname.record=\
3155     record
3156 
3157 #####
3158 
3159 compiler.misc.no.args=\
3160     no arguments
3161 
3162 # 0: message segment
3163 compiler.err.override.static=\
3164     {0}\n\
3165     overriding method is static
3166 
3167 # 0: message segment, 1: set of flag
3168 compiler.err.override.meth=\
3169     {0}\n\
3170     overridden method is {1}
3171 
3172 # 0: message segment, 1: type
3173 compiler.err.override.meth.doesnt.throw=\
3174     {0}\n\
3175     overridden method does not throw {1}
3176 
3177 # In the following string {1} is a space separated list of Java Keywords, as
3178 # they would have been declared in the source code
3179 # 0: message segment, 1: set of flag or string
3180 compiler.err.override.weaker.access=\
3181     {0}\n\
3182     attempting to assign weaker access privileges; was {1}
3183 
3184 # 0: message segment, 1: type, 2: type
3185 compiler.err.override.incompatible.ret=\
3186     {0}\n\
3187     return type {1} is not compatible with {2}
3188 
3189 # 0: message segment, 1: type, 2: type
3190 # lint: unchecked
3191 compiler.warn.override.unchecked.ret=\
3192     {0}\n\
3193     return type requires unchecked conversion from {1} to {2}
3194 
3195 # 0: message segment, 1: type
3196 # lint: unchecked
3197 compiler.warn.override.unchecked.thrown=\
3198     {0}\n\
3199     overridden method does not throw {1}
3200 
3201 # 0: symbol
3202 # lint: overrides
3203 compiler.warn.override.equals.but.not.hashcode=\
3204     Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
3205 
3206 ## The following are all possible strings for the first argument ({0}) of the
3207 ## above strings.
3208 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3209 compiler.misc.cant.override=\
3210     {0} in {1} cannot override {2} in {3}
3211 
3212 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3213 compiler.misc.cant.hide=\
3214     {0} in {1} cannot hide {2} in {3}
3215 
3216 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3217 compiler.misc.cant.implement=\
3218     {0} in {1} cannot implement {2} in {3}
3219 
3220 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3221 compiler.misc.clashes.with=\
3222     {0} in {1} clashes with {2} in {3}
3223 
3224 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3225 compiler.misc.unchecked.override=\
3226     {0} in {1} overrides {2} in {3}
3227 
3228 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3229 compiler.misc.unchecked.implement=\
3230     {0} in {1} implements {2} in {3}
3231 
3232 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3233 compiler.misc.unchecked.clash.with=\
3234     {0} in {1} overrides {2} in {3}
3235 
3236 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3237 compiler.misc.varargs.override=\
3238     {0} in {1} overrides {2} in {3}
3239 
3240 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3241 compiler.misc.varargs.implement=\
3242     {0} in {1} implements {2} in {3}
3243 
3244 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
3245 compiler.misc.varargs.clash.with=\
3246     {0} in {1} overrides {2} in {3}
3247 
3248 # 0: kind name, 1: symbol, 2: symbol, 3: message segment
3249 compiler.misc.inapplicable.method=\
3250     {0} {1}.{2} is not applicable\n\
3251     ({3})
3252 
3253 ########################################
3254 # Diagnostics for language feature changes.
3255 # Such diagnostics have a common template which can be customized by using a feature
3256 # diagnostic fragment (one of those given below).
3257 ########################################
3258 
3259 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3260 compiler.err.feature.not.supported.in.source=\
3261    {0} is not supported in -source {1}\n\
3262     (use -source {2} or higher to enable {0})
3263 
3264 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3265 compiler.err.feature.not.supported.in.source.plural=\
3266    {0} are not supported in -source {1}\n\
3267     (use -source {2} or higher to enable {0})
3268 
3269 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3270 compiler.misc.feature.not.supported.in.source=\
3271    {0} is not supported in -source {1}\n\
3272     (use -source {2} or higher to enable {0})
3273 
3274 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
3275 compiler.misc.feature.not.supported.in.source.plural=\
3276    {0} are not supported in -source {1}\n\
3277     (use -source {2} or higher to enable {0})
3278 
3279 # 0: message segment (feature)
3280 compiler.err.preview.feature.disabled=\
3281    {0} is a preview feature and is disabled by default.\n\
3282    (use --enable-preview to enable {0})
3283 
3284 # 0: message segment (feature)
3285 compiler.err.preview.feature.disabled.plural=\
3286    {0} are a preview feature and are disabled by default.\n\
3287    (use --enable-preview to enable {0})
3288 
3289 # 0: file object (classfile), 1: string (expected version)
3290 compiler.err.preview.feature.disabled.classfile=\
3291    class file for {0} uses preview features of Java SE {1}.\n\
3292    (use --enable-preview to allow loading of class files which contain preview features)
3293 
3294 # 0: message segment (feature)
3295 # lint: preview
3296 compiler.warn.preview.feature.use=\
3297    {0} is a preview feature and may be removed in a future release.
3298 
3299 # 0: message segment (feature)
3300 # lint: preview
3301 compiler.warn.preview.feature.use.plural=\
3302    {0} are a preview feature and may be removed in a future release.
3303 
3304 # 0: file object (classfile), 1: string (expected version)
3305 # lint: preview
3306 compiler.warn.preview.feature.use.classfile=\
3307    class file for {0} uses preview features of Java SE {1}.
3308 
3309 compiler.misc.feature.modules=\
3310     modules
3311 
3312 compiler.misc.feature.diamond.and.anon.class=\
3313     ''<>'' with anonymous inner classes
3314 
3315 compiler.misc.feature.var.in.try.with.resources=\
3316     variables in try-with-resources
3317 
3318 compiler.misc.feature.private.intf.methods=\
3319     private interface methods
3320 
3321 compiler.misc.feature.text.blocks=\
3322     text blocks
3323 
3324 compiler.misc.feature.multiple.case.labels=\
3325     multiple case labels
3326 
3327 compiler.misc.feature.switch.rules=\
3328     switch rules
3329 
3330 compiler.misc.feature.switch.expressions=\
3331     switch expressions
3332 
3333 compiler.misc.feature.var.syntax.in.implicit.lambda=\
3334     var syntax in implicit lambdas
3335 
3336 compiler.misc.feature.pattern.matching.instanceof=\
3337     pattern matching in instanceof
3338 
3339 compiler.misc.feature.reifiable.types.instanceof=\
3340     reifiable types in instanceof
3341 
3342 compiler.misc.feature.deconstruction.patterns=\
3343     deconstruction patterns
3344 
3345 compiler.misc.feature.unnamed.variables=\
3346     unnamed variables
3347 
3348 compiler.misc.feature.primitive.patterns=\
3349     primitive patterns
3350 
3351 compiler.misc.feature.records=\
3352     records
3353 
3354 compiler.misc.feature.sealed.classes=\
3355     sealed classes
3356 
3357 compiler.misc.feature.case.null=\
3358     null in switch cases
3359 
3360 compiler.misc.feature.pattern.switch=\
3361     patterns in switch statements
3362 
3363 compiler.misc.feature.unconditional.patterns.in.instanceof=\
3364     unconditional patterns in instanceof
3365 
3366 compiler.misc.feature.implicit.classes=\
3367     implicitly declared classes
3368 
3369 compiler.misc.feature.flexible.constructors=\
3370     flexible constructors
3371 
3372 compiler.misc.feature.module.imports=\
3373     module imports
3374 
3375 # L10N: do not localize: transitive
3376 compiler.misc.feature.java.base.transitive=\
3377     transitive modifier for java.base
3378 
3379 compiler.warn.underscore.as.identifier=\
3380     as of release 9, ''_'' is a keyword, and may not be used as an identifier
3381 
3382 compiler.err.underscore.as.identifier=\
3383     as of release 9, ''_'' is a keyword, and may not be used as an identifier
3384 
3385 compiler.err.use.of.underscore.not.allowed=\
3386     underscore not allowed here\n\
3387     as of release 9, ''_'' is a keyword, and may not be used as an identifier\n\
3388     as of release 22, ''_'' can be used as a name in the declaration of unnamed patterns, local variables, exception parameters or lambda parameters
3389 
3390 compiler.err.use.of.underscore.not.allowed.non.variable=\
3391     underscore not allowed here
3392 
3393 compiler.err.use.of.underscore.not.allowed.with.brackets=\
3394     the underscore keyword ''_'' is not allowed to be followed by brackets
3395 
3396 compiler.err.enum.as.identifier=\
3397     as of release 5, ''enum'' is a keyword, and may not be used as an identifier
3398 
3399 compiler.err.assert.as.identifier=\
3400     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
3401 
3402 # TODO 308: make a better error message
3403 compiler.err.this.as.identifier=\
3404     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
3405     which has to be the first parameter, and cannot be a lambda parameter
3406 
3407 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
3408     receiver parameter not applicable for constructor of top-level class
3409 
3410 # 0: fragment, 1: symbol, 2: annotated-type
3411 compiler.err.type.annotation.inadmissible=\
3412     {0} not expected here\n\
3413     (to annotate a qualified type, write {1}.{2})
3414 
3415 # 0: annotation
3416 compiler.misc.type.annotation.1=\
3417     type annotation {0} is
3418 
3419 # 0: list of annotation
3420 compiler.misc.type.annotation=\
3421     type annotations {0} are
3422 
3423 # 0: type, 1: type
3424 compiler.err.incorrect.receiver.name=\
3425     the receiver name does not match the enclosing class type\n\
3426     required: {0}\n\
3427     found:    {1}
3428 
3429 # 0: type, 1: type
3430 compiler.err.incorrect.receiver.type=\
3431     the receiver type does not match the enclosing class type\n\
3432     required: {0}\n\
3433     found:    {1}
3434 
3435 # 0: type, 1: type
3436 compiler.err.incorrect.constructor.receiver.type=\
3437     the receiver type does not match the enclosing outer class type\n\
3438     required: {0}\n\
3439     found:    {1}
3440 
3441 # 0: type, 1: type
3442 compiler.err.incorrect.constructor.receiver.name=\
3443     the receiver name does not match the enclosing outer class type\n\
3444     required: {0}\n\
3445     found:    {1}
3446 
3447 compiler.err.no.annotations.on.dot.class=\
3448     no annotations are allowed in the type of a class literal
3449 
3450 ########################################
3451 # Diagnostics for verbose resolution
3452 # used by Resolve (debug only)
3453 ########################################
3454 
3455 # 0: number, 1: symbol, 2: unused
3456 compiler.misc.applicable.method.found=\
3457     #{0} applicable method found: {1}
3458 
3459 # 0: number, 1: symbol, 2: message segment
3460 compiler.misc.applicable.method.found.1=\
3461     #{0} applicable method found: {1}\n\
3462     ({2})
3463 
3464 # 0: number, 1: symbol, 2: message segment
3465 compiler.misc.not.applicable.method.found=\
3466     #{0} not applicable method found: {1}\n\
3467     ({2})
3468 
3469 # 0: type
3470 compiler.misc.partial.inst.sig=\
3471     partially instantiated to: {0}
3472 
3473 # 0: name, 1: symbol, 2: number, 3: string (method resolution phase), 4: list of type or message segment, 5: list of type or message segment
3474 compiler.note.verbose.resolve.multi=\
3475     resolving method {0} in type {1} to candidate {2}\n\
3476     phase: {3}\n\
3477     with actuals: {4}\n\
3478     with type-args: {5}\n\
3479     candidates:
3480 
3481 # 0: name, 1: symbol, 2: unused, 3: string (method resolution phase), 4: list of type or message segment, 5: list of type or message segment
3482 compiler.note.verbose.resolve.multi.1=\
3483     erroneous resolution for method {0} in type {1}\n\
3484     phase: {3}\n\
3485     with actuals: {4}\n\
3486     with type-args: {5}\n\
3487     candidates:
3488 
3489 # 0: symbol, 1: type, 2: type
3490 compiler.note.deferred.method.inst=\
3491     Deferred instantiation of method {0}\n\
3492     instantiated signature: {1}\n\
3493     target-type: {2}
3494 
3495 ########################################
3496 # Diagnostics for lambda deduplication
3497 # used by LambdaToMethod (debug only)
3498 ########################################
3499 
3500 # 0: symbol
3501 compiler.note.verbose.l2m.deduplicate=\
3502     deduplicating lambda implementation method {0}
3503 
3504 ########################################
3505 # Diagnostics for method reference search
3506 # results used by Resolve (debug only)
3507 ########################################
3508 
3509 # 0: fragment, 1: string, 2: number
3510 compiler.note.method.ref.search.results.multi=\
3511     {0} search results for {1}, with most specific {2}\n\
3512     applicable candidates:
3513 
3514 # 0: number, 1: fragment, 2: symbol
3515 compiler.misc.applicable.method.found.2=\
3516     #{0} applicable method found: {1} {2}
3517 
3518 # 0: number, 1: fragment, 2: symbol, 3: message segment
3519 compiler.misc.applicable.method.found.3=\
3520     #{0} applicable method found: {1} {2}\n\
3521     ({3})
3522 
3523 compiler.misc.static=\
3524     static
3525 
3526 compiler.misc.non.static=\
3527     non-static
3528 
3529 compiler.misc.bound=\
3530     bound
3531 
3532 compiler.misc.unbound=\
3533     unbound
3534 
3535 ########################################
3536 # Diagnostics for where clause implementation
3537 # used by the RichDiagnosticFormatter.
3538 ########################################
3539 
3540 compiler.misc.type.null=\
3541     <null>
3542 
3543 # X#n (where n is an int id) is disambiguated tvar name
3544 # 0: name, 1: number
3545 compiler.misc.type.var=\
3546     {0}#{1}
3547 
3548 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
3549 # 0: number
3550 compiler.misc.captured.type=\
3551     CAP#{0}
3552 
3553 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
3554 # 0: number
3555 compiler.misc.intersection.type=\
3556     INT#{0}
3557 
3558 # where clause for captured type: contains upper ('extends {1}') and lower
3559 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
3560 # 0: type, 1: type, 2: type, 3: type
3561 compiler.misc.where.captured=\
3562     {0} extends {1} super: {2} from capture of {3}
3563 
3564 # compact where clause for captured type: contains upper ('extends {1}') along
3565 # with the wildcard that generated this captured type ({3})
3566 # 0: type, 1: type, 2: unused, 3: type
3567 compiler.misc.where.captured.1=\
3568     {0} extends {1} from capture of {3}
3569 
3570 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
3571 # the kindname ({2}) and location ({3}) in which the typevar has been declared
3572 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
3573 compiler.misc.where.typevar=\
3574     {0} extends {1} declared in {2} {3}
3575 
3576 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
3577 # in which the typevar has been declared
3578 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
3579 compiler.misc.where.typevar.1=\
3580     {0} declared in {2} {3}
3581 
3582 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
3583 # Since a fresh type-variable is synthetic - there's no location/kindname here.
3584 # 0: type, 1: list of type
3585 compiler.misc.where.fresh.typevar=\
3586     {0} extends {1}
3587 
3588 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
3589 # of this intersection type
3590 # 0: type, 1: list of type
3591 compiler.misc.where.intersection=\
3592     {0} extends {1}
3593 
3594 ### Where clause headers ###
3595 compiler.misc.where.description.captured=\
3596     where {0} is a fresh type-variable:
3597 
3598 # 0: set of type
3599 compiler.misc.where.description.typevar=\
3600     where {0} is a type-variable:
3601 
3602 # 0: set of type
3603 compiler.misc.where.description.intersection=\
3604     where {0} is an intersection type:
3605 
3606 # 0: set of type
3607 compiler.misc.where.description.captured.1=\
3608     where {0} are fresh type-variables:
3609 
3610 # 0: set of type
3611 compiler.misc.where.description.typevar.1=\
3612     where {0} are type-variables:
3613 
3614 # 0: set of type
3615 compiler.misc.where.description.intersection.1=\
3616     where {0} are intersection types:
3617 
3618 ###
3619 # errors related to doc comments
3620 
3621 compiler.err.dc.bad.entity=\
3622     bad HTML entity
3623 
3624 compiler.err.dc.bad.inline.tag=\
3625     incorrect use of inline tag
3626 
3627 compiler.err.dc.identifier.expected=\
3628     identifier expected
3629 
3630 compiler.err.dc.invalid.html=\
3631     invalid HTML
3632 
3633 compiler.err.dc.malformed.html=\
3634     malformed HTML
3635 
3636 compiler.err.dc.missing.semicolon=\
3637     semicolon missing
3638 
3639 compiler.err.dc.no.content=\
3640     no content
3641 
3642 compiler.err.dc.no.tag.name=\
3643     no tag name after ''@''
3644 
3645 compiler.err.dc.no.url=\
3646     no URL
3647 
3648 compiler.err.dc.no.title=\
3649     no title
3650 
3651 compiler.err.dc.gt.expected=\
3652     ''>'' expected
3653 
3654 compiler.err.dc.ref.bad.parens=\
3655     unexpected text after parenthesis
3656 
3657 compiler.err.dc.ref.syntax.error=\
3658     syntax error in reference
3659 
3660 compiler.err.dc.ref.unexpected.input=\
3661     unexpected text
3662 
3663 compiler.err.dc.unexpected.content=\
3664     unexpected content
3665 
3666 compiler.err.dc.unterminated.inline.tag=\
3667     unterminated inline tag
3668 
3669 compiler.err.dc.unterminated.signature=\
3670     unterminated signature
3671 
3672 compiler.err.dc.unterminated.string=\
3673     unterminated string
3674 
3675 compiler.err.dc.ref.annotations.not.allowed=\
3676     annotations not allowed
3677 
3678 ###
3679 # errors related to modules
3680 
3681 compiler.err.expected.module=\
3682     expected ''module''
3683 
3684 # 0: symbol
3685 compiler.err.module.not.found=\
3686     module not found: {0}
3687 
3688 # 0: symbol
3689 # lint: module
3690 compiler.warn.module.not.found=\
3691     module not found: {0}
3692 
3693 # 0: name
3694 compiler.err.import.module.not.found=\
3695     imported module not found: {0}
3696 
3697 # 0: symbol
3698 compiler.err.import.module.does.not.read.unnamed=\
3699     unnamed module does not read: {0}
3700 
3701 # 0: symbol, 1: symbol
3702 compiler.err.import.module.does.not.read=\
3703     module {0} does not read: {1}
3704 
3705 compiler.err.too.many.modules=\
3706     too many module declarations found
3707 
3708 compiler.err.module.not.found.on.module.source.path=\
3709     module not found on module source path
3710 
3711 compiler.err.not.in.module.on.module.source.path=\
3712     not in a module on the module source path
3713 
3714 # 0: symbol
3715 compiler.err.duplicate.module=\
3716     duplicate module: {0}
3717 
3718 # 0: symbol
3719 compiler.err.duplicate.requires=\
3720     duplicate requires: {0}
3721 
3722 # 0: symbol
3723 compiler.err.conflicting.exports=\
3724     duplicate or conflicting exports: {0}
3725 
3726 # 0: symbol
3727 compiler.err.conflicting.opens=\
3728     duplicate or conflicting opens: {0}
3729 
3730 # 0: symbol
3731 compiler.err.conflicting.exports.to.module=\
3732     duplicate or conflicting exports to module: {0}
3733 
3734 # 0: symbol
3735 compiler.err.conflicting.opens.to.module=\
3736     duplicate or conflicting opens to module: {0}
3737 
3738 compiler.err.no.opens.unless.strong=\
3739     ''opens'' only allowed in strong modules
3740 
3741 # 0: symbol
3742 compiler.err.repeated.provides.for.service=\
3743     multiple ''provides'' for service {0}
3744 
3745 # 0: symbol, 1: symbol
3746 compiler.err.duplicate.provides=\
3747     duplicate provides: service {0}, implementation {1}
3748 
3749 # 0: symbol
3750 compiler.err.duplicate.uses=\
3751     duplicate uses: {0}
3752 
3753 # 0: symbol
3754 compiler.err.service.implementation.is.abstract=\
3755     the service implementation is an abstract class: {0}
3756 
3757 compiler.err.service.implementation.must.be.subtype.of.service.interface=\
3758     the service implementation type must be a subtype of the service interface type, or \
3759     have a public static no-args method named "provider" returning the service implementation
3760 
3761 compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface=\
3762     the "provider" method return type must be a subtype of the service interface type
3763 
3764 # 0: symbol
3765 compiler.err.service.implementation.is.inner=\
3766     the service implementation is an inner class: {0}
3767 
3768 # 0: symbol
3769 compiler.err.service.definition.is.enum=\
3770     the service definition is an enum: {0}
3771 
3772 # 0: symbol
3773 compiler.err.service.implementation.doesnt.have.a.no.args.constructor=\
3774     the service implementation does not have a default constructor: {0}
3775 
3776 # 0: symbol
3777 compiler.err.service.implementation.no.args.constructor.not.public=\
3778     the no arguments constructor of the service implementation is not public: {0}
3779 
3780 # 0: symbol
3781 compiler.err.package.empty.or.not.found=\
3782     package is empty or does not exist: {0}
3783 
3784 # 0: symbol
3785 # lint: opens
3786 compiler.warn.package.empty.or.not.found=\
3787     package is empty or does not exist: {0}
3788 
3789 compiler.err.no.output.dir=\
3790     no class output directory specified
3791 
3792 compiler.err.unnamed.pkg.not.allowed.named.modules=\
3793     unnamed package is not allowed in named modules
3794 
3795 # 0: name, 1: name
3796 compiler.err.module.name.mismatch=\
3797     module name {0} does not match expected name {1}
3798 
3799 # 0: name, 1: name
3800 compiler.misc.module.name.mismatch=\
3801     module name {0} does not match expected name {1}
3802 
3803 # 0: name
3804 compiler.err.module.non.zero.opens=\
3805     open module {0} has non-zero opens_count
3806 
3807 # 0: name
3808 compiler.misc.module.non.zero.opens=\
3809     open module {0} has non-zero opens_count
3810 
3811 compiler.err.module.decl.sb.in.module-info.java=\
3812     module declarations should be in a file named module-info.java
3813 
3814 # 0: set of string
3815 compiler.err.too.many.patched.modules=\
3816     too many patched modules ({0}), use --module-source-path
3817 
3818 # 0: name, 1: name
3819 compiler.err.file.patched.and.msp=\
3820     file accessible from both --patch-module and --module-source-path, \
3821     but belongs to a different module on each path: {0}, {1}
3822 
3823 compiler.err.processorpath.no.processormodulepath=\
3824     illegal combination of -processorpath and --processor-module-path
3825 
3826 # 0: symbol
3827 compiler.err.package.in.other.module=\
3828     package exists in another module: {0}
3829 
3830 # 0: symbol, 1: name, 2: symbol, 3: symbol
3831 compiler.err.package.clash.from.requires=\
3832     module {0} reads package {1} from both {2} and {3}
3833 
3834 # 0: name, 1: symbol, 2: symbol
3835 compiler.err.package.clash.from.requires.in.unnamed=\
3836     the unnamed module reads package {0} from both {1} and {2}
3837 
3838 # 0: string
3839 compiler.err.module.not.found.in.module.source.path=\
3840     module {0} not found in module source path
3841 
3842 compiler.err.output.dir.must.be.specified.with.dash.m.option=\
3843     class output directory must be specified if -m option is used
3844 
3845 compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=\
3846     module source path must be specified if -m option is used
3847 
3848 # 0: symbol
3849 compiler.err.service.implementation.not.in.right.module=\
3850     service implementation must be defined in the same module as the provides directive
3851 
3852 # 0: symbol
3853 compiler.err.cyclic.requires=\
3854     cyclic dependence involving {0}
3855 
3856 # 0: fragment, 1: name
3857 compiler.err.duplicate.module.on.path=\
3858     duplicate module on {0}\nmodule in {1}
3859 
3860 # 0: option name, 1: string
3861 compiler.warn.bad.name.for.option=\
3862     bad name in value for {0} option: ''{1}''
3863 
3864 # 0: option name, 1: string
3865 compiler.err.bad.name.for.option=\
3866     bad name in value for {0} option: ''{1}''
3867 
3868 # 0: option name, 1: symbol
3869 # lint: options
3870 compiler.warn.module.for.option.not.found=\
3871     module name in {0} option not found: {1}
3872 
3873 compiler.err.addmods.all.module.path.invalid=\
3874     --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module or \
3875     when compiling in the context of an automatic module
3876 
3877 # 0: symbol
3878 compiler.err.add.exports.with.release=\
3879     exporting a package from system module {0} is not allowed with --release
3880 
3881 # 0: symbol
3882 compiler.err.add.reads.with.release=\
3883     adding read edges for system module {0} is not allowed with --release
3884 
3885 # lint: options
3886 compiler.warn.addopens.ignored=\
3887     --add-opens has no effect at compile time
3888 
3889 compiler.misc.locn.module_source_path=\
3890     module source path
3891 
3892 compiler.misc.locn.upgrade_module_path=\
3893     upgrade module path
3894 
3895 compiler.misc.locn.system_modules=\
3896     system modules
3897 
3898 compiler.misc.locn.module_path=\
3899     application module path
3900 
3901 compiler.misc.cant.resolve.modules=\
3902     cannot resolve modules
3903 
3904 compiler.misc.bad.requires.flag=\
3905     invalid flag for "requires java.base": {0}
3906 
3907 # 0: string
3908 compiler.err.invalid.module.specifier=\
3909     module specifier not allowed: {0}
3910 
3911 # 0: symbol
3912 compiler.warn.service.provided.but.not.exported.or.used=\
3913     service interface provided but not exported or used
3914 
3915 # 0: kind name, 1: symbol, 2: symbol
3916 # lint: exports
3917 compiler.warn.leaks.not.accessible=\
3918     {0} {1} in module {2} is not accessible to clients that require this module
3919 # 0: kind name, 1: symbol, 2: symbol
3920 # lint: exports
3921 compiler.warn.leaks.not.accessible.unexported=\
3922     {0} {1} in module {2} is not exported
3923 # 0: kind name, 1: symbol, 2: symbol
3924 # lint: exports
3925 compiler.warn.leaks.not.accessible.not.required.transitive=\
3926     {0} {1} in module {2} is not indirectly exported using ''requires transitive''
3927 # 0: kind name, 1: symbol, 2: symbol
3928 # lint: exports
3929 compiler.warn.leaks.not.accessible.unexported.qualified=\
3930     {0} {1} in module {2} may not be visible to all clients that require this module
3931 
3932 ###
3933 # errors related to options
3934 
3935 # 0: string, 1: string
3936 compiler.err.illegal.argument.for.option=\
3937     illegal argument for {0}: {1}
3938 
3939 compiler.err.match.binding.exists=\
3940     illegal attempt to redefine an existing match binding
3941 
3942 compiler.err.switch.case.unexpected.statement=\
3943     unexpected statement in case, expected is an expression, a block or a throw statement
3944 
3945 compiler.err.switch.mixing.case.types=\
3946     different case kinds used in the switch
3947 
3948 ###
3949 # errors related to sealed classes
3950 
3951 # permits clause
3952 # 0: fragment
3953 compiler.err.invalid.permits.clause=\
3954     invalid permits clause\n\
3955     ({0})
3956 
3957 # 0: string
3958 compiler.misc.class.is.not.sealed=\
3959     {0} must be sealed
3960 
3961 # 0: type
3962 compiler.misc.is.a.type.variable=\
3963     must not include type variables: {0}
3964 
3965 # 0: type
3966 compiler.misc.is.duplicated=\
3967     must not contain duplicates: {0}
3968 
3969 # 0: type
3970 compiler.misc.doesnt.extend.sealed=\
3971     class {0} must extend sealed class
3972 
3973 # 0: kind name, 1: type
3974 compiler.misc.doesnt.implement.sealed=\
3975     {0} {1} must extend sealed interface
3976 
3977 compiler.misc.must.not.be.same.class=\
3978     illegal self-reference in permits clause
3979 
3980 # 0: type
3981 compiler.misc.must.not.be.supertype=\
3982     illegal reference to supertype {0}
3983 
3984 # other sealed types related errors
3985 
3986 compiler.err.sealed.class.must.have.subclasses=\
3987     sealed class must have subclasses
3988 
3989 # errors in subclasses of sealed classes
3990 # 0: symbol
3991 compiler.err.cant.inherit.from.sealed=\
3992     class is not allowed to extend sealed class: {0} \
3993     (as it is not listed in its ''permits'' clause)
3994 
3995 # 0: symbol
3996 compiler.err.class.in.unnamed.module.cant.extend.sealed.in.diff.package=\
3997     class {0} in unnamed module cannot extend a sealed class in a different package
3998 
3999 # 0: symbol, 1: symbol
4000 compiler.err.class.in.module.cant.extend.sealed.in.diff.module=\
4001     class {0} in module {1} cannot extend a sealed class in a different module
4002 
4003 # 0: symbol
4004 compiler.err.non.sealed.with.no.sealed.supertype=\
4005     non-sealed modifier not allowed here\n\
4006     (class {0} does not have any sealed supertypes)
4007 
4008 compiler.err.non.sealed.sealed.or.final.expected=\
4009     sealed, non-sealed or final modifiers expected
4010 
4011 compiler.err.non.sealed.or.sealed.expected=\
4012     sealed or non-sealed modifiers expected
4013 
4014 compiler.err.sealed.or.non.sealed.local.classes.not.allowed=\
4015     sealed or non-sealed local classes are not allowed
4016 
4017 # 0: fragment
4018 compiler.err.local.classes.cant.extend.sealed=\
4019     {0} classes must not extend sealed classes\
4020 
4021 compiler.misc.anonymous=\
4022     anonymous
4023 
4024 compiler.misc.local=\
4025     local
4026 
4027 ###
4028 # errors related to records
4029 
4030 # record components
4031 compiler.err.record.cant.declare.field.modifiers=\
4032     record components cannot have modifiers
4033 
4034 # 0: symbol
4035 compiler.err.illegal.record.component.name=\
4036     illegal record component name {0}
4037 
4038 compiler.err.record.component.and.old.array.syntax=\
4039     legacy array notation not allowed on record components
4040 
4041 # accessor methods
4042 # 0: symbol, 1: fragment
4043 compiler.err.invalid.accessor.method.in.record=\
4044     invalid accessor method in record {0}\n\
4045     ({1})
4046 
4047 compiler.misc.method.must.be.public=\
4048     accessor method must be public
4049 
4050 # 0: symbol, 1: symbol
4051 compiler.misc.accessor.return.type.doesnt.match=\
4052     return type of accessor method {0} must match the type of record component {1}
4053 
4054 compiler.misc.accessor.method.cant.throw.exception=\
4055     throws clause not allowed for accessor method
4056 
4057 compiler.misc.accessor.method.must.not.be.generic=\
4058     accessor method must not be generic
4059 
4060 compiler.misc.accessor.method.must.not.be.static=\
4061     accessor method must not be static
4062 
4063 # canonical constructors
4064 # 0: fragment, 1: name, 2: fragment
4065 compiler.err.invalid.canonical.constructor.in.record=\
4066     invalid {0} constructor in record {1}\n\
4067     ({2})
4068 
4069 compiler.misc.canonical=\
4070     canonical
4071 
4072 compiler.misc.compact=\
4073     compact
4074 
4075 # 0: fragment
4076 compiler.misc.throws.clause.not.allowed.for.canonical.constructor=\
4077     throws clause not allowed for {0} constructor
4078 
4079 compiler.misc.canonical.with.name.mismatch=\
4080     invalid parameter names in canonical constructor
4081 
4082 compiler.misc.canonical.cant.have.return.statement=\
4083     compact constructor must not have return statements
4084 
4085 compiler.misc.canonical.must.not.declare.type.variables=\
4086     canonical constructor must not declare type variables
4087 
4088 compiler.misc.type.must.be.identical.to.corresponding.record.component.type=\
4089     type and arity must match that of the corresponding record component\
4090 
4091 compiler.misc.canonical.must.not.contain.explicit.constructor.invocation=\
4092     canonical constructor must not contain explicit constructor invocation
4093 
4094 # 0: set of flag or string
4095 compiler.misc.canonical.must.not.have.stronger.access=\
4096     attempting to assign stronger access privileges; was {0}
4097 
4098 # other
4099 compiler.err.record.cannot.declare.instance.fields=\
4100     field declaration must be static\n\
4101     (consider replacing field with record component)
4102 
4103 # 0: symbol
4104 compiler.err.invalid.supertype.record=\
4105     classes cannot directly extend {0}
4106 
4107 # 0: symbol
4108 compiler.err.non.canonical.constructor.invoke.another.constructor=\
4109     constructor is not canonical, so it must invoke another constructor of class {0}
4110 
4111 compiler.err.instance.initializer.not.allowed.in.records=\
4112     instance initializers not allowed in records
4113 
4114 compiler.err.static.declaration.not.allowed.in.inner.classes=\
4115     static declarations not allowed in inner classes
4116 
4117 compiler.err.record.patterns.annotations.not.allowed=\
4118     annotations not allowed on record patterns
4119 
4120 ############################################
4121 # messages previously at javac.properties
4122 
4123 compiler.err.empty.A.argument=\
4124     -A requires an argument; use ''-Akey'' or ''-Akey=value''
4125 
4126 # 0: string
4127 compiler.err.invalid.A.key=\
4128     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
4129 
4130 # 0: string
4131 compiler.err.invalid.flag=\
4132     invalid flag: {0}
4133 
4134 compiler.err.profile.bootclasspath.conflict=\
4135     profile and bootclasspath options cannot be used together
4136 
4137 # 0: string
4138 compiler.err.invalid.profile=\
4139     invalid profile: {0}
4140 
4141 # 0: string
4142 compiler.err.invalid.target=\
4143     invalid target release: {0}
4144 
4145 # 0: option name, 1: target
4146 compiler.err.option.not.allowed.with.target=\
4147     option {0} not allowed with target {1}
4148 
4149 # 0: string
4150 compiler.err.option.too.many=\
4151     option {0} can only be specified once
4152 
4153 compiler.err.no.source.files=\
4154     no source files
4155 
4156 compiler.err.no.source.files.classes=\
4157     no source files or class names
4158 
4159 # 0: string
4160 compiler.err.req.arg=\
4161     {0} requires an argument
4162 
4163 # 0: string
4164 compiler.err.invalid.source=\
4165     invalid source release: {0}
4166 
4167 # 0: string, 1: string
4168 compiler.err.error.writing.file=\
4169     error writing {0}; {1}
4170 
4171 compiler.err.sourcepath.modulesourcepath.conflict=\
4172     cannot specify both --source-path and --module-source-path
4173 
4174 # 0: string, 1: string
4175 compiler.err.source.target.conflict=\
4176     specified target release {1} is too old for the specified source release {0}\n\
4177     --release {1} is recommended when compiling code to run on JDK {1}
4178 
4179 # 0: string, 1: string
4180 compiler.err.target.default.source.conflict=\
4181     specified target release {1} is too old for the default source release {0}\n\
4182     --release {1} is recommended when compiling code to run on JDK {1}
4183 
4184 # 0: profile, 1: target
4185 compiler.warn.profile.target.conflict=\
4186     profile {0} is not valid for target release {1}
4187 
4188 # 0: string
4189 compiler.err.file.not.directory=\
4190     not a directory: {0}
4191 
4192 # 0: object
4193 compiler.err.file.not.file=\
4194     not a file: {0}
4195 
4196 compiler.err.two.class.loaders.1=\
4197     javac is split between multiple class loaders: check your configuration
4198 
4199 # 0: url, 1: url
4200 compiler.err.two.class.loaders.2=\
4201     javac is split between multiple class loaders:\n\
4202     one class comes from file: {0}\n\
4203     while javac comes from {1}
4204 
4205 # 0: string, 1: string
4206 compiler.err.bad.value.for.option=\
4207     bad value for {0} option: ''{1}''
4208 
4209 # 0: string
4210 compiler.err.no.value.for.option=\
4211     no value for {0} option
4212 
4213 # 0: string
4214 compiler.err.repeated.value.for.patch.module=\
4215     --patch-module specified more than once for module {0}
4216 
4217 # 0: string
4218 compiler.err.repeated.value.for.module.source.path=\
4219     --module-source-path specified more than once for module {0}
4220 
4221 compiler.err.multiple.values.for.module.source.path=\
4222     --module-source-path specified more than once with a pattern argument
4223 
4224 # 0: string
4225 compiler.err.unmatched.quote=\
4226     unmatched quote in environment variable {0}
4227 
4228 # 0: option name
4229 compiler.err.release.bootclasspath.conflict=\
4230     option {0} cannot be used together with --release
4231 
4232 # 0: string
4233 compiler.err.unsupported.release.version=\
4234     release version {0} not supported
4235 
4236 # 0: string
4237 compiler.err.file.not.found=\
4238     file not found: {0}
4239 
4240 # 0: string, 1: source
4241 compiler.err.preview.not.latest=\
4242     invalid source release {0} with --enable-preview\n\
4243     (preview language features are only supported for release {1})
4244 
4245 compiler.err.preview.without.source.or.release=\
4246     --enable-preview must be used with either -source or --release
4247 
4248 # 0: symbol
4249 compiler.err.deconstruction.pattern.only.records=\
4250     deconstruction patterns can only be applied to records, {0} is not a record
4251 
4252 compiler.err.deconstruction.pattern.var.not.allowed=\
4253     deconstruction patterns can only be applied to records, var is not allowed
4254 
4255 # 0: list of type, 1: list of type
4256 compiler.err.incorrect.number.of.nested.patterns=\
4257     incorrect number of nested patterns\n\
4258     required: {0}\n\
4259     found: {1}
4260 
4261 # 0: kind name, 1: symbol
4262 # lint: preview
4263 compiler.warn.declared.using.preview=\
4264     {0} {1} is declared using a preview feature, which may be removed in a future release.
4265 
4266 # lint: identity
4267 compiler.warn.attempt.to.synchronize.on.instance.of.value.based.class=\
4268     attempt to synchronize on an instance of a value-based class
4269 
4270 # lint: identity
4271 compiler.warn.attempt.to.use.value.based.where.identity.expected=\
4272     use of a value-based class with an operation that expects reliable identity
4273 
4274 # 0: type
4275 compiler.err.enclosing.class.type.non.denotable=\
4276     enclosing class type: {0}\n\
4277     is non-denotable, try casting to a denotable type
4278 
4279 ########################################
4280 # Diagnostics for code reflection
4281 ########################################
4282 
4283 # 0: symbol
4284 compiler.err.quoted.method.inner.class=\
4285     unsupported quoted method in inner class {0}
4286 
4287 # 0: symbol
4288 compiler.err.quoted.lambda.inner.class=\
4289     unsupported quoted lambda in inner class {0}
4290 
4291 # 0: symbol
4292 compiler.err.quoted.mref.inner.class=\
4293     unsupported quoted method reference in inner class {0}
4294 
4295 compiler.misc.feature.reflect.methods=\
4296     code reflection
4297 
4298 # 0: symbol, 1: symbol, 2: string
4299 compiler.note.method.ir.dump=\
4300     code reflection enabled for method {0}.{1}\n\
4301     {2}
4302 
4303 # 0: string
4304 compiler.note.quoted.ir.dump=\
4305     code reflection enabled for method quoted lambda\n\
4306     {0}