test/langtools/tools/javac/switchexpr/WrongYieldTest.java
changeset 59021 cfc7bb9a5a92
parent 55561 4c0a7916d3cd
--- a/test/langtools/tools/javac/switchexpr/WrongYieldTest.java	Mon Nov 11 17:43:10 2019 -0800
+++ b/test/langtools/tools/javac/switchexpr/WrongYieldTest.java	Tue Nov 12 06:32:13 2019 +0000
@@ -25,7 +25,7 @@
  * @test
  * @bug 8223305 8226522
  * @summary Ensure proper errors are returned for yields.
- * @compile/fail/ref=WrongYieldTest.out --enable-preview -source ${jdk.version} -XDrawDiagnostics -XDshould-stop.at=ATTR WrongYieldTest.java
+ * @compile/fail/ref=WrongYieldTest.out -XDrawDiagnostics -XDshould-stop.at=ATTR WrongYieldTest.java
  */
 
 package t;