test/langtools/tools/javac/switchexpr/BreakTest.java
changeset 59021 cfc7bb9a5a92
parent 55306 ea43db53de91
--- a/test/langtools/tools/javac/switchexpr/BreakTest.java	Mon Nov 11 17:43:10 2019 -0800
+++ b/test/langtools/tools/javac/switchexpr/BreakTest.java	Tue Nov 12 06:32:13 2019 +0000
@@ -67,7 +67,7 @@
 
         StringWriter out = new StringWriter();
         JavacTask ct = (JavacTask) tool.getTask(out, null, noErrors,
-            List.of("-XDdev", "--enable-preview", "-source", sourceVersion), null,
+            List.of("-XDdev"), null,
             Arrays.asList(new MyFileObject(CODE)));
         List<String> labels = new ArrayList<>();
         new TreePathScanner<Void, Void>() {