test/langtools/tools/javac/switchextra/SwitchStatementScopesIsolated.java
changeset 59021 cfc7bb9a5a92
parent 53878 4584d0331318
--- a/test/langtools/tools/javac/switchextra/SwitchStatementScopesIsolated.java	Mon Nov 11 17:43:10 2019 -0800
+++ b/test/langtools/tools/javac/switchextra/SwitchStatementScopesIsolated.java	Tue Nov 12 06:32:13 2019 +0000
@@ -2,7 +2,7 @@
  * @test /nodynamiccopyright/
  * @bug 8206986
  * @summary Verify that scopes in rule cases are isolated.
- * @compile/fail/ref=SwitchStatementScopesIsolated.out -XDrawDiagnostics --enable-preview -source ${jdk.version} SwitchStatementScopesIsolated.java
+ * @compile/fail/ref=SwitchStatementScopesIsolated.out -XDrawDiagnostics SwitchStatementScopesIsolated.java
  */
 
 public class SwitchStatementScopesIsolated {