< prev index next >

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

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

@@ -1,11 +1,11 @@
 /*
  * @test /nodymaticcopyright/
  * @bug 8206986
  * @summary Verify reasonable errors are produced when neither ':' nor '->'
  *          is found are the expression of a case
- * @compile/fail/ref=SwitchArrowBrokenConstant.out -source ${jdk.version} --enable-preview -Xlint:-preview -XDrawDiagnostics SwitchArrowBrokenConstant.java
+ * @compile/fail/ref=SwitchArrowBrokenConstant.out -Xlint:-preview -XDrawDiagnostics SwitchArrowBrokenConstant.java
  */
 
 public class SwitchArrowBrokenConstant {
 
     private String likeLambda(int i) {
< prev index next >