--- a/test/langtools/tools/javac/switchexpr/WarnWrongYieldTest.java Thu Jun 13 18:02:18 2019 +0200
+++ b/test/langtools/tools/javac/switchexpr/WarnWrongYieldTest.java Tue Jun 11 16:45:20 2019 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8223305
* @summary Verify correct warnings w.r.t. yield
- * @compile/ref=WarnWrongYieldTest.out -source 13 -XDrawDiagnostics -XDshould-stop.at=ATTR WarnWrongYieldTest.java
+ * @compile/ref=WarnWrongYieldTest.out -source ${jdk.version} -XDrawDiagnostics -XDshould-stop.at=ATTR WarnWrongYieldTest.java
*/
package t;