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