Skip to content

Commit 94ace03

Browse files
author
Mandy Chung
committed
8255863: Clean up test/jdk/java/lang/invoke/defineHiddenClass/BasicTest.java
Reviewed-by: rriggs, chegar
1 parent 2da9981 commit 94ace03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/jdk/java/lang/invoke/defineHiddenClass/BasicTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* BadClassFileVersion.jcod
3232
* @build jdk.test.lib.Utils
3333
* jdk.test.lib.compiler.CompilerUtils
34-
* @run testng/othervm --enable-preview BasicTest
34+
* @run testng/othervm BasicTest
3535
*/
3636

3737
import java.io.File;
@@ -77,8 +77,7 @@ public class BasicTest {
7777

7878
@BeforeTest
7979
static void setup() throws IOException {
80-
compileSources(SRC_DIR, CLASSES_DIR,
81-
"--enable-preview", "-source", String.valueOf(Runtime.version().feature()));
80+
compileSources(SRC_DIR, CLASSES_DIR);
8281
hiddenClassBytes = Files.readAllBytes(CLASSES_DIR.resolve("HiddenClass.class"));
8382

8483
// compile with --release 10 with no NestHost and NestMembers attribute

0 commit comments

Comments
 (0)