mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8250625: Compiler implementation of Pattern Matching for instanceof (Final)
Reviewed-by: vromero
This commit is contained in:
parent
60e4aca846
commit
18bc95ba51
86 changed files with 230 additions and 312 deletions
|
@ -105,7 +105,7 @@ public class PatternsSimpleVisitorTest {
|
|||
|
||||
StringWriter out = new StringWriter();
|
||||
JavacTask ct = (JavacTask) tool.getTask(out, null, noErrors,
|
||||
List.of("--enable-preview", "-source", Integer.toString(Runtime.version().feature())), null,
|
||||
null, null,
|
||||
Arrays.asList(new MyFileObject(code)));
|
||||
return ct.parse().iterator().next();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue