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