8255863: Clean up test/jdk/java/lang/invoke/defineHiddenClass/BasicTest.java

Reviewed-by: rriggs, chegar
This commit is contained in:
Mandy Chung 2020-11-04 17:44:09 +00:00
parent 2da9981e33
commit 94ace035a5

View File

@ -31,7 +31,7 @@
* BadClassFileVersion.jcod * BadClassFileVersion.jcod
* @build jdk.test.lib.Utils * @build jdk.test.lib.Utils
* jdk.test.lib.compiler.CompilerUtils * jdk.test.lib.compiler.CompilerUtils
* @run testng/othervm --enable-preview BasicTest * @run testng/othervm BasicTest
*/ */
import java.io.File; import java.io.File;
@ -77,8 +77,7 @@ public class BasicTest {
@BeforeTest @BeforeTest
static void setup() throws IOException { static void setup() throws IOException {
compileSources(SRC_DIR, CLASSES_DIR, compileSources(SRC_DIR, CLASSES_DIR);
"--enable-preview", "-source", String.valueOf(Runtime.version().feature()));
hiddenClassBytes = Files.readAllBytes(CLASSES_DIR.resolve("HiddenClass.class")); hiddenClassBytes = Files.readAllBytes(CLASSES_DIR.resolve("HiddenClass.class"));
// compile with --release 10 with no NestHost and NestMembers attribute // compile with --release 10 with no NestHost and NestMembers attribute