RFR: 8350151: Support requires property to filer tests incompatible with --enable-preview

Alan Bateman alanb at openjdk.org
Mon Feb 17 08:31:15 UTC 2025


On Sat, 15 Feb 2025 19:43:39 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> It might be useful to be able to run testing with --enable-preview for feature development. The tests incompatible with this mode must be filtered out.
> 
> I chose name 'java.enablePreview' , because it is more java property than vm or jdk. And 'enablePreview' to be similar with jtreg tag. 
> 
> Tested by running all test suites, and verifying that test is correctly selected.
> There are more tests incompatible with --enable-preview, will mark them in the following bug.

test/jdk/java/lang/System/SecurityManagerWarnings.java line 28:

> 26:  * @bug 8266459 8268349 8269543 8270380
> 27:  * @summary check various warnings
> 28:  * @requires !java.enablePreview

What it the reason that this. test failures with --enable-preview?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23653#discussion_r1957804120


More information about the compiler-dev mailing list