Native method binding
David Lloyd
david.lloyd at redhat.com
Tue Dec 17 17:12:34 UTC 2024
With the (hopeful) ascendance of FFM over JNI, what about the idea of
allowing `native` methods to be bound to `MethodHandle`s on the Java side
at run time? This would allow for a much nicer experience than creating
wrapper methods and would bring another level of parity with JNI, which has
this capability (`RegisterNatives`). The capability could be restricted as
a form of native access, and only allowed for methods in classes within the
same module.
What do you think?
--
- DML • he/him
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20241217/aed67523/attachment.htm>
More information about the panama-dev
mailing list