JEP proposed to target JDK 24: 472: Prepare to Restrict the Use of JNI

Mark Reinhold mark.reinhold at oracle.com
Mon Jul 8 19:32:50 UTC 2024


The following JEP is proposed to target JDK 24:

  472: Prepare to Restrict the Use of JNI
       https://openjdk.org/jeps/472

  Summary: Issue warnings about uses of the Java Native Interface (JNI)
  and adjust the Foreign Function & Memory (FFM) API to issue warnings
  in a consistent manner.  All such warnings aim to prepare developers
  for a future release that ensures integrity by default by uniformly
  restricting JNI and the FFM API.  Application developers can avoid both
  current warnings and future restrictions by selectively enabling these
  interfaces where essential.

Feedback on this proposal from JDK Project Committers and Reviewers [1]
is more than welcome, as are reasoned objections.  If no such objections
are raised by 23:59 UTC on Monday, 15 July, or if they’re raised and
then satisfactorily answered, then per the JEP 2.0 process proposal [2]
I’ll target this JEP to JDK 24.

- Mark


[1] https://openjdk.org/census#jdk
[2] https://cr.openjdk.java.net/~mr/jep/jep-2.0-02.html


More information about the jdk-dev mailing list