On 17/06/2021 3:15 pm, Alan Bateman wrote:
On 17/06/2021 02:39, David Holmes wrote:

In what way does this no longer work? We have a test in jdk/sun/management/HotspotRuntimeMBean/GetTotalSafepointTime.java that uses this API and doesn't seem to need to do anything to allow access. ??
That test is compiled/run with `--add-exports java.management/sun.management=ALL-UNNAMED`, just not immediately obvious because the TEST.properties with the config for jtreg is in the parent directory (it applies to tests in that directory and all sub-directories). Carter would have need the equivalent to compile with JDK 9+ and to run with JDK 16+.

Ah! Thanks Alan!

David
-----

-Alan.

Reply via email to