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