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