Details
-
Improvement
-
Resolution: Unresolved
-
Unknown
-
None
-
None
-
None
Description
Java 22 introduces the foreign function API as a replacement for JNI. The driver currently uses JNA (which wraps JNI) to call C functions in mongocrypt shared library.
We should consider replacing this with the foreign function API.
POC here: https://github.com/mongodb/libmongocrypt/compare/java-ffa-experiment