< prev index next >

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

Print this page




 526 compiler.err.error.reading.file=\
 527     error reading {0}; {1}
 528 
 529 # 0: type
 530 compiler.err.except.already.caught=\
 531     exception {0} has already been caught
 532 
 533 # 0: type
 534 compiler.err.except.never.thrown.in.try=\
 535     exception {0} is never thrown in body of corresponding try statement
 536 
 537 # 0: symbol
 538 compiler.err.final.parameter.may.not.be.assigned=\
 539     final parameter {0} may not be assigned
 540 
 541 # 0: symbol
 542 compiler.err.try.resource.may.not.be.assigned=\
 543     auto-closeable resource {0} may not be assigned
 544 
 545 # 0: symbol




 546 compiler.err.multicatch.parameter.may.not.be.assigned=\
 547     multi-catch parameter {0} may not be assigned
 548 
 549 # 0: type, 1: type
 550 compiler.err.multicatch.types.must.be.disjoint=\
 551     Alternatives in a multi-catch statement cannot be related by subclassing\n\
 552     Alternative {0} is a subclass of alternative {1}
 553 
 554 compiler.err.finally.without.try=\
 555     ''finally'' without ''try''
 556 
 557 # 0: type, 1: message segment
 558 compiler.err.foreach.not.applicable.to.type=\
 559     for-each not applicable to expression type\n\
 560     required: {1}\n\
 561     found:    {0}
 562 
 563 compiler.err.fp.number.too.large=\
 564     floating point number too large
 565 


2135 ## 5. a Java separator (JLS3.11)
2136 ## 6. an operator (JLS3.12)
2137 ##
2138 ## This is the only place these tokens will be used.
2139 # 0: token
2140 compiler.err.expected=\
2141     {0} expected
2142 
2143 # 0: string
2144 compiler.err.expected.str=\
2145     {0} expected
2146 
2147 # 0: token, 1: token
2148 compiler.err.expected2=\
2149     {0} or {1} expected
2150 
2151 # 0: token, 1: token, 2: token
2152 compiler.err.expected3=\
2153     {0}, {1}, or {2} expected
2154 




2155 compiler.err.premature.eof=\
2156     reached end of file while parsing
2157 
2158 ## The following are related in form, but do not easily fit the above paradigm.
2159 compiler.err.expected.module=\
2160     ''module'' expected
2161 
2162 compiler.err.expected.module.or.open=\
2163     ''module'' or ''open'' expected
2164 
2165 compiler.err.dot.class.expected=\
2166     ''.class'' expected
2167 
2168 ## The argument to this string will always be either 'case' or 'default'.
2169 # 0: token
2170 compiler.err.orphaned=\
2171     orphaned {0}
2172 
2173 # 0: name
2174 compiler.misc.anonymous.class=\


2867     static interface method invocations
2868 
2869 compiler.misc.feature.private.intf.methods=\
2870     private interface methods
2871 
2872 compiler.misc.feature.text.blocks=\
2873     text blocks
2874 
2875 compiler.misc.feature.multiple.case.labels=\
2876     multiple case labels
2877 
2878 compiler.misc.feature.switch.rules=\
2879     switch rules
2880 
2881 compiler.misc.feature.switch.expressions=\
2882     switch expressions
2883 
2884 compiler.misc.feature.var.syntax.in.implicit.lambda=\
2885     var syntax in implicit lambdas
2886 



2887 compiler.warn.underscore.as.identifier=\
2888     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2889 
2890 compiler.err.underscore.as.identifier=\
2891     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2892 
2893 compiler.err.underscore.as.identifier.in.lambda=\
2894     ''_'' used as an identifier\n\
2895     (use of ''_'' as an identifier is forbidden for lambda parameters)
2896 
2897 compiler.err.enum.as.identifier=\
2898     as of release 5, ''enum'' is a keyword, and may not be used as an identifier
2899 
2900 compiler.err.assert.as.identifier=\
2901     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
2902 
2903 # TODO 308: make a better error message
2904 compiler.err.this.as.identifier=\
2905     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
2906     which has to be the first parameter, and cannot be a lambda parameter


3357 # 0: kind name, 1: symbol, 2: symbol
3358 compiler.warn.leaks.not.accessible=\
3359     {0} {1} in module {2} is not accessible to clients that require this module
3360 # 0: kind name, 1: symbol, 2: symbol
3361 compiler.warn.leaks.not.accessible.unexported=\
3362     {0} {1} in module {2} is not exported
3363 # 0: kind name, 1: symbol, 2: symbol
3364 compiler.warn.leaks.not.accessible.not.required.transitive=\
3365     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3366 # 0: kind name, 1: symbol, 2: symbol
3367 compiler.warn.leaks.not.accessible.unexported.qualified=\
3368     {0} {1} in module {2} may not be visible to all clients that require this module
3369 
3370 ###
3371 # errors related to options
3372 
3373 # 0: string, 1: string
3374 compiler.err.illegal.argument.for.option=\
3375     illegal argument for {0}: {1}
3376 






3377 compiler.err.switch.null.not.allowed=\
3378     null label in case is not allowed
3379 
3380 compiler.err.switch.case.unexpected.statement=\
3381     unexpected statement in case, expected is an expression, a block or a throw statement
3382 
3383 compiler.err.switch.mixing.case.types=\
3384     different case kinds used in the switch















































































3385 
3386 ############################################
3387 # messages previouly at javac.properties
3388 
3389 compiler.err.empty.A.argument=\
3390     -A requires an argument; use ''-Akey'' or ''-Akey=value''
3391 
3392 # 0: string
3393 compiler.err.invalid.A.key=\
3394     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
3395 
3396 # 0: string
3397 compiler.err.invalid.flag=\
3398     invalid flag: {0}
3399 
3400 compiler.err.profile.bootclasspath.conflict=\
3401     profile and bootclasspath options cannot be used together
3402 
3403 # 0: string
3404 compiler.err.invalid.profile=\




 526 compiler.err.error.reading.file=\
 527     error reading {0}; {1}
 528 
 529 # 0: type
 530 compiler.err.except.already.caught=\
 531     exception {0} has already been caught
 532 
 533 # 0: type
 534 compiler.err.except.never.thrown.in.try=\
 535     exception {0} is never thrown in body of corresponding try statement
 536 
 537 # 0: symbol
 538 compiler.err.final.parameter.may.not.be.assigned=\
 539     final parameter {0} may not be assigned
 540 
 541 # 0: symbol
 542 compiler.err.try.resource.may.not.be.assigned=\
 543     auto-closeable resource {0} may not be assigned
 544 
 545 # 0: symbol
 546 compiler.err.pattern.binding.may.not.be.assigned=\
 547     pattern binding {0} may not be assigned
 548 
 549 # 0: symbol
 550 compiler.err.multicatch.parameter.may.not.be.assigned=\
 551     multi-catch parameter {0} may not be assigned
 552 
 553 # 0: type, 1: type
 554 compiler.err.multicatch.types.must.be.disjoint=\
 555     Alternatives in a multi-catch statement cannot be related by subclassing\n\
 556     Alternative {0} is a subclass of alternative {1}
 557 
 558 compiler.err.finally.without.try=\
 559     ''finally'' without ''try''
 560 
 561 # 0: type, 1: message segment
 562 compiler.err.foreach.not.applicable.to.type=\
 563     for-each not applicable to expression type\n\
 564     required: {1}\n\
 565     found:    {0}
 566 
 567 compiler.err.fp.number.too.large=\
 568     floating point number too large
 569 


2139 ## 5. a Java separator (JLS3.11)
2140 ## 6. an operator (JLS3.12)
2141 ##
2142 ## This is the only place these tokens will be used.
2143 # 0: token
2144 compiler.err.expected=\
2145     {0} expected
2146 
2147 # 0: string
2148 compiler.err.expected.str=\
2149     {0} expected
2150 
2151 # 0: token, 1: token
2152 compiler.err.expected2=\
2153     {0} or {1} expected
2154 
2155 # 0: token, 1: token, 2: token
2156 compiler.err.expected3=\
2157     {0}, {1}, or {2} expected
2158 
2159 # 0: token, 1: token, 2: token, 3: token
2160 compiler.err.expected4=\
2161     {0}, {1}, {2}, or {3} expected
2162 
2163 compiler.err.premature.eof=\
2164     reached end of file while parsing
2165 
2166 ## The following are related in form, but do not easily fit the above paradigm.
2167 compiler.err.expected.module=\
2168     ''module'' expected
2169 
2170 compiler.err.expected.module.or.open=\
2171     ''module'' or ''open'' expected
2172 
2173 compiler.err.dot.class.expected=\
2174     ''.class'' expected
2175 
2176 ## The argument to this string will always be either 'case' or 'default'.
2177 # 0: token
2178 compiler.err.orphaned=\
2179     orphaned {0}
2180 
2181 # 0: name
2182 compiler.misc.anonymous.class=\


2875     static interface method invocations
2876 
2877 compiler.misc.feature.private.intf.methods=\
2878     private interface methods
2879 
2880 compiler.misc.feature.text.blocks=\
2881     text blocks
2882 
2883 compiler.misc.feature.multiple.case.labels=\
2884     multiple case labels
2885 
2886 compiler.misc.feature.switch.rules=\
2887     switch rules
2888 
2889 compiler.misc.feature.switch.expressions=\
2890     switch expressions
2891 
2892 compiler.misc.feature.var.syntax.in.implicit.lambda=\
2893     var syntax in implicit lambdas
2894 
2895 compiler.misc.feature.sealed.types=\
2896     sealed types
2897 
2898 compiler.warn.underscore.as.identifier=\
2899     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2900 
2901 compiler.err.underscore.as.identifier=\
2902     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2903 
2904 compiler.err.underscore.as.identifier.in.lambda=\
2905     ''_'' used as an identifier\n\
2906     (use of ''_'' as an identifier is forbidden for lambda parameters)
2907 
2908 compiler.err.enum.as.identifier=\
2909     as of release 5, ''enum'' is a keyword, and may not be used as an identifier
2910 
2911 compiler.err.assert.as.identifier=\
2912     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
2913 
2914 # TODO 308: make a better error message
2915 compiler.err.this.as.identifier=\
2916     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
2917     which has to be the first parameter, and cannot be a lambda parameter


3368 # 0: kind name, 1: symbol, 2: symbol
3369 compiler.warn.leaks.not.accessible=\
3370     {0} {1} in module {2} is not accessible to clients that require this module
3371 # 0: kind name, 1: symbol, 2: symbol
3372 compiler.warn.leaks.not.accessible.unexported=\
3373     {0} {1} in module {2} is not exported
3374 # 0: kind name, 1: symbol, 2: symbol
3375 compiler.warn.leaks.not.accessible.not.required.transitive=\
3376     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3377 # 0: kind name, 1: symbol, 2: symbol
3378 compiler.warn.leaks.not.accessible.unexported.qualified=\
3379     {0} {1} in module {2} may not be visible to all clients that require this module
3380 
3381 ###
3382 # errors related to options
3383 
3384 # 0: string, 1: string
3385 compiler.err.illegal.argument.for.option=\
3386     illegal argument for {0}: {1}
3387 
3388 compiler.err.match.binding.exists.with.different.type=\
3389     illegal attempt to redefine an existing match binding with different type
3390 
3391 compiler.err.match.binding.exists=\
3392     illegal attempt to redefine an existing match binding
3393 
3394 compiler.err.switch.null.not.allowed=\
3395     null label in case is not allowed
3396 
3397 compiler.err.switch.case.unexpected.statement=\
3398     unexpected statement in case, expected is an expression, a block or a throw statement
3399 
3400 compiler.err.switch.mixing.case.types=\
3401     different case kinds used in the switch
3402 
3403 ###
3404 # errors related to sealed classes
3405 
3406 compiler.err.permits.in.no.sealed.class=\
3407     permits clause can only appear in a sealed class
3408 
3409 # 0: symbol
3410 compiler.err.cant.inherit.from.sealed=\
3411     cannot inherit from sealed class: {0}
3412 
3413 compiler.err.non.sealed.with.no.sealed.supertype=\
3414     non-sealed modifier applied to a class with no sealed supertype
3415 
3416 ###
3417 # errors related to records
3418 
3419 compiler.err.record.cant.be.abstract=\
3420     records cannot be abstract
3421 
3422 compiler.err.record.cant.declare.duplicate.fields=\
3423     records cannot declare fields with the same name
3424 
3425 compiler.err.record.cant.declare.field.modifiers=\
3426     records cannot declare field modifiers
3427 
3428 compiler.err.record.can.only.declare.methods.as.members=\
3429     records can only declare methods as members
3430 
3431 # 0: fragment
3432 compiler.err.cant.extend.record=\
3433     Illegal ''extends'' clause for record\n\
3434     {0}
3435 
3436 compiler.misc.bad.record.super=\
3437     A record must extend class AbstractRecord or an ''abstract'' record
3438 
3439 # 0: type, 1: name, 2: type, 3: name
3440 compiler.misc.super.field.mismatch=\
3441     Superclass field declaration mismatch\n\
3442     expected: {0} {1}\n\
3443     found: {2} {3}
3444 
3445 compiler.misc.bad.super.fields=\
3446     A record cannot have both an explicit constructor, and an implicit superclass header.
3447 
3448 compiler.err.record.fields.must.be.in.header=\
3449     instance fields in a record must be declared in the header
3450 
3451 compiler.err.local.record=\
3452     records must not be local
3453 
3454 compiler.err.nested.records.must.be.static=\
3455     nested records must always be static
3456 
3457 # 0: name
3458 compiler.err.duplicate.argument.to.super=\
3459     duplicate argument {0}, arguments passed to the super of a record must be unique
3460 
3461 # 0: name
3462 compiler.err.record.not.allowed=\
3463     ''{0}'' not allowed here\n\
3464     as of release 14, ''{0}'' is a restricted type name and cannot be used for type declarations
3465 
3466 # 0: name
3467 compiler.err.method.must.be.public=\
3468     method: {0}(), must be public
3469 
3470 compiler.err.canonical.with.name.mismatch=\
3471     constructor with same signature as canonical does not match by parameter names
3472 
3473 compiler.err.constructor.with.same.erasure.as.canonical=\
3474     constructor with same erasure as canonical constructor
3475 
3476 # 0: type, 1: type
3477 compiler.err.accessor.return.type.doesnt.match=\
3478     type returned by the accessor is not the same as the type of the corresponding record component\n\
3479     required: {0}\n\
3480     found:    {1}\n\
3481 
3482 ############################################
3483 # messages previouly at javac.properties
3484 
3485 compiler.err.empty.A.argument=\
3486     -A requires an argument; use ''-Akey'' or ''-Akey=value''
3487 
3488 # 0: string
3489 compiler.err.invalid.A.key=\
3490     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
3491 
3492 # 0: string
3493 compiler.err.invalid.flag=\
3494     invalid flag: {0}
3495 
3496 compiler.err.profile.bootclasspath.conflict=\
3497     profile and bootclasspath options cannot be used together
3498 
3499 # 0: string
3500 compiler.err.invalid.profile=\


< prev index next >