8250625: Compiler implementation of Pattern Matching for instanceof (Final)

Reviewed-by: vromero
This commit is contained in:
Jan Lahoda 2020-11-05 08:01:33 +00:00
parent 60e4aca846
commit 18bc95ba51
86 changed files with 230 additions and 312 deletions

View file

@ -98,10 +98,7 @@ public class ScopeTest extends JavacTemplateTestBase {
}
private void assertOK(String block) {
String sourceVersion = Integer.toString(Runtime.version().feature());
reset();
addCompileOptions("--enable-preview", "-source", sourceVersion);
program(block);
try {
compile();
@ -113,10 +110,7 @@ public class ScopeTest extends JavacTemplateTestBase {
}
private void assertFail(String expectedDiag, String block) {
String sourceVersion = Integer.toString(Runtime.version().feature());
reset();
addCompileOptions("--enable-preview", "-source", sourceVersion);
program(block);
try {
compile();