< prev index next >

test/langtools/tools/javac/switchexpr/SwitchExpressionIsNotAConstant.java

Print this page

        

*** 24,34 **** /** * @test * @bug 8214113 * @summary Verify the switch expression's type does not have a constant attached, * and so the switch expression is not elided. ! * @compile --enable-preview --source 12 SwitchExpressionIsNotAConstant.java * @run main/othervm --enable-preview SwitchExpressionIsNotAConstant */ public class SwitchExpressionIsNotAConstant { public static void main(String[] args) { --- 24,34 ---- /** * @test * @bug 8214113 * @summary Verify the switch expression's type does not have a constant attached, * and so the switch expression is not elided. ! * @compile --enable-preview --source 13 SwitchExpressionIsNotAConstant.java * @run main/othervm --enable-preview SwitchExpressionIsNotAConstant */ public class SwitchExpressionIsNotAConstant { public static void main(String[] args) {
< prev index next >