mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8232684: Make switch expressions final
Reviewed-by: alanb, mcimadamore, kvn
This commit is contained in:
parent
f390c87d8d
commit
29852ecd80
134 changed files with 139 additions and 396 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue