Skip to content

Commit c70d9b0

Browse files
committed
8286474: Drop --enable-preview from Sealed Classes related tests
Backport-of: d547a707bf1f9e252213fdab7eaf076b5cf884b4
1 parent 11639f7 commit c70d9b0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/jdk/java/lang/reflect/sealed_classes/SealedClassesReflectionTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,8 +25,8 @@
2525
* @test
2626
* @bug 8227046
2727
* @summary reflection test for sealed classes
28-
* @compile --enable-preview -source ${jdk.version} SealedClassesReflectionTest.java
29-
* @run testng/othervm --enable-preview SealedClassesReflectionTest
28+
* @compile SealedClassesReflectionTest.java
29+
* @run testng/othervm SealedClassesReflectionTest
3030
*/
3131

3232
import java.lang.annotation.*;

test/jdk/java/lang/reflect/sealed_classes/TestSecurityManagerChecks.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,8 +28,8 @@
2828
* @library /test/lib
2929
* @modules java.compiler
3030
* @build jdk.test.lib.compiler.CompilerUtils jdk.test.lib.compiler.ModuleInfoMaker TestSecurityManagerChecks
31-
* @run main/othervm -Djava.security.manager=allow --enable-preview TestSecurityManagerChecks named
32-
* @run main/othervm -Djava.security.manager=allow --enable-preview TestSecurityManagerChecks unnamed
31+
* @run main/othervm -Djava.security.manager=allow TestSecurityManagerChecks named
32+
* @run main/othervm -Djava.security.manager=allow TestSecurityManagerChecks unnamed
3333
*/
3434

3535
import java.io.IOException;

0 commit comments

Comments
 (0)