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 # source version    a source version number, such as 1.5, 1.6, 1.7
  43 # string            a general string
  44 # symbol            the name of a declared type
  45 # symbol kind       the kind of a symbol (i.e. method, variable)
  46 # kind name         an informative description of the kind of a declaration; see compiler.misc.kindname.*
  47 # token             the name of a non-terminal in source code; see compiler.misc.token.*
  48 # type              a Java type; e.g. int, X, X<T>
  49 # object            a Java object (unspecified)
  50 # unused            the value is not used in this message
  51 #
  52 # The following compound types are also used:
  53 #
  54 # collection of X   a comma-separated collection of items; e.g. collection of type
  55 # list of X         a comma-separated list of items; e.g. list of type
  56 # set of X          a comma-separated set of items; e.g. set of modifier
  57 #
  58 # These may be composed:
  59 #
  60 # list of type or message segment
  61 #
  62 # The following type aliases are supported:
  63 #
  64 # message segment --> diagnostic or fragment
  65 # file name --> file, path or file object
  66 #
  67 # Custom comments are supported in parenthesis i.e.
  68 #
  69 # number (classfile major version)
  70 #
  71 # These comments are used internally in order to generate an enum-like class declaration containing
  72 # a method/field for each of the diagnostic keys listed here. Those methods/fields can then be used
  73 # by javac code to build diagnostics in a type-safe fashion.
  74 #
  75 # In addition, these comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
  76 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
  77 # MessageInfo can also be run as a standalone utility providing more facilities
  78 # for manipulating this file. For more details, see MessageInfo.java.
  79 
  80 ##
  81 ## errors
  82 ##
  83 
  84 # 0: symbol
  85 compiler.err.abstract.cant.be.instantiated=\
  86     {0} is abstract; cannot be instantiated
  87 
  88 compiler.err.abstract.meth.cant.have.body=\
  89     abstract methods cannot have a body
  90 
  91 # 0: kind name, 1: symbol
  92 compiler.err.already.annotated=\
  93     {0} {1} has already been annotated
  94 
  95 # 0: kind name, 1: symbol, 2: kind name, 3: symbol
  96 compiler.err.already.defined=\
  97     {0} {1} is already defined in {2} {3}
  98 
  99 # 0: kind name, 1: symbol, 2: kind name, 3: kind name, 4: symbol
 100 compiler.err.already.defined.in.clinit=\
 101     {0} {1} is already defined in {2} of {3} {4}
 102 
 103 # 0: symbol
 104 compiler.err.already.defined.single.import=\
 105     a type with the same simple name is already defined by the single-type-import of {0}
 106 
 107 # 0: symbol
 108 compiler.err.already.defined.static.single.import=\
 109     a type with the same simple name is already defined by the static single-type-import of {0}
 110 
 111 # 0: symbol
 112 compiler.err.already.defined.this.unit=\
 113     {0} is already defined in this compilation unit
 114 
 115 # 0: type, 1: list of name
 116 compiler.err.annotation.missing.default.value=\
 117     annotation @{0} is missing a default value for the element ''{1}''
 118 
 119 # 0: type, 1: list of name
 120 compiler.err.annotation.missing.default.value.1=\
 121     annotation @{0} is missing default values for elements {1}
 122 
 123 # 0: type
 124 compiler.err.annotation.not.valid.for.type=\
 125     annotation not valid for an element of type {0}
 126 
 127 compiler.err.annotation.type.not.applicable=\
 128     annotation type not applicable to this kind of declaration
 129 
 130 # 0: type
 131 compiler.err.annotation.type.not.applicable.to.type=\
 132     annotation @{0} not applicable in this type context
 133 
 134 compiler.err.annotation.value.must.be.annotation=\
 135     annotation value must be an annotation
 136 
 137 compiler.err.annotation.value.must.be.class.literal=\
 138     annotation value must be a class literal
 139 
 140 compiler.err.annotation.value.must.be.name.value=\
 141     annotation values must be of the form ''name=value''
 142 
 143 compiler.err.annotation.value.not.allowable.type=\
 144     annotation value not of an allowable type
 145 
 146 compiler.err.expression.not.allowable.as.annotation.value=\
 147     expression not allowed as annotation value
 148 
 149 compiler.err.anon.class.impl.intf.no.args=\
 150     anonymous class implements interface; cannot have arguments
 151 
 152 compiler.err.anon.class.impl.intf.no.typeargs=\
 153     anonymous class implements interface; cannot have type arguments
 154 
 155 compiler.err.anon.class.impl.intf.no.qual.for.new=\
 156     anonymous class implements interface; cannot have qualifier for new
 157 
 158 compiler.err.cant.inherit.from.anon=\
 159     cannot inherit from anonymous class
 160 
 161 # 0: symbol, 1: symbol, 2: symbol
 162 compiler.err.array.and.varargs=\
 163     cannot declare both {0} and {1} in {2}
 164 
 165 compiler.err.array.dimension.missing=\
 166     array dimension missing
 167 
 168 compiler.err.illegal.array.creation.both.dimension.and.initialization=\
 169     array creation with both dimension expression and initialization is illegal
 170 
 171 # 0: type
 172 compiler.err.array.req.but.found=\
 173     array required, but {0} found
 174 
 175 compiler.err.attribute.value.must.be.constant=\
 176     element value must be a constant expression
 177 
 178 # 0: string (statement type)
 179 compiler.err.bad.initializer=\
 180     bad initializer for {0}
 181 
 182 compiler.err.break.outside.switch.loop=\
 183     break outside switch or loop
 184 
 185 # 0: name
 186 compiler.err.call.must.be.first.stmt.in.ctor=\
 187     call to {0} must be first statement in constructor
 188 
 189 # 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
 190 compiler.err.cant.apply.symbol=\
 191     {0} {1} in {4} {5} cannot be applied to given types;\n\
 192     required: {2}\n\
 193     found: {3}\n\
 194     reason: {6}
 195 
 196 # 0: symbol kind, 1: name, 2: list of type
 197 compiler.err.cant.apply.symbols=\
 198     no suitable {0} found for {1}({2})
 199 
 200 # 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
 201 compiler.misc.cant.apply.symbol=\
 202     {0} {1} in {4} {5} cannot be applied to given types\n\
 203     required: {2}\n\
 204     found: {3}\n\
 205     reason: {6}
 206 
 207 # 0: symbol kind, 1: name, 2: list of type
 208 compiler.misc.cant.apply.symbols=\
 209     no suitable {0} found for {1}({2})
 210 
 211 # 0: kind name, 1: symbol
 212 compiler.misc.no.abstracts=\
 213     no abstract method found in {0} {1}
 214 
 215 # 0: kind name, 1: symbol
 216 compiler.misc.incompatible.abstracts=\
 217     multiple non-overriding abstract methods found in {0} {1}
 218 
 219 compiler.err.bad.functional.intf.anno=\
 220     Unexpected @FunctionalInterface annotation
 221 
 222 # 0: message segment
 223 compiler.err.bad.functional.intf.anno.1=\
 224     Unexpected @FunctionalInterface annotation\n\
 225     {0}
 226 
 227 # 0: message segment
 228 compiler.err.anonymous.diamond.method.does.not.override.superclass=\
 229     method does not override or implement a method from a supertype\n\
 230     {0}
 231 
 232 # 0: symbol
 233 compiler.misc.not.a.functional.intf=\
 234     {0} is not a functional interface
 235 
 236 # 0: symbol, 1: message segment
 237 compiler.misc.not.a.functional.intf.1=\
 238     {0} is not a functional interface\n\
 239     {1}
 240 
 241 # 0: type, 1: kind name, 2: symbol
 242 compiler.misc.invalid.generic.lambda.target=\
 243     invalid functional descriptor for lambda expression\n\
 244     method {0} in {1} {2} is generic
 245 
 246 # 0: kind name, 1: symbol
 247 compiler.misc.incompatible.descs.in.functional.intf=\
 248     incompatible function descriptors found in {0} {1}
 249 
 250 # 0: name, 1: list of type, 2: type, 3: list of type
 251 compiler.misc.descriptor=\
 252     descriptor: {2} {0}({1})
 253 
 254 # 0: name, 1: list of type, 2: type, 3: list of type
 255 compiler.misc.descriptor.throws=\
 256     descriptor: {2} {0}({1}) throws {3}
 257 
 258 # 0: type
 259 compiler.misc.no.suitable.functional.intf.inst=\
 260     cannot infer functional interface descriptor for {0}
 261 
 262 # 0: message segment
 263 compiler.misc.bad.intersection.target.for.functional.expr=\
 264     bad intersection type target for lambda or method reference\n\
 265     {0}
 266 
 267 # 0: symbol or type
 268 compiler.misc.not.an.intf.component=\
 269     component type {0} is not an interface
 270 
 271 # 0: kind name, 1: message segment
 272 compiler.err.invalid.mref=\
 273     invalid {0} reference\n\
 274     {1}
 275 
 276 # 0: symbol kind, 1: message segment
 277 compiler.misc.invalid.mref=\
 278     invalid {0} reference\n\
 279     {1}
 280 
 281 compiler.misc.static.mref.with.targs=\
 282     parameterized qualifier on static method reference
 283 
 284 # 0: symbol
 285 compiler.err.cant.assign.val.to.final.var=\
 286     cannot assign a value to final variable {0}
 287 
 288 compiler.err.cant.assign.val.to.this=\
 289     cannot assign to ''this''
 290 
 291 # 0: symbol, 1: message segment
 292 compiler.err.cant.ref.non.effectively.final.var=\
 293     local variables referenced from {1} must be final or effectively final
 294 
 295 compiler.err.try.with.resources.expr.needs.var=\
 296     the try-with-resources resource must either be a variable declaration or an expression denoting \
 297 a reference to a final or effectively final variable
 298 
 299 # 0: symbol
 300 compiler.err.try.with.resources.expr.effectively.final.var=\
 301     variable {0} used as a try-with-resources resource neither final nor effectively final
 302 
 303 
 304 compiler.misc.lambda=\
 305     a lambda expression
 306 
 307 compiler.misc.inner.cls=\
 308     an inner class
 309 
 310 # 0: type
 311 compiler.err.cant.deref=\
 312     {0} cannot be dereferenced
 313 
 314 compiler.err.cant.extend.intf.annotation=\
 315     ''extends'' not allowed for @interfaces
 316 
 317 compiler.err.annotation.decl.not.allowed.here=\
 318     annotation type declaration not allowed here
 319 
 320 # 0: symbol
 321 compiler.err.cant.inherit.from.final=\
 322     cannot inherit from final {0}
 323 
 324 # 0: symbol or string
 325 compiler.err.cant.ref.before.ctor.called=\
 326     cannot reference {0} before supertype constructor has been called
 327 
 328 compiler.err.cant.select.static.class.from.param.type=\
 329     cannot select a static class from a parameterized type
 330 
 331 # 0: symbol, 1: string, 2: string
 332 compiler.err.cant.inherit.diff.arg=\
 333     {0} cannot be inherited with different arguments: <{1}> and <{2}>
 334 
 335 compiler.err.catch.without.try=\
 336     ''catch'' without ''try''
 337 
 338 # 0: kind name, 1: symbol
 339 compiler.err.clash.with.pkg.of.same.name=\
 340     {0} {1} clashes with package of same name
 341 
 342 compiler.err.class.not.allowed=\
 343     class, interface or enum declaration not allowed here
 344 
 345 compiler.err.const.expr.req=\
 346     constant expression required
 347 
 348 compiler.err.cont.outside.loop=\
 349     continue outside of loop
 350 
 351 # 0: symbol or type
 352 compiler.err.cyclic.inheritance=\
 353     cyclic inheritance involving {0}
 354 
 355 # 0: symbol
 356 compiler.err.cyclic.annotation.element=\
 357     type of element {0} is cyclic
 358 
 359 # 0: symbol
 360 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
 361     call to super not allowed in enum constructor
 362 
 363 # 0: type
 364 compiler.err.no.superclass=\
 365     {0} has no superclass.
 366 
 367 # 0: symbol, 1: type, 2: symbol, 3: type, 4: type
 368 compiler.err.concrete.inheritance.conflict=\
 369     methods {0} from {1} and {2} from {3} are inherited with the same signature
 370 
 371 compiler.err.default.allowed.in.intf.annotation.member=\
 372     default value only allowed in an annotation type declaration
 373 
 374 # 0: symbol
 375 compiler.err.doesnt.exist=\
 376     package {0} does not exist
 377 
 378 # 0: type
 379 compiler.err.duplicate.annotation.invalid.repeated=\
 380     annotation {0} is not a valid repeatable annotation
 381 
 382 # 0: name, 1: type
 383 compiler.err.duplicate.annotation.member.value=\
 384     duplicate element ''{0}'' in annotation @{1}.
 385 
 386 # 0: type
 387 compiler.err.duplicate.annotation.missing.container=\
 388     {0} is not a repeatable annotation type
 389 
 390 # 0: symbol
 391 compiler.err.invalid.repeatable.annotation=\
 392     duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
 393 
 394 # 0: symbol or type
 395 compiler.err.invalid.repeatable.annotation.no.value=\
 396     {0} is not a valid @Repeatable, no value element method declared
 397 
 398 # 0: type, 1: number
 399 compiler.err.invalid.repeatable.annotation.multiple.values=\
 400     {0} is not a valid @Repeatable, {1} element methods named ''value'' declared
 401 
 402 # 0: type
 403 compiler.err.invalid.repeatable.annotation.invalid.value=\
 404     {0} is not a valid @Repeatable: invalid value element
 405 
 406 # 0: symbol or type, 1: type, 2: type
 407 compiler.err.invalid.repeatable.annotation.value.return=\
 408     containing annotation type ({0}) must declare an element named ''value'' of type {2}
 409 
 410 # 0: symbol or type, 1: symbol
 411 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
 412     containing annotation type ({0}) does not have a default value for element {1}
 413 
 414 # 0: symbol, 1: string, 2: symbol, 3: string
 415 compiler.err.invalid.repeatable.annotation.retention=\
 416     retention of containing annotation type ({0}) is shorter than the retention of repeatable annotation type ({2})
 417 
 418 # 0: symbol, 1: symbol
 419 compiler.err.invalid.repeatable.annotation.not.documented=\
 420     repeatable annotation type ({1}) is @Documented while containing annotation type ({0}) is not
 421 
 422 # 0: symbol, 1: symbol
 423 compiler.err.invalid.repeatable.annotation.not.inherited=\
 424     repeatable annotation type ({1}) is @Inherited while containing annotation type ({0}) is not
 425 
 426 # 0: symbol, 1: symbol
 427 compiler.err.invalid.repeatable.annotation.incompatible.target=\
 428     containing annotation type ({0}) is applicable to more targets than repeatable annotation type ({1})
 429 
 430 # 0: symbol
 431 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
 432     container {0} must not be present at the same time as the element it contains
 433 
 434 # 0: type, 1: symbol
 435 compiler.err.invalid.repeatable.annotation.not.applicable=\
 436     container {0} is not applicable to element {1}
 437 
 438 # 0: type
 439 compiler.err.invalid.repeatable.annotation.not.applicable.in.context=\
 440     container {0} is not applicable in this type context
 441 
 442 # 0: name
 443 compiler.err.duplicate.class=\
 444     duplicate class: {0}
 445 
 446 compiler.err.duplicate.case.label=\
 447     duplicate case label
 448 
 449 compiler.err.duplicate.default.label=\
 450     duplicate default label
 451 
 452 compiler.err.else.without.if=\
 453     ''else'' without ''if''
 454 
 455 compiler.err.empty.char.lit=\
 456     empty character literal
 457 
 458 # 0: symbol
 459 compiler.err.encl.class.required=\
 460     an enclosing instance that contains {0} is required
 461 
 462 compiler.err.enum.annotation.must.be.enum.constant=\
 463     an enum annotation value must be an enum constant
 464 
 465 compiler.err.enum.cant.be.instantiated=\
 466     enum types may not be instantiated
 467 
 468 compiler.err.enum.label.must.be.unqualified.enum=\
 469     an enum switch case label must be the unqualified name of an enumeration constant
 470 
 471 compiler.err.enum.no.subclassing=\
 472     classes cannot directly extend java.lang.Enum
 473 
 474 compiler.err.enum.types.not.extensible=\
 475     enum types are not extensible
 476 
 477 compiler.err.enum.no.finalize=\
 478     enums cannot have finalize methods
 479 
 480 # 0: file name, 1: string
 481 compiler.err.error.reading.file=\
 482     error reading {0}; {1}
 483 
 484 # 0: type
 485 compiler.err.except.already.caught=\
 486     exception {0} has already been caught
 487 
 488 # 0: type
 489 compiler.err.except.never.thrown.in.try=\
 490     exception {0} is never thrown in body of corresponding try statement
 491 
 492 # 0: symbol
 493 compiler.err.final.parameter.may.not.be.assigned=\
 494     final parameter {0} may not be assigned
 495 
 496 # 0: symbol
 497 compiler.err.try.resource.may.not.be.assigned=\
 498     auto-closeable resource {0} may not be assigned
 499 
 500 # 0: symbol
 501 compiler.err.multicatch.parameter.may.not.be.assigned=\
 502     multi-catch parameter {0} may not be assigned
 503 
 504 # 0: type, 1: type
 505 compiler.err.multicatch.types.must.be.disjoint=\
 506     Alternatives in a multi-catch statement cannot be related by subclassing\n\
 507     Alternative {0} is a subclass of alternative {1}
 508 
 509 compiler.err.finally.without.try=\
 510     ''finally'' without ''try''
 511 
 512 # 0: type, 1: message segment
 513 compiler.err.foreach.not.applicable.to.type=\
 514     for-each not applicable to expression type\n\
 515     required: {1}\n\
 516     found:    {0}
 517 
 518 compiler.err.fp.number.too.large=\
 519     floating point number too large
 520 
 521 compiler.err.fp.number.too.small=\
 522     floating point number too small
 523 
 524 compiler.err.generic.array.creation=\
 525     generic array creation
 526 
 527 compiler.err.generic.throwable=\
 528     a generic class may not extend java.lang.Throwable
 529 
 530 # 0: symbol
 531 compiler.err.icls.cant.have.static.decl=\
 532     Illegal static declaration in inner class {0}\n\
 533     modifier \''static\'' is only allowed in constant variable declarations
 534 
 535 # 0: string
 536 compiler.err.illegal.char=\
 537     illegal character: ''{0}''
 538 
 539 # 0: string, 1: string
 540 compiler.err.illegal.char.for.encoding=\
 541     unmappable character (0x{0}) for encoding {1}
 542 
 543 # 0: set of flag, 1: set of flag
 544 compiler.err.illegal.combination.of.modifiers=\
 545     illegal combination of modifiers: {0} and {1}
 546 
 547 compiler.err.illegal.enum.static.ref=\
 548     illegal reference to static field from initializer
 549 
 550 compiler.err.illegal.esc.char=\
 551     illegal escape character
 552 
 553 compiler.err.illegal.forward.ref=\
 554     illegal forward reference
 555 
 556 # 0: symbol, 1: object
 557 compiler.err.not.in.profile=\
 558     {0} is not available in profile ''{1}''
 559 
 560 # 0: symbol
 561 compiler.warn.forward.ref=\
 562     reference to variable ''{0}'' before it has been initialized
 563 
 564 compiler.err.illegal.self.ref=\
 565     self-reference in initializer
 566 
 567 # 0: symbol
 568 compiler.warn.self.ref=\
 569     self-reference in initializer of variable ''{0}''
 570 
 571 compiler.err.illegal.generic.type.for.instof=\
 572     illegal generic type for instanceof
 573 
 574 # 0: type
 575 compiler.err.illegal.initializer.for.type=\
 576     illegal initializer for {0}
 577 
 578 compiler.err.illegal.line.end.in.char.lit=\
 579     illegal line end in character literal
 580 
 581 compiler.err.illegal.nonascii.digit=\
 582     illegal non-ASCII digit
 583 
 584 compiler.err.illegal.underscore=\
 585     illegal underscore
 586 
 587 compiler.err.illegal.dot=\
 588     illegal ''.''
 589 
 590 # 0: symbol
 591 compiler.err.illegal.qual.not.icls=\
 592     illegal qualifier; {0} is not an inner class
 593 
 594 compiler.err.illegal.start.of.expr=\
 595     illegal start of expression
 596 
 597 compiler.err.illegal.start.of.stmt=\
 598     illegal start of statement
 599 
 600 compiler.err.illegal.start.of.type=\
 601     illegal start of type
 602 
 603 compiler.err.illegal.parenthesized.expression=\
 604     illegal parenthesized expression
 605 
 606 compiler.err.illegal.unicode.esc=\
 607     illegal unicode escape
 608 
 609 # 0: symbol
 610 compiler.err.import.requires.canonical=\
 611     import requires canonical name for {0}
 612 
 613 compiler.err.improperly.formed.type.param.missing=\
 614     improperly formed type, some parameters are missing
 615 
 616 compiler.err.improperly.formed.type.inner.raw.param=\
 617     improperly formed type, type arguments given on a raw type
 618 
 619 # 0: type, 1: type
 620 compiler.err.incomparable.types=\
 621     incomparable types: {0} and {1}
 622 
 623 # 0: number
 624 compiler.err.int.number.too.large=\
 625     integer number too large: {0}
 626 
 627 compiler.err.intf.annotation.members.cant.have.params=\
 628     elements in annotation type declarations cannot declare formal parameters
 629 
 630 # 0: symbol
 631 compiler.err.intf.annotation.cant.have.type.params=\
 632     annotation type {0} cannot be generic
 633 
 634 compiler.err.intf.annotation.members.cant.have.type.params=\
 635     elements in annotation type declarations cannot be generic methods
 636 
 637 # 0: symbol, 1: type
 638 compiler.err.intf.annotation.member.clash=\
 639     annotation type {1} declares an element with the same name as method {0}
 640 
 641 compiler.err.intf.expected.here=\
 642     interface expected here
 643 
 644 compiler.err.intf.meth.cant.have.body=\
 645     interface abstract methods cannot have body
 646 
 647 compiler.err.invalid.annotation.member.type=\
 648     invalid type for annotation type element
 649 
 650 compiler.err.invalid.binary.number=\
 651     binary numbers must contain at least one binary digit
 652 
 653 compiler.err.invalid.hex.number=\
 654     hexadecimal numbers must contain at least one hexadecimal digit
 655 
 656 compiler.err.invalid.meth.decl.ret.type.req=\
 657     invalid method declaration; return type required
 658 
 659 compiler.err.varargs.and.old.array.syntax=\
 660     legacy array notation not allowed on variable-arity parameter
 661 
 662 compiler.err.varargs.and.receiver =\
 663     varargs notation not allowed on receiver parameter
 664 
 665 compiler.err.varargs.must.be.last =\
 666     varargs parameter must be the last parameter
 667 
 668 compiler.err.array.and.receiver =\
 669     legacy array notation not allowed on receiver parameter
 670 
 671 compiler.err.variable.not.allowed=\
 672     variable declaration not allowed here
 673 
 674 # 0: name
 675 compiler.err.label.already.in.use=\
 676     label {0} already in use
 677 
 678 # 0: symbol
 679 compiler.err.local.var.accessed.from.icls.needs.final=\
 680     local variable {0} is accessed from within inner class; needs to be declared final
 681 
 682 compiler.err.local.enum=\
 683     enum types must not be local
 684 
 685 compiler.err.cannot.create.array.with.type.arguments=\
 686     cannot create array with type arguments
 687 
 688 compiler.err.cannot.create.array.with.diamond=\
 689     cannot create array with ''<>''
 690 
 691 compiler.err.invalid.module.directive=\
 692   module directive keyword or ''}'' expected
 693 
 694 #
 695 # limits.  We don't give the limits in the diagnostic because we expect
 696 # them to change, yet we want to use the same diagnostic.  These are all
 697 # detected during code generation.
 698 #
 699 compiler.err.limit.code=\
 700     code too large
 701 
 702 compiler.err.limit.code.too.large.for.try.stmt=\
 703     code too large for try statement
 704 
 705 compiler.err.limit.dimensions=\
 706     array type has too many dimensions
 707 
 708 compiler.err.limit.locals=\
 709     too many local variables
 710 
 711 compiler.err.limit.parameters=\
 712     too many parameters
 713 
 714 compiler.err.limit.pool=\
 715     too many constants
 716 
 717 compiler.err.limit.pool.in.class=\
 718     too many constants in class {0}
 719 
 720 compiler.err.limit.stack=\
 721     code requires too much stack
 722 
 723 compiler.err.limit.string=\
 724     constant string too long
 725 
 726 # 0: string
 727 compiler.err.limit.string.overflow=\
 728     UTF8 representation for string \"{0}...\" is too long for the constant pool
 729 
 730 compiler.err.malformed.fp.lit=\
 731     malformed floating point literal
 732 
 733 compiler.err.method.does.not.override.superclass=\
 734     method does not override or implement a method from a supertype
 735 
 736 compiler.err.static.methods.cannot.be.annotated.with.override=\
 737     static methods cannot be annotated with @Override
 738 
 739 compiler.err.missing.meth.body.or.decl.abstract=\
 740     missing method body, or declare abstract
 741 
 742 compiler.err.missing.ret.stmt=\
 743     missing return statement
 744 
 745 # 0: type
 746 compiler.misc.missing.ret.val=\
 747     missing return value
 748 
 749 compiler.misc.unexpected.ret.val=\
 750     unexpected return value
 751 
 752 # 0: set of flag
 753 compiler.err.mod.not.allowed.here=\
 754     modifier {0} not allowed here
 755 
 756 compiler.err.intf.not.allowed.here=\
 757     interface not allowed here
 758 
 759 compiler.err.enums.must.be.static=\
 760     enum declarations allowed only in static contexts
 761 
 762 # 0: symbol, 1: symbol
 763 compiler.err.name.clash.same.erasure=\
 764     name clash: {0} and {1} have the same erasure
 765 
 766 # 0: name, 1: list of type, 2: symbol, 3: name, 4: list of type, 5: symbol
 767 compiler.err.name.clash.same.erasure.no.override=\
 768     name clash: {0}({1}) in {2} and {3}({4}) in {5} have the same erasure, yet neither overrides the other
 769 
 770 # 0: string, 1: name, 2: name, 3: list of type, 4: symbol, 5: name, 6: list of type, 7: symbol
 771 compiler.err.name.clash.same.erasure.no.override.1=\
 772     name clash: {0} {1} has two methods with the same erasure, yet neither overrides the other\n\
 773     first method:  {2}({3}) in {4}\n\
 774     second method: {5}({6}) in {7}
 775 
 776 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
 777 compiler.err.name.clash.same.erasure.no.hide=\
 778     name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other
 779 
 780 compiler.err.name.reserved.for.internal.use=\
 781     {0} is reserved for internal use
 782 
 783 compiler.err.native.meth.cant.have.body=\
 784     native methods cannot have a body
 785 
 786 # 0: type, 1: type
 787 compiler.err.neither.conditional.subtype=\
 788     incompatible types for ?: neither is a subtype of the other\n\
 789     second operand: {0}\n\
 790     third operand : {1}
 791 
 792 
 793 # 0: message segment
 794 compiler.misc.incompatible.type.in.conditional=\
 795     bad type in conditional expression\n\
 796     {0}
 797 
 798 compiler.misc.conditional.target.cant.be.void=\
 799     target-type for conditional expression cannot be void
 800 
 801 # 0: message segment
 802 compiler.misc.incompatible.ret.type.in.lambda=\
 803     bad return type in lambda expression\n\
 804     {0}
 805 
 806 compiler.misc.stat.expr.expected=\
 807     lambda body is not compatible with a void functional interface\n\
 808     (consider using a block lambda body, or use a statement expression instead)
 809 
 810 # 0: message segment
 811 compiler.misc.incompatible.ret.type.in.mref=\
 812     bad return type in method reference\n\
 813     {0}
 814 
 815 compiler.err.lambda.body.neither.value.nor.void.compatible=\
 816     lambda body is neither value nor void compatible
 817 
 818 # 0: list of type
 819 compiler.err.incompatible.thrown.types.in.mref=\
 820     incompatible thrown types {0} in functional expression
 821 
 822 compiler.misc.incompatible.arg.types.in.lambda=\
 823     incompatible parameter types in lambda expression
 824 
 825 compiler.misc.incompatible.arg.types.in.mref=\
 826     incompatible parameter types in method reference
 827 
 828 compiler.err.new.not.allowed.in.annotation=\
 829     ''new'' not allowed in an annotation
 830 
 831 # 0: name, 1: type
 832 compiler.err.no.annotation.member=\
 833     no annotation member {0} in {1}
 834 
 835 # 0: symbol
 836 compiler.err.no.encl.instance.of.type.in.scope=\
 837     no enclosing instance of type {0} is in scope
 838 
 839 compiler.err.no.intf.expected.here=\
 840     no interface expected here
 841 
 842 compiler.err.no.match.entry=\
 843     {0} has no match in entry in {1}; required {2}
 844 
 845 # 0: type
 846 compiler.err.not.annotation.type=\
 847     {0} is not an annotation type
 848 
 849 # 0: symbol, 1: symbol, 2: message segment
 850 compiler.err.not.def.access.package.cant.access=\
 851     {0} is not visible\n\
 852     ({2})
 853 
 854 # 0: symbol, 1: symbol, 2: message segment
 855 compiler.misc.not.def.access.package.cant.access=\
 856     {0} is not visible\n\
 857     ({2})
 858 
 859 # 0: symbol, 1: message segment
 860 compiler.err.package.not.visible=\
 861     package {0} is not visible\n\
 862     ({1})
 863 
 864 # 0: symbol, 1: message segment
 865 compiler.misc.package.not.visible=\
 866     package {0} is not visible\n\
 867     ({1})
 868 
 869 # {0} - current module
 870 # {1} - package in which the invisible class is declared
 871 # {2} - module in which {1} is declared
 872 # 0: symbol, 1: symbol, 2: symbol
 873 compiler.misc.not.def.access.does.not.read=\
 874     package {1} is declared in module {2}, but module {0} does not read it
 875 
 876 # {0} - package in which the invisible class is declared
 877 # {1} - module in which {0} is declared
 878 # 0: symbol, 1: symbol
 879 compiler.misc.not.def.access.does.not.read.from.unnamed=\
 880     package {0} is declared in module {1}, which is not in the module graph
 881 
 882 # {0} - package in which the invisible class is declared
 883 # {1} - current module
 884 # 0: symbol, 1: symbol
 885 compiler.misc.not.def.access.does.not.read.unnamed=\
 886     package {0} is declared in the unnamed module, but module {0} does not read it
 887 
 888 # {0} - package in which the invisible class is declared
 889 # {1} - module in which {0} is declared
 890 # 0: symbol, 1: symbol
 891 compiler.misc.not.def.access.not.exported=\
 892     package {0} is declared in module {1}, which does not export it
 893 
 894 # {0} - package in which the invisible class is declared
 895 # {1} - module in which {0} is declared
 896 # 0: symbol, 1: symbol
 897 compiler.misc.not.def.access.not.exported.from.unnamed=\
 898     package {0} is declared in module {1}, which does not export it
 899 
 900 # {0} - package in which the invisible class is declared
 901 # {1} - module in which {0} is declared
 902 # {2} - current module
 903 # 0: symbol, 1: symbol, 2: symbol
 904 compiler.misc.not.def.access.not.exported.to.module=\
 905     package {0} is declared in module {1}, which does not export it to module {2}
 906 
 907 # {0} - package in which the invisible class is declared
 908 # {1} - module in which {0} is declared
 909 # 0: symbol, 1: symbol
 910 compiler.misc.not.def.access.not.exported.to.module.from.unnamed=\
 911     package {0} is declared in module {1}, which does not export it to the unnamed module
 912 
 913 # 0: symbol, 1: symbol
 914 compiler.err.not.def.access.class.intf.cant.access=\
 915     {1}.{0} is defined in an inaccessible class or interface
 916 
 917 # 0: symbol, 1: symbol
 918 compiler.misc.not.def.access.class.intf.cant.access=\
 919     {1}.{0} is defined in an inaccessible class or interface
 920 
 921 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
 922 compiler.err.not.def.access.class.intf.cant.access.reason=\
 923     {1}.{0} in package {2} is not accessible\n\
 924     ({3})
 925 
 926 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
 927 compiler.misc.not.def.access.class.intf.cant.access.reason=\
 928     {1}.{0} in package {2} is not accessible\n\
 929     ({3})
 930 
 931 # 0: symbol, 1: list of type, 2: type
 932 compiler.misc.cant.access.inner.cls.constr=\
 933     cannot access constructor {0}({1})\n\
 934     an enclosing instance of type {2} is not in scope
 935 
 936 # 0: symbol, 1: symbol
 937 compiler.err.not.def.public.cant.access=\
 938     {0} is not public in {1}; cannot be accessed from outside package
 939 
 940 # 0: symbol, 1: symbol
 941 compiler.err.not.def.public=\
 942     {0} is not public in {1}
 943 
 944 # 0: symbol, 1: symbol
 945 compiler.misc.not.def.public.cant.access=\
 946     {0} is not public in {1}; cannot be accessed from outside package
 947 
 948 # 0: name
 949 compiler.err.not.loop.label=\
 950     not a loop label: {0}
 951 
 952 compiler.err.not.stmt=\
 953     not a statement
 954 
 955 # 0: symbol
 956 compiler.err.not.encl.class=\
 957     not an enclosing class: {0}
 958 
 959 # 0: name, 1: type
 960 compiler.err.operator.cant.be.applied=\
 961     bad operand type {1} for unary operator ''{0}''
 962 
 963 # 0: name, 1: type, 2: type
 964 compiler.err.operator.cant.be.applied.1=\
 965     bad operand types for binary operator ''{0}''\n\
 966     first type:  {1}\n\
 967     second type: {2}
 968 
 969 compiler.err.pkg.annotations.sb.in.package-info.java=\
 970     package annotations should be in file package-info.java
 971 
 972 compiler.err.no.pkg.in.module-info.java=\
 973     package declarations not allowed in file module-info.java
 974 
 975 # 0: symbol
 976 compiler.err.pkg.clashes.with.class.of.same.name=\
 977     package {0} clashes with class of same name
 978 
 979 compiler.err.warnings.and.werror=\
 980     warnings found and -Werror specified
 981 
 982 # Errors related to annotation processing
 983 
 984 # 0: symbol, 1: message segment, 2: string (stack-trace)
 985 compiler.err.proc.cant.access=\
 986     cannot access {0}\n\
 987     {1}\n\
 988     Consult the following stack trace for details.\n\
 989     {2}
 990 
 991 # 0: symbol, 1: message segment
 992 compiler.err.proc.cant.access.1=\
 993     cannot access {0}\n\
 994     {1}
 995 
 996 # 0: string
 997 compiler.err.proc.cant.find.class=\
 998     Could not find class file for ''{0}''.
 999 
1000 # Print a client-generated error message; assumed to be localized, no translation required
1001 # 0: string
1002 compiler.err.proc.messager=\
1003     {0}
1004 
1005 # 0: string
1006 compiler.misc.exception.message=\
1007     {0}
1008 
1009 compiler.misc.user.selected.completion.failure=\
1010     user-selected completion failure by class name
1011 
1012 # 0: collection of string
1013 compiler.err.proc.no.explicit.annotation.processing.requested=\
1014     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
1015 
1016 compiler.err.proc.no.service=\
1017     A ServiceLoader was not usable and is required for annotation processing.
1018 
1019 # 0: string, 1: string
1020 compiler.err.proc.processor.bad.option.name=\
1021     Bad option name ''{0}'' provided by processor ''{1}''
1022 
1023 # 0: string
1024 compiler.err.proc.processor.cant.instantiate=\
1025     Could not instantiate an instance of processor ''{0}''
1026 
1027 # 0: string
1028 compiler.err.proc.processor.not.found=\
1029     Annotation processor ''{0}'' not found
1030 
1031 # 0: string
1032 compiler.err.proc.processor.wrong.type=\
1033     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
1034 
1035 compiler.err.proc.service.problem=\
1036     Error creating a service loader to load Processors.
1037 
1038 # 0: string
1039 compiler.err.proc.bad.config.file=\
1040     Bad service configuration file, or exception thrown while constructing Processor object: {0}
1041 
1042 compiler.err.proc.cant.create.loader=\
1043     Could not create class loader for annotation processors: {0}
1044 
1045 # 0: symbol
1046 compiler.err.qualified.new.of.static.class=\
1047     qualified new of static class
1048 
1049 compiler.err.recursive.ctor.invocation=\
1050     recursive constructor invocation
1051 
1052 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
1053 compiler.err.ref.ambiguous=\
1054     reference to {0} is ambiguous\n\
1055     both {1} {2} in {3} and {4} {5} in {6} match
1056 
1057 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
1058 compiler.misc.ref.ambiguous=\
1059     reference to {0} is ambiguous\n\
1060     both {1} {2} in {3} and {4} {5} in {6} match
1061 
1062 compiler.err.repeated.annotation.target=\
1063     repeated annotation target
1064 
1065 compiler.err.repeated.interface=\
1066     repeated interface
1067 
1068 compiler.err.repeated.modifier=\
1069     repeated modifier
1070 
1071 # 0: symbol, 1: set of modifier, 2: symbol
1072 compiler.err.report.access=\
1073     {0} has {1} access in {2}
1074 
1075 # 0: symbol, 1: set of modifier, 2: symbol
1076 compiler.misc.report.access=\
1077     {0} has {1} access in {2}
1078 
1079 compiler.err.ret.outside.meth=\
1080     return outside method
1081 
1082 compiler.err.signature.doesnt.match.supertype=\
1083     signature does not match {0}; incompatible supertype
1084 
1085 compiler.err.signature.doesnt.match.intf=\
1086     signature does not match {0}; incompatible interfaces
1087 
1088 # 0: number, 1: number
1089 compiler.err.method.invoked.with.incorrect.number.arguments=\
1090     method invoked with incorrect number of arguments; expected {0}, found {1}
1091 
1092 # 0: symbol, 1: symbol, 2: symbol
1093 compiler.err.does.not.override.abstract=\
1094     {0} is not abstract and does not override abstract method {1} in {2}
1095 
1096 # 0: file object
1097 compiler.err.source.cant.overwrite.input.file=\
1098     error writing source; cannot overwrite input file {0}
1099 
1100 # 0: symbol
1101 compiler.err.stack.sim.error=\
1102     Internal error: stack sim error on {0}
1103 
1104 compiler.err.static.imp.only.classes.and.interfaces=\
1105     static import only from classes and interfaces
1106 
1107 compiler.err.string.const.req=\
1108     constant string expression required
1109 
1110 # 0: symbol, 1: symbol
1111 compiler.err.synthetic.name.conflict=\
1112     the symbol {0} conflicts with a compiler-synthesized symbol in {1}
1113 
1114 compiler.err.throws.not.allowed.in.intf.annotation=\
1115     throws clause not allowed in @interface members
1116 
1117 compiler.err.try.without.catch.or.finally=\
1118     ''try'' without ''catch'' or ''finally''
1119 
1120 compiler.err.try.without.catch.finally.or.resource.decls=\
1121     ''try'' without ''catch'', ''finally'' or resource declarations
1122 
1123 # 0: symbol
1124 compiler.err.type.doesnt.take.params=\
1125     type {0} does not take parameters
1126 
1127 compiler.err.type.var.cant.be.deref=\
1128     cannot select from a type variable
1129 
1130 compiler.err.type.var.may.not.be.followed.by.other.bounds=\
1131     a type variable may not be followed by other bounds
1132 
1133 compiler.err.type.var.more.than.once=\
1134     type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated
1135 
1136 compiler.err.type.var.more.than.once.in.result=\
1137     type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated
1138 
1139 # 0: type, 1: type, 2: fragment
1140 compiler.err.types.incompatible=\
1141     types {0} and {1} are incompatible;\n\
1142     {2}
1143 
1144 # 0: name, 1: list of type
1145 compiler.misc.incompatible.diff.ret=\
1146     both define {0}({1}), but with unrelated return types
1147 
1148 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1149 compiler.misc.incompatible.unrelated.defaults=\
1150     {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5}
1151 
1152 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
1153 compiler.misc.incompatible.abstract.default=\
1154     {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5}
1155 
1156 # 0: name, 1: kind name, 2: symbol
1157 compiler.err.default.overrides.object.member=\
1158     default method {0} in {1} {2} overrides a member of java.lang.Object
1159 
1160 # 0: type
1161 compiler.err.illegal.static.intf.meth.call=\
1162     illegal static interface method call\n\
1163     the receiver expression should be replaced with the type qualifier ''{0}''
1164 
1165 # 0: symbol or type, 1: message segment
1166 compiler.err.illegal.default.super.call=\
1167     bad type qualifier {0} in default super call\n\
1168     {1}
1169 
1170 # 0: symbol, 1: type
1171 compiler.misc.overridden.default=\
1172     method {0} is overridden in {1}
1173 
1174 # 0: symbol, 1: type or symbol
1175 compiler.misc.redundant.supertype=\
1176     redundant interface {0} is extended by {1}
1177 
1178 compiler.err.unclosed.char.lit=\
1179     unclosed character literal
1180 
1181 compiler.err.unclosed.comment=\
1182     unclosed comment
1183 
1184 compiler.err.unclosed.str.lit=\
1185     unclosed string literal
1186 
1187 # 0: string
1188 compiler.err.unsupported.encoding=\
1189     unsupported encoding: {0}
1190 
1191 compiler.err.io.exception=\
1192     error reading source file: {0}
1193 
1194 # 0: name
1195 compiler.err.undef.label=\
1196     undefined label: {0}
1197 
1198 # 0: name (type)
1199 compiler.err.illegal.ref.to.var.type=\
1200     illegal reference to restricted type ''{0}''
1201 
1202 # 0: token
1203 compiler.err.var.not.allowed=\
1204     ''{0}'' not allowed here\n\
1205     as of release 10, ''{0}'' is a restricted local variable type and cannot be used for type declarations
1206 
1207 compiler.warn.var.not.allowed=\
1208     as of release 10, ''var'' is a restricted local variable type and cannot be used for type declarations
1209 
1210 # 0: name (variable), 1: message segment
1211 compiler.err.cant.infer.local.var.type=\
1212     cannot infer type for local variable {0}\n\
1213     ({1})
1214 
1215 compiler.err.var.not.allowed.here=\
1216     ''var'' is not allowed here
1217 
1218 compiler.err.var.not.allowed.array=\
1219     ''var'' is not allowed as an element type of an array
1220 
1221 compiler.err.var.not.allowed.compound=\
1222     ''var'' is not allowed in a compound declaration
1223 
1224 compiler.misc.local.cant.infer.null=\
1225     variable initializer is ''null''
1226 
1227 compiler.misc.local.cant.infer.void=\
1228     variable initializer is ''void''
1229 
1230 compiler.misc.local.missing.init=\
1231     cannot use ''var'' on variable without initializer
1232 
1233 compiler.misc.local.lambda.missing.target=\
1234     lambda expression needs an explicit target-type
1235 
1236 compiler.misc.local.mref.missing.target=\
1237     method reference needs an explicit target-type
1238 
1239 compiler.misc.local.array.missing.target=\
1240     array initializer needs an explicit target-type
1241 
1242 compiler.misc.local.self.ref=\
1243     cannot use ''var'' on self-referencing variable
1244 
1245 # 0: message segment, 1: unused
1246 compiler.err.cant.apply.diamond=\
1247     cannot infer type arguments for {0}
1248 
1249 # 0: message segment or type, 1: message segment
1250 compiler.err.cant.apply.diamond.1=\
1251     cannot infer type arguments for {0}\n\
1252     reason: {1}
1253 
1254 # 0: message segment or type, 1: message segment
1255 compiler.misc.cant.apply.diamond.1=\
1256     cannot infer type arguments for {0}\n\
1257     reason: {1}
1258 
1259 compiler.err.unreachable.stmt=\
1260     unreachable statement
1261 
1262 compiler.err.initializer.must.be.able.to.complete.normally=\
1263     initializer must be able to complete normally
1264 
1265 compiler.err.initializer.not.allowed=\
1266     initializers not allowed in interfaces
1267 
1268 # 0: type
1269 compiler.err.unreported.exception.need.to.catch.or.throw=\
1270     unreported exception {0}; must be caught or declared to be thrown
1271 
1272 # 0: type
1273 compiler.err.unreported.exception.default.constructor=\
1274     unreported exception {0} in default constructor
1275 
1276 # 0: type, 1: name
1277 compiler.err.unreported.exception.implicit.close=\
1278     unreported exception {0}; must be caught or declared to be thrown\n\
1279     exception thrown from implicit call to close() on resource variable ''{1}''
1280 
1281 compiler.err.unsupported.cross.fp.lit=\
1282     hexadecimal floating-point literals are not supported on this VM
1283 
1284 compiler.err.void.not.allowed.here=\
1285     ''void'' type not allowed here
1286 
1287 # 0: string
1288 compiler.err.wrong.number.type.args=\
1289     wrong number of type arguments; required {0}
1290 
1291 # 0: symbol
1292 compiler.err.var.might.already.be.assigned=\
1293     variable {0} might already have been assigned
1294 
1295 # 0: symbol
1296 compiler.err.var.might.not.have.been.initialized=\
1297     variable {0} might not have been initialized
1298 
1299 # 0: symbol
1300 compiler.err.var.not.initialized.in.default.constructor=\
1301     variable {0} not initialized in the default constructor
1302 
1303 # 0: symbol
1304 compiler.err.var.might.be.assigned.in.loop=\
1305     variable {0} might be assigned in loop
1306 
1307 # 0: symbol, 1: message segment
1308 compiler.err.varargs.invalid.trustme.anno=\
1309     Invalid {0} annotation. {1}
1310 
1311 # 0: type
1312 compiler.misc.varargs.trustme.on.reifiable.varargs=\
1313     Varargs element type {0} is reifiable.
1314 
1315 # 0: symbol
1316 compiler.misc.varargs.trustme.on.non.varargs.meth=\
1317     Method {0} is not a varargs method.
1318 
1319 # 0: symbol
1320 compiler.misc.varargs.trustme.on.virtual.varargs=\
1321     Instance method {0} is neither final nor private.
1322 
1323 # 0: symbol
1324 compiler.misc.varargs.trustme.on.virtual.varargs.final.only=\
1325     Instance method {0} is not final.
1326 
1327 # 0: type, 1: symbol kind, 2: symbol
1328 compiler.misc.inaccessible.varargs.type=\
1329     formal varargs element type {0} is not accessible from {1} {2}
1330 
1331 # In the following string, {1} will always be the detail message from
1332 # java.io.IOException.
1333 # 0: symbol, 1: string
1334 compiler.err.class.cant.write=\
1335     error while writing {0}: {1}
1336 
1337 # In the following string, {0} is the name of the class in the Java source.
1338 # It really should be used two times..
1339 # 0: kind name, 1: name
1340 compiler.err.class.public.should.be.in.file=\
1341     {0} {1} is public, should be declared in a file named {1}.java
1342 
1343 ## All errors which do not refer to a particular line in the source code are
1344 ## preceded by this string.
1345 compiler.err.error=\
1346     error:\u0020
1347 
1348 # The following error messages do not refer to a line in the source code.
1349 compiler.err.cant.read.file=\
1350     cannot read: {0}
1351 
1352 # 0: string
1353 compiler.err.plugin.not.found=\
1354     plug-in not found: {0}
1355 
1356 # 0: path
1357 compiler.warn.locn.unknown.file.on.module.path=\
1358     unknown file on module path: {0}
1359 
1360 
1361 # 0: path
1362 compiler.err.locn.bad.module-info=\
1363     problem reading module-info.class in {0}
1364 
1365 # 0: path
1366 compiler.err.locn.cant.read.directory=\
1367     cannot read directory {0}
1368 
1369 # 0: path
1370 compiler.err.locn.cant.read.file=\
1371     cannot read file {0}
1372 
1373 # 0: path
1374 compiler.err.locn.cant.get.module.name.for.jar=\
1375     cannot determine module name for {0}
1376 
1377 # 0: path
1378 compiler.err.multi-module.outdir.cannot.be.exploded.module=\
1379     in multi-module mode, the output directory cannot be an exploded module: {0}
1380 
1381 # 0: path
1382 compiler.warn.outdir.is.in.exploded.module=\
1383     the output directory is within an exploded module: {0}
1384 
1385 # 0: file object
1386 compiler.err.locn.module-info.not.allowed.on.patch.path=\
1387     module-info.class not allowed on patch path: {0}
1388 
1389 # 0: string
1390 compiler.err.locn.invalid.arg.for.xpatch=\
1391     invalid argument for --patch-module option: {0}
1392 
1393 compiler.err.file.sb.on.source.or.patch.path.for.module=\
1394     file should be on source path, or on patch path for module
1395 
1396 #####
1397 
1398 # Fatal Errors
1399 
1400 compiler.misc.fatal.err.no.java.lang=\
1401     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
1402 
1403 # 0: name
1404 compiler.misc.fatal.err.cant.locate.meth=\
1405     Fatal Error: Unable to find method {0}
1406 
1407 # 0: name
1408 compiler.misc.fatal.err.cant.locate.field=\
1409     Fatal Error: Unable to find field {0}
1410 
1411 # 0: type
1412 compiler.misc.fatal.err.cant.locate.ctor=\
1413     Fatal Error: Unable to find constructor for {0}
1414 
1415 compiler.misc.fatal.err.cant.close=\
1416     Fatal Error: Cannot close compiler resources
1417 
1418 #####
1419 
1420 ##
1421 ## miscellaneous strings
1422 ##
1423 
1424 compiler.misc.diamond.anonymous.methods.implicitly.override=\
1425     (due to <>, every non-private method declared in this anonymous class must override or implement a method from a supertype)
1426 
1427 compiler.misc.source.unavailable=\
1428     (source unavailable)
1429 
1430 compiler.misc.base.membership=\
1431     all your base class are belong to us
1432 
1433 # 0: string, 1: string, 2: boolean
1434 compiler.misc.x.print.processor.info=\
1435     Processor {0} matches {1} and returns {2}.
1436 
1437 # 0: number, 1: string, 2: set of symbol, 3: boolean
1438 compiler.misc.x.print.rounds=\
1439     Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3}
1440 
1441 # 0: file name
1442 compiler.warn.file.from.future=\
1443     Modification date is in the future for file {0}
1444 
1445 #####
1446 
1447 ## The following string will appear before all messages keyed as:
1448 ## "compiler.note".
1449 
1450 compiler.note.compressed.diags=\
1451     Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1452 
1453 # 0: boolean, 1: symbol
1454 compiler.note.lambda.stat=\
1455     Translating lambda expression\n\
1456     alternate metafactory = {0}\n\
1457     synthetic method = {1}
1458 
1459 # 0: boolean, 1: unused
1460 compiler.note.mref.stat=\
1461     Translating method reference\n\
1462     alternate metafactory = {0}\n\
1463 
1464 # 0: boolean, 1: symbol
1465 compiler.note.mref.stat.1=\
1466     Translating method reference\n\
1467     alternate metafactory = {0}\n\
1468     bridge method = {1}
1469 
1470 compiler.note.note=\
1471     Note:\u0020
1472 
1473 # 0: file name
1474 compiler.note.deprecated.filename=\
1475     {0} uses or overrides a deprecated API.
1476 
1477 compiler.note.deprecated.plural=\
1478     Some input files use or override a deprecated API.
1479 
1480 # The following string may appear after one of the above deprecation
1481 # messages.
1482 compiler.note.deprecated.recompile=\
1483     Recompile with -Xlint:deprecation for details.
1484 
1485 # 0: file name
1486 compiler.note.deprecated.filename.additional=\
1487     {0} has additional uses or overrides of a deprecated API.
1488 
1489 compiler.note.deprecated.plural.additional=\
1490     Some input files additionally use or override a deprecated API.
1491 
1492 # 0: file name
1493 compiler.note.removal.filename=\
1494     {0} uses or overrides a deprecated API that is marked for removal.
1495 
1496 compiler.note.removal.plural=\
1497     Some input files use or override a deprecated API that is marked for removal.
1498 
1499 # The following string may appear after one of the above removal messages.
1500 compiler.note.removal.recompile=\
1501     Recompile with -Xlint:removal for details.
1502 
1503 # 0: file name
1504 compiler.note.removal.filename.additional=\
1505     {0} has additional uses or overrides of a deprecated API that is marked for removal.
1506 
1507 compiler.note.removal.plural.additional=\
1508     Some input files additionally use or override a deprecated API that is marked for removal.
1509 
1510 # 0: file name
1511 compiler.note.unchecked.filename=\
1512     {0} uses unchecked or unsafe operations.
1513 
1514 compiler.note.unchecked.plural=\
1515     Some input files use unchecked or unsafe operations.
1516 
1517 # The following string may appear after one of the above unchecked messages.
1518 compiler.note.unchecked.recompile=\
1519     Recompile with -Xlint:unchecked for details.
1520 
1521 # 0: file name
1522 compiler.note.unchecked.filename.additional=\
1523     {0} has additional unchecked or unsafe operations.
1524 
1525 compiler.note.unchecked.plural.additional=\
1526     Some input files additionally use unchecked or unsafe operations.
1527 
1528 # Notes related to annotation processing
1529 
1530 # Print a client-generated note; assumed to be localized, no translation required
1531 # 0: string
1532 compiler.note.proc.messager=\
1533     {0}
1534 
1535 # 0: string, 1: string, 2: string
1536 compiler.note.multiple.elements=\
1537     Multiple elements named ''{1}'' in modules ''{2}'' were found by javax.lang.model.util.Elements.{0}.
1538 
1539 #####
1540 
1541 # 0: number
1542 compiler.misc.count.error=\
1543     {0} error
1544 
1545 # 0: number
1546 compiler.misc.count.error.plural=\
1547     {0} errors
1548 
1549 # 0: number
1550 compiler.misc.count.warn=\
1551     {0} warning
1552 
1553 # 0: number
1554 compiler.misc.count.warn.plural=\
1555     {0} warnings
1556 
1557 compiler.misc.version.not.available=\
1558     (version info not available)
1559 
1560 ## extra output when using -verbose (JavaCompiler)
1561 
1562 # 0: symbol
1563 compiler.misc.verbose.checking.attribution=\
1564     [checking {0}]
1565 
1566 # 0: string
1567 compiler.misc.verbose.parsing.done=\
1568     [parsing completed {0}ms]
1569 
1570 # 0: file name
1571 compiler.misc.verbose.parsing.started=\
1572     [parsing started {0}]
1573 
1574 # 0: string
1575 compiler.misc.verbose.total=\
1576     [total {0}ms]
1577 
1578 # 0: file name
1579 compiler.misc.verbose.wrote.file=\
1580     [wrote {0}]
1581 
1582 ## extra output when using -verbose (code/ClassReader)
1583 # 0: string
1584 compiler.misc.verbose.loading=\
1585     [loading {0}]
1586 
1587 # 0: string
1588 compiler.misc.verbose.sourcepath=\
1589     [search path for source files: {0}]
1590 
1591 # 0: string
1592 compiler.misc.verbose.classpath=\
1593     [search path for class files: {0}]
1594 
1595 ## extra output when using -prompt (util/Log)
1596 compiler.misc.resume.abort=\
1597     R)esume, A)bort>
1598 
1599 #####
1600 
1601 ##
1602 ## warnings
1603 ##
1604 
1605 ## All warning messages are preceded by the following string.
1606 compiler.warn.warning=\
1607     warning:\u0020
1608 
1609 ## Warning messages may also include the following prefix to identify a
1610 ## lint option
1611 # 0: option name
1612 compiler.warn.lintOption=\
1613     [{0}]\u0020
1614 
1615 # 0: symbol
1616 compiler.warn.constant.SVUID=\
1617     serialVersionUID must be constant in class {0}
1618 
1619 # 0: path
1620 compiler.warn.dir.path.element.not.found=\
1621     bad path element "{0}": no such directory
1622 
1623 # 0: file name
1624 compiler.warn.dir.path.element.not.directory=\
1625     bad path element "{0}": not a directory
1626 
1627 compiler.warn.finally.cannot.complete=\
1628     finally clause cannot complete normally
1629 
1630 # 0: name
1631 compiler.warn.poor.choice.for.module.name=\
1632     module name component {0} should avoid terminal digits
1633 
1634 # 0: string
1635 compiler.warn.incubating.modules=\
1636     using incubating module(s): {0}
1637 
1638 # 0: symbol, 1: symbol
1639 compiler.warn.has.been.deprecated=\
1640     {0} in {1} has been deprecated
1641 
1642 # 0: symbol, 1: symbol
1643 compiler.warn.has.been.deprecated.for.removal=\
1644     {0} in {1} has been deprecated and marked for removal
1645 
1646 # 0: symbol
1647 compiler.warn.has.been.deprecated.module=\
1648     module {0} has been deprecated
1649 
1650 # 0: symbol
1651 compiler.warn.has.been.deprecated.for.removal.module=\
1652     module {0} has been deprecated and marked for removal
1653 
1654 # 0: symbol
1655 compiler.warn.sun.proprietary=\
1656     {0} is internal proprietary API and may be removed in a future release
1657 
1658 compiler.warn.illegal.char.for.encoding=\
1659     unmappable character for encoding {0}
1660 
1661 # 0: symbol
1662 compiler.warn.improper.SVUID=\
1663     serialVersionUID must be declared static final in class {0}
1664 
1665 # 0: type, 1: type
1666 compiler.warn.inexact.non-varargs.call=\
1667     non-varargs call of varargs method with inexact argument type for last parameter;\n\
1668     cast to {0} for a varargs call\n\
1669     cast to {1} for a non-varargs call and to suppress this warning
1670 
1671 # 0: list of type
1672 compiler.warn.unreachable.catch=\
1673     unreachable catch clause\n\
1674     thrown type {0} has already been caught
1675 
1676 # 0: list of type
1677 compiler.warn.unreachable.catch.1=\
1678     unreachable catch clause\n\
1679     thrown types {0} have already been caught
1680 
1681 # 0: symbol
1682 compiler.warn.long.SVUID=\
1683     serialVersionUID must be of type long in class {0}
1684 
1685 # 0: symbol
1686 compiler.warn.missing.SVUID=\
1687     serializable class {0} has no definition of serialVersionUID
1688 
1689 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1690 compiler.warn.potentially.ambiguous.overload=\
1691     {0} in {1} is potentially ambiguous with {2} in {3}
1692 
1693 # 0: message segment
1694 compiler.warn.override.varargs.missing=\
1695     {0}; overridden method has no ''...''
1696 
1697 # 0: message segment
1698 compiler.warn.override.varargs.extra=\
1699     {0}; overriding method is missing ''...''
1700 
1701 # 0: message segment
1702 compiler.warn.override.bridge=\
1703     {0}; overridden method is a bridge method
1704 
1705 # 0: symbol
1706 compiler.warn.pkg-info.already.seen=\
1707     a package-info.java file has already been seen for package {0}
1708 
1709 # 0: path
1710 compiler.warn.path.element.not.found=\
1711     bad path element "{0}": no such file or directory
1712 
1713 compiler.warn.possible.fall-through.into.case=\
1714     possible fall-through into case
1715 
1716 # 0: type
1717 compiler.warn.redundant.cast=\
1718     redundant cast to {0}
1719 
1720 # 0: number
1721 compiler.warn.position.overflow=\
1722     Position encoding overflows at line {0}
1723 
1724 # 0: file name, 1: number, 2: number
1725 compiler.warn.big.major.version=\
1726     {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\
1727     It is recommended that the compiler be upgraded.
1728 
1729 # 0: symbol kind, 1: symbol
1730 compiler.warn.static.not.qualified.by.type=\
1731     static {0} should be qualified by type name, {1}, instead of by an expression
1732 
1733 # 0: string
1734 compiler.warn.source.no.bootclasspath=\
1735     bootstrap class path not set in conjunction with -source {0}
1736 
1737 # 0: string
1738 compiler.warn.option.obsolete.source=\
1739     source value {0} is obsolete and will be removed in a future release
1740 
1741 # 0: string
1742 compiler.warn.option.obsolete.target=\
1743     target value {0} is obsolete and will be removed in a future release
1744 
1745 # 0: string, 1: string
1746 compiler.err.option.removed.source=\
1747     Source option {0} is no longer supported. Use {1} or later.
1748 
1749 # 0: string, 1: string
1750 compiler.err.option.removed.target=\
1751     Target option {0} is no longer supported. Use {1} or later.
1752 
1753 compiler.warn.option.obsolete.suppression=\
1754     To suppress warnings about obsolete options, use -Xlint:-options.
1755 
1756 # 0: name, 1: number, 2: number, 3: number, 4: number
1757 compiler.warn.future.attr=\
1758     {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files
1759 
1760 compiler.warn.requires.automatic=\
1761     requires directive for an automatic module
1762 
1763 compiler.warn.requires.transitive.automatic=\
1764     requires transitive directive for an automatic module
1765 
1766 # Warnings related to annotation processing
1767 # 0: string
1768 compiler.warn.proc.package.does.not.exist=\
1769     package {0} does not exist
1770 
1771 # 0: string
1772 compiler.warn.proc.file.reopening=\
1773     Attempt to create a file for ''{0}'' multiple times
1774 
1775 # 0: name
1776 compiler.warn.proc.type.already.exists=\
1777     A file for type ''{0}'' already exists on the sourcepath or classpath
1778 
1779 # 0: string
1780 compiler.warn.proc.type.recreate=\
1781     Attempt to create a file for type ''{0}'' multiple times
1782 
1783 # 0: string
1784 compiler.warn.proc.illegal.file.name=\
1785     Cannot create file for illegal name ''{0}''.
1786 
1787 # 0: string, 1: string
1788 compiler.warn.proc.suspicious.class.name=\
1789     Creating file for a type whose name ends in {1}: ''{0}''
1790 
1791 # 0: string
1792 compiler.warn.proc.file.create.last.round=\
1793     File for type ''{0}'' created in the last round will not be subject to annotation processing.
1794 
1795 # 0: string, 1: string
1796 compiler.warn.proc.malformed.supported.string=\
1797     Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}''
1798 
1799 # 0: set of string
1800 compiler.warn.proc.annotations.without.processors=\
1801     No processor claimed any of these annotations: {0}
1802 
1803 # 0: source version, 1: string, 2: string
1804 compiler.warn.proc.processor.incompatible.source.version=\
1805     Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}''
1806 
1807 compiler.warn.proc.proc-only.requested.no.procs=\
1808     Annotation processing without compilation requested but no processors were found.
1809 
1810 compiler.warn.proc.use.implicit=\
1811     Implicitly compiled files were not subject to annotation processing.\n\
1812     Use -implicit to specify a policy for implicit compilation.
1813 
1814 compiler.warn.proc.use.proc.or.implicit=\
1815     Implicitly compiled files were not subject to annotation processing.\n\
1816     Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
1817 
1818 # Print a client-generated warning; assumed to be localized, no translation required
1819 # 0: string
1820 compiler.warn.proc.messager=\
1821     {0}
1822 
1823 # 0: set of string
1824 compiler.warn.proc.unclosed.type.files=\
1825     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
1826 
1827 # 0: string
1828 compiler.warn.proc.unmatched.processor.options=\
1829     The following options were not recognized by any processor: ''{0}''
1830 
1831 compiler.warn.try.explicit.close.call=\
1832     explicit call to close() on an auto-closeable resource
1833 
1834 # 0: symbol
1835 compiler.warn.try.resource.not.referenced=\
1836     auto-closeable resource {0} is never referenced in body of corresponding try statement
1837 
1838 # 0: type
1839 compiler.warn.try.resource.throws.interrupted.exc=\
1840     auto-closeable resource {0} has a member method close() that could throw InterruptedException
1841 
1842 compiler.warn.unchecked.assign=\
1843     unchecked assignment: {0} to {1}
1844 
1845 # 0: symbol, 1: type
1846 compiler.warn.unchecked.assign.to.var=\
1847     unchecked assignment to variable {0} as member of raw type {1}
1848 
1849 # 0: symbol, 1: type
1850 compiler.warn.unchecked.call.mbr.of.raw.type=\
1851     unchecked call to {0} as a member of the raw type {1}
1852 
1853 compiler.warn.unchecked.cast.to.type=\
1854     unchecked cast to type {0}
1855 
1856 # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol
1857 compiler.warn.unchecked.meth.invocation.applied=\
1858     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1859     required: {2}\n\
1860     found: {3}
1861 
1862 # 0: type
1863 compiler.warn.unchecked.generic.array.creation=\
1864     unchecked generic array creation for varargs parameter of type {0}
1865 
1866 # 0: type
1867 compiler.warn.unchecked.varargs.non.reifiable.type=\
1868     Possible heap pollution from parameterized vararg type {0}
1869 
1870 # 0: symbol
1871 compiler.warn.varargs.unsafe.use.varargs.param=\
1872     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1873 
1874 compiler.warn.missing.deprecated.annotation=\
1875     deprecated item is not annotated with @Deprecated
1876 
1877 # 0: kind name
1878 compiler.warn.deprecated.annotation.has.no.effect=\
1879     @Deprecated annotation has no effect on this {0} declaration
1880 
1881 # 0: string
1882 compiler.warn.invalid.path=\
1883     Invalid filename: {0}
1884 
1885 # 0: path
1886 compiler.warn.invalid.archive.file=\
1887     Unexpected file on path: {0}
1888 
1889 # 0: path
1890 compiler.warn.unexpected.archive.file=\
1891     Unexpected extension for archive file: {0}
1892 
1893 # 0: path
1894 compiler.err.no.zipfs.for.archive=\
1895     No file system provider is available to handle this file: {0}
1896 
1897 compiler.warn.div.zero=\
1898     division by zero
1899 
1900 compiler.warn.empty.if=\
1901     empty statement after if
1902 
1903 # 0: type, 1: name
1904 compiler.warn.annotation.method.not.found=\
1905     Cannot find annotation method ''{1}()'' in type ''{0}''
1906 
1907 # 0: type, 1: name, 2: message segment
1908 compiler.warn.annotation.method.not.found.reason=\
1909     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
1910 
1911 # 0: file object, 1: symbol, 2: name
1912 compiler.warn.unknown.enum.constant=\
1913     unknown enum constant {1}.{2}
1914 
1915 # 0: file object, 1: symbol, 2: name, 3: message segment
1916 compiler.warn.unknown.enum.constant.reason=\
1917     unknown enum constant {1}.{2}\n\
1918     reason: {3}
1919 
1920 # 0: type, 1: type
1921 compiler.warn.raw.class.use=\
1922     found raw type: {0}\n\
1923     missing type arguments for generic class {1}
1924 
1925 compiler.warn.diamond.redundant.args=\
1926     Redundant type arguments in new expression (use diamond operator instead).
1927 
1928 compiler.warn.local.redundant.type=\
1929     Redundant type for local variable (replace explicit type with ''var'').
1930 
1931 compiler.warn.potential.lambda.found=\
1932     This anonymous inner class creation can be turned into a lambda expression.
1933 
1934 compiler.warn.method.redundant.typeargs=\
1935     Redundant type arguments in method call.
1936 
1937 # 0: symbol, 1: message segment
1938 compiler.warn.varargs.redundant.trustme.anno=\
1939     Redundant {0} annotation. {1}
1940 
1941 # 0: symbol
1942 compiler.warn.access.to.member.from.serializable.element=\
1943     access to member {0} from serializable element can be publicly accessible to untrusted code
1944 
1945 # 0: symbol
1946 compiler.warn.access.to.member.from.serializable.lambda=\
1947     access to member {0} from serializable lambda can be publicly accessible to untrusted code
1948 
1949 #####
1950 
1951 ## The following are tokens which are non-terminals in the language. They should
1952 ## be named as JLS3 calls them when translated to the appropriate language.
1953 compiler.misc.token.identifier=\
1954     <identifier>
1955 
1956 compiler.misc.token.character=\
1957     <character>
1958 
1959 compiler.misc.token.string=\
1960     <string>
1961 
1962 compiler.misc.token.integer=\
1963     <integer>
1964 
1965 compiler.misc.token.long-integer=\
1966     <long integer>
1967 
1968 compiler.misc.token.float=\
1969     <float>
1970 
1971 compiler.misc.token.double=\
1972     <double>
1973 
1974 compiler.misc.token.bad-symbol=\
1975     <bad symbol>
1976 
1977 compiler.misc.token.end-of-input=\
1978     <end of input>
1979 
1980 ## The argument to the following string will always be one of the following:
1981 ## 1. one of the above non-terminals
1982 ## 2. a keyword (JLS1.8)
1983 ## 3. a boolean literal (JLS3.10.3)
1984 ## 4. the null literal (JLS3.10.7)
1985 ## 5. a Java separator (JLS3.11)
1986 ## 6. an operator (JLS3.12)
1987 ##
1988 ## This is the only place these tokens will be used.
1989 # 0: token
1990 compiler.err.expected=\
1991     {0} expected
1992 
1993 # 0: token, 1: token
1994 compiler.err.expected2=\
1995     {0} or {1} expected
1996 
1997 # 0: token, 1: token, 2: token
1998 compiler.err.expected3=\
1999     {0}, {1}, or {2} expected
2000 
2001 compiler.err.premature.eof=\
2002     reached end of file while parsing
2003 
2004 ## The following are related in form, but do not easily fit the above paradigm.
2005 compiler.err.expected.module=\
2006     ''module'' expected
2007 
2008 compiler.err.expected.module.or.open=\
2009     ''module'' or ''open'' expected
2010 
2011 compiler.err.dot.class.expected=\
2012     ''.class'' expected
2013 
2014 ## The argument to this string will always be either 'case' or 'default'.
2015 # 0: token
2016 compiler.err.orphaned=\
2017     orphaned {0}
2018 
2019 # 0: name
2020 compiler.misc.anonymous.class=\
2021     <anonymous {0}>
2022 
2023 # 0: name, 1: type
2024 compiler.misc.type.captureof=\
2025     capture#{0} of {1}
2026 
2027 compiler.misc.type.captureof.1=\
2028     capture#{0}
2029 
2030 compiler.misc.type.none=\
2031     <none>
2032 
2033 compiler.misc.unnamed.package=\
2034     unnamed package
2035 
2036 compiler.misc.unnamed.module=\
2037     unnamed module
2038 
2039 #####
2040 
2041 # 0: symbol, 1: message segment
2042 compiler.err.cant.access=\
2043     cannot access {0}\n\
2044     {1}
2045 
2046 # 0: name
2047 compiler.misc.bad.class.file=\
2048     class file is invalid for class {0}
2049 
2050 # 0: file name, 1: string (expected constant pool entry type), 2: number (constant pool index)
2051 compiler.misc.bad.const.pool.entry=\
2052     bad constant pool entry in {0}\n\
2053     expected {1} at index {2}
2054 
2055 # 0: file name, 1: message segment
2056 compiler.misc.bad.class.file.header=\
2057     bad class file: {0}\n\
2058     {1}\n\
2059     Please remove or make sure it appears in the correct subdirectory of the classpath.
2060 
2061 # 0: file name, 1: message segment
2062 compiler.misc.bad.source.file.header=\
2063     bad source file: {0}\n\
2064     {1}\n\
2065     Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2066 
2067 ## The following are all possible strings for the second argument ({1}) of the
2068 ## above strings.
2069 compiler.misc.bad.class.signature=\
2070     bad class signature: {0}
2071 
2072 #0: symbol, 1: symbol
2073 compiler.misc.bad.enclosing.class=\
2074     bad enclosing class for {0}: {1}
2075 
2076 # 0: symbol
2077 compiler.misc.bad.enclosing.method=\
2078     bad enclosing method attribute for class {0}
2079 
2080 compiler.misc.bad.runtime.invisible.param.annotations=\
2081     bad RuntimeInvisibleParameterAnnotations attribute: {0}
2082 
2083 compiler.misc.bad.const.pool.tag=\
2084     bad constant pool tag: {0}
2085 
2086 compiler.misc.bad.const.pool.tag.at=\
2087     bad constant pool tag: {0} at {1}
2088 
2089 compiler.misc.bad.signature=\
2090     bad signature: {0}
2091 
2092 compiler.misc.bad.type.annotation.value=\
2093     bad type annotation target type value: {0}
2094 
2095 compiler.misc.bad.module-info.name=\
2096     bad class name
2097 
2098 compiler.misc.class.file.wrong.class=\
2099     class file contains wrong class: {0}
2100 
2101 compiler.misc.module.info.invalid.super.class=\
2102     module-info with invalid super class
2103 
2104 # 0: name
2105 compiler.misc.class.file.not.found=\
2106     class file for {0} not found
2107 
2108 # 0: string (constant value), 1: symbol (constant field), 2: type (field type)
2109 compiler.misc.bad.constant.range=\
2110     constant value ''{0}'' for {1} is outside the expected range for {2}
2111 
2112 # 0: string (constant value), 1: symbol (constant field), 2: string (expected class)
2113 compiler.misc.bad.constant.value=\
2114     bad constant value ''{0}'' for {1}, expected {2}
2115 
2116 # 0: string (classfile major version), 1: string (classfile minor version)
2117 compiler.misc.invalid.default.interface=\
2118     default method found in version {0}.{1} classfile
2119 
2120 # 0: string (classfile major version), 1: string (classfile minor version)
2121 compiler.misc.invalid.static.interface=\
2122     static method found in version {0}.{1} classfile
2123 
2124 # 0: string (classfile major version), 1: string (classfile minor version)
2125 compiler.misc.anachronistic.module.info=\
2126     module declaration found in version {0}.{1} classfile
2127 
2128 # 0: name
2129 compiler.misc.file.doesnt.contain.class=\
2130     file does not contain class {0}
2131 
2132 # 0: symbol
2133 compiler.misc.file.does.not.contain.package=\
2134     file does not contain package {0}
2135 
2136 compiler.misc.file.does.not.contain.module=\
2137     file does not contain module declaration
2138 
2139 compiler.misc.illegal.start.of.class.file=\
2140     illegal start of class file
2141 
2142 compiler.misc.unable.to.access.file=\
2143     unable to access file: {0}
2144 
2145 compiler.misc.unicode.str.not.supported=\
2146     unicode string in class file not supported
2147 
2148 compiler.misc.undecl.type.var=\
2149     undeclared type variable: {0}
2150 
2151 compiler.misc.malformed.vararg.method=\
2152     class file contains malformed variable arity method: {0}
2153 
2154 compiler.misc.wrong.version=\
2155     class file has wrong version {0}.{1}, should be {2}.{3}
2156 
2157 #####
2158 
2159 # 0: type, 1: type or symbol
2160 compiler.err.not.within.bounds=\
2161     type argument {0} is not within bounds of type-variable {1}
2162 
2163 ## The following are all possible strings for the second argument ({1}) of the
2164 ## above string.
2165 
2166 ## none yet...
2167 
2168 #####
2169 
2170 # 0: message segment
2171 compiler.err.prob.found.req=\
2172     incompatible types: {0}
2173 
2174 # 0: message segment
2175 compiler.misc.prob.found.req=\
2176     incompatible types: {0}
2177 
2178 # 0: message segment, 1: type, 2: type
2179 compiler.warn.prob.found.req=\
2180     {0}\n\
2181     required: {2}\n\
2182     found:    {1}
2183 
2184 # 0: type, 1: type
2185 compiler.misc.inconvertible.types=\
2186     {0} cannot be converted to {1}
2187 
2188 # 0: type, 1: type
2189 compiler.misc.possible.loss.of.precision=\
2190     possible lossy conversion from {0} to {1}
2191 
2192 compiler.misc.unchecked.assign=\
2193     unchecked conversion
2194 
2195 # compiler.misc.storecheck=\
2196 #     assignment might cause later store checks to fail
2197 # compiler.misc.unchecked=\
2198 #     assigned array cannot dynamically check its stores
2199 compiler.misc.unchecked.cast.to.type=\
2200     unchecked cast
2201 
2202 # compiler.err.star.expected=\
2203 #     ''*'' expected
2204 # compiler.err.no.elem.type=\
2205 #     \[\*\] cannot have a type
2206 
2207 # 0: message segment
2208 compiler.misc.try.not.applicable.to.type=\
2209     try-with-resources not applicable to variable type\n\
2210     ({0})
2211 
2212 #####
2213 
2214 # 0: object, 1: message segment
2215 compiler.err.type.found.req=\
2216     unexpected type\n\
2217     required: {1}\n\
2218     found:    {0}
2219 
2220 ## The following are all possible strings for the first argument ({0}) of the
2221 ## above string.
2222 compiler.misc.type.req.class=\
2223     class
2224 
2225 compiler.misc.type.req.class.array=\
2226     class or array
2227 
2228 compiler.misc.type.req.array.or.iterable=\
2229     array or java.lang.Iterable
2230 
2231 compiler.misc.type.req.ref=\
2232     reference
2233 
2234 compiler.misc.type.req.exact=\
2235     class or interface without bounds
2236 
2237 # 0: type
2238 compiler.misc.type.parameter=\
2239     type parameter {0}
2240 
2241 #####
2242 
2243 ## The following are all possible strings for the last argument of all those
2244 ## diagnostics whose key ends in ".1"
2245 
2246 # 0: type, 1: list of type
2247 compiler.misc.no.unique.maximal.instance.exists=\
2248     no unique maximal instance exists for type variable {0} with upper bounds {1}
2249 
2250 compiler.misc.no.unique.minimal.instance.exists=\
2251     no unique minimal instance exists for type variable {0} with lower bounds {1}
2252 
2253 # 0: type, 1: list of type
2254 compiler.misc.incompatible.upper.bounds=\
2255     inference variable {0} has incompatible upper bounds {1}
2256 
2257 # 0: type, 1: list of type
2258 compiler.misc.incompatible.eq.bounds=\
2259     inference variable {0} has incompatible equality constraints {1}
2260 
2261 # 0: type, 1: list of type, 2: list of type
2262 compiler.misc.incompatible.eq.upper.bounds=\
2263     inference variable {0} has incompatible bounds\n\
2264     equality constraints: {1}\n\
2265     upper bounds: {2}
2266 
2267 # 0: type, 1: list of type, 2: list of type
2268 compiler.misc.incompatible.upper.lower.bounds=\
2269     inference variable {0} has incompatible bounds\n\
2270     upper bounds: {1}\n\
2271     lower bounds: {2}
2272 
2273 # 0: type, 1: list of type, 2: list of type
2274 compiler.misc.incompatible.eq.lower.bounds=\
2275     inference variable {0} has incompatible bounds\n\
2276     equality constraints: {1}\n\
2277     lower bounds: {2}
2278 
2279 # 0: list of type, 1: type, 2: type
2280 compiler.misc.infer.no.conforming.instance.exists=\
2281     no instance(s) of type variable(s) {0} exist so that {1} conforms to {2}
2282 
2283 # 0: list of type, 1: message segment
2284 compiler.misc.infer.no.conforming.assignment.exists=\
2285     cannot infer type-variable(s) {0}\n\
2286     (argument mismatch; {1})
2287 
2288 # 0: list of type
2289 compiler.misc.infer.arg.length.mismatch=\
2290     cannot infer type-variable(s) {0}\n\
2291     (actual and formal argument lists differ in length)
2292 
2293 # 0: list of type, 1: message segment
2294 compiler.misc.infer.varargs.argument.mismatch=\
2295     cannot infer type-variable(s) {0}\n\
2296     (varargs mismatch; {1})
2297 
2298 # 0: type, 1: list of type
2299 compiler.misc.inferred.do.not.conform.to.upper.bounds=\
2300     inferred type does not conform to upper bound(s)\n\
2301     inferred: {0}\n\
2302     upper bound(s): {1}
2303 
2304 # 0: type, 1: list of type
2305 compiler.misc.inferred.do.not.conform.to.lower.bounds=\
2306     inferred type does not conform to lower bound(s)\n\
2307     inferred: {0}\n\
2308     lower bound(s): {1}
2309 
2310 # 0: type, 1: list of type
2311 compiler.misc.inferred.do.not.conform.to.eq.bounds=\
2312     inferred type does not conform to equality constraint(s)\n\
2313     inferred: {0}\n\
2314     equality constraints(s): {1}
2315 
2316 # 0: symbol
2317 compiler.misc.diamond=\
2318     {0}<>
2319 
2320 # 0: type
2321 compiler.misc.diamond.non.generic=\
2322     cannot use ''<>'' with non-generic class {0}
2323 
2324 # 0: list of type, 1: message segment
2325 compiler.misc.diamond.invalid.arg=\
2326     type argument {0} inferred for {1} is not allowed in this context\n\
2327     inferred argument is not expressible in the Signature attribute
2328 
2329 # 0: list of type, 1: message segment
2330 compiler.misc.diamond.invalid.args=\
2331     type arguments {0} inferred for {1} are not allowed in this context\n\
2332     inferred arguments are not expressible in the Signature attribute
2333 
2334 # 0: type
2335 compiler.misc.diamond.and.explicit.params=\
2336     cannot use ''<>'' with explicit type parameters for constructor
2337 
2338 compiler.misc.mref.infer.and.explicit.params=\
2339     cannot use raw constructor reference with explicit type parameters for constructor
2340 
2341 # 0: type, 1: list of type
2342 compiler.misc.explicit.param.do.not.conform.to.bounds=\
2343     explicit type argument {0} does not conform to declared bound(s) {1}
2344 
2345 compiler.misc.arg.length.mismatch=\
2346     actual and formal argument lists differ in length
2347 
2348 # 0: string
2349 compiler.misc.wrong.number.type.args=\
2350     wrong number of type arguments; required {0}
2351 
2352 # 0: message segment
2353 compiler.misc.no.conforming.assignment.exists=\
2354     argument mismatch; {0}
2355 
2356 # 0: message segment
2357 compiler.misc.varargs.argument.mismatch=\
2358     varargs mismatch; {0}
2359 
2360 #####
2361 
2362 # 0: symbol or type, 1: file name
2363 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
2364     auxiliary class {0} in {1} should not be accessed from outside its own source file
2365 
2366 ## The first argument ({0}) is a "kindname".
2367 # 0: kind name, 1: symbol, 2: symbol
2368 compiler.err.abstract.cant.be.accessed.directly=\
2369     abstract {0} {1} in {2} cannot be accessed directly
2370 
2371 ## The first argument ({0}) is a "kindname".
2372 # 0: symbol kind, 1: symbol
2373 compiler.err.non-static.cant.be.ref=\
2374     non-static {0} {1} cannot be referenced from a static context
2375 
2376 # 0: symbol kind, 1: symbol
2377 compiler.misc.bad.static.method.in.unbound.lookup=\
2378     unexpected static {0} {1} found in unbound lookup
2379 
2380 # 0: symbol kind, 1: symbol
2381 compiler.misc.bad.instance.method.in.unbound.lookup=\
2382     unexpected instance {0} {1} found in unbound lookup
2383 
2384 # 0: symbol kind, 1: symbol
2385 compiler.misc.bad.static.method.in.bound.lookup=\
2386     unexpected static {0} {1} found in bound lookup
2387 
2388 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
2389 ## of kindnames (the list should be identical to that provided in source.
2390 # 0: set of kind name, 1: set of kind name
2391 compiler.err.unexpected.type=\
2392     unexpected type\n\
2393     required: {0}\n\
2394     found:    {1}
2395 
2396 compiler.err.unexpected.lambda=\
2397    lambda expression not expected here
2398 
2399 compiler.err.unexpected.mref=\
2400    method reference not expected here
2401 
2402 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
2403 ## The second argument {1} is the non-resolved symbol
2404 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
2405 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
2406 # 0: kind name, 1: name, 2: unused, 3: unused
2407 compiler.err.cant.resolve=\
2408     cannot find symbol\n\
2409     symbol: {0} {1}
2410 
2411 # 0: kind name, 1: name, 2: unused, 3: list of type
2412 compiler.err.cant.resolve.args=\
2413     cannot find symbol\n\
2414     symbol: {0} {1}({3})
2415 
2416 # 0: kind name, 1: name, 2: list of type, 3: list of type
2417 compiler.err.cant.resolve.args.params=\
2418     cannot find symbol\n\
2419     symbol: {0} <{2}>{1}({3})
2420 
2421 ## arguments from {0} to {3} have the same meaning as above
2422 ## The fifth argument {4} is a location subdiagnostic (see below)
2423 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment
2424 compiler.err.cant.resolve.location=\
2425     cannot find symbol\n\
2426     symbol:   {0} {1}\n\
2427     location: {4}
2428 
2429 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
2430 compiler.err.cant.resolve.location.args=\
2431     cannot find symbol\n\
2432     symbol:   {0} {1}({3})\n\
2433     location: {4}
2434 
2435 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
2436 compiler.err.cant.resolve.location.args.params=\
2437     cannot find symbol\n\
2438     symbol:   {0} <{2}>{1}({3})\n\
2439     location: {4}
2440 
2441 ### Following are replicated/used for method reference diagnostics
2442 
2443 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
2444 compiler.misc.cant.resolve.location.args=\
2445     cannot find symbol\n\
2446     symbol:   {0} {1}({3})\n\
2447     location: {4}
2448 
2449 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
2450 compiler.misc.cant.resolve.location.args.params=\
2451     cannot find symbol\n\
2452     symbol:   {0} <{2}>{1}({3})\n\
2453     location: {4}
2454 
2455 ##a location subdiagnostic is composed as follows:
2456 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
2457 ## The second argument {1} is the location name
2458 ## The third argument {2} is the location type (only when {1} is a variable name)
2459 
2460 # 0: kind name, 1: type or symbol, 2: unused
2461 compiler.misc.location=\
2462     {0} {1}
2463 
2464 # 0: kind name, 1: symbol, 2: type
2465 compiler.misc.location.1=\
2466     {0} {1} of type {2}
2467 
2468 ## The following are all possible string for "kindname".
2469 ## They should be called whatever the JLS calls them after it been translated
2470 ## to the appropriate language.
2471 # compiler.misc.kindname.constructor=\
2472 #     static member
2473 compiler.misc.kindname.annotation=\
2474     @interface
2475 
2476 compiler.misc.kindname.constructor=\
2477     constructor
2478 
2479 compiler.misc.kindname.enum=\
2480     enum
2481 
2482 compiler.misc.kindname.interface=\
2483     interface
2484 
2485 compiler.misc.kindname.static=\
2486     static
2487 
2488 compiler.misc.kindname.type.variable=\
2489     type variable
2490 
2491 compiler.misc.kindname.type.variable.bound=\
2492     bound of type variable
2493 
2494 compiler.misc.kindname.variable=\
2495     variable
2496 
2497 compiler.misc.kindname.value=\
2498     value
2499 
2500 compiler.misc.kindname.method=\
2501     method
2502 
2503 compiler.misc.kindname.class=\
2504     class
2505 
2506 compiler.misc.kindname.package=\
2507     package
2508 
2509 compiler.misc.kindname.module=\
2510     module
2511 
2512 compiler.misc.kindname.static.init=\
2513     static initializer
2514 
2515 compiler.misc.kindname.instance.init=\
2516     instance initializer
2517 
2518 #####
2519 
2520 compiler.misc.no.args=\
2521     no arguments
2522 
2523 # 0: message segment
2524 compiler.err.override.static=\
2525     {0}\n\
2526     overriding method is static
2527 
2528 # 0: message segment, 1: set of flag
2529 compiler.err.override.meth=\
2530     {0}\n\
2531     overridden method is {1}
2532 
2533 # 0: message segment, 1: type
2534 compiler.err.override.meth.doesnt.throw=\
2535     {0}\n\
2536     overridden method does not throw {1}
2537 
2538 # In the following string {1} is a space separated list of Java Keywords, as
2539 # they would have been declared in the source code
2540 # 0: message segment, 1: set of flag or string
2541 compiler.err.override.weaker.access=\
2542     {0}\n\
2543     attempting to assign weaker access privileges; was {1}
2544 
2545 # 0: message segment, 1: type, 2: type
2546 compiler.err.override.incompatible.ret=\
2547     {0}\n\
2548     return type {1} is not compatible with {2}
2549 
2550 # 0: message segment, 1: type, 2: type
2551 compiler.warn.override.unchecked.ret=\
2552     {0}\n\
2553     return type requires unchecked conversion from {1} to {2}
2554 
2555 # 0: message segment, 1: type
2556 compiler.warn.override.unchecked.thrown=\
2557     {0}\n\
2558     overridden method does not throw {1}
2559 
2560 # 0: symbol
2561 compiler.warn.override.equals.but.not.hashcode=\
2562     Class {0} overrides equals, but neither it nor any superclass overrides hashCode method
2563 
2564 ## The following are all possible strings for the first argument ({0}) of the
2565 ## above strings.
2566 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2567 compiler.misc.cant.override=\
2568     {0} in {1} cannot override {2} in {3}
2569 
2570 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2571 compiler.misc.cant.hide=\
2572     {0} in {1} cannot hide {2} in {3}
2573 
2574 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2575 compiler.misc.cant.implement=\
2576     {0} in {1} cannot implement {2} in {3}
2577 
2578 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2579 compiler.misc.clashes.with=\
2580     {0} in {1} clashes with {2} in {3}
2581 
2582 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2583 compiler.misc.unchecked.override=\
2584     {0} in {1} overrides {2} in {3}
2585 
2586 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2587 compiler.misc.unchecked.implement=\
2588     {0} in {1} implements {2} in {3}
2589 
2590 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2591 compiler.misc.unchecked.clash.with=\
2592     {0} in {1} overrides {2} in {3}
2593 
2594 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2595 compiler.misc.varargs.override=\
2596     {0} in {1} overrides {2} in {3}
2597 
2598 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2599 compiler.misc.varargs.implement=\
2600     {0} in {1} implements {2} in {3}
2601 
2602 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
2603 compiler.misc.varargs.clash.with=\
2604     {0} in {1} overrides {2} in {3}
2605 
2606 # 0: kind name, 1: symbol, 2: symbol, 3: message segment
2607 compiler.misc.inapplicable.method=\
2608     {0} {1}.{2} is not applicable\n\
2609     ({3})
2610 
2611 ########################################
2612 # Diagnostics for language feature changes.
2613 # Such diagnostics have a common template which can be customized by using a feature
2614 # diagnostic fragment (one of those given below).
2615 ########################################
2616 
2617 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2618 compiler.err.feature.not.supported.in.source=\
2619    {0} is not supported in -source {1}\n\
2620     (use -source {2} or higher to enable {0})
2621 
2622 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2623 compiler.err.feature.not.supported.in.source.plural=\
2624    {0} are not supported in -source {1}\n\
2625     (use -source {2} or higher to enable {0})
2626 
2627 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2628 compiler.misc.feature.not.supported.in.source=\
2629    {0} is not supported in -source {1}\n\
2630     (use -source {2} or higher to enable {0})
2631 
2632 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
2633 compiler.misc.feature.not.supported.in.source.plural=\
2634    {0} are not supported in -source {1}\n\
2635     (use -source {2} or higher to enable {0})
2636 
2637 compiler.misc.feature.modules=\
2638     modules
2639 
2640 compiler.misc.feature.diamond.and.anon.class=\
2641     ''<>'' with anonymous inner classes
2642 
2643 compiler.misc.feature.binary.lit=\
2644     binary literals
2645 
2646 compiler.misc.feature.underscore.lit=\
2647     underscores in literals
2648 
2649 compiler.misc.feature.try.with.resources=\
2650     try-with-resources
2651 
2652 compiler.misc.feature.var.in.try.with.resources=\
2653     variables in try-with-resources
2654 
2655 compiler.misc.feature.type.annotations=\
2656     type annotations
2657 
2658 compiler.misc.feature.annotations.after.type.params=\
2659     annotations after method type parameters
2660 
2661 compiler.misc.feature.repeatable.annotations=\
2662     repeated annotations
2663 
2664 compiler.misc.feature.diamond=\
2665     diamond operator
2666 
2667 compiler.misc.feature.multicatch=\
2668     multi-catch statements
2669 
2670 compiler.misc.feature.string.switch=\
2671     strings in switch
2672 
2673 compiler.misc.feature.lambda=\
2674     lambda expressions
2675 
2676 compiler.misc.feature.method.references=\
2677     method references
2678 
2679 compiler.misc.feature.default.methods=\
2680     default methods
2681 
2682 compiler.misc.feature.intersection.types.in.cast=\
2683     intersection types
2684 
2685 compiler.misc.feature.static.intf.methods=\
2686     static interface methods
2687 
2688 compiler.misc.feature.static.intf.method.invoke=\
2689     static interface method invocations
2690 
2691 compiler.misc.feature.private.intf.methods=\
2692     private interface methods
2693 
2694 compiler.warn.underscore.as.identifier=\
2695     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2696 
2697 compiler.err.underscore.as.identifier=\
2698     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2699 
2700 compiler.err.underscore.as.identifier.in.lambda=\
2701     ''_'' used as an identifier\n\
2702     (use of ''_'' as an identifier is forbidden for lambda parameters)
2703 
2704 compiler.err.enum.as.identifier=\
2705     as of release 5, ''enum'' is a keyword, and may not be used as an identifier
2706 
2707 compiler.err.assert.as.identifier=\
2708     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
2709 
2710 # TODO 308: make a better error message
2711 compiler.err.this.as.identifier=\
2712     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
2713 
2714 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
2715     receiver parameter not applicable for constructor of top-level class
2716 
2717 # TODO 308: make a better error message
2718 # 0: annotation
2719 compiler.err.cant.type.annotate.scoping.1=\
2720     scoping construct cannot be annotated with type-use annotation: {0}
2721 
2722 # TODO 308: make a better error message
2723 # 0: list of annotation
2724 compiler.err.cant.type.annotate.scoping=\
2725     scoping construct cannot be annotated with type-use annotations: {0}
2726 
2727 # 0: type, 1: type
2728 compiler.err.incorrect.receiver.name=\
2729     the receiver name does not match the enclosing class type\n\
2730     required: {0}\n\
2731     found: {1}
2732 
2733 # 0: type, 1: type
2734 compiler.err.incorrect.receiver.type=\
2735     the receiver type does not match the enclosing class type\n\
2736     required: {0}\n\
2737     found: {1}
2738 
2739 # 0: type, 1: type
2740 compiler.err.incorrect.constructor.receiver.type=\
2741     the receiver type does not match the enclosing outer class type\n\
2742     required: {0}\n\
2743     found: {1}
2744 
2745 # 0: type, 1: type
2746 compiler.err.incorrect.constructor.receiver.name=\
2747     the receiver name does not match the enclosing outer class type\n\
2748     required: {0}\n\
2749     found: {1}
2750 
2751 compiler.err.no.annotations.on.dot.class=\
2752     no annotations are allowed in the type of a class literal
2753 
2754 ########################################
2755 # Diagnostics for verbose resolution
2756 # used by Resolve (debug only)
2757 ########################################
2758 
2759 # 0: number, 1: symbol, 2: unused
2760 compiler.misc.applicable.method.found=\
2761     #{0} applicable method found: {1}
2762 
2763 # 0: number, 1: symbol, 2: message segment
2764 compiler.misc.applicable.method.found.1=\
2765     #{0} applicable method found: {1}\n\
2766     ({2})
2767 
2768 # 0: number, 1: symbol, 2: message segment
2769 compiler.misc.not.applicable.method.found=\
2770     #{0} not applicable method found: {1}\n\
2771     ({2})
2772 
2773 # 0: type
2774 compiler.misc.partial.inst.sig=\
2775     partially instantiated to: {0}
2776 
2777 # 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
2778 compiler.note.verbose.resolve.multi=\
2779     resolving method {0} in type {1} to candidate {2}\n\
2780     phase: {3}\n\
2781     with actuals: {4}\n\
2782     with type-args: {5}\n\
2783     candidates:
2784 
2785 # 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
2786 compiler.note.verbose.resolve.multi.1=\
2787     erroneous resolution for method {0} in type {1}\n\
2788     phase: {3}\n\
2789     with actuals: {4}\n\
2790     with type-args: {5}\n\
2791     candidates:
2792 
2793 # 0: symbol, 1: type, 2: type
2794 compiler.note.deferred.method.inst=\
2795     Deferred instantiation of method {0}\n\
2796     instantiated signature: {1}\n\
2797     target-type: {2}
2798 
2799 ########################################
2800 # Diagnostics for where clause implementation
2801 # used by the RichDiagnosticFormatter.
2802 ########################################
2803 
2804 compiler.misc.type.null=\
2805     <null>
2806 
2807 # X#n (where n is an int id) is disambiguated tvar name
2808 # 0: name, 1: number
2809 compiler.misc.type.var=\
2810     {0}#{1}
2811 
2812 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
2813 # 0: number
2814 compiler.misc.captured.type=\
2815     CAP#{0}
2816 
2817 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2818 # 0: number
2819 compiler.misc.intersection.type=\
2820     INT#{0}
2821 
2822 # where clause for captured type: contains upper ('extends {1}') and lower
2823 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
2824 # 0: type, 1: type, 2: type, 3: type
2825 compiler.misc.where.captured=\
2826     {0} extends {1} super: {2} from capture of {3}
2827 
2828 # compact where clause for captured type: contains upper ('extends {1}') along
2829 # with the wildcard that generated this captured type ({3})
2830 # 0: type, 1: type, 2: unused, 3: type
2831 compiler.misc.where.captured.1=\
2832     {0} extends {1} from capture of {3}
2833 
2834 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
2835 # the kindname ({2}) and location ({3}) in which the typevar has been declared
2836 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2837 compiler.misc.where.typevar=\
2838     {0} extends {1} declared in {2} {3}
2839 
2840 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
2841 # in which the typevar has been declared
2842 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2843 compiler.misc.where.typevar.1=\
2844     {0} declared in {2} {3}
2845 
2846 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2847 # Since a fresh type-variable is synthetic - there's no location/kindname here.
2848 # 0: type, 1: list of type
2849 compiler.misc.where.fresh.typevar=\
2850     {0} extends {1}
2851 
2852 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
2853 # of this intersection type
2854 # 0: type, 1: list of type
2855 compiler.misc.where.intersection=\
2856     {0} extends {1}
2857 
2858 ### Where clause headers ###
2859 compiler.misc.where.description.captured=\
2860     where {0} is a fresh type-variable:
2861 
2862 # 0: set of type
2863 compiler.misc.where.description.typevar=\
2864     where {0} is a type-variable:
2865 
2866 # 0: set of type
2867 compiler.misc.where.description.intersection=\
2868     where {0} is an intersection type:
2869 
2870 # 0: set of type
2871 compiler.misc.where.description.captured.1=\
2872     where {0} are fresh type-variables:
2873 
2874 # 0: set of type
2875 compiler.misc.where.description.typevar.1=\
2876     where {0} are type-variables:
2877 
2878 # 0: set of type
2879 compiler.misc.where.description.intersection.1=\
2880     where {0} are intersection types:
2881 
2882 ###
2883 # errors related to doc comments
2884 
2885 compiler.err.dc.bad.entity=\
2886     bad HTML entity
2887 
2888 compiler.err.dc.bad.gt=\
2889     bad use of ''>''
2890 
2891 compiler.err.dc.bad.inline.tag=\
2892     incorrect use of inline tag
2893 
2894 compiler.err.dc.identifier.expected=\
2895     identifier expected
2896 
2897 compiler.err.dc.malformed.html=\
2898     malformed HTML
2899 
2900 compiler.err.dc.missing.semicolon=\
2901     semicolon missing
2902 
2903 compiler.err.dc.no.content=\
2904     no content
2905 
2906 compiler.err.dc.no.tag.name=\
2907     no tag name after '@'
2908 
2909 compiler.err.dc.gt.expected=\
2910     ''>'' expected
2911 
2912 compiler.err.dc.ref.bad.parens=\
2913     '')'' missing in reference
2914 
2915 compiler.err.dc.ref.syntax.error=\
2916     syntax error in reference
2917 
2918 compiler.err.dc.ref.unexpected.input=\
2919     unexpected text
2920 
2921 compiler.err.dc.unexpected.content=\
2922     unexpected content
2923 
2924 compiler.err.dc.unterminated.inline.tag=\
2925     unterminated inline tag
2926 
2927 compiler.err.dc.unterminated.signature=\
2928     unterminated signature
2929 
2930 compiler.err.dc.unterminated.string=\
2931     unterminated string
2932 
2933 ###
2934 # errors related to modules
2935 
2936 compiler.err.expected.module=\
2937     expected ''module''
2938 
2939 # 0: symbol
2940 compiler.err.module.not.found=\
2941     module not found: {0}
2942 
2943 # 0: symbol
2944 compiler.warn.module.not.found=\
2945     module not found: {0}
2946 
2947 compiler.err.too.many.modules=\
2948     too many module declarations found
2949 
2950 compiler.err.module.not.found.on.module.source.path=\
2951     module not found on module source path
2952 
2953 compiler.err.not.in.module.on.module.source.path=\
2954     not in a module on the module source path
2955 
2956 # 0: symbol
2957 compiler.err.duplicate.module=\
2958     duplicate module: {0}
2959 
2960 # 0: symbol
2961 compiler.err.duplicate.requires=\
2962     duplicate requires: {0}
2963 
2964 # 0: symbol
2965 compiler.err.conflicting.exports=\
2966     duplicate or conflicting exports: {0}
2967 
2968 # 0: symbol
2969 compiler.err.conflicting.opens=\
2970     duplicate or conflicting opens: {0}
2971 
2972 # 0: symbol
2973 compiler.err.conflicting.exports.to.module=\
2974     duplicate or conflicting exports to module: {0}
2975 
2976 # 0: symbol
2977 compiler.err.conflicting.opens.to.module=\
2978     duplicate or conflicting opens to module: {0}
2979 
2980 compiler.err.no.opens.unless.strong=\
2981     ''opens'' only allowed in strong modules
2982 
2983 # 0: symbol
2984 compiler.err.repeated.provides.for.service=\
2985     multiple ''provides'' for service {0}
2986 
2987 # 0: symbol, 1: symbol
2988 compiler.err.duplicate.provides=\
2989     duplicate provides: service {0}, implementation {1}
2990 
2991 # 0: symbol
2992 compiler.err.duplicate.uses=\
2993     duplicate uses: {0}
2994 
2995 # 0: symbol
2996 compiler.err.service.implementation.is.abstract=\
2997     the service implementation is an abstract class: {0}
2998 
2999 compiler.err.service.implementation.must.be.subtype.of.service.interface=\
3000     the service implementation type must be a subtype of the service interface type, or \
3001     have a public static no-args method named "provider" returning the service implementation
3002 
3003 compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface=\
3004     the "provider" method return type must be a subtype of the service interface type
3005 
3006 # 0: symbol
3007 compiler.err.service.implementation.is.inner=\
3008     the service implementation is an inner class: {0}
3009 
3010 # 0: symbol
3011 compiler.err.service.definition.is.enum=\
3012     the service definition is an enum: {0}
3013 
3014 # 0: symbol
3015 compiler.err.service.implementation.doesnt.have.a.no.args.constructor=\
3016     the service implementation does not have a default constructor: {0}
3017 
3018 # 0: symbol
3019 compiler.err.service.implementation.no.args.constructor.not.public=\
3020     the no arguments constructor of the service implementation is not public: {0}
3021 
3022 # 0: symbol
3023 compiler.err.package.empty.or.not.found=\
3024     package is empty or does not exist: {0}
3025 
3026 # 0: symbol
3027 compiler.warn.package.empty.or.not.found=\
3028     package is empty or does not exist: {0}
3029 
3030 compiler.err.no.output.dir=\
3031     no class output directory specified
3032 
3033 compiler.err.unnamed.pkg.not.allowed.named.modules=\
3034     unnamed package is not allowed in named modules
3035 
3036 # 0: name, 1: name
3037 compiler.err.module.name.mismatch=\
3038     module name {0} does not match expected name {1}
3039 
3040 # 0: name, 1: name
3041 compiler.misc.module.name.mismatch=\
3042     module name {0} does not match expected name {1}
3043 
3044 # 0: name
3045 compiler.err.module.non.zero.opens=\
3046     open module {0} has non-zero opens_count
3047 
3048 # 0: name
3049 compiler.misc.module.non.zero.opens=\
3050     open module {0} has non-zero opens_count
3051 
3052 compiler.err.module.decl.sb.in.module-info.java=\
3053     module declarations should be in a file named module-info.java
3054 
3055 # 0: set of string
3056 compiler.err.too.many.patched.modules=\
3057     too many patched modules ({0}), use --module-source-path
3058 
3059 # 0: name, 1: name
3060 compiler.err.file.patched.and.msp=\
3061     file accessible from both --patch-module and --module-source-path, \
3062     but belongs to a different module on each path: {0}, {1}
3063 
3064 compiler.err.processorpath.no.processormodulepath=\
3065     illegal combination of -processorpath and --processor-module-path
3066 
3067 # 0: symbol
3068 compiler.err.package.in.other.module=\
3069     package exists in another module: {0}
3070 
3071 # 0: symbol, 1: name, 2: symbol, 3: symbol
3072 compiler.err.package.clash.from.requires=\
3073     module {0} reads package {1} from both {2} and {3}
3074 
3075 # 0: name, 1: symbol, 2: symbol
3076 compiler.err.package.clash.from.requires.in.unnamed=\
3077     the unnamed module reads package {0} from both {1} and {2}
3078 
3079 # 0: string
3080 compiler.err.module.not.found.in.module.source.path=\
3081     module {0} not found in module source path
3082 
3083 compiler.err.output.dir.must.be.specified.with.dash.m.option=\
3084     class output directory must be specified if -m option is used
3085 
3086 compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=\
3087     module source path must be specified if -m option is used
3088 
3089 # 0: symbol
3090 compiler.err.service.implementation.not.in.right.module=\
3091     service implementation must be defined in the same module as the provides directive
3092 
3093 # 0: symbol
3094 compiler.err.cyclic.requires=\
3095     cyclic dependence involving {0}
3096 
3097 # 0: fragment, 1: name
3098 compiler.err.duplicate.module.on.path=\
3099     duplicate module on {0}\nmodule in {1}
3100 
3101 # 0: option name, 1: string
3102 compiler.warn.bad.name.for.option=\
3103     bad name in value for {0} option: ''{1}''
3104 
3105 # 0: option name, 1: string
3106 compiler.err.bad.name.for.option=\
3107     bad name in value for {0} option: ''{1}''
3108 
3109 # 0: option name, 1: symbol
3110 compiler.warn.module.for.option.not.found=\
3111     module name in {0} option not found: {1}
3112 
3113 compiler.err.addmods.all.module.path.invalid=\
3114     --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module
3115 
3116 # 0: symbol
3117 compiler.err.add.exports.with.release=\
3118     exporting a package from system module {0} is not allowed with --release
3119 
3120 # 0: symbol
3121 compiler.err.add.reads.with.release=\
3122     adding read edges for system module {0} is not allowed with --release
3123 
3124 compiler.warn.addopens.ignored=\
3125     --add-opens has no effect at compile time
3126 
3127 compiler.misc.locn.module_source_path=\
3128     module source path
3129 
3130 compiler.misc.locn.upgrade_module_path=\
3131     upgrade module path
3132 
3133 compiler.misc.locn.system_modules=\
3134     system modules
3135 
3136 compiler.misc.locn.module_path=\
3137     application module path
3138 
3139 compiler.misc.cant.resolve.modules=\
3140     cannot resolve modules
3141 
3142 # 0: string
3143 compiler.err.invalid.module.specifier=\
3144     module specifier not allowed: {0}
3145 
3146 # 0: symbol
3147 compiler.warn.service.provided.but.not.exported.or.used=\
3148     service interface provided but not exported or used
3149 
3150 # 0: kind name, 1: symbol, 2: symbol
3151 compiler.warn.leaks.not.accessible=\
3152     {0} {1} in module {2} is not accessible to clients that require this module
3153 # 0: kind name, 1: symbol, 2: symbol
3154 compiler.warn.leaks.not.accessible.unexported=\
3155     {0} {1} in module {2} is not exported
3156 # 0: kind name, 1: symbol, 2: symbol
3157 compiler.warn.leaks.not.accessible.not.required.transitive=\
3158     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3159 # 0: kind name, 1: symbol, 2: symbol
3160 compiler.warn.leaks.not.accessible.unexported.qualified=\
3161     {0} {1} in module {2} may not be visible to all clients that require this module
3162 
3163 ###
3164 # errors related to options
3165 
3166 # 0: string, 1: string
3167 compiler.err.illegal.argument.for.option=\
3168     illegal argument for {0}: {1}