< prev index next >
test/langtools/tools/javac/switchextra/MultipleLabelsStatement.java
Print this page
*** 1,11 ****
/*
* @test /nodynamiccopyright/
* @bug 8206986
* @summary Verify cases with multiple labels work properly.
* @compile/fail/ref=MultipleLabelsStatement-old.out -source 9 -Xlint:-options -XDrawDiagnostics MultipleLabelsStatement.java
! * @compile --enable-preview -source 12 MultipleLabelsStatement.java
* @run main/othervm --enable-preview MultipleLabelsStatement
*/
import java.util.Objects;
import java.util.function.Function;
--- 1,11 ----
/*
* @test /nodynamiccopyright/
* @bug 8206986
* @summary Verify cases with multiple labels work properly.
* @compile/fail/ref=MultipleLabelsStatement-old.out -source 9 -Xlint:-options -XDrawDiagnostics MultipleLabelsStatement.java
! * @compile --enable-preview -source 13 MultipleLabelsStatement.java
* @run main/othervm --enable-preview MultipleLabelsStatement
*/
import java.util.Objects;
import java.util.function.Function;
< prev index next >