--- old/test/langtools/tools/javac/switchexpr/SwitchExpressionSimpleVisitorTest.java 2018-12-05 13:52:36.823076202 -0800 +++ new/test/langtools/tools/javac/switchexpr/SwitchExpressionSimpleVisitorTest.java 2018-12-05 13:52:36.611182195 -0800 @@ -89,7 +89,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))); return ct.parse().iterator().next(); }