--- a/test/langtools/tools/javac/switchextra/RuleParsingTest.java Thu Dec 13 17:01:15 2018 +0100
+++ b/test/langtools/tools/javac/switchextra/RuleParsingTest.java Thu Dec 13 19:06:11 2018 +0100
@@ -94,7 +94,7 @@
StringWriter out = new StringWriter();
JavacTask ct = (JavacTask) tool.getTask(out, null, noErrors,
- List.of("--enable-preview", "-source", "12"), null,
+ List.of("--enable-preview", "-source", "13"), null,
Arrays.asList(new MyFileObject(code.toString())));
CompilationUnitTree cut = ct.parse().iterator().next();
Trees trees = Trees.instance(ct);