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