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