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 or misplaced
 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 compiler.misc.type.req.identity=\
2481     a type with identity
2482 
2483 # 0: type
2484 compiler.misc.type.parameter=\
2485     type parameter {0}
2486 
2487 #####
2488 
2489 ## The following are all possible strings for the last argument of all those
2490 ## diagnostics whose key ends in ".1"
2491 
2492 # 0: type, 1: list of type
2493 compiler.misc.no.unique.maximal.instance.exists=\
2494     no unique maximal instance exists for type variable {0} with upper bounds {1}
2495 
2496 # 0: type, 1: list of type
2497 compiler.misc.no.unique.minimal.instance.exists=\
2498     no unique minimal instance exists for type variable {0} with lower bounds {1}
2499 
2500 # 0: type, 1: list of type
2501 compiler.misc.incompatible.upper.bounds=\
2502     inference variable {0} has incompatible upper bounds {1}
2503 
2504 # 0: type, 1: list of type
2505 compiler.misc.incompatible.eq.bounds=\
2506     inference variable {0} has incompatible equality constraints {1}
2507 
2508 # 0: type, 1: fragment, 2: fragment
2509 compiler.misc.incompatible.bounds=\
2510     inference variable {0} has incompatible bounds\n\
2511     {1}\n\
2512     {2}
2513 
2514 # 0: list of type
2515 compiler.misc.lower.bounds=\
2516         lower bounds: {0}
2517 
2518 # 0: list of type
2519 compiler.misc.eq.bounds=\
2520         equality constraints: {0}
2521 
2522 # 0: list of type
2523 compiler.misc.upper.bounds=\
2524         lower bounds: {0}
2525 
2526 # 0: list of type, 1: type, 2: type
2527 compiler.misc.infer.no.conforming.instance.exists=\
2528     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
2529 
2530 # 0: list of type, 1: message segment
2531 compiler.misc.infer.no.conforming.assignment.exists=\
2532     cannot infer type-variable(s) {0}\n\
2533     (argument mismatch; {1})
2534 
2535 # 0: list of type
2536 compiler.misc.infer.arg.length.mismatch=\
2537     cannot infer type-variable(s) {0}\n\
2538     (actual and formal argument lists differ in length)
2539 
2540 # 0: list of type, 1: message segment
2541 compiler.misc.infer.varargs.argument.mismatch=\
2542     cannot infer type-variable(s) {0}\n\
2543     (varargs mismatch; {1})
2544 
2545 # 0: type, 1: list of type
2546 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
2547     inferred type does not conform to upper bound(s)\n\
2548     inferred: {0}\n\
2549     upper bound(s): {1}
2550 
2551 # 0: type, 1: list of type
2552 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
2553     inferred type does not conform to lower bound(s)\n\
2554     inferred: {0}\n\
2555     lower bound(s): {1}
2556 
2557 # 0: type, 1: list of type
2558 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
2559     inferred type does not conform to equality constraint(s)\n\
2560     inferred: {0}\n\
2561     equality constraints(s): {1}
2562 
2563 # 0: symbol
2564 compiler.misc.diamond=\
2565     {0}<>
2566 
2567 # 0: type
2568 compiler.misc.diamond.non.generic=\
2569     cannot use ''<>'' with non-generic class {0}
2570 
2571 # 0: list of type, 1: message segment
2572 compiler.misc.diamond.invalid.arg=\
2573     type argument {0} inferred for {1} is not allowed in this context\n\
2574     inferred argument is not expressible in the Signature attribute
2575 
2576 # 0: list of type, 1: message segment
2577 compiler.misc.diamond.invalid.args=\
2578     type arguments {0} inferred for {1} are not allowed in this context\n\
2579     inferred arguments are not expressible in the Signature attribute
2580 
2581 # 0: type
2582 compiler.misc.diamond.and.explicit.params=\
2583     cannot use ''<>'' with explicit type parameters for constructor
2584 
2585 compiler.misc.mref.infer.and.explicit.params=\
2586     cannot use raw constructor reference with explicit type parameters for constructor
2587 
2588 # 0: type, 1: list of type
2589 compiler.misc.explicit.param.do.not.conform.to.bounds=\
2590     explicit type argument {0} does not conform to declared bound(s) {1}
2591 
2592 compiler.misc.arg.length.mismatch=\
2593     actual and formal argument lists differ in length
2594 
2595 # 0: string
2596 compiler.misc.wrong.number.type.args=\
2597     wrong number of type arguments; required {0}
2598 
2599 # 0: message segment
2600 compiler.misc.no.conforming.assignment.exists=\
2601     argument mismatch; {0}
2602 
2603 # 0: message segment
2604 compiler.misc.varargs.argument.mismatch=\
2605     varargs mismatch; {0}
2606 
2607 #####
2608 
2609 # 0: symbol or type, 1: file name
2610 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
2611     auxiliary class {0} in {1} should not be accessed from outside its own source file
2612 
2613 ## The first argument ({0}) is a "kindname".
2614 # 0: kind name, 1: symbol, 2: symbol
2615 compiler.err.abstract.cant.be.accessed.directly=\
2616     abstract {0} {1} in {2} cannot be accessed directly
2617 
2618 ## The first argument ({0}) is a "kindname".
2619 # 0: symbol kind, 1: symbol
2620 compiler.err.non-static.cant.be.ref=\
2621     non-static {0} {1} cannot be referenced from a static context
2622 
2623 # 0: symbol kind, 1: symbol
2624 compiler.misc.bad.static.method.in.unbound.lookup=\
2625     unexpected static {0} {1} found in unbound lookup
2626 
2627 # 0: symbol kind, 1: symbol
2628 compiler.misc.bad.instance.method.in.unbound.lookup=\
2629     unexpected instance {0} {1} found in unbound lookup
2630 
2631 # 0: symbol kind, 1: symbol
2632 compiler.misc.bad.static.method.in.bound.lookup=\
2633     unexpected static {0} {1} found in bound lookup
2634 
2635 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
2636 ## of kindnames (the list should be identical to that provided in source.
2637 # 0: set of kind name, 1: set of kind name
2638 compiler.err.unexpected.type=\
2639     unexpected type\n\
2640     required: {0}\n\
2641     found:    {1}
2642 
2643 compiler.err.unexpected.lambda=\
2644    lambda expression not expected here
2645 
2646 compiler.err.unexpected.mref=\
2647    method reference not expected here
2648 
2649 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
2650 ## The second argument {1} is the non-resolved symbol
2651 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
2652 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
2653 # 0: kind name, 1: name, 2: unused, 3: unused
2654 compiler.err.cant.resolve=\
2655     cannot find symbol\n\
2656     symbol: {0} {1}
2657 
2658 # 0: kind name, 1: name, 2: unused, 3: list of type
2659 compiler.err.cant.resolve.args=\
2660     cannot find symbol\n\
2661     symbol: {0} {1}({3})
2662 
2663 # 0: kind name, 1: name, 2: unused, 3: list of type
2664 compiler.misc.cant.resolve.args=\
2665     cannot find symbol\n\
2666     symbol: {0} {1}({3})
2667 
2668 # 0: kind name, 1: name, 2: list of type, 3: list of type
2669 compiler.err.cant.resolve.args.params=\
2670     cannot find symbol\n\
2671     symbol: {0} <{2}>{1}({3})
2672 
2673 ## arguments from {0} to {3} have the same meaning as above
2674 ## The fifth argument {4} is a location subdiagnostic (see below)
2675 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment
2676 compiler.err.cant.resolve.location=\
2677     cannot find symbol\n\
2678     symbol:   {0} {1}\n\
2679     location: {4}
2680 
2681 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
2682 compiler.err.cant.resolve.location.args=\
2683     cannot find symbol\n\
2684     symbol:   {0} {1}({3})\n\
2685     location: {4}
2686 
2687 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
2688 compiler.err.cant.resolve.location.args.params=\
2689     cannot find symbol\n\
2690     symbol:   {0} <{2}>{1}({3})\n\
2691     location: {4}
2692 
2693 ### Following are replicated/used for method reference diagnostics
2694 
2695 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
2696 compiler.misc.cant.resolve.location.args=\
2697     cannot find symbol\n\
2698     symbol:   {0} {1}({3})\n\
2699     location: {4}
2700 
2701 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
2702 compiler.misc.cant.resolve.location.args.params=\
2703     cannot find symbol\n\
2704     symbol:   {0} <{2}>{1}({3})\n\
2705     location: {4}
2706 
2707 ##a location subdiagnostic is composed as follows:
2708 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
2709 ## The second argument {1} is the location name
2710 ## The third argument {2} is the location type (only when {1} is a variable name)
2711 
2712 # 0: kind name, 1: type or symbol, 2: unused
2713 compiler.misc.location=\
2714     {0} {1}
2715 
2716 # 0: kind name, 1: symbol, 2: type
2717 compiler.misc.location.1=\
2718     {0} {1} of type {2}
2719 
2720 ## The following are all possible string for "kindname".
2721 ## They should be called whatever the JLS calls them after it been translated
2722 ## to the appropriate language.
2723 # compiler.misc.kindname.constructor=\
2724 #     static member
2725 compiler.misc.kindname.annotation=\
2726     @interface
2727 
2728 compiler.misc.kindname.constructor=\
2729     constructor
2730 
2731 compiler.misc.kindname.enum=\
2732     enum
2733 
2734 compiler.misc.kindname.interface=\
2735     interface
2736 
2737 compiler.misc.kindname.static=\
2738     static
2739 
2740 compiler.misc.kindname.type.variable=\
2741     type variable
2742 
2743 compiler.misc.kindname.type.variable.bound=\
2744     bound of type variable
2745 
2746 compiler.misc.kindname.variable=\
2747     variable
2748 
2749 compiler.misc.kindname.value=\
2750     value
2751 
2752 compiler.misc.kindname.method=\
2753     method
2754 
2755 compiler.misc.kindname.class=\
2756     class
2757 
2758 compiler.misc.kindname.package=\
2759     package
2760 
2761 compiler.misc.kindname.module=\
2762     module
2763 
2764 compiler.misc.kindname.static.init=\
2765     static initializer
2766 
2767 compiler.misc.kindname.instance.init=\
2768     instance initializer
2769 
2770 compiler.misc.kindname.record.component=\
2771     record component
2772 
2773 compiler.misc.kindname.record=\
2774     record
2775 
2776 #####
2777 
2778 compiler.misc.no.args=\
2779     no arguments
2780 
2781 # 0: message segment
2782 compiler.err.override.static=\
2783     {0}\n\
2784     overriding method is static
2785 
2786 # 0: message segment, 1: set of flag
2787 compiler.err.override.meth=\
2788     {0}\n\
2789     overridden method is {1}
2790 
2791 # 0: message segment, 1: type
2792 compiler.err.override.meth.doesnt.throw=\
2793     {0}\n\
2794     overridden method does not throw {1}
2795 
2796 # In the following string {1} is a space separated list of Java Keywords, as
2797 # they would have been declared in the source code
2798 # 0: message segment, 1: set of flag or string
2799 compiler.err.override.weaker.access=\
2800     {0}\n\
2801     attempting to assign weaker access privileges; was {1}
2802 
2803 # 0: message segment, 1: type, 2: type
2804 compiler.err.override.incompatible.ret=\
2805     {0}\n\
2806     return type {1} is not compatible with {2}
2807 
2808 # 0: message segment, 1: type, 2: type
2809 compiler.warn.override.unchecked.ret=\
2810     {0}\n\
2811     return type requires unchecked conversion from {1} to {2}
2812 
2813 # 0: message segment, 1: type
2814 compiler.warn.override.unchecked.thrown=\
2815     {0}\n\
2816     overridden method does not throw {1}
2817 
2818 # 0: symbol
2819 compiler.warn.override.equals.but.not.hashcode=\
2820     Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
2821 
2822 ## The following are all possible strings for the first argument ({0}) of the
2823 ## above strings.
2824 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2825 compiler.misc.cant.override=\
2826     {0} in {1} cannot override {2} in {3}
2827 
2828 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2829 compiler.misc.cant.hide=\
2830     {0} in {1} cannot hide {2} in {3}
2831 
2832 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2833 compiler.misc.cant.implement=\
2834     {0} in {1} cannot implement {2} in {3}
2835 
2836 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2837 compiler.misc.clashes.with=\
2838     {0} in {1} clashes with {2} in {3}
2839 
2840 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2841 compiler.misc.unchecked.override=\
2842     {0} in {1} overrides {2} in {3}
2843 
2844 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2845 compiler.misc.unchecked.implement=\
2846     {0} in {1} implements {2} in {3}
2847 
2848 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2849 compiler.misc.unchecked.clash.with=\
2850     {0} in {1} overrides {2} in {3}
2851 
2852 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2853 compiler.misc.varargs.override=\
2854     {0} in {1} overrides {2} in {3}
2855 
2856 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2857 compiler.misc.varargs.implement=\
2858     {0} in {1} implements {2} in {3}
2859 
2860 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2861 compiler.misc.varargs.clash.with=\
2862     {0} in {1} overrides {2} in {3}
2863 
2864 # 0: kind name, 1: symbol, 2: symbol, 3: message segment
2865 compiler.misc.inapplicable.method=\
2866     {0} {1}.{2} is not applicable\n\
2867     ({3})
2868 
2869 ########################################
2870 # Diagnostics for language feature changes.
2871 # Such diagnostics have a common template which can be customized by using a feature
2872 # diagnostic fragment (one of those given below).
2873 ########################################
2874 
2875 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2876 compiler.err.feature.not.supported.in.source=\
2877    {0} is not supported in -source {1}\n\
2878     (use -source {2} or higher to enable {0})
2879 
2880 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2881 compiler.err.feature.not.supported.in.source.plural=\
2882    {0} are not supported in -source {1}\n\
2883     (use -source {2} or higher to enable {0})
2884 
2885 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2886 compiler.misc.feature.not.supported.in.source=\
2887    {0} is not supported in -source {1}\n\
2888     (use -source {2} or higher to enable {0})
2889 
2890 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2891 compiler.misc.feature.not.supported.in.source.plural=\
2892    {0} are not supported in -source {1}\n\
2893     (use -source {2} or higher to enable {0})
2894 
2895 # 0: message segment (feature)
2896 compiler.err.preview.feature.disabled=\
2897    {0} is a preview feature and is disabled by default.\n\
2898    (use --enable-preview to enable {0})
2899 
2900 # 0: message segment (feature)
2901 compiler.err.preview.feature.disabled.plural=\
2902    {0} are a preview feature and are disabled by default.\n\
2903    (use --enable-preview to enable {0})
2904 
2905 # 0: file object (classfile), 1: string (expected version)
2906 compiler.err.preview.feature.disabled.classfile=\
2907    class file for {0} uses preview features of Java SE {1}.\n\
2908    (use --enable-preview to allow loading of class files which contain preview features)
2909 
2910 # 0: message segment (feature)
2911 compiler.warn.preview.feature.use=\
2912    {0} is a preview feature and may be removed in a future release.
2913 
2914 # 0: message segment (feature)
2915 compiler.warn.preview.feature.use.plural=\
2916    {0} are a preview feature and may be removed in a future release.
2917 
2918 # 0: file object (classfile), 1: string (expected version)
2919 compiler.warn.preview.feature.use.classfile=\
2920    class file for {0} uses preview features of Java SE {1}.
2921 
2922 
2923 compiler.misc.feature.modules=\
2924     modules
2925 
2926 compiler.misc.feature.diamond.and.anon.class=\
2927     ''<>'' with anonymous inner classes
2928 
2929 compiler.misc.feature.var.in.try.with.resources=\
2930     variables in try-with-resources
2931 
2932 compiler.misc.feature.type.annotations=\
2933     type annotations
2934 
2935 compiler.misc.feature.annotations.after.type.params=\
2936     annotations after method type parameters
2937 
2938 compiler.misc.feature.repeatable.annotations=\
2939     repeated annotations
2940 
2941 compiler.misc.feature.diamond=\
2942     diamond operator
2943 
2944 compiler.misc.feature.lambda=\
2945     lambda expressions
2946 
2947 compiler.misc.feature.method.references=\
2948     method references
2949 
2950 compiler.misc.feature.default.methods=\
2951     default methods
2952 
2953 compiler.misc.feature.intersection.types.in.cast=\
2954     intersection types
2955 
2956 compiler.misc.feature.static.intf.methods=\
2957     static interface methods
2958 
2959 compiler.misc.feature.static.intf.method.invoke=\
2960     static interface method invocations
2961 
2962 compiler.misc.feature.private.intf.methods=\
2963     private interface methods
2964 
2965 compiler.misc.feature.text.blocks=\
2966     text blocks
2967 
2968 compiler.misc.feature.multiple.case.labels=\
2969     multiple case labels
2970 
2971 compiler.misc.feature.switch.rules=\
2972     switch rules
2973 
2974 compiler.misc.feature.switch.expressions=\
2975     switch expressions
2976 
2977 compiler.misc.feature.var.syntax.in.implicit.lambda=\
2978     var syntax in implicit lambdas
2979 
2980 compiler.misc.feature.pattern.matching.instanceof=\
2981     pattern matching in instanceof
2982 
2983 compiler.misc.feature.reifiable.types.instanceof=\
2984     reifiable types in instanceof
2985 
2986 compiler.misc.feature.records=\
2987     records
2988 
2989 compiler.misc.feature.sealed.classes=\
2990     sealed classes
2991 
2992 compiler.misc.feature.case.null=\
2993     null in switch cases
2994 
2995 compiler.misc.feature.pattern.switch=\
2996     patterns in switch statements
2997 
2998 compiler.warn.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=\
3002     as of release 9, ''_'' is a keyword, and may not be used as an identifier
3003 
3004 compiler.err.underscore.as.identifier.in.lambda=\
3005     ''_'' used as an identifier\n\
3006     (use of ''_'' as an identifier is forbidden for lambda parameters)
3007 
3008 compiler.err.enum.as.identifier=\
3009     as of release 5, ''enum'' is a keyword, and may not be used as an identifier
3010 
3011 compiler.err.assert.as.identifier=\
3012     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
3013 
3014 # TODO 308: make a better error message
3015 compiler.err.this.as.identifier=\
3016     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
3017     which has to be the first parameter, and cannot be a lambda parameter
3018 
3019 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
3020     receiver parameter not applicable for constructor of top-level class
3021 
3022 # TODO 308: make a better error message
3023 # 0: annotation
3024 compiler.err.cant.type.annotate.scoping.1=\
3025     scoping construct cannot be annotated with type-use annotation: {0}
3026 
3027 # TODO 308: make a better error message
3028 # 0: list of annotation
3029 compiler.err.cant.type.annotate.scoping=\
3030     scoping construct cannot be annotated with type-use annotations: {0}
3031 
3032 # 0: type, 1: type
3033 compiler.err.incorrect.receiver.name=\
3034     the receiver name does not match the enclosing class type\n\
3035     required: {0}\n\
3036     found:    {1}
3037 
3038 # 0: type, 1: type
3039 compiler.err.incorrect.receiver.type=\
3040     the receiver type does not match the enclosing class type\n\
3041     required: {0}\n\
3042     found:    {1}
3043 
3044 # 0: type, 1: type
3045 compiler.err.incorrect.constructor.receiver.type=\
3046     the receiver type does not match the enclosing outer class type\n\
3047     required: {0}\n\
3048     found:    {1}
3049 
3050 # 0: type, 1: type
3051 compiler.err.incorrect.constructor.receiver.name=\
3052     the receiver name does not match the enclosing outer class type\n\
3053     required: {0}\n\
3054     found:    {1}
3055 
3056 compiler.err.no.annotations.on.dot.class=\
3057     no annotations are allowed in the type of a class literal
3058 
3059 ########################################
3060 # Diagnostics for verbose resolution
3061 # used by Resolve (debug only)
3062 ########################################
3063 
3064 # 0: number, 1: symbol, 2: unused
3065 compiler.misc.applicable.method.found=\
3066     #{0} applicable method found: {1}
3067 
3068 # 0: number, 1: symbol, 2: message segment
3069 compiler.misc.applicable.method.found.1=\
3070     #{0} applicable method found: {1}\n\
3071     ({2})
3072 
3073 # 0: number, 1: symbol, 2: message segment
3074 compiler.misc.not.applicable.method.found=\
3075     #{0} not applicable method found: {1}\n\
3076     ({2})
3077 
3078 # 0: type
3079 compiler.misc.partial.inst.sig=\
3080     partially instantiated to: {0}
3081 
3082 # 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
3083 compiler.note.verbose.resolve.multi=\
3084     resolving method {0} in type {1} to candidate {2}\n\
3085     phase: {3}\n\
3086     with actuals: {4}\n\
3087     with type-args: {5}\n\
3088     candidates:
3089 
3090 # 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
3091 compiler.note.verbose.resolve.multi.1=\
3092     erroneous resolution for method {0} in type {1}\n\
3093     phase: {3}\n\
3094     with actuals: {4}\n\
3095     with type-args: {5}\n\
3096     candidates:
3097 
3098 # 0: symbol, 1: type, 2: type
3099 compiler.note.deferred.method.inst=\
3100     Deferred instantiation of method {0}\n\
3101     instantiated signature: {1}\n\
3102     target-type: {2}
3103 
3104 ########################################
3105 # Diagnostics for lambda deduplication
3106 # used by LambdaToMethod (debug only)
3107 ########################################
3108 
3109 # 0: symbol
3110 compiler.note.verbose.l2m.deduplicate=\
3111     deduplicating lambda implementation method {0}
3112 
3113 ########################################
3114 # Diagnostics for method reference search
3115 # results used by Resolve (debug only)
3116 ########################################
3117 
3118 # 0: fragment, 1: string, 2: number
3119 compiler.note.method.ref.search.results.multi=\
3120     {0} search results for {1}, with most specific {2}\n\
3121     applicable candidates:
3122 
3123 # 0: number, 1: fragment, 2: symbol
3124 compiler.misc.applicable.method.found.2=\
3125     #{0} applicable method found: {1} {2}
3126 
3127 # 0: number, 1: fragment, 2: symbol, 3: message segment
3128 compiler.misc.applicable.method.found.3=\
3129     #{0} applicable method found: {1} {2}\n\
3130     ({3})
3131 
3132 compiler.misc.static=\
3133     static
3134 
3135 compiler.misc.non.static=\
3136     non-static
3137 
3138 compiler.misc.bound=\
3139     bound
3140 
3141 compiler.misc.unbound=\
3142     unbound
3143 
3144 ########################################
3145 # Diagnostics for where clause implementation
3146 # used by the RichDiagnosticFormatter.
3147 ########################################
3148 
3149 compiler.misc.type.null=\
3150     <null>
3151 
3152 # X#n (where n is an int id) is disambiguated tvar name
3153 # 0: name, 1: number
3154 compiler.misc.type.var=\
3155     {0}#{1}
3156 
3157 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
3158 # 0: number
3159 compiler.misc.captured.type=\
3160     CAP#{0}
3161 
3162 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
3163 # 0: number
3164 compiler.misc.intersection.type=\
3165     INT#{0}
3166 
3167 # where clause for captured type: contains upper ('extends {1}') and lower
3168 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
3169 # 0: type, 1: type, 2: type, 3: type
3170 compiler.misc.where.captured=\
3171     {0} extends {1} super: {2} from capture of {3}
3172 
3173 # compact where clause for captured type: contains upper ('extends {1}') along
3174 # with the wildcard that generated this captured type ({3})
3175 # 0: type, 1: type, 2: unused, 3: type
3176 compiler.misc.where.captured.1=\
3177     {0} extends {1} from capture of {3}
3178 
3179 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
3180 # the kindname ({2}) and location ({3}) in which the typevar has been declared
3181 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
3182 compiler.misc.where.typevar=\
3183     {0} extends {1} declared in {2} {3}
3184 
3185 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
3186 # in which the typevar has been declared
3187 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
3188 compiler.misc.where.typevar.1=\
3189     {0} declared in {2} {3}
3190 
3191 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
3192 # Since a fresh type-variable is synthetic - there's no location/kindname here.
3193 # 0: type, 1: list of type
3194 compiler.misc.where.fresh.typevar=\
3195     {0} extends {1}
3196 
3197 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
3198 # of this intersection type
3199 # 0: type, 1: list of type
3200 compiler.misc.where.intersection=\
3201     {0} extends {1}
3202 
3203 ### Where clause headers ###
3204 compiler.misc.where.description.captured=\
3205     where {0} is a fresh type-variable:
3206 
3207 # 0: set of type
3208 compiler.misc.where.description.typevar=\
3209     where {0} is a type-variable:
3210 
3211 # 0: set of type
3212 compiler.misc.where.description.intersection=\
3213     where {0} is an intersection type:
3214 
3215 # 0: set of type
3216 compiler.misc.where.description.captured.1=\
3217     where {0} are fresh type-variables:
3218 
3219 # 0: set of type
3220 compiler.misc.where.description.typevar.1=\
3221     where {0} are type-variables:
3222 
3223 # 0: set of type
3224 compiler.misc.where.description.intersection.1=\
3225     where {0} are intersection types:
3226 
3227 ###
3228 # errors related to doc comments
3229 
3230 compiler.err.dc.bad.entity=\
3231     bad HTML entity
3232 
3233 compiler.err.dc.bad.inline.tag=\
3234     incorrect use of inline tag
3235 
3236 compiler.err.dc.identifier.expected=\
3237     identifier expected
3238 
3239 compiler.err.dc.malformed.html=\
3240     malformed HTML
3241 
3242 compiler.err.dc.missing.semicolon=\
3243     semicolon missing
3244 
3245 compiler.err.dc.no.content=\
3246     no content
3247 
3248 compiler.err.dc.no.tag.name=\
3249     no tag name after '@'
3250 
3251 compiler.err.dc.gt.expected=\
3252     ''>'' expected
3253 
3254 compiler.err.dc.ref.bad.parens=\
3255     unexpected text after parenthesis
3256 
3257 compiler.err.dc.ref.syntax.error=\
3258     syntax error in reference
3259 
3260 compiler.err.dc.ref.unexpected.input=\
3261     unexpected text
3262 
3263 compiler.err.dc.unexpected.content=\
3264     unexpected content
3265 
3266 compiler.err.dc.unterminated.inline.tag=\
3267     unterminated inline tag
3268 
3269 compiler.err.dc.unterminated.signature=\
3270     unterminated signature
3271 
3272 compiler.err.dc.unterminated.string=\
3273     unterminated string
3274 
3275 compiler.err.dc.ref.annotations.not.allowed=\
3276     annotations not allowed
3277 
3278 ###
3279 # errors related to modules
3280 
3281 compiler.err.expected.module=\
3282     expected ''module''
3283 
3284 # 0: symbol
3285 compiler.err.module.not.found=\
3286     module not found: {0}
3287 
3288 # 0: symbol
3289 compiler.warn.module.not.found=\
3290     module not found: {0}
3291 
3292 compiler.err.too.many.modules=\
3293     too many module declarations found
3294 
3295 compiler.err.module.not.found.on.module.source.path=\
3296     module not found on module source path
3297 
3298 compiler.err.not.in.module.on.module.source.path=\
3299     not in a module on the module source path
3300 
3301 # 0: symbol
3302 compiler.err.duplicate.module=\
3303     duplicate module: {0}
3304 
3305 # 0: symbol
3306 compiler.err.duplicate.requires=\
3307     duplicate requires: {0}
3308 
3309 # 0: symbol
3310 compiler.err.conflicting.exports=\
3311     duplicate or conflicting exports: {0}
3312 
3313 # 0: symbol
3314 compiler.err.conflicting.opens=\
3315     duplicate or conflicting opens: {0}
3316 
3317 # 0: symbol
3318 compiler.err.conflicting.exports.to.module=\
3319     duplicate or conflicting exports to module: {0}
3320 
3321 # 0: symbol
3322 compiler.err.conflicting.opens.to.module=\
3323     duplicate or conflicting opens to module: {0}
3324 
3325 compiler.err.no.opens.unless.strong=\
3326     ''opens'' only allowed in strong modules
3327 
3328 # 0: symbol
3329 compiler.err.repeated.provides.for.service=\
3330     multiple ''provides'' for service {0}
3331 
3332 # 0: symbol, 1: symbol
3333 compiler.err.duplicate.provides=\
3334     duplicate provides: service {0}, implementation {1}
3335 
3336 # 0: symbol
3337 compiler.err.duplicate.uses=\
3338     duplicate uses: {0}
3339 
3340 # 0: symbol
3341 compiler.err.service.implementation.is.abstract=\
3342     the service implementation is an abstract class: {0}
3343 
3344 compiler.err.service.implementation.must.be.subtype.of.service.interface=\
3345     the service implementation type must be a subtype of the service interface type, or \
3346     have a public static no-args method named "provider" returning the service implementation
3347 
3348 compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface=\
3349     the "provider" method return type must be a subtype of the service interface type
3350 
3351 # 0: symbol
3352 compiler.err.service.implementation.is.inner=\
3353     the service implementation is an inner class: {0}
3354 
3355 # 0: symbol
3356 compiler.err.service.definition.is.enum=\
3357     the service definition is an enum: {0}
3358 
3359 # 0: symbol
3360 compiler.err.service.implementation.doesnt.have.a.no.args.constructor=\
3361     the service implementation does not have a default constructor: {0}
3362 
3363 # 0: symbol
3364 compiler.err.service.implementation.no.args.constructor.not.public=\
3365     the no arguments constructor of the service implementation is not public: {0}
3366 
3367 # 0: symbol
3368 compiler.err.package.empty.or.not.found=\
3369     package is empty or does not exist: {0}
3370 
3371 # 0: symbol
3372 compiler.warn.package.empty.or.not.found=\
3373     package is empty or does not exist: {0}
3374 
3375 compiler.err.no.output.dir=\
3376     no class output directory specified
3377 
3378 compiler.err.unnamed.pkg.not.allowed.named.modules=\
3379     unnamed package is not allowed in named modules
3380 
3381 # 0: name, 1: name
3382 compiler.err.module.name.mismatch=\
3383     module name {0} does not match expected name {1}
3384 
3385 # 0: name, 1: name
3386 compiler.misc.module.name.mismatch=\
3387     module name {0} does not match expected name {1}
3388 
3389 # 0: name
3390 compiler.err.module.non.zero.opens=\
3391     open module {0} has non-zero opens_count
3392 
3393 # 0: name
3394 compiler.misc.module.non.zero.opens=\
3395     open module {0} has non-zero opens_count
3396 
3397 compiler.err.module.decl.sb.in.module-info.java=\
3398     module declarations should be in a file named module-info.java
3399 
3400 # 0: set of string
3401 compiler.err.too.many.patched.modules=\
3402     too many patched modules ({0}), use --module-source-path
3403 
3404 # 0: name, 1: name
3405 compiler.err.file.patched.and.msp=\
3406     file accessible from both --patch-module and --module-source-path, \
3407     but belongs to a different module on each path: {0}, {1}
3408 
3409 compiler.err.processorpath.no.processormodulepath=\
3410     illegal combination of -processorpath and --processor-module-path
3411 
3412 # 0: symbol
3413 compiler.err.package.in.other.module=\
3414     package exists in another module: {0}
3415 
3416 # 0: symbol, 1: name, 2: symbol, 3: symbol
3417 compiler.err.package.clash.from.requires=\
3418     module {0} reads package {1} from both {2} and {3}
3419 
3420 # 0: name, 1: symbol, 2: symbol
3421 compiler.err.package.clash.from.requires.in.unnamed=\
3422     the unnamed module reads package {0} from both {1} and {2}
3423 
3424 # 0: string
3425 compiler.err.module.not.found.in.module.source.path=\
3426     module {0} not found in module source path
3427 
3428 compiler.err.output.dir.must.be.specified.with.dash.m.option=\
3429     class output directory must be specified if -m option is used
3430 
3431 compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=\
3432     module source path must be specified if -m option is used
3433 
3434 # 0: symbol
3435 compiler.err.service.implementation.not.in.right.module=\
3436     service implementation must be defined in the same module as the provides directive
3437 
3438 # 0: symbol
3439 compiler.err.cyclic.requires=\
3440     cyclic dependence involving {0}
3441 
3442 # 0: fragment, 1: name
3443 compiler.err.duplicate.module.on.path=\
3444     duplicate module on {0}\nmodule in {1}
3445 
3446 # 0: option name, 1: string
3447 compiler.warn.bad.name.for.option=\
3448     bad name in value for {0} option: ''{1}''
3449 
3450 # 0: option name, 1: string
3451 compiler.err.bad.name.for.option=\
3452     bad name in value for {0} option: ''{1}''
3453 
3454 # 0: option name, 1: symbol
3455 compiler.warn.module.for.option.not.found=\
3456     module name in {0} option not found: {1}
3457 
3458 compiler.err.addmods.all.module.path.invalid=\
3459     --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module or \
3460     when compiling in the context of an automatic module
3461 
3462 # 0: symbol
3463 compiler.err.add.exports.with.release=\
3464     exporting a package from system module {0} is not allowed with --release
3465 
3466 # 0: symbol
3467 compiler.err.add.reads.with.release=\
3468     adding read edges for system module {0} is not allowed with --release
3469 
3470 compiler.warn.addopens.ignored=\
3471     --add-opens has no effect at compile time
3472 
3473 compiler.misc.locn.module_source_path=\
3474     module source path
3475 
3476 compiler.misc.locn.upgrade_module_path=\
3477     upgrade module path
3478 
3479 compiler.misc.locn.system_modules=\
3480     system modules
3481 
3482 compiler.misc.locn.module_path=\
3483     application module path
3484 
3485 compiler.misc.cant.resolve.modules=\
3486     cannot resolve modules
3487 
3488 compiler.misc.bad.requires.flag=\
3489     bad requires flag: {0}
3490 
3491 # 0: string
3492 compiler.err.invalid.module.specifier=\
3493     module specifier not allowed: {0}
3494 
3495 # 0: symbol
3496 compiler.warn.service.provided.but.not.exported.or.used=\
3497     service interface provided but not exported or used
3498 
3499 # 0: kind name, 1: symbol, 2: symbol
3500 compiler.warn.leaks.not.accessible=\
3501     {0} {1} in module {2} is not accessible to clients that require this module
3502 # 0: kind name, 1: symbol, 2: symbol
3503 compiler.warn.leaks.not.accessible.unexported=\
3504     {0} {1} in module {2} is not exported
3505 # 0: kind name, 1: symbol, 2: symbol
3506 compiler.warn.leaks.not.accessible.not.required.transitive=\
3507     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3508 # 0: kind name, 1: symbol, 2: symbol
3509 compiler.warn.leaks.not.accessible.unexported.qualified=\
3510     {0} {1} in module {2} may not be visible to all clients that require this module
3511 
3512 ###
3513 # errors related to options
3514 
3515 # 0: string, 1: string
3516 compiler.err.illegal.argument.for.option=\
3517     illegal argument for {0}: {1}
3518 
3519 compiler.err.match.binding.exists=\
3520     illegal attempt to redefine an existing match binding
3521 
3522 compiler.err.switch.case.unexpected.statement=\
3523     unexpected statement in case, expected is an expression, a block or a throw statement
3524 
3525 compiler.err.switch.mixing.case.types=\
3526     different case kinds used in the switch
3527 
3528 ###
3529 # errors related to sealed classes
3530 
3531 # permits clause
3532 # 0: fragment
3533 compiler.err.invalid.permits.clause=\
3534     invalid permits clause\n\
3535     ({0})
3536 
3537 # 0: string
3538 compiler.misc.class.is.not.sealed=\
3539     {0} must be sealed
3540 
3541 # 0: type
3542 compiler.misc.is.a.type.variable=\
3543     must not include type variables: {0}
3544 
3545 # 0: type
3546 compiler.misc.is.duplicated=\
3547     must not contain duplicates: {0}
3548 
3549 # 0: type
3550 compiler.misc.doesnt.extend.sealed=\
3551     subclass {0} must extend sealed class
3552 
3553 compiler.misc.must.not.be.same.class=\
3554     illegal self-reference in permits clause
3555 
3556 # 0: type
3557 compiler.misc.must.not.be.supertype=\
3558     illegal reference to supertype {0}
3559 
3560 # other sealed types related errors
3561 
3562 compiler.err.sealed.class.must.have.subclasses=\
3563     sealed class must have subclasses
3564 
3565 # errors in subclasses of sealed classes
3566 # 0: symbol
3567 compiler.err.cant.inherit.from.sealed=\
3568     class is not allowed to extend sealed class: {0} \
3569     (as it is not listed in its 'permits' clause)
3570 
3571 # 0: symbol
3572 compiler.err.class.in.unnamed.module.cant.extend.sealed.in.diff.package=\
3573     class {0} in unnamed module cannot extend a sealed class in a different package
3574 
3575 # 0: symbol, 1: symbol
3576 compiler.err.class.in.module.cant.extend.sealed.in.diff.module=\
3577     class {0} in module {1} cannot extend a sealed class in a different module
3578 
3579 # 0: symbol
3580 compiler.err.non.sealed.with.no.sealed.supertype=\
3581     non-sealed modifier not allowed here\n\
3582     (class {0} does not have any sealed supertypes)
3583 
3584 compiler.err.non.sealed.sealed.or.final.expected=\
3585     sealed, non-sealed or final modifiers expected
3586 
3587 compiler.err.non.sealed.or.sealed.expected=\
3588     sealed or non-sealed modifiers expected
3589 
3590 compiler.err.sealed.or.non.sealed.local.classes.not.allowed=\
3591     sealed or non-sealed local classes are not allowed
3592 
3593 # 0: fragment
3594 compiler.err.local.classes.cant.extend.sealed=\
3595     {0} classes must not extend sealed classes\
3596 
3597 compiler.misc.anonymous=\
3598     anonymous
3599 
3600 compiler.misc.local=\
3601     local
3602 
3603 ###
3604 # errors related to records
3605 
3606 # record components
3607 compiler.err.record.cant.declare.field.modifiers=\
3608     record components cannot have modifiers
3609 
3610 # 0: symbol
3611 compiler.err.illegal.record.component.name=\
3612     illegal record component name {0}
3613 
3614 compiler.err.record.component.and.old.array.syntax=\
3615     legacy array notation not allowed on record components
3616 
3617 # accessor methods
3618 # 0: symbol, 1: fragment
3619 compiler.err.invalid.accessor.method.in.record=\
3620     invalid accessor method in record {0}\n\
3621     ({1})
3622 
3623 compiler.misc.method.must.be.public=\
3624     accessor method must be public
3625 
3626 # 0: symbol, 1: symbol
3627 compiler.misc.accessor.return.type.doesnt.match=\
3628     return type of accessor method {0} must match the type of record component {1}
3629 
3630 compiler.misc.accessor.method.cant.throw.exception=\
3631     throws clause not allowed for accessor method
3632 
3633 compiler.misc.accessor.method.must.not.be.generic=\
3634     accessor method must not be generic
3635 
3636 compiler.misc.accessor.method.must.not.be.static=\
3637     accessor method must not be static
3638 
3639 # canonical constructors
3640 # 0: fragment, 1: name, 2: fragment
3641 compiler.err.invalid.canonical.constructor.in.record=\
3642     invalid {0} constructor in record {1}\n\
3643     ({2})
3644 
3645 compiler.misc.canonical=\
3646     canonical
3647 
3648 compiler.misc.compact=\
3649     compact
3650 
3651 # 0: fragment
3652 compiler.misc.throws.clause.not.allowed.for.canonical.constructor=\
3653     throws clause not allowed for {0} constructor
3654 
3655 compiler.misc.canonical.with.name.mismatch=\
3656     invalid parameter names in canonical constructor
3657 
3658 compiler.misc.canonical.cant.have.return.statement=\
3659     compact constructor must not have return statements
3660 
3661 compiler.misc.canonical.must.not.declare.type.variables=\
3662     canonical constructor must not declare type variables
3663 
3664 compiler.misc.type.must.be.identical.to.corresponding.record.component.type=\
3665     type and arity must match that of the corresponding record component\
3666 
3667 compiler.misc.canonical.must.not.contain.explicit.constructor.invocation=\
3668     canonical constructor must not contain explicit constructor invocation
3669 
3670 # 0: set of flag or string
3671 compiler.misc.canonical.must.not.have.stronger.access=\
3672     attempting to assign stronger access privileges; was {0}
3673 
3674 # other
3675 compiler.err.record.cannot.declare.instance.fields=\
3676     field declaration must be static\n\
3677     (consider replacing field with record component)
3678 
3679 # 0: symbol
3680 compiler.err.invalid.supertype.record=\
3681     classes cannot directly extend {0}
3682 
3683 # 0: symbol
3684 compiler.err.first.statement.must.be.call.to.another.constructor=\
3685     constructor is not canonical, so its first statement must invoke another constructor of class {0}
3686 
3687 compiler.err.instance.initializer.not.allowed.in.records=\
3688     instance initializers not allowed in records
3689 
3690 compiler.err.static.declaration.not.allowed.in.inner.classes=\
3691     static declarations not allowed in inner classes
3692 
3693 compiler.err.record.header.expected=\
3694     record header expected
3695 
3696 ############################################
3697 # messages previously at javac.properties
3698 
3699 compiler.err.empty.A.argument=\
3700     -A requires an argument; use ''-Akey'' or ''-Akey=value''
3701 
3702 # 0: string
3703 compiler.err.invalid.A.key=\
3704     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
3705 
3706 # 0: string
3707 compiler.err.invalid.flag=\
3708     invalid flag: {0}
3709 
3710 compiler.err.profile.bootclasspath.conflict=\
3711     profile and bootclasspath options cannot be used together
3712 
3713 # 0: string
3714 compiler.err.invalid.profile=\
3715     invalid profile: {0}
3716 
3717 # 0: string
3718 compiler.err.invalid.target=\
3719     invalid target release: {0}
3720 
3721 # 0: option name, 1: target
3722 compiler.err.option.not.allowed.with.target=\
3723     option {0} not allowed with target {1}
3724 
3725 # 0: string
3726 compiler.err.option.too.many=\
3727     option {0} can only be specified once
3728 
3729 compiler.err.no.source.files=\
3730     no source files
3731 
3732 compiler.err.no.source.files.classes=\
3733     no source files or class names
3734 
3735 # 0: string
3736 compiler.err.req.arg=\
3737     {0} requires an argument
3738 
3739 # 0: string
3740 compiler.err.invalid.source=\
3741     invalid source release: {0}
3742 
3743 # 0: string, 1: string
3744 compiler.err.error.writing.file=\
3745     error writing {0}; {1}
3746 
3747 compiler.err.sourcepath.modulesourcepath.conflict=\
3748     cannot specify both --source-path and --module-source-path
3749 
3750 # 0: string, 1: target
3751 compiler.warn.source.target.conflict=\
3752     source release {0} requires target release {1}
3753 
3754 # 0: string, 1: target
3755 compiler.warn.target.default.source.conflict=\
3756     target release {0} conflicts with default source release {1}
3757 
3758 # 0: profile, 1: target
3759 compiler.warn.profile.target.conflict=\
3760     profile {0} is not valid for target release {1}
3761 
3762 # 0: string
3763 compiler.err.file.not.directory=\
3764     not a directory: {0}
3765 
3766 # 0: object
3767 compiler.err.file.not.file=\
3768     not a file: {0}
3769 
3770 compiler.err.two.class.loaders.1=\
3771     javac is split between multiple class loaders: check your configuration
3772 
3773 # 0: url, 1: url
3774 compiler.err.two.class.loaders.2=\
3775     javac is split between multiple class loaders:\n\
3776     one class comes from file: {0}\n\
3777     while javac comes from {1}
3778 
3779 # 0: string, 1: string
3780 compiler.err.bad.value.for.option=\
3781     bad value for {0} option: ''{1}''
3782 
3783 # 0: string
3784 compiler.err.no.value.for.option=\
3785     no value for {0} option
3786 
3787 # 0: string
3788 compiler.err.repeated.value.for.patch.module=\
3789     --patch-module specified more than once for module {0}
3790 
3791 # 0: string
3792 compiler.err.repeated.value.for.module.source.path=\
3793     --module-source-path specified more than once for module {0}
3794 
3795 compiler.err.multiple.values.for.module.source.path=\
3796     --module-source-path specified more than once with a pattern argument
3797 
3798 # 0: string
3799 compiler.err.unmatched.quote=\
3800     unmatched quote in environment variable {0}
3801 
3802 # 0: option name
3803 compiler.err.release.bootclasspath.conflict=\
3804     option {0} cannot be used together with --release
3805 
3806 # 0: string
3807 compiler.err.unsupported.release.version=\
3808     release version {0} not supported
3809 
3810 # 0: string
3811 compiler.err.file.not.found=\
3812     file not found: {0}
3813 
3814 # 0: string, 1: source
3815 compiler.err.preview.not.latest=\
3816     invalid source release {0} with --enable-preview\n\
3817     (preview language features are only supported for release {1})
3818 
3819 compiler.err.preview.without.source.or.release=\
3820     --enable-preview must be used with either -source or --release
3821 
3822 compiler.misc.feature.primitive.classes=\
3823     primitive classes
3824 
3825 # 0: symbol
3826 compiler.err.cyclic.primitive.class.membership=\
3827     cyclic primitive class membership involving {0}
3828 
3829 compiler.warn.get.class.compared.with.interface=\
3830     return value of getClass() can never equal the class literal of an interface
3831 
3832 # 0: name (of method)
3833 compiler.err.primitive.class.may.not.override=\
3834     primitive classes may not override the method {0} from Object
3835 
3836 # 0: name (of method)
3837 compiler.err.primitive.class.does.not.support=\
3838     primitive classes do not support {0}
3839 
3840 compiler.err.primitive.class.may.not.extend=\
3841     inappropriate super class declaration for a primitive class
3842 
3843 compiler.err.primitive.class.instance.field.expected.here=\
3844     withfield operator requires an instance field of a primitive class here
3845 
3846 compiler.err.with.field.operator.disallowed=\
3847     WithField operator is allowed only with -XDallowWithFieldOperator
3848 
3849 compiler.err.this.exposed.prematurely=\
3850     primitive class instance should not be passed around before being fully initialized
3851 
3852 # 0: type
3853 compiler.err.generic.parameterization.with.primitive.class=\
3854     Inferred type {0} involves generic parameterization by a primitive class
3855 
3856 # 0: type
3857 compiler.err.primitive.class.must.not.implement.identity.object=\
3858     The primitive class {0} attempts to implement the incompatible interface IdentityObject
3859 
3860 # 0: type
3861 compiler.err.primitive.class.must.not.implement.cloneable=\
3862     The primitive class {0} attempts to implement the incompatible interface Cloneable
3863 
3864 # 0: type
3865 compiler.err.identity.class.must.not.implement.primitive.object=\
3866     The identity class {0} attempts to implement the incompatible interface PrimitiveObject
3867 
3868 # 0: type
3869 compiler.err.mutually.incompatible.super.interfaces=\
3870     The type {0} attempts to implement the mutually incompatible interfaces PrimitiveObject and IdentityObject
3871 
3872 # 0: symbol, 1: type
3873 compiler.err.concrete.supertype.for.primitive.class=\
3874     The concrete class {1} is not allowed to be a super class of the primitive class {0} either directly or indirectly
3875 
3876 # 0: symbol, 1: symbol, 2: type
3877 compiler.err.super.method.cannot.be.synchronized=\
3878     The method {0} in the super class {2} of the primitive class {1} is synchronized. This is disallowed
3879 
3880 # 0: symbol, 1: symbol, 2: type
3881 compiler.err.super.constructor.cannot.take.arguments=\
3882     The super class {2} of the primitive class {1} defines a constructor {0} that takes arguments. This is disallowed
3883 
3884 # 0: symbol, 1: symbol, 2: type
3885 compiler.err.super.field.not.allowed=\
3886     The super class {2} of the primitive class {1} defines an instance field {0}. This is disallowed
3887 
3888 # 0: symbol, 1: symbol, 2: type
3889 compiler.err.super.no.arg.constructor.must.be.empty=\
3890     The super class {2} of the primitive class {1} defines a nonempty no-arg constructor {0}. This is disallowed
3891 
3892 # 0: symbol, 1: type
3893 compiler.err.super.class.declares.init.block=\
3894     The super class {1} of the primitive class {0} declares one or more non-empty instance initializer blocks. This is disallowed.
3895 
3896 # 0: symbol, 1: type
3897 compiler.err.super.class.cannot.be.inner=\
3898     The super class {1} of the primitive class {0} is an inner class. This is disallowed.
3899 
3900 compiler.err.projection.cant.be.instantiated=\
3901     Illegal attempt to instantiate a projection type
3902 
3903 compiler.err.call.to.super.not.allowed.in.primitive.ctor=\
3904     call to super not allowed in primitive class constructor
3905 
3906 # 0: kind name, 1: symbol
3907 compiler.warn.declared.using.preview=\
3908     {0} {1} is declared using a preview feature, which may be removed in a future release.
3909 
3910 compiler.warn.attempt.to.synchronize.on.instance.of.value.based.class=\
3911     attempt to synchronize on an instance of a value-based class
3912 
3913 compiler.note.cant.instantiate.object.directly=\
3914     Object cannot be instantiated directly; a subclass of Object will be instantiated instead, by invoking java.util.Objects.newIdentity()