equal
deleted
inserted
replaced
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 8214113 |
26 * @bug 8214113 |
27 * @summary Verify the switch expression's type does not have a constant attached, |
27 * @summary Verify the switch expression's type does not have a constant attached, |
28 * and so the switch expression is not elided. |
28 * and so the switch expression is not elided. |
29 * @compile --enable-preview --source ${jdk.version} SwitchExpressionIsNotAConstant.java |
29 * @compile SwitchExpressionIsNotAConstant.java |
30 * @run main/othervm --enable-preview SwitchExpressionIsNotAConstant |
30 * @run main SwitchExpressionIsNotAConstant |
31 */ |
31 */ |
32 public class SwitchExpressionIsNotAConstant { |
32 public class SwitchExpressionIsNotAConstant { |
33 |
33 |
34 public static void main(String[] args) { |
34 public static void main(String[] args) { |
35 int i = 0; |
35 int i = 0; |