RFR: JDK-8296913: Correct enable preview idiom in JdbLastErrorTest.java
Alan Bateman
alanb at openjdk.org
Mon Nov 14 19:27:18 UTC 2022
On Mon, 14 Nov 2022 19:09:10 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>> test/jdk/com/sun/jdi/JdbLastErrorTest.java line 31:
>>
>>> 29: * @library /test/lib
>>> 30: * @run compile --release ${jdk.version} --enable-preview JdbLastErrorTest.java
>>> 31: * @run main/othervm --enable-preview JdbLastErrorTest
>>
>> Better still would be to add `@enablePreview`. That would allow you the `@run compile` line to go away and you can drop the `--enable-preview` from the `@run main`.
>
> Is that a new jtreg feature? I've used the idiom in the updated version of this file elsewhere in the JDK.
https://bugs.openjdk.org/browse/CODETOOLS-7902654
I only became aware of it a few months ago.
-------------
PR: https://git.openjdk.org/jdk/pull/11139
More information about the serviceability-dev
mailing list