RFR: JDK-8297215: Update libs tests to use @enablePreview

Alan Bateman alanb at openjdk.org
Fri Nov 18 08:31:50 UTC 2022


On Thu, 17 Nov 2022 21:48:11 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Similar to an update recently done for langtools tests, update the libraries regression tests to take advantage of the @enablePreview jtreg feature.

test/jdk/java/lang/Thread/BuilderTest.java line 29:

> 27:  * @enablePreview
> 28:  * @compile BuilderTest.java
> 29:  * @run testng/othervm BuilderTest

I assume `@compile` can be dropped from both of these tests now. Also I think /othervm can be dropped too because jtreg will always use othervm for tests that require --enable-preview. When the feature becomes permanent then it would mean dropping the `@enablePreview` tag, no other changes.

test/jdk/java/lang/Thread/virtual/JfrEvents.java line 31:

> 29:  * @enablePreview
> 30:  * @compile JfrEvents.java
> 31:  * @run testng/othervm JfrEvents

This one needs to be /othervm.

-------------

PR: https://git.openjdk.org/jdk/pull/11222


More information about the core-libs-dev mailing list