Use foreign function API from Java 22 for mongocrypt integration

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Client Side Encryption
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Unassigned
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: