< prev index next >
test/langtools/tools/javac/switchexpr/ExpressionSwitchDA.java
Print this page
rev 56510 : 8232684: Make switch expressions final
Reviewed-by: TBD
*** 23,34 ****
/*
* @test
* @bug 8206986
* @summary Check definite (un)assignment for in switch expressions.
! * @compile --enable-preview -source ${jdk.version} ExpressionSwitchDA.java
! * @run main/othervm --enable-preview ExpressionSwitchDA
*/
public class ExpressionSwitchDA {
public static void test1() {
int i;
--- 23,34 ----
/*
* @test
* @bug 8206986
* @summary Check definite (un)assignment for in switch expressions.
! * @compile ExpressionSwitchDA.java
! * @run main ExpressionSwitchDA
*/
public class ExpressionSwitchDA {
public static void test1() {
int i;
< prev index next >