< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties

Print this page




 214     (''{0}'' is both a label and an expression)
 215 
 216 # 0: tree tag
 217 compiler.err.break.expr.not.immediate=\
 218     value break not supported in ''{0}''
 219 
 220 compiler.err.break.complex.value.no.switch.expression=\
 221     unexpected value break
 222 
 223 compiler.err.switch.expression.empty=\
 224     switch expression does not have any case clauses
 225 
 226 # 0: name
 227 compiler.err.call.must.be.first.stmt.in.ctor=\
 228     call to {0} must be first statement in constructor
 229 
 230 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 231 compiler.err.cant.apply.symbol=\
 232     {0} {1} in {4} {5} cannot be applied to given types;\n\
 233     required: {2}\n\
 234     found:    {3}\n\
 235     reason: {6}
 236 
 237 # 0: symbol kind, 1: name, 2: list of type
 238 compiler.err.cant.apply.symbols=\
 239     no suitable {0} found for {1}({2})
 240 
 241 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 242 compiler.misc.cant.apply.symbol=\
 243     {0} {1} in {4} {5} cannot be applied to given types\n\
 244     required: {2}\n\
 245     found:    {3}\n\
 246     reason: {6}
 247 
 248 # 0: symbol kind, 1: name, 2: list of type
 249 compiler.misc.cant.apply.symbols=\
 250     no suitable {0} found for {1}({2})
 251 
 252 # 0: kind name, 1: symbol
 253 compiler.misc.no.abstracts=\
 254     no abstract method found in {0} {1}
 255 
 256 # 0: kind name, 1: symbol
 257 compiler.misc.incompatible.abstracts=\
 258     multiple non-overriding abstract methods found in {0} {1}
 259 
 260 compiler.err.bad.functional.intf.anno=\
 261     Unexpected @FunctionalInterface annotation
 262 
 263 # 0: message segment
 264 compiler.err.bad.functional.intf.anno.1=\
 265     Unexpected @FunctionalInterface annotation\n\


1935     auto-closeable resource {0} has a member method close() that could throw InterruptedException
1936 
1937 compiler.warn.unchecked.assign=\
1938     unchecked assignment: {0} to {1}
1939 
1940 # 0: symbol, 1: type
1941 compiler.warn.unchecked.assign.to.var=\
1942     unchecked assignment to variable {0} as member of raw type {1}
1943 
1944 # 0: symbol, 1: type
1945 compiler.warn.unchecked.call.mbr.of.raw.type=\
1946     unchecked call to {0} as a member of the raw type {1}
1947 
1948 compiler.warn.unchecked.cast.to.type=\
1949     unchecked cast to type {0}
1950 
1951 # 0: kind name, 1: name, 2: object, 3: object, 4: kind name, 5: symbol
1952 compiler.warn.unchecked.meth.invocation.applied=\
1953     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1954     required: {2}\n\
1955     found:    {3}
1956 
1957 # 0: type
1958 compiler.warn.unchecked.generic.array.creation=\
1959     unchecked generic array creation for varargs parameter of type {0}
1960 
1961 # 0: type
1962 compiler.warn.unchecked.varargs.non.reifiable.type=\
1963     Possible heap pollution from parameterized vararg type {0}
1964 
1965 # 0: symbol
1966 compiler.warn.varargs.unsafe.use.varargs.param=\
1967     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1968 
1969 compiler.warn.missing.deprecated.annotation=\
1970     deprecated item is not annotated with @Deprecated
1971 
1972 # 0: kind name
1973 compiler.warn.deprecated.annotation.has.no.effect=\
1974     @Deprecated annotation has no effect on this {0} declaration
1975 


2085 ## 5. a Java separator (JLS3.11)
2086 ## 6. an operator (JLS3.12)
2087 ##
2088 ## This is the only place these tokens will be used.
2089 # 0: token
2090 compiler.err.expected=\
2091     {0} expected
2092 
2093 # 0: string
2094 compiler.err.expected.str=\
2095     {0} expected
2096 
2097 # 0: token, 1: token
2098 compiler.err.expected2=\
2099     {0} or {1} expected
2100 
2101 # 0: token, 1: token, 2: token
2102 compiler.err.expected3=\
2103     {0}, {1}, or {2} expected
2104 




2105 compiler.err.premature.eof=\
2106     reached end of file while parsing
2107 
2108 ## The following are related in form, but do not easily fit the above paradigm.
2109 compiler.err.expected.module=\
2110     ''module'' expected
2111 
2112 compiler.err.expected.module.or.open=\
2113     ''module'' or ''open'' expected
2114 
2115 compiler.err.dot.class.expected=\
2116     ''.class'' expected
2117 
2118 ## The argument to this string will always be either 'case' or 'default'.
2119 # 0: token
2120 compiler.err.orphaned=\
2121     orphaned {0}
2122 
2123 # 0: name
2124 compiler.misc.anonymous.class=\


2863     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
2864     which has to be the first parameter, and cannot be a lambda parameter
2865 
2866 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
2867     receiver parameter not applicable for constructor of top-level class
2868 
2869 # TODO 308: make a better error message
2870 # 0: annotation
2871 compiler.err.cant.type.annotate.scoping.1=\
2872     scoping construct cannot be annotated with type-use annotation: {0}
2873 
2874 # TODO 308: make a better error message
2875 # 0: list of annotation
2876 compiler.err.cant.type.annotate.scoping=\
2877     scoping construct cannot be annotated with type-use annotations: {0}
2878 
2879 # 0: type, 1: type
2880 compiler.err.incorrect.receiver.name=\
2881     the receiver name does not match the enclosing class type\n\
2882     required: {0}\n\
2883     found:    {1}
2884 
2885 # 0: type, 1: type
2886 compiler.err.incorrect.receiver.type=\
2887     the receiver type does not match the enclosing class type\n\
2888     required: {0}\n\
2889     found:    {1}
2890 
2891 # 0: type, 1: type
2892 compiler.err.incorrect.constructor.receiver.type=\
2893     the receiver type does not match the enclosing outer class type\n\
2894     required: {0}\n\
2895     found:    {1}
2896 
2897 # 0: type, 1: type
2898 compiler.err.incorrect.constructor.receiver.name=\
2899     the receiver name does not match the enclosing outer class type\n\
2900     required: {0}\n\
2901     found:    {1}
2902 
2903 compiler.err.no.annotations.on.dot.class=\
2904     no annotations are allowed in the type of a class literal
2905 
2906 ########################################
2907 # Diagnostics for verbose resolution
2908 # used by Resolve (debug only)
2909 ########################################
2910 
2911 # 0: number, 1: symbol, 2: unused
2912 compiler.misc.applicable.method.found=\
2913     #{0} applicable method found: {1}
2914 
2915 # 0: number, 1: symbol, 2: message segment
2916 compiler.misc.applicable.method.found.1=\
2917     #{0} applicable method found: {1}\n\
2918     ({2})
2919 
2920 # 0: number, 1: symbol, 2: message segment
2921 compiler.misc.not.applicable.method.found=\


3322     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3323 # 0: kind name, 1: symbol, 2: symbol
3324 compiler.warn.leaks.not.accessible.unexported.qualified=\
3325     {0} {1} in module {2} may not be visible to all clients that require this module
3326 
3327 ###
3328 # errors related to options
3329 
3330 # 0: string, 1: string
3331 compiler.err.illegal.argument.for.option=\
3332     illegal argument for {0}: {1}
3333 
3334 compiler.err.switch.null.not.allowed=\
3335     null label in case is not allowed
3336 
3337 compiler.err.switch.case.unexpected.statement=\
3338     unexpected statement in case, expected is an expression, a block or a throw statement
3339 
3340 compiler.err.switch.mixing.case.types=\
3341     different case kinds used in the switch






















































3342 
3343 ############################################
3344 # messages previouly at javac.properties
3345 
3346 compiler.err.empty.A.argument=\
3347     -A requires an argument; use ''-Akey'' or ''-Akey=value''
3348 
3349 # 0: string
3350 compiler.err.invalid.A.key=\
3351     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
3352 
3353 # 0: string
3354 compiler.err.invalid.flag=\
3355     invalid flag: {0}
3356 
3357 compiler.err.profile.bootclasspath.conflict=\
3358     profile and bootclasspath options cannot be used together
3359 
3360 # 0: string
3361 compiler.err.invalid.profile=\




 214     (''{0}'' is both a label and an expression)
 215 
 216 # 0: tree tag
 217 compiler.err.break.expr.not.immediate=\
 218     value break not supported in ''{0}''
 219 
 220 compiler.err.break.complex.value.no.switch.expression=\
 221     unexpected value break
 222 
 223 compiler.err.switch.expression.empty=\
 224     switch expression does not have any case clauses
 225 
 226 # 0: name
 227 compiler.err.call.must.be.first.stmt.in.ctor=\
 228     call to {0} must be first statement in constructor
 229 
 230 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 231 compiler.err.cant.apply.symbol=\
 232     {0} {1} in {4} {5} cannot be applied to given types;\n\
 233     required: {2}\n\
 234     found: {3}\n\
 235     reason: {6}
 236 
 237 # 0: symbol kind, 1: name, 2: list of type
 238 compiler.err.cant.apply.symbols=\
 239     no suitable {0} found for {1}({2})
 240 
 241 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 242 compiler.misc.cant.apply.symbol=\
 243     {0} {1} in {4} {5} cannot be applied to given types\n\
 244     required: {2}\n\
 245     found: {3}\n\
 246     reason: {6}
 247 
 248 # 0: symbol kind, 1: name, 2: list of type
 249 compiler.misc.cant.apply.symbols=\
 250     no suitable {0} found for {1}({2})
 251 
 252 # 0: kind name, 1: symbol
 253 compiler.misc.no.abstracts=\
 254     no abstract method found in {0} {1}
 255 
 256 # 0: kind name, 1: symbol
 257 compiler.misc.incompatible.abstracts=\
 258     multiple non-overriding abstract methods found in {0} {1}
 259 
 260 compiler.err.bad.functional.intf.anno=\
 261     Unexpected @FunctionalInterface annotation
 262 
 263 # 0: message segment
 264 compiler.err.bad.functional.intf.anno.1=\
 265     Unexpected @FunctionalInterface annotation\n\


1935     auto-closeable resource {0} has a member method close() that could throw InterruptedException
1936 
1937 compiler.warn.unchecked.assign=\
1938     unchecked assignment: {0} to {1}
1939 
1940 # 0: symbol, 1: type
1941 compiler.warn.unchecked.assign.to.var=\
1942     unchecked assignment to variable {0} as member of raw type {1}
1943 
1944 # 0: symbol, 1: type
1945 compiler.warn.unchecked.call.mbr.of.raw.type=\
1946     unchecked call to {0} as a member of the raw type {1}
1947 
1948 compiler.warn.unchecked.cast.to.type=\
1949     unchecked cast to type {0}
1950 
1951 # 0: kind name, 1: name, 2: object, 3: object, 4: kind name, 5: symbol
1952 compiler.warn.unchecked.meth.invocation.applied=\
1953     unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\
1954     required: {2}\n\
1955     found: {3}
1956 
1957 # 0: type
1958 compiler.warn.unchecked.generic.array.creation=\
1959     unchecked generic array creation for varargs parameter of type {0}
1960 
1961 # 0: type
1962 compiler.warn.unchecked.varargs.non.reifiable.type=\
1963     Possible heap pollution from parameterized vararg type {0}
1964 
1965 # 0: symbol
1966 compiler.warn.varargs.unsafe.use.varargs.param=\
1967     Varargs method could cause heap pollution from non-reifiable varargs parameter {0}
1968 
1969 compiler.warn.missing.deprecated.annotation=\
1970     deprecated item is not annotated with @Deprecated
1971 
1972 # 0: kind name
1973 compiler.warn.deprecated.annotation.has.no.effect=\
1974     @Deprecated annotation has no effect on this {0} declaration
1975 


2085 ## 5. a Java separator (JLS3.11)
2086 ## 6. an operator (JLS3.12)
2087 ##
2088 ## This is the only place these tokens will be used.
2089 # 0: token
2090 compiler.err.expected=\
2091     {0} expected
2092 
2093 # 0: string
2094 compiler.err.expected.str=\
2095     {0} expected
2096 
2097 # 0: token, 1: token
2098 compiler.err.expected2=\
2099     {0} or {1} expected
2100 
2101 # 0: token, 1: token, 2: token
2102 compiler.err.expected3=\
2103     {0}, {1}, or {2} expected
2104 
2105 # 0: token, 1: token, 2: token, 3: token
2106 compiler.err.expected4=\
2107     {0}, {1}, {2}, or {3} expected
2108 
2109 compiler.err.premature.eof=\
2110     reached end of file while parsing
2111 
2112 ## The following are related in form, but do not easily fit the above paradigm.
2113 compiler.err.expected.module=\
2114     ''module'' expected
2115 
2116 compiler.err.expected.module.or.open=\
2117     ''module'' or ''open'' expected
2118 
2119 compiler.err.dot.class.expected=\
2120     ''.class'' expected
2121 
2122 ## The argument to this string will always be either 'case' or 'default'.
2123 # 0: token
2124 compiler.err.orphaned=\
2125     orphaned {0}
2126 
2127 # 0: name
2128 compiler.misc.anonymous.class=\


2867     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
2868     which has to be the first parameter, and cannot be a lambda parameter
2869 
2870 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\
2871     receiver parameter not applicable for constructor of top-level class
2872 
2873 # TODO 308: make a better error message
2874 # 0: annotation
2875 compiler.err.cant.type.annotate.scoping.1=\
2876     scoping construct cannot be annotated with type-use annotation: {0}
2877 
2878 # TODO 308: make a better error message
2879 # 0: list of annotation
2880 compiler.err.cant.type.annotate.scoping=\
2881     scoping construct cannot be annotated with type-use annotations: {0}
2882 
2883 # 0: type, 1: type
2884 compiler.err.incorrect.receiver.name=\
2885     the receiver name does not match the enclosing class type\n\
2886     required: {0}\n\
2887     found: {1}
2888 
2889 # 0: type, 1: type
2890 compiler.err.incorrect.receiver.type=\
2891     the receiver type does not match the enclosing class type\n\
2892     required: {0}\n\
2893     found: {1}
2894 
2895 # 0: type, 1: type
2896 compiler.err.incorrect.constructor.receiver.type=\
2897     the receiver type does not match the enclosing outer class type\n\
2898     required: {0}\n\
2899     found: {1}
2900 
2901 # 0: type, 1: type
2902 compiler.err.incorrect.constructor.receiver.name=\
2903     the receiver name does not match the enclosing outer class type\n\
2904     required: {0}\n\
2905     found: {1}
2906 
2907 compiler.err.no.annotations.on.dot.class=\
2908     no annotations are allowed in the type of a class literal
2909 
2910 ########################################
2911 # Diagnostics for verbose resolution
2912 # used by Resolve (debug only)
2913 ########################################
2914 
2915 # 0: number, 1: symbol, 2: unused
2916 compiler.misc.applicable.method.found=\
2917     #{0} applicable method found: {1}
2918 
2919 # 0: number, 1: symbol, 2: message segment
2920 compiler.misc.applicable.method.found.1=\
2921     #{0} applicable method found: {1}\n\
2922     ({2})
2923 
2924 # 0: number, 1: symbol, 2: message segment
2925 compiler.misc.not.applicable.method.found=\


3326     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3327 # 0: kind name, 1: symbol, 2: symbol
3328 compiler.warn.leaks.not.accessible.unexported.qualified=\
3329     {0} {1} in module {2} may not be visible to all clients that require this module
3330 
3331 ###
3332 # errors related to options
3333 
3334 # 0: string, 1: string
3335 compiler.err.illegal.argument.for.option=\
3336     illegal argument for {0}: {1}
3337 
3338 compiler.err.switch.null.not.allowed=\
3339     null label in case is not allowed
3340 
3341 compiler.err.switch.case.unexpected.statement=\
3342     unexpected statement in case, expected is an expression, a block or a throw statement
3343 
3344 compiler.err.switch.mixing.case.types=\
3345     different case kinds used in the switch
3346 
3347 ###
3348 # errors related to records
3349 
3350 compiler.err.record.cant.be.abstract=\
3351     records cannot be abstract
3352 
3353 compiler.err.record.cant.declare.duplicate.fields=\
3354     records cannot declare fields with the same name
3355 
3356 compiler.err.record.cant.declare.field.modifiers=\
3357     records cannot declare field modifiers
3358 
3359 compiler.err.record.can.only.declare.methods.as.members=\
3360     records can only declare methods as members
3361 
3362 # 0: fragment
3363 compiler.err.cant.extend.record=\
3364     Illegal ''extends'' clause for record\n\
3365     {0}
3366 
3367 compiler.misc.bad.record.super=\
3368     A record must extend class AbstractRecord or an ''abstract'' record
3369 
3370 # 0: type, 1: name, 2: type, 3: name
3371 compiler.misc.super.field.mismatch=\
3372     Superclass field declaration mismatch\n\
3373     expected: {0} {1}\n\
3374     found: {2} {3}
3375 
3376 compiler.misc.bad.super.fields=\
3377     A record cannot have both an explicit constructor, and an implicit superclass header.
3378 
3379 compiler.err.record.fields.must.be.in.header=\
3380     instance fields in a record must be declared in the header
3381 
3382 compiler.err.local.record=\
3383     records must not be local
3384 
3385 compiler.err.nested.records.must.be.static=\
3386     nested records must always be static
3387 
3388 # 0: name
3389 compiler.err.duplicate.argument.to.super=\
3390     duplicate argument {0}, arguments passed to the super of a record must be unique
3391 
3392 # 0: name
3393 compiler.err.record.not.allowed=\
3394     ''{0}'' not allowed here\n\
3395     as of release 10, ''{0}'' is a restricted type name and cannot be used for type declarations
3396 
3397 # 0: name
3398 compiler.err.cant.provide.explicit.version=\
3399     method ''{0}'', is automatically generated for records, no explicit version can be provided
3400 
3401 ############################################
3402 # messages previouly at javac.properties
3403 
3404 compiler.err.empty.A.argument=\
3405     -A requires an argument; use ''-Akey'' or ''-Akey=value''
3406 
3407 # 0: string
3408 compiler.err.invalid.A.key=\
3409     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
3410 
3411 # 0: string
3412 compiler.err.invalid.flag=\
3413     invalid flag: {0}
3414 
3415 compiler.err.profile.bootclasspath.conflict=\
3416     profile and bootclasspath options cannot be used together
3417 
3418 # 0: string
3419 compiler.err.invalid.profile=\


< prev index next >