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