test/langtools/tools/javac/switchexpr/EmptySwitch.java
changeset 59021 cfc7bb9a5a92
parent 55528 bad3754349aa
--- a/test/langtools/tools/javac/switchexpr/EmptySwitch.java	Mon Nov 11 17:43:10 2019 -0800
+++ b/test/langtools/tools/javac/switchexpr/EmptySwitch.java	Tue Nov 12 06:32:13 2019 +0000
@@ -25,7 +25,7 @@
  * @test
  * @bug 8206986 8226510
  * @summary Verify than a switch that does not yield a value is rejected.
- * @compile/fail/ref=EmptySwitch.out --enable-preview -source ${jdk.version} -XDrawDiagnostics -XDshould-stop.at=FLOW EmptySwitch.java
+ * @compile/fail/ref=EmptySwitch.out -XDrawDiagnostics -XDshould-stop.at=FLOW EmptySwitch.java
  */
 
 public class EmptySwitch {