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