On Wed, 11 Sep 2024 22:26:06 GMT, Kevin Rushforth <k...@openjdk.org> wrote:
> This turned out to be a test bug. When using a custom `ModuleLayer` to load > classes, a test (or application) needs to call > `ModuleLayer.Controller::enableNativeAccess`. So the follow-up bug will be to > do this in those tests. > > (the reason it will be a follow-up bug is that > `ModuleLayer.Controller::enableNativeAccess` was preview in JDK 21 and final > in JDK 22 along with Panama, so unless we want to do this via reflection, we > need to wait until we bump the minimum JDK for JavaFX). Since I need a follow-up bug for this either way, I decided to fix this using reflection for now, and file a follow-up bug to replace the reflection calls with direct calls to `ModuleLayer.Controller::enableNativeAccess` once we bump the minimum to JDK 22. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1562#issuecomment-2346201798