8232684: Make switch expressions final

Reviewed-by: alanb, mcimadamore, kvn
This commit is contained in:
Jan Lahoda 2019-11-12 06:32:13 +00:00
parent f390c87d8d
commit 29852ecd80
134 changed files with 139 additions and 396 deletions

View file

@ -1096,7 +1096,7 @@ public class JavacParserTest extends TestCase {
String expectedErrors = "Test.java:1:178: compiler.err.switch.case.unexpected.statement\n";
StringWriter out = new StringWriter();
JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(out, fm, null,
Arrays.asList("-XDrawDiagnostics", "--enable-preview", "-source", SOURCE_VERSION),
Arrays.asList("-XDrawDiagnostics"),
null, Arrays.asList(new MyFileObject(code)));
CompilationUnitTree cut = ct.parse().iterator().next();