Open ChengJin01 opened 3 weeks ago
The JEP is still in the Candidate
status (which is not targeted for JDK23) but the related code has been implemented via https://bugs.openjdk.org/browse/JDK-8331671. So it is expected to be merged to the repo soon if no more concerns in there.
We'll assume Java 24 for now.
Summary (from https://openjdk.org/jeps/472)
Issue warnings about uses of the Java Native Interface (JNI) and adjust warnings from the Foreign Function & Memory (FFM) API to be consistent with JNI. All such warnings aim to prepare developers for a future release that provides integrity by default by uniformly restricting JNI and the FFM API. Application developers can avoid current warnings and future restrictions by selectively enabling the interaction of Java and native code where it is critical to the application.
Goals
FYI: @tajila, @pshipton