codecentric / NSMenuFX

Other
127 stars 26 forks source link

Use of MethodHandles incompatible with GraalVM native-image #31

Closed mipastgt closed 3 years ago

mipastgt commented 4 years ago

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.