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