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