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