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