RFR: 8350786: Some java/lang jtreg tests miss requires vm.hasJFR [v2]

David Holmes dholmes at openjdk.org
Fri Feb 28 01:31:57 UTC 2025


On Thu, 27 Feb 2025 10:19:51 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> While testing a bit with a minimal JVM, it has been noticed that some java/lang jtreg tests use jfr but do not declare it with a "requires vm.hasJFR" ; that leads to test errors in a JVM setup with no JFR .
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   copyright years

IIRC you still need the modules for the unsupported pieces because the API's themselves are not optional and you have to be able to ask if something is supported.

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

PR Comment: https://git.openjdk.org/jdk/pull/23805#issuecomment-2689494726


More information about the core-libs-dev mailing list