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