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