langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
changeset 45504 ea7475564d07
parent 45500 365640343c55
child 45744 db6aedca2c8c
equal deleted inserted replaced
45503:d23ae2d67a5d 45504:ea7475564d07
    26 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
    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
    27 # are preceded by a stylized comment describing the type of the corresponding
    28 # values.
    28 # values.
    29 # The simple types currently in use are:
    29 # The simple types currently in use are:
    30 #
    30 #
       
    31 # annotation        annotation compound
    31 # boolean           true or false
    32 # boolean           true or false
    32 # diagnostic        a sub-message; see compiler.misc.*
    33 # diagnostic        a sub-message; see compiler.misc.*
    33 # fragment          similar to 'message segment', but with more specific type
    34 # fragment          similar to 'message segment', but with more specific type
    34 # modifier          a Java modifier; e.g. public, private, protected
    35 # modifier          a Java modifier; e.g. public, private, protected
    35 # file              a file URL
    36 # file              a file URL
    36 # file object       a file URL - similar to 'file' but typically used for source/class files, hence more specific
    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
    37 # name              a name, typically a Java identifier
    39 # name              a name, typically a Java identifier
    38 # number            an integer
    40 # number            an integer
    39 # option name       the name of a command line option
    41 # option name       the name of a command line option
    40 # source version    a source version number, such as 1.5, 1.6, 1.7
    42 # source version    a source version number, such as 1.5, 1.6, 1.7
    41 # string            a general string
    43 # string            a general string
    47 # object            a Java object (unspecified)
    49 # object            a Java object (unspecified)
    48 # unused            the value is not used in this message
    50 # unused            the value is not used in this message
    49 #
    51 #
    50 # The following compound types are also used:
    52 # The following compound types are also used:
    51 #
    53 #
       
    54 # collection of X   a comma-separated collection of items; e.g. collection of type
    52 # list of X         a comma-separated list of items; e.g. list of type
    55 # list of X         a comma-separated list of items; e.g. list of type
    53 # set of X          a comma-separated collection of items; e.g. set of modifier
    56 # set of X          a comma-separated set of items; e.g. set of modifier
    54 #
    57 #
    55 # These may be composed:
    58 # These may be composed:
    56 #
    59 #
    57 # list of type or message segment
    60 # list of type or message segment
    58 #
    61 #
    59 # The following type aliases are supported:
    62 # The following type aliases are supported:
    60 #
    63 #
    61 # message segment --> diagnostic or fragment
    64 # message segment --> diagnostic or fragment
    62 # file name --> file or file object
    65 # file name --> file, path or file object
    63 #
    66 #
    64 # Custom comments are supported in parenthesis i.e.
    67 # Custom comments are supported in parenthesis i.e.
    65 #
    68 #
    66 # number (classfile major version)
    69 # number (classfile major version)
    67 #
    70 #
    83     {0} is abstract; cannot be instantiated
    86     {0} is abstract; cannot be instantiated
    84 
    87 
    85 compiler.err.abstract.meth.cant.have.body=\
    88 compiler.err.abstract.meth.cant.have.body=\
    86     abstract methods cannot have a body
    89     abstract methods cannot have a body
    87 
    90 
       
    91 # 0: kind name, 1: symbol
    88 compiler.err.already.annotated=\
    92 compiler.err.already.annotated=\
    89     {0} {1} has already been annotated
    93     {0} {1} has already been annotated
    90 
    94 
    91 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol
    95 # 0: kind name, 1: symbol, 2: kind name, 3: symbol
    92 compiler.err.already.defined=\
    96 compiler.err.already.defined=\
    93     {0} {1} is already defined in {2} {3}
    97     {0} {1} is already defined in {2} {3}
    94 
    98 
    95 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol
    99 # 0: kind name, 1: symbol, 2: kind name, 3: kind name, 4: symbol
    96 compiler.err.already.defined.in.clinit=\
   100 compiler.err.already.defined.in.clinit=\
    97     {0} {1} is already defined in {2} of {3} {4}
   101     {0} {1} is already defined in {2} of {3} {4}
    98 
   102 
    99 # 0: string
   103 # 0: symbol
   100 compiler.err.already.defined.single.import=\
   104 compiler.err.already.defined.single.import=\
   101     a type with the same simple name is already defined by the single-type-import of {0}
   105     a type with the same simple name is already defined by the single-type-import of {0}
   102 
   106 
   103 # 0: string
   107 # 0: symbol
   104 compiler.err.already.defined.static.single.import=\
   108 compiler.err.already.defined.static.single.import=\
   105     a type with the same simple name is already defined by the static single-type-import of {0}
   109     a type with the same simple name is already defined by the static single-type-import of {0}
   106 
   110 
       
   111 # 0: symbol
   107 compiler.err.already.defined.this.unit=\
   112 compiler.err.already.defined.this.unit=\
   108     {0} is already defined in this compilation unit
   113     {0} is already defined in this compilation unit
   109 
   114 
   110 # 0: type, 1: list of name
   115 # 0: type, 1: list of name
   111 compiler.err.annotation.missing.default.value=\
   116 compiler.err.annotation.missing.default.value=\
   195 
   200 
   196 # 0: symbol kind, 1: name, 2: list of type
   201 # 0: symbol kind, 1: name, 2: list of type
   197 compiler.misc.cant.apply.symbols=\
   202 compiler.misc.cant.apply.symbols=\
   198     no suitable {0} found for {1}({2})
   203     no suitable {0} found for {1}({2})
   199 
   204 
   200 # 0: symbol kind, 1: symbol
   205 # 0: kind name, 1: symbol
   201 compiler.misc.no.abstracts=\
   206 compiler.misc.no.abstracts=\
   202     no abstract method found in {0} {1}
   207     no abstract method found in {0} {1}
   203 
   208 
   204 # 0: symbol kind, 1: symbol
   209 # 0: kind name, 1: symbol
   205 compiler.misc.incompatible.abstracts=\
   210 compiler.misc.incompatible.abstracts=\
   206     multiple non-overriding abstract methods found in {0} {1}
   211     multiple non-overriding abstract methods found in {0} {1}
   207 
   212 
   208 compiler.err.bad.functional.intf.anno=\
   213 compiler.err.bad.functional.intf.anno=\
   209     Unexpected @FunctionalInterface annotation
   214     Unexpected @FunctionalInterface annotation
   225 # 0: symbol, 1: message segment
   230 # 0: symbol, 1: message segment
   226 compiler.misc.not.a.functional.intf.1=\
   231 compiler.misc.not.a.functional.intf.1=\
   227     {0} is not a functional interface\n\
   232     {0} is not a functional interface\n\
   228     {1}
   233     {1}
   229 
   234 
   230 # 0: symbol, 1: symbol kind, 2: symbol
   235 # 0: type, 1: kind name, 2: symbol
   231 compiler.misc.invalid.generic.lambda.target=\
   236 compiler.misc.invalid.generic.lambda.target=\
   232     invalid functional descriptor for lambda expression\n\
   237     invalid functional descriptor for lambda expression\n\
   233     method {0} in {1} {2} is generic
   238     method {0} in {1} {2} is generic
   234 
   239 
   235 # 0: symbol kind, 1: symbol
   240 # 0: kind name, 1: symbol
   236 compiler.misc.incompatible.descs.in.functional.intf=\
   241 compiler.misc.incompatible.descs.in.functional.intf=\
   237     incompatible function descriptors found in {0} {1}
   242     incompatible function descriptors found in {0} {1}
   238 
   243 
   239 # 0: name, 1: list of type, 2: type, 3: list of type
   244 # 0: name, 1: list of type, 2: type, 3: list of type
   240 compiler.misc.descriptor=\
   245 compiler.misc.descriptor=\
   255 
   260 
   256 # 0: symbol or type
   261 # 0: symbol or type
   257 compiler.misc.not.an.intf.component=\
   262 compiler.misc.not.an.intf.component=\
   258     component type {0} is not an interface
   263     component type {0} is not an interface
   259 
   264 
   260 # 0: symbol kind, 1: message segment
   265 # 0: kind name, 1: message segment
   261 compiler.err.invalid.mref=\
   266 compiler.err.invalid.mref=\
   262     invalid {0} reference\n\
   267     invalid {0} reference\n\
   263     {1}
   268     {1}
   264 
   269 
   265 # 0: symbol kind, 1: message segment
   270 # 0: symbol kind, 1: message segment
   305 
   310 
   306 # 0: symbol
   311 # 0: symbol
   307 compiler.err.cant.inherit.from.final=\
   312 compiler.err.cant.inherit.from.final=\
   308     cannot inherit from final {0}
   313     cannot inherit from final {0}
   309 
   314 
   310 # 0: symbol
   315 # 0: symbol or string
   311 compiler.err.cant.ref.before.ctor.called=\
   316 compiler.err.cant.ref.before.ctor.called=\
   312     cannot reference {0} before supertype constructor has been called
   317     cannot reference {0} before supertype constructor has been called
   313 
   318 
   314 compiler.err.cant.select.static.class.from.param.type=\
   319 compiler.err.cant.select.static.class.from.param.type=\
   315     cannot select a static class from a parameterized type
   320     cannot select a static class from a parameterized type
   319     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   324     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   320 
   325 
   321 compiler.err.catch.without.try=\
   326 compiler.err.catch.without.try=\
   322     ''catch'' without ''try''
   327     ''catch'' without ''try''
   323 
   328 
   324 # 0: symbol kind, 1: symbol
   329 # 0: kind name, 1: symbol
   325 compiler.err.clash.with.pkg.of.same.name=\
   330 compiler.err.clash.with.pkg.of.same.name=\
   326     {0} {1} clashes with package of same name
   331     {0} {1} clashes with package of same name
   327 
   332 
   328 compiler.err.class.not.allowed=\
   333 compiler.err.class.not.allowed=\
   329     class, interface or enum declaration not allowed here
   334     class, interface or enum declaration not allowed here
   332     constant expression required
   337     constant expression required
   333 
   338 
   334 compiler.err.cont.outside.loop=\
   339 compiler.err.cont.outside.loop=\
   335     continue outside of loop
   340     continue outside of loop
   336 
   341 
   337 # 0: symbol
   342 # 0: symbol or type
   338 compiler.err.cyclic.inheritance=\
   343 compiler.err.cyclic.inheritance=\
   339     cyclic inheritance involving {0}
   344     cyclic inheritance involving {0}
   340 
   345 
   341 # 0: symbol
   346 # 0: symbol
   342 compiler.err.cyclic.annotation.element=\
   347 compiler.err.cyclic.annotation.element=\
   343     type of element {0} is cyclic
   348     type of element {0} is cyclic
   344 
   349 
   345 # 0: unused
   350 # 0: symbol
   346 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   351 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   347     call to super not allowed in enum constructor
   352     call to super not allowed in enum constructor
   348 
   353 
   349 # 0: type
   354 # 0: type
   350 compiler.err.no.superclass=\
   355 compiler.err.no.superclass=\
   351     {0} has no superclass.
   356     {0} has no superclass.
   352 
   357 
   353 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
   358 # 0: symbol, 1: type, 2: symbol, 3: type, 4: type
   354 compiler.err.concrete.inheritance.conflict=\
   359 compiler.err.concrete.inheritance.conflict=\
   355     methods {0} from {1} and {2} from {3} are inherited with the same signature
   360     methods {0} from {1} and {2} from {3} are inherited with the same signature
   356 
   361 
   357 compiler.err.default.allowed.in.intf.annotation.member=\
   362 compiler.err.default.allowed.in.intf.annotation.member=\
   358     default value only allowed in an annotation type declaration
   363     default value only allowed in an annotation type declaration
   367 
   372 
   368 # 0: name, 1: type
   373 # 0: name, 1: type
   369 compiler.err.duplicate.annotation.member.value=\
   374 compiler.err.duplicate.annotation.member.value=\
   370     duplicate element ''{0}'' in annotation @{1}.
   375     duplicate element ''{0}'' in annotation @{1}.
   371 
   376 
   372 # 0: name, 1: unused
   377 # 0: type
   373 compiler.err.duplicate.annotation.missing.container=\
   378 compiler.err.duplicate.annotation.missing.container=\
   374     {0} is not a repeatable annotation type
   379     {0} is not a repeatable annotation type
   375 
   380 
   376 # 0: type, 1: unused
   381 # 0: symbol
   377 compiler.err.invalid.repeatable.annotation=\
   382 compiler.err.invalid.repeatable.annotation=\
   378     duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
   383     duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
   379 
   384 
   380 # 0: symbol or type
   385 # 0: symbol or type
   381 compiler.err.invalid.repeatable.annotation.no.value=\
   386 compiler.err.invalid.repeatable.annotation.no.value=\
   387 
   392 
   388 # 0: type
   393 # 0: type
   389 compiler.err.invalid.repeatable.annotation.invalid.value=\
   394 compiler.err.invalid.repeatable.annotation.invalid.value=\
   390     {0} is not a valid @Repeatable: invalid value element
   395     {0} is not a valid @Repeatable: invalid value element
   391 
   396 
   392 # 0: symbol or type, 1: unused, 2: type
   397 # 0: symbol or type, 1: type, 2: type
   393 compiler.err.invalid.repeatable.annotation.value.return=\
   398 compiler.err.invalid.repeatable.annotation.value.return=\
   394     containing annotation type ({0}) must declare an element named ''value'' of type {2}
   399     containing annotation type ({0}) must declare an element named ''value'' of type {2}
   395 
   400 
   396 # 0: symbol or type, 1: symbol
   401 # 0: symbol or type, 1: symbol
   397 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
   402 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
   398     containing annotation type ({0}) does not have a default value for element {1}
   403     containing annotation type ({0}) does not have a default value for element {1}
   399 
   404 
   400 # 0: symbol, 1: unused, 2: symbol, 3: unused
   405 # 0: symbol, 1: string, 2: symbol, 3: string
   401 compiler.err.invalid.repeatable.annotation.retention=\
   406 compiler.err.invalid.repeatable.annotation.retention=\
   402     retention of containing annotation type ({0}) is shorter than the retention of repeatable annotation type ({2})
   407     retention of containing annotation type ({0}) is shorter than the retention of repeatable annotation type ({2})
   403 
   408 
   404 # 0: symbol, 1: symbol
   409 # 0: symbol, 1: symbol
   405 compiler.err.invalid.repeatable.annotation.not.documented=\
   410 compiler.err.invalid.repeatable.annotation.not.documented=\
   524 
   529 
   525 # 0: string, 1: string
   530 # 0: string, 1: string
   526 compiler.err.illegal.char.for.encoding=\
   531 compiler.err.illegal.char.for.encoding=\
   527     unmappable character (0x{0}) for encoding {1}
   532     unmappable character (0x{0}) for encoding {1}
   528 
   533 
   529 # 0: set of modifier, 1: set of modifier
   534 # 0: set of flag, 1: set of flag
   530 compiler.err.illegal.combination.of.modifiers=\
   535 compiler.err.illegal.combination.of.modifiers=\
   531     illegal combination of modifiers: {0} and {1}
   536     illegal combination of modifiers: {0} and {1}
   532 
   537 
   533 compiler.err.illegal.enum.static.ref=\
   538 compiler.err.illegal.enum.static.ref=\
   534     illegal reference to static field from initializer
   539     illegal reference to static field from initializer
   537     illegal escape character
   542     illegal escape character
   538 
   543 
   539 compiler.err.illegal.forward.ref=\
   544 compiler.err.illegal.forward.ref=\
   540     illegal forward reference
   545     illegal forward reference
   541 
   546 
   542 # 0: symbol, 1: string
   547 # 0: symbol, 1: object
   543 compiler.err.not.in.profile=\
   548 compiler.err.not.in.profile=\
   544     {0} is not available in profile ''{1}''
   549     {0} is not available in profile ''{1}''
   545 
   550 
   546 # 0: symbol
   551 # 0: symbol
   547 compiler.warn.forward.ref=\
   552 compiler.warn.forward.ref=\
   625     interface expected here
   630     interface expected here
   626 
   631 
   627 compiler.err.intf.meth.cant.have.body=\
   632 compiler.err.intf.meth.cant.have.body=\
   628     interface abstract methods cannot have body
   633     interface abstract methods cannot have body
   629 
   634 
   630 # 0: symbol
       
   631 compiler.err.invalid.annotation.member.type=\
   635 compiler.err.invalid.annotation.member.type=\
   632     invalid type for element {0} of annotation type
   636     invalid type for annotation type element
   633 
   637 
   634 compiler.err.invalid.binary.number=\
   638 compiler.err.invalid.binary.number=\
   635     binary numbers must contain at least one binary digit
   639     binary numbers must contain at least one binary digit
   636 
   640 
   637 compiler.err.invalid.hex.number=\
   641 compiler.err.invalid.hex.number=\
   705     code requires too much stack
   709     code requires too much stack
   706 
   710 
   707 compiler.err.limit.string=\
   711 compiler.err.limit.string=\
   708     constant string too long
   712     constant string too long
   709 
   713 
       
   714 # 0: string
   710 compiler.err.limit.string.overflow=\
   715 compiler.err.limit.string.overflow=\
   711     UTF8 representation for string \"{0}...\" is too long for the constant pool
   716     UTF8 representation for string \"{0}...\" is too long for the constant pool
   712 
   717 
   713 compiler.err.malformed.fp.lit=\
   718 compiler.err.malformed.fp.lit=\
   714     malformed floating point literal
   719     malformed floating point literal
   720     missing method body, or declare abstract
   725     missing method body, or declare abstract
   721 
   726 
   722 compiler.err.missing.ret.stmt=\
   727 compiler.err.missing.ret.stmt=\
   723     missing return statement
   728     missing return statement
   724 
   729 
   725 # 0: unused
   730 # 0: type
   726 compiler.misc.missing.ret.val=\
   731 compiler.misc.missing.ret.val=\
   727     missing return value
   732     missing return value
   728 
   733 
   729 compiler.misc.unexpected.ret.val=\
   734 compiler.misc.unexpected.ret.val=\
   730     unexpected return value
   735     unexpected return value
   731 
   736 
   732 # 0: set of modifier
   737 # 0: set of flag
   733 compiler.err.mod.not.allowed.here=\
   738 compiler.err.mod.not.allowed.here=\
   734     modifier {0} not allowed here
   739     modifier {0} not allowed here
   735 
   740 
   736 compiler.err.intf.not.allowed.here=\
   741 compiler.err.intf.not.allowed.here=\
   737     interface not allowed here
   742     interface not allowed here
   776     {0}
   781     {0}
   777 
   782 
   778 compiler.misc.conditional.target.cant.be.void=\
   783 compiler.misc.conditional.target.cant.be.void=\
   779     target-type for conditional expression cannot be void
   784     target-type for conditional expression cannot be void
   780 
   785 
   781 # 0: type
   786 # 0: message segment
   782 compiler.misc.incompatible.ret.type.in.lambda=\
   787 compiler.misc.incompatible.ret.type.in.lambda=\
   783     bad return type in lambda expression\n\
   788     bad return type in lambda expression\n\
   784     {0}
   789     {0}
   785 
   790 
   786 compiler.misc.stat.expr.expected=\
   791 compiler.misc.stat.expr.expected=\
   787     lambda body is not compatible with a void functional interface\n\
   792     lambda body is not compatible with a void functional interface\n\
   788     (consider using a block lambda body, or use a statement expression instead)
   793     (consider using a block lambda body, or use a statement expression instead)
   789 
   794 
   790 # 0: type
   795 # 0: message segment
   791 compiler.misc.incompatible.ret.type.in.mref=\
   796 compiler.misc.incompatible.ret.type.in.mref=\
   792     bad return type in method reference\n\
   797     bad return type in method reference\n\
   793     {0}
   798     {0}
   794 
   799 
   795 compiler.err.lambda.body.neither.value.nor.void.compatible=\
   800 compiler.err.lambda.body.neither.value.nor.void.compatible=\
   806     incompatible parameter types in method reference
   811     incompatible parameter types in method reference
   807 
   812 
   808 compiler.err.new.not.allowed.in.annotation=\
   813 compiler.err.new.not.allowed.in.annotation=\
   809     ''new'' not allowed in an annotation
   814     ''new'' not allowed in an annotation
   810 
   815 
       
   816 # 0: name, 1: type
   811 compiler.err.no.annotation.member=\
   817 compiler.err.no.annotation.member=\
   812     no annotation member {0} in {1}
   818     no annotation member {0} in {1}
   813 
   819 
       
   820 # 0: symbol
   814 compiler.err.no.encl.instance.of.type.in.scope=\
   821 compiler.err.no.encl.instance.of.type.in.scope=\
   815     no enclosing instance of type {0} is in scope
   822     no enclosing instance of type {0} is in scope
   816 
   823 
   817 compiler.err.no.intf.expected.here=\
   824 compiler.err.no.intf.expected.here=\
   818     no interface expected here
   825     no interface expected here
   819 
   826 
   820 compiler.err.no.match.entry=\
   827 compiler.err.no.match.entry=\
   821     {0} has no match in entry in {1}; required {2}
   828     {0} has no match in entry in {1}; required {2}
   822 
   829 
       
   830 # 0: type
   823 compiler.err.not.annotation.type=\
   831 compiler.err.not.annotation.type=\
   824     {0} is not an annotation type
   832     {0} is not an annotation type
   825 
   833 
   826 # 0: symbol, 1: symbol, 2: message segment
   834 # 0: symbol, 1: symbol, 2: message segment
   827 compiler.err.not.def.access.package.cant.access=\
   835 compiler.err.not.def.access.package.cant.access=\
   956 compiler.err.warnings.and.werror=\
   964 compiler.err.warnings.and.werror=\
   957     warnings found and -Werror specified
   965     warnings found and -Werror specified
   958 
   966 
   959 # Errors related to annotation processing
   967 # Errors related to annotation processing
   960 
   968 
   961 # 0: symbol, 1: string, 2: string (stack-trace)
   969 # 0: symbol, 1: message segment, 2: string (stack-trace)
   962 compiler.err.proc.cant.access=\
   970 compiler.err.proc.cant.access=\
   963     cannot access {0}\n\
   971     cannot access {0}\n\
   964     {1}\n\
   972     {1}\n\
   965     Consult the following stack trace for details.\n\
   973     Consult the following stack trace for details.\n\
   966     {2}
   974     {2}
   967 
   975 
   968 # 0: symbol, 1: string
   976 # 0: symbol, 1: message segment
   969 compiler.err.proc.cant.access.1=\
   977 compiler.err.proc.cant.access.1=\
   970     cannot access {0}\n\
   978     cannot access {0}\n\
   971     {1}
   979     {1}
   972 
   980 
   973 # 0: string
   981 # 0: string
   977 # Print a client-generated error message; assumed to be localized, no translation required
   985 # Print a client-generated error message; assumed to be localized, no translation required
   978 # 0: string
   986 # 0: string
   979 compiler.err.proc.messager=\
   987 compiler.err.proc.messager=\
   980     {0}
   988     {0}
   981 
   989 
   982 # 0: list of string
   990 # 0: string
       
   991 compiler.misc.exception.message=\
       
   992     {0}
       
   993 
       
   994 compiler.misc.user.selected.completion.failure=\
       
   995     user-selected completion failure by class name
       
   996 
       
   997 # 0: collection of string
   983 compiler.err.proc.no.explicit.annotation.processing.requested=\
   998 compiler.err.proc.no.explicit.annotation.processing.requested=\
   984     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   999     Class names, ''{0}'', are only accepted if annotation processing is explicitly requested
   985 
  1000 
   986 compiler.err.proc.no.service=\
  1001 compiler.err.proc.no.service=\
   987     A ServiceLoader was not usable and is required for annotation processing.
  1002     A ServiceLoader was not usable and is required for annotation processing.
   988 
  1003 
       
  1004 # 0: string, 1: string
   989 compiler.err.proc.processor.bad.option.name=\
  1005 compiler.err.proc.processor.bad.option.name=\
   990     Bad option name ''{0}'' provided by processor ''{1}''
  1006     Bad option name ''{0}'' provided by processor ''{1}''
   991 
  1007 
   992 # 0: string
  1008 # 0: string
   993 compiler.err.proc.processor.cant.instantiate=\
  1009 compiler.err.proc.processor.cant.instantiate=\
  1002     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
  1018     Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor
  1003 
  1019 
  1004 compiler.err.proc.service.problem=\
  1020 compiler.err.proc.service.problem=\
  1005     Error creating a service loader to load Processors.
  1021     Error creating a service loader to load Processors.
  1006 
  1022 
       
  1023 # 0: string
  1007 compiler.err.proc.bad.config.file=\
  1024 compiler.err.proc.bad.config.file=\
  1008     Bad service configuration file, or exception thrown while constructing Processor object: {0}
  1025     Bad service configuration file, or exception thrown while constructing Processor object: {0}
  1009 
  1026 
  1010 compiler.err.proc.cant.create.loader=\
  1027 compiler.err.proc.cant.create.loader=\
  1011     Could not create class loader for annotation processors: {0}
  1028     Could not create class loader for annotation processors: {0}
  1012 
  1029 
  1013 # 0: unused
  1030 # 0: symbol
  1014 compiler.err.qualified.new.of.static.class=\
  1031 compiler.err.qualified.new.of.static.class=\
  1015     qualified new of static class
  1032     qualified new of static class
  1016 
  1033 
  1017 compiler.err.recursive.ctor.invocation=\
  1034 compiler.err.recursive.ctor.invocation=\
  1018     recursive constructor invocation
  1035     recursive constructor invocation
  1059 
  1076 
  1060 # 0: symbol, 1: symbol, 2: symbol
  1077 # 0: symbol, 1: symbol, 2: symbol
  1061 compiler.err.does.not.override.abstract=\
  1078 compiler.err.does.not.override.abstract=\
  1062     {0} is not abstract and does not override abstract method {1} in {2}
  1079     {0} is not abstract and does not override abstract method {1} in {2}
  1063 
  1080 
       
  1081 # 0: file object
  1064 compiler.err.source.cant.overwrite.input.file=\
  1082 compiler.err.source.cant.overwrite.input.file=\
  1065     error writing source; cannot overwrite input file {0}
  1083     error writing source; cannot overwrite input file {0}
  1066 
  1084 
       
  1085 # 0: symbol
  1067 compiler.err.stack.sim.error=\
  1086 compiler.err.stack.sim.error=\
  1068     Internal error: stack sim error on {0}
  1087     Internal error: stack sim error on {0}
  1069 
  1088 
  1070 compiler.err.static.imp.only.classes.and.interfaces=\
  1089 compiler.err.static.imp.only.classes.and.interfaces=\
  1071     static import only from classes and interfaces
  1090     static import only from classes and interfaces
  1121 # 0: type
  1140 # 0: type
  1122 compiler.err.illegal.static.intf.meth.call=\
  1141 compiler.err.illegal.static.intf.meth.call=\
  1123     illegal static interface method call\n\
  1142     illegal static interface method call\n\
  1124     the receiver expression should be replaced with the type qualifier ''{0}''
  1143     the receiver expression should be replaced with the type qualifier ''{0}''
  1125 
  1144 
  1126 # 0: type, 1: message segment
  1145 # 0: symbol or type, 1: message segment
  1127 compiler.err.illegal.default.super.call=\
  1146 compiler.err.illegal.default.super.call=\
  1128     bad type qualifier {0} in default super call\n\
  1147     bad type qualifier {0} in default super call\n\
  1129     {1}
  1148     {1}
  1130 
  1149 
  1131 # 0: symbol, 1: type
  1150 # 0: symbol, 1: type
  1143     unclosed comment
  1162     unclosed comment
  1144 
  1163 
  1145 compiler.err.unclosed.str.lit=\
  1164 compiler.err.unclosed.str.lit=\
  1146     unclosed string literal
  1165     unclosed string literal
  1147 
  1166 
  1148 # 0: name
  1167 # 0: string
  1149 compiler.err.unsupported.encoding=\
  1168 compiler.err.unsupported.encoding=\
  1150     unsupported encoding: {0}
  1169     unsupported encoding: {0}
  1151 
  1170 
  1152 compiler.err.io.exception=\
  1171 compiler.err.io.exception=\
  1153     error reading source file: {0}
  1172     error reading source file: {0}
  1312 # Fatal Errors
  1331 # Fatal Errors
  1313 
  1332 
  1314 compiler.misc.fatal.err.no.java.lang=\
  1333 compiler.misc.fatal.err.no.java.lang=\
  1315     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
  1334     Fatal Error: Unable to find package java.lang in classpath or bootclasspath
  1316 
  1335 
       
  1336 # 0: name
  1317 compiler.misc.fatal.err.cant.locate.meth=\
  1337 compiler.misc.fatal.err.cant.locate.meth=\
  1318     Fatal Error: Unable to find method {0}
  1338     Fatal Error: Unable to find method {0}
  1319 
  1339 
       
  1340 # 0: name
  1320 compiler.misc.fatal.err.cant.locate.field=\
  1341 compiler.misc.fatal.err.cant.locate.field=\
  1321     Fatal Error: Unable to find field {0}
  1342     Fatal Error: Unable to find field {0}
  1322 
  1343 
       
  1344 # 0: type
  1323 compiler.misc.fatal.err.cant.locate.ctor=\
  1345 compiler.misc.fatal.err.cant.locate.ctor=\
  1324     Fatal Error: Unable to find constructor for {0}
  1346     Fatal Error: Unable to find constructor for {0}
  1325 
  1347 
  1326 compiler.misc.fatal.err.cant.close=\
  1348 compiler.misc.fatal.err.cant.close=\
  1327     Fatal Error: Cannot close compiler resources
  1349     Fatal Error: Cannot close compiler resources
  1525 
  1547 
  1526 # 0: symbol
  1548 # 0: symbol
  1527 compiler.warn.constant.SVUID=\
  1549 compiler.warn.constant.SVUID=\
  1528     serialVersionUID must be constant in class {0}
  1550     serialVersionUID must be constant in class {0}
  1529 
  1551 
  1530 # 0: file name
  1552 # 0: path
  1531 compiler.warn.dir.path.element.not.found=\
  1553 compiler.warn.dir.path.element.not.found=\
  1532     bad path element "{0}": no such directory
  1554     bad path element "{0}": no such directory
  1533 
  1555 
  1534 # 0: file name
  1556 # 0: file name
  1535 compiler.warn.dir.path.element.not.directory=\
  1557 compiler.warn.dir.path.element.not.directory=\
  1607 
  1629 
  1608 # 0: message segment
  1630 # 0: message segment
  1609 compiler.warn.override.varargs.extra=\
  1631 compiler.warn.override.varargs.extra=\
  1610     {0}; overriding method is missing ''...''
  1632     {0}; overriding method is missing ''...''
  1611 
  1633 
       
  1634 # 0: message segment
  1612 compiler.warn.override.bridge=\
  1635 compiler.warn.override.bridge=\
  1613     {0}; overridden method is a bridge method
  1636     {0}; overridden method is a bridge method
  1614 
  1637 
  1615 # 0: symbol
  1638 # 0: symbol
  1616 compiler.warn.pkg-info.already.seen=\
  1639 compiler.warn.pkg-info.already.seen=\
  1617     a package-info.java file has already been seen for package {0}
  1640     a package-info.java file has already been seen for package {0}
  1618 
  1641 
  1619 # 0: file name
  1642 # 0: path
  1620 compiler.warn.path.element.not.found=\
  1643 compiler.warn.path.element.not.found=\
  1621     bad path element "{0}": no such file or directory
  1644     bad path element "{0}": no such file or directory
  1622 
  1645 
  1623 compiler.warn.possible.fall-through.into.case=\
  1646 compiler.warn.possible.fall-through.into.case=\
  1624     possible fall-through into case
  1647     possible fall-through into case
  1676 # Warnings related to annotation processing
  1699 # Warnings related to annotation processing
  1677 # 0: string
  1700 # 0: string
  1678 compiler.warn.proc.package.does.not.exist=\
  1701 compiler.warn.proc.package.does.not.exist=\
  1679     package {0} does not exist
  1702     package {0} does not exist
  1680 
  1703 
  1681 # 0: name
  1704 # 0: string
  1682 compiler.warn.proc.file.reopening=\
  1705 compiler.warn.proc.file.reopening=\
  1683     Attempt to create a file for ''{0}'' multiple times
  1706     Attempt to create a file for ''{0}'' multiple times
  1684 
  1707 
  1685 # 0: name
  1708 # 0: name
  1686 compiler.warn.proc.type.already.exists=\
  1709 compiler.warn.proc.type.already.exists=\
  1687     A file for type ''{0}'' already exists on the sourcepath or classpath
  1710     A file for type ''{0}'' already exists on the sourcepath or classpath
  1688 
  1711 
  1689 # 0: name
  1712 # 0: string
  1690 compiler.warn.proc.type.recreate=\
  1713 compiler.warn.proc.type.recreate=\
  1691     Attempt to create a file for type ''{0}'' multiple times
  1714     Attempt to create a file for type ''{0}'' multiple times
  1692 
  1715 
  1693 # 0: string
  1716 # 0: string
  1694 compiler.warn.proc.illegal.file.name=\
  1717 compiler.warn.proc.illegal.file.name=\
  1696 
  1719 
  1697 # 0: string, 1: string
  1720 # 0: string, 1: string
  1698 compiler.warn.proc.suspicious.class.name=\
  1721 compiler.warn.proc.suspicious.class.name=\
  1699     Creating file for a type whose name ends in {1}: ''{0}''
  1722     Creating file for a type whose name ends in {1}: ''{0}''
  1700 
  1723 
  1701 # 0: name
  1724 # 0: string
  1702 compiler.warn.proc.file.create.last.round=\
  1725 compiler.warn.proc.file.create.last.round=\
  1703     File for type ''{0}'' created in the last round will not be subject to annotation processing.
  1726     File for type ''{0}'' created in the last round will not be subject to annotation processing.
  1704 
  1727 
  1705 # 0: string, 1: string
  1728 # 0: string, 1: string
  1706 compiler.warn.proc.malformed.supported.string=\
  1729 compiler.warn.proc.malformed.supported.string=\
  1728 # Print a client-generated warning; assumed to be localized, no translation required
  1751 # Print a client-generated warning; assumed to be localized, no translation required
  1729 # 0: string
  1752 # 0: string
  1730 compiler.warn.proc.messager=\
  1753 compiler.warn.proc.messager=\
  1731     {0}
  1754     {0}
  1732 
  1755 
  1733 # 0: set of name
  1756 # 0: set of string
  1734 compiler.warn.proc.unclosed.type.files=\
  1757 compiler.warn.proc.unclosed.type.files=\
  1735     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
  1758     Unclosed files for the types ''{0}''; these types will not undergo annotation processing
  1736 
  1759 
  1737 # 0: string
  1760 # 0: string
  1738 compiler.warn.proc.unmatched.processor.options=\
  1761 compiler.warn.proc.unmatched.processor.options=\
  1782     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
  1805     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
  1783 
  1806 
  1784 compiler.warn.missing.deprecated.annotation=\
  1807 compiler.warn.missing.deprecated.annotation=\
  1785     deprecated item is not annotated with @Deprecated
  1808     deprecated item is not annotated with @Deprecated
  1786 
  1809 
  1787 # 0: symbol kind
  1810 # 0: kind name
  1788 compiler.warn.deprecated.annotation.has.no.effect=\
  1811 compiler.warn.deprecated.annotation.has.no.effect=\
  1789     @Deprecated annotation has no effect on this {0} declaration
  1812     @Deprecated annotation has no effect on this {0} declaration
  1790 
  1813 
       
  1814 # 0: string
  1791 compiler.warn.invalid.path=\
  1815 compiler.warn.invalid.path=\
  1792     Invalid filename: {0}
  1816     Invalid filename: {0}
  1793 
  1817 
       
  1818 # 0: path
  1794 compiler.warn.invalid.archive.file=\
  1819 compiler.warn.invalid.archive.file=\
  1795     Unexpected file on path: {0}
  1820     Unexpected file on path: {0}
  1796 
  1821 
       
  1822 # 0: path
  1797 compiler.warn.unexpected.archive.file=\
  1823 compiler.warn.unexpected.archive.file=\
  1798     Unexpected extension for archive file: {0}
  1824     Unexpected extension for archive file: {0}
  1799 
  1825 
  1800 # 0: path
  1826 # 0: path
  1801 compiler.err.no.zipfs.for.archive=\
  1827 compiler.err.no.zipfs.for.archive=\
  1805     division by zero
  1831     division by zero
  1806 
  1832 
  1807 compiler.warn.empty.if=\
  1833 compiler.warn.empty.if=\
  1808     empty statement after if
  1834     empty statement after if
  1809 
  1835 
       
  1836 # 0: type, 1: name
  1810 compiler.warn.annotation.method.not.found=\
  1837 compiler.warn.annotation.method.not.found=\
  1811     Cannot find annotation method ''{1}()'' in type ''{0}''
  1838     Cannot find annotation method ''{1}()'' in type ''{0}''
  1812 
  1839 
       
  1840 # 0: type, 1: name, 2: message segment
  1813 compiler.warn.annotation.method.not.found.reason=\
  1841 compiler.warn.annotation.method.not.found.reason=\
  1814     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
  1842     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
  1815 
  1843 
  1816 # 0: symbol, 1: name
  1844 # 0: file object, 1: symbol, 2: name
  1817 compiler.warn.unknown.enum.constant=\
  1845 compiler.warn.unknown.enum.constant=\
  1818     unknown enum constant {1}.{2}
  1846     unknown enum constant {1}.{2}
  1819 
  1847 
  1820 # 0: symbol, 1: name, 2: message segment
  1848 # 0: file object, 1: symbol, 2: name, 3: message segment
  1821 compiler.warn.unknown.enum.constant.reason=\
  1849 compiler.warn.unknown.enum.constant.reason=\
  1822     unknown enum constant {1}.{2}\n\
  1850     unknown enum constant {1}.{2}\n\
  1823     reason: {3}
  1851     reason: {3}
  1824 
  1852 
  1825 # 0: type, 1: type
  1853 # 0: type, 1: type
  1826 compiler.warn.raw.class.use=\
  1854 compiler.warn.raw.class.use=\
  1827     found raw type: {0}\n\
  1855     found raw type: {0}\n\
  1828     missing type arguments for generic class {1}
  1856     missing type arguments for generic class {1}
  1829 
  1857 
  1830 # 0: unused, 1: unused
       
  1831 compiler.warn.diamond.redundant.args=\
  1858 compiler.warn.diamond.redundant.args=\
  1832     Redundant type arguments in new expression (use diamond operator instead).
  1859     Redundant type arguments in new expression (use diamond operator instead).
  1833 
  1860 
  1834 compiler.warn.potential.lambda.found=\
  1861 compiler.warn.potential.lambda.found=\
  1835     This anonymous inner class creation can be turned into a lambda expression.
  1862     This anonymous inner class creation can be turned into a lambda expression.
  2002     class file contains wrong class: {0}
  2029     class file contains wrong class: {0}
  2003 
  2030 
  2004 compiler.misc.module.info.invalid.super.class=\
  2031 compiler.misc.module.info.invalid.super.class=\
  2005     module-info with invalid super class
  2032     module-info with invalid super class
  2006 
  2033 
       
  2034 # 0: name
  2007 compiler.misc.class.file.not.found=\
  2035 compiler.misc.class.file.not.found=\
  2008     class file for {0} not found
  2036     class file for {0} not found
  2009 
  2037 
  2010 # 0: string (constant value), 1: symbol (constant field), 2: type (field type)
  2038 # 0: string (constant value), 1: symbol (constant field), 2: type (field type)
  2011 compiler.misc.bad.constant.range=\
  2039 compiler.misc.bad.constant.range=\
  2029 
  2057 
  2030 # 0: name
  2058 # 0: name
  2031 compiler.misc.file.doesnt.contain.class=\
  2059 compiler.misc.file.doesnt.contain.class=\
  2032     file does not contain class {0}
  2060     file does not contain class {0}
  2033 
  2061 
       
  2062 # 0: symbol
  2034 compiler.misc.file.does.not.contain.package=\
  2063 compiler.misc.file.does.not.contain.package=\
  2035     file does not contain package {0}
  2064     file does not contain package {0}
  2036 
  2065 
  2037 compiler.misc.file.does.not.contain.module=\
  2066 compiler.misc.file.does.not.contain.module=\
  2038     file does not contain module declaration
  2067     file does not contain module declaration
  2103 # compiler.err.star.expected=\
  2132 # compiler.err.star.expected=\
  2104 #     ''*'' expected
  2133 #     ''*'' expected
  2105 # compiler.err.no.elem.type=\
  2134 # compiler.err.no.elem.type=\
  2106 #     \[\*\] cannot have a type
  2135 #     \[\*\] cannot have a type
  2107 
  2136 
  2108 # 0: type
  2137 # 0: message segment
  2109 compiler.misc.try.not.applicable.to.type=\
  2138 compiler.misc.try.not.applicable.to.type=\
  2110     try-with-resources not applicable to variable type\n\
  2139     try-with-resources not applicable to variable type\n\
  2111     ({0})
  2140     ({0})
  2112 
  2141 
  2113 #####
  2142 #####
  2114 
  2143 
  2115 # 0: message segment or type, 1: message segment
  2144 # 0: object, 1: message segment
  2116 compiler.err.type.found.req=\
  2145 compiler.err.type.found.req=\
  2117     unexpected type\n\
  2146     unexpected type\n\
  2118     required: {1}\n\
  2147     required: {1}\n\
  2119     found:    {0}
  2148     found:    {0}
  2120 
  2149 
  2230 # 0: list of type, 1: message segment
  2259 # 0: list of type, 1: message segment
  2231 compiler.misc.diamond.invalid.args=\
  2260 compiler.misc.diamond.invalid.args=\
  2232     type arguments {0} inferred for {1} are not allowed in this context\n\
  2261     type arguments {0} inferred for {1} are not allowed in this context\n\
  2233     inferred arguments are not expressible in the Signature attribute
  2262     inferred arguments are not expressible in the Signature attribute
  2234 
  2263 
  2235 # 0: unused
  2264 # 0: type
  2236 compiler.misc.diamond.and.explicit.params=\
  2265 compiler.misc.diamond.and.explicit.params=\
  2237     cannot use ''<>'' with explicit type parameters for constructor
  2266     cannot use ''<>'' with explicit type parameters for constructor
  2238 
  2267 
  2239 # 0: unused
       
  2240 compiler.misc.mref.infer.and.explicit.params=\
  2268 compiler.misc.mref.infer.and.explicit.params=\
  2241     cannot use raw constructor reference with explicit type parameters for constructor
  2269     cannot use raw constructor reference with explicit type parameters for constructor
  2242 
  2270 
  2243 # 0: type, 1: list of type
  2271 # 0: type, 1: list of type
  2244 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  2272 compiler.misc.explicit.param.do.not.conform.to.bounds=\
  2264 # 0: symbol or type, 1: file name
  2292 # 0: symbol or type, 1: file name
  2265 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
  2293 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\
  2266     auxiliary class {0} in {1} should not be accessed from outside its own source file
  2294     auxiliary class {0} in {1} should not be accessed from outside its own source file
  2267 
  2295 
  2268 ## The first argument ({0}) is a "kindname".
  2296 ## The first argument ({0}) is a "kindname".
  2269 # 0: symbol kind, 1: symbol, 2: symbol
  2297 # 0: kind name, 1: symbol, 2: symbol
  2270 compiler.err.abstract.cant.be.accessed.directly=\
  2298 compiler.err.abstract.cant.be.accessed.directly=\
  2271     abstract {0} {1} in {2} cannot be accessed directly
  2299     abstract {0} {1} in {2} cannot be accessed directly
  2272 
  2300 
  2273 ## The first argument ({0}) is a "kindname".
  2301 ## The first argument ({0}) is a "kindname".
  2274 # 0: symbol kind, 1: symbol
  2302 # 0: symbol kind, 1: symbol
  2287 compiler.misc.bad.static.method.in.bound.lookup=\
  2315 compiler.misc.bad.static.method.in.bound.lookup=\
  2288     unexpected static {0} {1} found in bound lookup
  2316     unexpected static {0} {1} found in bound lookup
  2289 
  2317 
  2290 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  2318 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
  2291 ## of kindnames (the list should be identical to that provided in source.
  2319 ## of kindnames (the list should be identical to that provided in source.
       
  2320 # 0: set of kind name, 1: set of kind name
  2292 compiler.err.unexpected.type=\
  2321 compiler.err.unexpected.type=\
  2293     unexpected type\n\
  2322     unexpected type\n\
  2294     required: {0}\n\
  2323     required: {0}\n\
  2295     found:    {1}
  2324     found:    {1}
  2296 
  2325 
  2302 
  2331 
  2303 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  2332 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
  2304 ## The second argument {1} is the non-resolved symbol
  2333 ## The second argument {1} is the non-resolved symbol
  2305 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  2334 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
  2306 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  2335 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
  2307 # 0: symbol kind, 1: name, 2: unused, 3: unused
  2336 # 0: kind name, 1: name, 2: unused, 3: unused
  2308 compiler.err.cant.resolve=\
  2337 compiler.err.cant.resolve=\
  2309     cannot find symbol\n\
  2338     cannot find symbol\n\
  2310     symbol: {0} {1}
  2339     symbol: {0} {1}
  2311 
  2340 
  2312 # 0: symbol kind, 1: name, 2: unused, 3: list of type
  2341 # 0: kind name, 1: name, 2: unused, 3: list of type
  2313 compiler.err.cant.resolve.args=\
  2342 compiler.err.cant.resolve.args=\
  2314     cannot find symbol\n\
  2343     cannot find symbol\n\
  2315     symbol: {0} {1}({3})
  2344     symbol: {0} {1}({3})
  2316 
  2345 
  2317 # 0: symbol kind, 1: name, 2: list of type, 3: list of type
  2346 # 0: kind name, 1: name, 2: list of type, 3: list of type
  2318 compiler.err.cant.resolve.args.params=\
  2347 compiler.err.cant.resolve.args.params=\
  2319     cannot find symbol\n\
  2348     cannot find symbol\n\
  2320     symbol: {0} <{2}>{1}({3})
  2349     symbol: {0} <{2}>{1}({3})
  2321 
  2350 
  2322 ## arguments from {0} to {3} have the same meaning as above
  2351 ## arguments from {0} to {3} have the same meaning as above
  2323 ## The fifth argument {4} is a location subdiagnostic (see below)
  2352 ## The fifth argument {4} is a location subdiagnostic (see below)
  2324 # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment
  2353 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment
  2325 compiler.err.cant.resolve.location=\
  2354 compiler.err.cant.resolve.location=\
  2326     cannot find symbol\n\
  2355     cannot find symbol\n\
  2327     symbol:   {0} {1}\n\
  2356     symbol:   {0} {1}\n\
  2328     location: {4}
  2357     location: {4}
  2329 
  2358 
  2330 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2359 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
  2331 compiler.err.cant.resolve.location.args=\
  2360 compiler.err.cant.resolve.location.args=\
  2332     cannot find symbol\n\
  2361     cannot find symbol\n\
  2333     symbol:   {0} {1}({3})\n\
  2362     symbol:   {0} {1}({3})\n\
  2334     location: {4}
  2363     location: {4}
  2335 
  2364 
  2336 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2365 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
  2337 compiler.err.cant.resolve.location.args.params=\
  2366 compiler.err.cant.resolve.location.args.params=\
  2338     cannot find symbol\n\
  2367     cannot find symbol\n\
  2339     symbol:   {0} <{2}>{1}({3})\n\
  2368     symbol:   {0} <{2}>{1}({3})\n\
  2340     location: {4}
  2369     location: {4}
  2341 
  2370 
  2342 ### Following are replicated/used for method reference diagnostics
  2371 ### Following are replicated/used for method reference diagnostics
  2343 
  2372 
  2344 # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment
  2373 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
  2345 compiler.misc.cant.resolve.location.args=\
  2374 compiler.misc.cant.resolve.location.args=\
  2346     cannot find symbol\n\
  2375     cannot find symbol\n\
  2347     symbol:   {0} {1}({3})\n\
  2376     symbol:   {0} {1}({3})\n\
  2348     location: {4}
  2377     location: {4}
  2349 
  2378 
  2350 # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment
  2379 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
  2351 compiler.misc.cant.resolve.location.args.params=\
  2380 compiler.misc.cant.resolve.location.args.params=\
  2352     cannot find symbol\n\
  2381     cannot find symbol\n\
  2353     symbol:   {0} <{2}>{1}({3})\n\
  2382     symbol:   {0} <{2}>{1}({3})\n\
  2354     location: {4}
  2383     location: {4}
  2355 
  2384 
  2356 ##a location subdiagnostic is composed as follows:
  2385 ##a location subdiagnostic is composed as follows:
  2357 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  2386 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  2358 ## The second argument {1} is the location name
  2387 ## The second argument {1} is the location name
  2359 ## The third argument {2} is the location type (only when {1} is a variable name)
  2388 ## The third argument {2} is the location type (only when {1} is a variable name)
  2360 
  2389 
  2361 # 0: symbol kind, 1: type or symbol, 2: unused
  2390 # 0: kind name, 1: type or symbol, 2: unused
  2362 compiler.misc.location=\
  2391 compiler.misc.location=\
  2363     {0} {1}
  2392     {0} {1}
  2364 
  2393 
  2365 # 0: symbol kind, 1: symbol, 2: type
  2394 # 0: kind name, 1: symbol, 2: type
  2366 compiler.misc.location.1=\
  2395 compiler.misc.location.1=\
  2367     {0} {1} of type {2}
  2396     {0} {1} of type {2}
  2368 
  2397 
  2369 ## The following are all possible string for "kindname".
  2398 ## The following are all possible string for "kindname".
  2370 ## They should be called whatever the JLS calls them after it been translated
  2399 ## They should be called whatever the JLS calls them after it been translated
  2424 # 0: message segment
  2453 # 0: message segment
  2425 compiler.err.override.static=\
  2454 compiler.err.override.static=\
  2426     {0}\n\
  2455     {0}\n\
  2427     overriding method is static
  2456     overriding method is static
  2428 
  2457 
  2429 # 0: message segment, 1: set of modifier
  2458 # 0: message segment, 1: set of flag
  2430 compiler.err.override.meth=\
  2459 compiler.err.override.meth=\
  2431     {0}\n\
  2460     {0}\n\
  2432     overridden method is {1}
  2461     overridden method is {1}
  2433 
  2462 
  2434 # 0: message segment, 1: type
  2463 # 0: message segment, 1: type
  2436     {0}\n\
  2465     {0}\n\
  2437     overridden method does not throw {1}
  2466     overridden method does not throw {1}
  2438 
  2467 
  2439 # In the following string {1} is a space separated list of Java Keywords, as
  2468 # In the following string {1} is a space separated list of Java Keywords, as
  2440 # they would have been declared in the source code
  2469 # they would have been declared in the source code
  2441 # 0: message segment, 1: set of modifier
  2470 # 0: message segment, 1: set of flag or string
  2442 compiler.err.override.weaker.access=\
  2471 compiler.err.override.weaker.access=\
  2443     {0}\n\
  2472     {0}\n\
  2444     attempting to assign weaker access privileges; was {1}
  2473     attempting to assign weaker access privileges; was {1}
  2445 
  2474 
  2446 # 0: message segment, 1: type, 2: type
  2475 # 0: message segment, 1: type, 2: type
  2502 
  2531 
  2503 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2532 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
  2504 compiler.misc.varargs.clash.with=\
  2533 compiler.misc.varargs.clash.with=\
  2505     {0} in {1} overrides {2} in {3}
  2534     {0} in {1} overrides {2} in {3}
  2506 
  2535 
  2507 # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment
  2536 # 0: kind name, 1: symbol, 2: symbol, 3: message segment
  2508 compiler.misc.inapplicable.method=\
  2537 compiler.misc.inapplicable.method=\
  2509     {0} {1}.{2} is not applicable\n\
  2538     {0} {1}.{2} is not applicable\n\
  2510     ({3})
  2539     ({3})
  2511 
  2540 
  2512 ########################################
  2541 ########################################
  2561 
  2590 
  2562 # TODO 308: make a better error message
  2591 # TODO 308: make a better error message
  2563 compiler.err.this.as.identifier=\
  2592 compiler.err.this.as.identifier=\
  2564     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
  2593     as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter
  2565 
  2594 
  2566 # 0: symbol
       
  2567 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
  2595 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
  2568     receiver parameter not applicable for constructor of top-level class
  2596     receiver parameter not applicable for constructor of top-level class
  2569 
  2597 
  2570 # TODO 308: make a better error message
  2598 # TODO 308: make a better error message
  2571 # 0: symbol
  2599 # 0: annotation
  2572 compiler.err.cant.type.annotate.scoping.1=\
  2600 compiler.err.cant.type.annotate.scoping.1=\
  2573     scoping construct cannot be annotated with type-use annotation: {0}
  2601     scoping construct cannot be annotated with type-use annotation: {0}
  2574 
  2602 
  2575 # TODO 308: make a better error message
  2603 # TODO 308: make a better error message
  2576 # 0: list of symbol
  2604 # 0: list of annotation
  2577 compiler.err.cant.type.annotate.scoping=\
  2605 compiler.err.cant.type.annotate.scoping=\
  2578     scoping construct cannot be annotated with type-use annotations: {0}
  2606     scoping construct cannot be annotated with type-use annotations: {0}
  2579 
  2607 
  2580 # 0: type, 1: type
  2608 # 0: type, 1: type
  2581 compiler.err.incorrect.receiver.name=\
  2609 compiler.err.incorrect.receiver.name=\