< prev index next >

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

Print this page
rev 51104 : imported patch switch


 170 compiler.err.array.dimension.missing=\
 171     array dimension missing
 172 
 173 compiler.err.illegal.array.creation.both.dimension.and.initialization=\
 174     array creation with both dimension expression and initialization is illegal
 175 
 176 # 0: type
 177 compiler.err.array.req.but.found=\
 178     array required, but {0} found
 179 
 180 compiler.err.attribute.value.must.be.constant=\
 181     element value must be a constant expression
 182 
 183 # 0: string (statement type)
 184 compiler.err.bad.initializer=\
 185     bad initializer for {0}
 186 
 187 compiler.err.break.outside.switch.loop=\
 188     break outside switch or loop
 189 






















 190 # 0: name
 191 compiler.err.call.must.be.first.stmt.in.ctor=\
 192     call to {0} must be first statement in constructor
 193 
 194 # 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
 195 compiler.err.cant.apply.symbol=\
 196     {0} {1} in {4} {5} cannot be applied to given types;\n\
 197     required: {2}\n\
 198     found: {3}\n\
 199     reason: {6}
 200 
 201 # 0: symbol kind, 1: name, 2: list of type
 202 compiler.err.cant.apply.symbols=\
 203     no suitable {0} found for {1}({2})
 204 
 205 # 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
 206 compiler.misc.cant.apply.symbol=\
 207     {0} {1} in {4} {5} cannot be applied to given types\n\
 208     required: {2}\n\
 209     found: {3}\n\


 797     {0} is reserved for internal use
 798 
 799 compiler.err.native.meth.cant.have.body=\
 800     native methods cannot have a body
 801 
 802 # 0: type, 1: type
 803 compiler.err.neither.conditional.subtype=\
 804     incompatible types for ?: neither is a subtype of the other\n\
 805     second operand: {0}\n\
 806     third operand : {1}
 807 
 808 
 809 # 0: message segment
 810 compiler.misc.incompatible.type.in.conditional=\
 811     bad type in conditional expression\n\
 812     {0}
 813 
 814 compiler.misc.conditional.target.cant.be.void=\
 815     target-type for conditional expression cannot be void
 816 








 817 # 0: message segment
 818 compiler.misc.incompatible.ret.type.in.lambda=\
 819     bad return type in lambda expression\n\
 820     {0}
 821 
 822 compiler.misc.stat.expr.expected=\
 823     lambda body is not compatible with a void functional interface\n\
 824     (consider using a block lambda body, or use a statement expression instead)
 825 
 826 # 0: message segment
 827 compiler.misc.incompatible.ret.type.in.mref=\
 828     bad return type in method reference\n\
 829     {0}
 830 
 831 compiler.err.lambda.body.neither.value.nor.void.compatible=\
 832     lambda body is neither value nor void compatible
 833 
 834 # 0: list of type
 835 compiler.err.incompatible.thrown.types.in.mref=\
 836     incompatible thrown types {0} in functional expression


1272 compiler.misc.local.self.ref=\
1273     cannot use ''var'' on self-referencing variable
1274 
1275 # 0: message segment, 1: unused
1276 compiler.err.cant.apply.diamond=\
1277     cannot infer type arguments for {0}
1278 
1279 # 0: message segment or type, 1: message segment
1280 compiler.err.cant.apply.diamond.1=\
1281     cannot infer type arguments for {0}\n\
1282     reason: {1}
1283 
1284 # 0: message segment or type, 1: message segment
1285 compiler.misc.cant.apply.diamond.1=\
1286     cannot infer type arguments for {0}\n\
1287     reason: {1}
1288 
1289 compiler.err.unreachable.stmt=\
1290     unreachable statement
1291 



1292 compiler.err.initializer.must.be.able.to.complete.normally=\
1293     initializer must be able to complete normally
1294 
1295 compiler.err.initializer.not.allowed=\
1296     initializers not allowed in interfaces
1297 
1298 # 0: type
1299 compiler.err.unreported.exception.need.to.catch.or.throw=\
1300     unreported exception {0}; must be caught or declared to be thrown
1301 
1302 # 0: type
1303 compiler.err.unreported.exception.default.constructor=\
1304     unreported exception {0} in default constructor
1305 
1306 # 0: type, 1: name
1307 compiler.err.unreported.exception.implicit.close=\
1308     unreported exception {0}; must be caught or declared to be thrown\n\
1309     exception thrown from implicit call to close() on resource variable ''{1}''
1310 
1311 compiler.err.unsupported.cross.fp.lit=\


2751     lambda expressions
2752 
2753 compiler.misc.feature.method.references=\
2754     method references
2755 
2756 compiler.misc.feature.default.methods=\
2757     default methods
2758 
2759 compiler.misc.feature.intersection.types.in.cast=\
2760     intersection types
2761 
2762 compiler.misc.feature.static.intf.methods=\
2763     static interface methods
2764 
2765 compiler.misc.feature.static.intf.method.invoke=\
2766     static interface method invocations
2767 
2768 compiler.misc.feature.private.intf.methods=\
2769     private interface methods
2770 









2771 compiler.warn.underscore.as.identifier=\
2772     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2773 
2774 compiler.err.underscore.as.identifier=\
2775     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2776 
2777 compiler.err.underscore.as.identifier.in.lambda=\
2778     ''_'' used as an identifier\n\
2779     (use of ''_'' as an identifier is forbidden for lambda parameters)
2780 
2781 compiler.err.enum.as.identifier=\
2782     as of release 5, ''enum'' is a keyword, and may not be used as an identifier
2783 
2784 compiler.err.assert.as.identifier=\
2785     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
2786 
2787 # TODO 308: make a better error message
2788 compiler.err.this.as.identifier=\
2789     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
2790     which has to be the first parameter, and cannot be a lambda parameter


3240 # 0: kind name, 1: symbol, 2: symbol
3241 compiler.warn.leaks.not.accessible=\
3242     {0} {1} in module {2} is not accessible to clients that require this module
3243 # 0: kind name, 1: symbol, 2: symbol
3244 compiler.warn.leaks.not.accessible.unexported=\
3245     {0} {1} in module {2} is not exported
3246 # 0: kind name, 1: symbol, 2: symbol
3247 compiler.warn.leaks.not.accessible.not.required.transitive=\
3248     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3249 # 0: kind name, 1: symbol, 2: symbol
3250 compiler.warn.leaks.not.accessible.unexported.qualified=\
3251     {0} {1} in module {2} may not be visible to all clients that require this module
3252 
3253 ###
3254 # errors related to options
3255 
3256 # 0: string, 1: string
3257 compiler.err.illegal.argument.for.option=\
3258     illegal argument for {0}: {1}
3259 








3260 
3261 ############################################
3262 # messages previouly at javac.properties
3263 
3264 compiler.err.empty.A.argument=\
3265     -A requires an argument; use ''-Akey'' or ''-Akey=value''
3266 
3267 # 0: string
3268 compiler.err.invalid.A.key=\
3269     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
3270 
3271 # 0: string
3272 compiler.err.invalid.flag=\
3273     invalid flag: {0}
3274 
3275 compiler.err.profile.bootclasspath.conflict=\
3276     profile and bootclasspath options cannot be used together
3277 
3278 # 0: string
3279 compiler.err.invalid.profile=\




 170 compiler.err.array.dimension.missing=\
 171     array dimension missing
 172 
 173 compiler.err.illegal.array.creation.both.dimension.and.initialization=\
 174     array creation with both dimension expression and initialization is illegal
 175 
 176 # 0: type
 177 compiler.err.array.req.but.found=\
 178     array required, but {0} found
 179 
 180 compiler.err.attribute.value.must.be.constant=\
 181     element value must be a constant expression
 182 
 183 # 0: string (statement type)
 184 compiler.err.bad.initializer=\
 185     bad initializer for {0}
 186 
 187 compiler.err.break.outside.switch.loop=\
 188     break outside switch or loop
 189 
 190 compiler.err.break.missing.value=\
 191     break is missing a value to return from switch expression
 192 
 193 compiler.err.break.outside.switch.expression=\
 194     break is jumping outside of the enclosing switch expression
 195 
 196 compiler.err.continue.outside.switch.expression=\
 197     continue is jumping outside of the enclosing switch expression
 198 
 199 compiler.err.return.outside.switch.expression=\
 200     return is returning outside of the enclosing switch expression
 201 
 202 # 0: name
 203 compiler.err.break.ambiguous.target=\
 204     {0} is both a valid expression and a valid label
 205 
 206 compiler.err.break.expr.not.immediate=\
 207     expression break not immediately enclosed by a switch expression
 208 
 209 compiler.err.break.complex.value.no.switch.expression=\
 210     value break outside of switch expression
 211 
 212 # 0: name
 213 compiler.err.call.must.be.first.stmt.in.ctor=\
 214     call to {0} must be first statement in constructor
 215 
 216 # 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
 217 compiler.err.cant.apply.symbol=\
 218     {0} {1} in {4} {5} cannot be applied to given types;\n\
 219     required: {2}\n\
 220     found: {3}\n\
 221     reason: {6}
 222 
 223 # 0: symbol kind, 1: name, 2: list of type
 224 compiler.err.cant.apply.symbols=\
 225     no suitable {0} found for {1}({2})
 226 
 227 # 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
 228 compiler.misc.cant.apply.symbol=\
 229     {0} {1} in {4} {5} cannot be applied to given types\n\
 230     required: {2}\n\
 231     found: {3}\n\


 819     {0} is reserved for internal use
 820 
 821 compiler.err.native.meth.cant.have.body=\
 822     native methods cannot have a body
 823 
 824 # 0: type, 1: type
 825 compiler.err.neither.conditional.subtype=\
 826     incompatible types for ?: neither is a subtype of the other\n\
 827     second operand: {0}\n\
 828     third operand : {1}
 829 
 830 
 831 # 0: message segment
 832 compiler.misc.incompatible.type.in.conditional=\
 833     bad type in conditional expression\n\
 834     {0}
 835 
 836 compiler.misc.conditional.target.cant.be.void=\
 837     target-type for conditional expression cannot be void
 838 
 839 compiler.misc.switch.expression.target.cant.be.void=\
 840     target-type for switch expression cannot be void
 841 
 842 # 0: message segment
 843 compiler.misc.incompatible.type.in.switch.expression=\
 844     bad type in switch expression\n\
 845     {0}
 846 
 847 # 0: message segment
 848 compiler.misc.incompatible.ret.type.in.lambda=\
 849     bad return type in lambda expression\n\
 850     {0}
 851 
 852 compiler.misc.stat.expr.expected=\
 853     lambda body is not compatible with a void functional interface\n\
 854     (consider using a block lambda body, or use a statement expression instead)
 855 
 856 # 0: message segment
 857 compiler.misc.incompatible.ret.type.in.mref=\
 858     bad return type in method reference\n\
 859     {0}
 860 
 861 compiler.err.lambda.body.neither.value.nor.void.compatible=\
 862     lambda body is neither value nor void compatible
 863 
 864 # 0: list of type
 865 compiler.err.incompatible.thrown.types.in.mref=\
 866     incompatible thrown types {0} in functional expression


1302 compiler.misc.local.self.ref=\
1303     cannot use ''var'' on self-referencing variable
1304 
1305 # 0: message segment, 1: unused
1306 compiler.err.cant.apply.diamond=\
1307     cannot infer type arguments for {0}
1308 
1309 # 0: message segment or type, 1: message segment
1310 compiler.err.cant.apply.diamond.1=\
1311     cannot infer type arguments for {0}\n\
1312     reason: {1}
1313 
1314 # 0: message segment or type, 1: message segment
1315 compiler.misc.cant.apply.diamond.1=\
1316     cannot infer type arguments for {0}\n\
1317     reason: {1}
1318 
1319 compiler.err.unreachable.stmt=\
1320     unreachable statement
1321 
1322 compiler.err.not.exhaustive=\
1323     the switch expression does not cover all possible input values
1324 
1325 compiler.err.initializer.must.be.able.to.complete.normally=\
1326     initializer must be able to complete normally
1327 
1328 compiler.err.initializer.not.allowed=\
1329     initializers not allowed in interfaces
1330 
1331 # 0: type
1332 compiler.err.unreported.exception.need.to.catch.or.throw=\
1333     unreported exception {0}; must be caught or declared to be thrown
1334 
1335 # 0: type
1336 compiler.err.unreported.exception.default.constructor=\
1337     unreported exception {0} in default constructor
1338 
1339 # 0: type, 1: name
1340 compiler.err.unreported.exception.implicit.close=\
1341     unreported exception {0}; must be caught or declared to be thrown\n\
1342     exception thrown from implicit call to close() on resource variable ''{1}''
1343 
1344 compiler.err.unsupported.cross.fp.lit=\


2784     lambda expressions
2785 
2786 compiler.misc.feature.method.references=\
2787     method references
2788 
2789 compiler.misc.feature.default.methods=\
2790     default methods
2791 
2792 compiler.misc.feature.intersection.types.in.cast=\
2793     intersection types
2794 
2795 compiler.misc.feature.static.intf.methods=\
2796     static interface methods
2797 
2798 compiler.misc.feature.static.intf.method.invoke=\
2799     static interface method invocations
2800 
2801 compiler.misc.feature.private.intf.methods=\
2802     private interface methods
2803 
2804 compiler.misc.feature.multiple.case.labels=\
2805     multiple case labels
2806 
2807 compiler.misc.feature.switch.rules=\
2808     switch rules
2809 
2810 compiler.misc.feature.switch.expressions=\
2811     switch expressions
2812 
2813 compiler.warn.underscore.as.identifier=\
2814     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2815 
2816 compiler.err.underscore.as.identifier=\
2817     as of release 9, ''_'' is a keyword, and may not be used as an identifier
2818 
2819 compiler.err.underscore.as.identifier.in.lambda=\
2820     ''_'' used as an identifier\n\
2821     (use of ''_'' as an identifier is forbidden for lambda parameters)
2822 
2823 compiler.err.enum.as.identifier=\
2824     as of release 5, ''enum'' is a keyword, and may not be used as an identifier
2825 
2826 compiler.err.assert.as.identifier=\
2827     as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier
2828 
2829 # TODO 308: make a better error message
2830 compiler.err.this.as.identifier=\
2831     as of release 8, ''this'' is allowed as the parameter name for the receiver type only\n\
2832     which has to be the first parameter, and cannot be a lambda parameter


3282 # 0: kind name, 1: symbol, 2: symbol
3283 compiler.warn.leaks.not.accessible=\
3284     {0} {1} in module {2} is not accessible to clients that require this module
3285 # 0: kind name, 1: symbol, 2: symbol
3286 compiler.warn.leaks.not.accessible.unexported=\
3287     {0} {1} in module {2} is not exported
3288 # 0: kind name, 1: symbol, 2: symbol
3289 compiler.warn.leaks.not.accessible.not.required.transitive=\
3290     {0} {1} in module {2} is not indirectly exported using 'requires transitive'
3291 # 0: kind name, 1: symbol, 2: symbol
3292 compiler.warn.leaks.not.accessible.unexported.qualified=\
3293     {0} {1} in module {2} may not be visible to all clients that require this module
3294 
3295 ###
3296 # errors related to options
3297 
3298 # 0: string, 1: string
3299 compiler.err.illegal.argument.for.option=\
3300     illegal argument for {0}: {1}
3301 
3302 compiler.err.switch.null.not.allowed=\
3303     null label in case is not allowed
3304 
3305 compiler.err.switch.case.unexpected.statement=\
3306     unexpected statement in case, expected is an expression, a block or a throw statement
3307 
3308 compiler.err.switch.mixing.case.types=\
3309     different case kinds used in the switch
3310 
3311 ############################################
3312 # messages previouly at javac.properties
3313 
3314 compiler.err.empty.A.argument=\
3315     -A requires an argument; use ''-Akey'' or ''-Akey=value''
3316 
3317 # 0: string
3318 compiler.err.invalid.A.key=\
3319     key in annotation processor option ''{0}'' is not a dot-separated sequence of identifiers
3320 
3321 # 0: string
3322 compiler.err.invalid.flag=\
3323     invalid flag: {0}
3324 
3325 compiler.err.profile.bootclasspath.conflict=\
3326     profile and bootclasspath options cannot be used together
3327 
3328 # 0: string
3329 compiler.err.invalid.profile=\


< prev index next >