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