[JAVA-5295] Use foreign function API from Java 22 for mongocrypt integration Created: 19/Jan/24  Updated: 22/Jan/24

Status: Backlog
Project: Java Driver
Component/s: Client Side Encryption
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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


Generated at Thu Feb 08 09:04:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.