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