< prev index next >

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

Print this page
rev 51104 : imported patch switch

*** 185,194 **** --- 185,216 ---- bad initializer for {0} compiler.err.break.outside.switch.loop=\ break outside switch or loop + compiler.err.break.missing.value=\ + break is missing a value to return from switch expression + + compiler.err.break.outside.switch.expression=\ + break is jumping outside of the enclosing switch expression + + compiler.err.continue.outside.switch.expression=\ + continue is jumping outside of the enclosing switch expression + + compiler.err.return.outside.switch.expression=\ + return is returning outside of the enclosing switch expression + + # 0: name + compiler.err.break.ambiguous.target=\ + {0} is both a valid expression and a valid label + + compiler.err.break.expr.not.immediate=\ + expression break not immediately enclosed by a switch expression + + compiler.err.break.complex.value.no.switch.expression=\ + value break outside of switch expression + # 0: name compiler.err.call.must.be.first.stmt.in.ctor=\ call to {0} must be first statement in constructor # 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
*** 812,821 **** --- 834,851 ---- {0} compiler.misc.conditional.target.cant.be.void=\ target-type for conditional expression cannot be void + compiler.misc.switch.expression.target.cant.be.void=\ + target-type for switch expression cannot be void + + # 0: message segment + compiler.misc.incompatible.type.in.switch.expression=\ + bad type in switch expression\n\ + {0} + # 0: message segment compiler.misc.incompatible.ret.type.in.lambda=\ bad return type in lambda expression\n\ {0}
*** 1287,1296 **** --- 1317,1329 ---- reason: {1} compiler.err.unreachable.stmt=\ unreachable statement + compiler.err.not.exhaustive=\ + the switch expression does not cover all possible input values + compiler.err.initializer.must.be.able.to.complete.normally=\ initializer must be able to complete normally compiler.err.initializer.not.allowed=\ initializers not allowed in interfaces
*** 2766,2775 **** --- 2799,2817 ---- static interface method invocations compiler.misc.feature.private.intf.methods=\ private interface methods + compiler.misc.feature.multiple.case.labels=\ + multiple case labels + + compiler.misc.feature.switch.rules=\ + switch rules + + compiler.misc.feature.switch.expressions=\ + switch expressions + compiler.warn.underscore.as.identifier=\ as of release 9, ''_'' is a keyword, and may not be used as an identifier compiler.err.underscore.as.identifier=\ as of release 9, ''_'' is a keyword, and may not be used as an identifier
*** 3255,3264 **** --- 3297,3314 ---- # 0: string, 1: string compiler.err.illegal.argument.for.option=\ illegal argument for {0}: {1} + compiler.err.switch.null.not.allowed=\ + null label in case is not allowed + + compiler.err.switch.case.unexpected.statement=\ + unexpected statement in case, expected is an expression, a block or a throw statement + + compiler.err.switch.mixing.case.types=\ + different case kinds used in the switch ############################################ # messages previouly at javac.properties compiler.err.empty.A.argument=\
< prev index next >