--- old/test/langtools/tools/javac/switchextra/RuleParsingTest.java 2018-12-05 13:52:39.729622308 -0800 +++ new/test/langtools/tools/javac/switchextra/RuleParsingTest.java 2018-12-05 13:52:39.537718301 -0800 @@ -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);