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