NSMenuFX uses MethodHandles instead of pure reflection to access internal methods and fields. This is incompatible with GraalVM native-image because it does not support MethodHandles. See https://github.com/oracle/graal/blob/master/substratevm/LIMITATIONS.md . I therefore propose to replace the use of MethodHandles with pure reflection.
NSMenuFX uses MethodHandles instead of pure reflection to access internal methods and fields. This is incompatible with GraalVM native-image because it does not support MethodHandles. See https://github.com/oracle/graal/blob/master/substratevm/LIMITATIONS.md . I therefore propose to replace the use of MethodHandles with pure reflection.