test/langtools/tools/javac/switchexpr/ExpressionSwitchFlow.java
changeset 53878 4584d0331318
parent 53023 6879069d9d94
child 55306 ea43db53de91
child 58678 9cf78a70fa4f
--- a/test/langtools/tools/javac/switchexpr/ExpressionSwitchFlow.java	Thu Feb 21 10:26:56 2019 -0800
+++ b/test/langtools/tools/javac/switchexpr/ExpressionSwitchFlow.java	Thu Feb 21 10:29:16 2019 -0800
@@ -2,7 +2,7 @@
  * @test /nodynamiccopyright/
  * @bug 8212982
  * @summary Verify a compile-time error is produced if switch expression does not provide a value
- * @compile/fail/ref=ExpressionSwitchFlow.out --enable-preview -source 13 -XDrawDiagnostics ExpressionSwitchFlow.java
+ * @compile/fail/ref=ExpressionSwitchFlow.out --enable-preview -source ${jdk.version} -XDrawDiagnostics ExpressionSwitchFlow.java
  */
 
 public class ExpressionSwitchFlow {