Native method binding

David Lloyd david.lloyd at redhat.com
Tue Dec 17 15:50:44 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/valhalla-dev/attachments/20241217/940a0085/attachment.htm>


More information about the valhalla-dev mailing list