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