< prev index next >

test/langtools/tools/javac/switchextra/SwitchStatementArrow.java

Print this page
rev 56510 : 8232684: Make switch expressions final
Reviewed-by: TBD

@@ -1,12 +1,12 @@
 /*
  * @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 ${jdk.version} SwitchStatementArrow.java
- * @run main/othervm --enable-preview SwitchStatementArrow
+ * @compile SwitchStatementArrow.java
+ * @run main SwitchStatementArrow
  */
 
 import java.util.Objects;
 import java.util.function.Function;
 
< prev index next >