On Mon, 24 Mar 2025 08:47:29 GMT, Alan Bateman <al...@openjdk.org> wrote:
> Is the motivation tests or code that is making use of JDK internals? No > objection to the change of course, I'm curious why we are doing this. The motivation is for both testing (e.g., expose the ` jdk.internal.test.cds.WhiteBox` package proposed by [JDK-8352528](https://bugs.openjdk.org/browse/JDK-8352528)), as well as supporting existing applications that use `--add-exports` to access JDK internals. While the use of `--add-exports` by applications is discouraged, I think the AOT cache should provide the same level of support as when the AOT cache is not used, since the effort for extending this support is quite small. ------------- PR Comment: https://git.openjdk.org/jdk/pull/24124#issuecomment-2748582875