Skip to content

Commit 4966419

Browse files
committed
8334733: Remove obsolete @enablePreview from tests after JDK-8334714
Reviewed-by: mchung, asotona
1 parent 0e2a285 commit 4966419

File tree

360 files changed

+79
-632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

360 files changed

+79
-632
lines changed

test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
* @clean jdk.internal.vm.test.AnnotationTestInput$Missing
3333
* @compile ../../../../../../../../../../../jdk/jdk/internal/vm/AnnotationEncodingDecoding/alt/MemberDeleted.java
3434
* ../../../../../../../../../../../jdk/jdk/internal/vm/AnnotationEncodingDecoding/alt/MemberTypeChanged.java
35-
* @enablePreview
3635
* @modules jdk.internal.vm.ci/jdk.vm.ci.meta
3736
* jdk.internal.vm.ci/jdk.vm.ci.runtime
3837
* jdk.internal.vm.ci/jdk.vm.ci.common

test/hotspot/jtreg/serviceability/dcmd/framework/VMVersionTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
* @test
3535
* @bug 8221730
3636
* @summary Test of diagnostic command VM.version (tests all DCMD executors)
37-
* @enablePreview
3837
* @modules java.base/jdk.internal.misc
3938
* java.base/jdk.internal.module
4039
* java.compiler

test/hotspot/jtreg/testlibrary/ctw/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ JAVAC = $(JDK_HOME)/bin/javac
4242
JAR = $(JDK_HOME)/bin/jar
4343

4444
SRC_FILES = $(shell find $(SRC_DIR) -name '*.java')
45-
# Exclude files that need '--enable-preview' to compile.
46-
LIB_FILES = $(filter-out %ModuleInfoWriter.java, $(shell find $(TESTLIBRARY_DIR)/jdk/test/lib/ \
45+
# Must exclude files that need '--enable-preview' to compile, if there is any.
46+
LIB_FILES = $(shell find $(TESTLIBRARY_DIR)/jdk/test/lib/ \
4747
$(TESTLIBRARY_DIR)/jdk/test/lib/process \
4848
$(TESTLIBRARY_DIR)/jdk/test/lib/util \
4949
$(TESTLIBRARY_DIR)/jtreg \

test/jdk/java/io/Serializable/records/BadCanonicalCtrTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
* @summary InvalidClassException is thrown when the canonical constructor
2828
* cannot be found during deserialization.
2929
* @library /test/lib
30-
* @enablePreview
3130
* @run testng BadCanonicalCtrTest
3231
*/
3332

test/jdk/java/io/Serializable/records/ProhibitedMethods.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* @bug 8246774
2727
* @summary Basic tests for prohibited magic serialization methods
2828
* @library /test/lib
29-
* @enablePreview
3029
* @run testng ProhibitedMethods
3130
*/
3231

test/jdk/java/io/Serializable/records/SerialPersistentFieldsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* @bug 8246774
2727
* @summary Basic tests for prohibited magic serialPersistentFields
2828
* @library /test/lib
29-
* @enablePreview
3029
* @run testng SerialPersistentFieldsTest
3130
*/
3231

test/jdk/java/lang/Class/getSimpleName/GetSimpleNameTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
/* @test
2525
* @bug 8057919
2626
* @summary Class.getSimpleName() should work for non-JLS compliant class names
27-
* @enablePreview
2827
*/
2928

3029
import java.lang.classfile.ClassBuilder;

test/jdk/java/lang/ModuleTests/AnnotationsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
/**
5151
* @test
52-
* @enablePreview
5352
* @modules java.base/jdk.internal.module
5453
* @library /test/lib
5554
* @build jdk.test.lib.util.ModuleInfoWriter

test/jdk/java/lang/StackWalker/TestBCI.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* @test
2626
* @bug 8140450
2727
* @summary Basic test for the StackWalker::getByteCodeIndex method
28-
* @enablePreview
2928
* @run main TestBCI
3029
*/
3130

test/jdk/java/lang/annotation/AnnotationTypeMismatchException/AnnotationTypeMismatchTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* @bug 8228988 8266598
2727
* @summary An annotation-typed property of an annotation that is represented as an
2828
* incompatible property of another type should yield an AnnotationTypeMismatchException.
29-
* @enablePreview
3029
* @run main AnnotationTypeMismatchTest
3130
*/
3231

0 commit comments

Comments
 (0)