JDK 24 introduces restricted native access to improve integrity by requiring explicit approval for operations between Java and native code. Warnings will be issued for restricted operations, with plans to turn these into exceptions in the future. Developers can enable or disable these operations using new command-line options. A new tool, jnativescan, can help identify libraries using restricted methods.

4m read timeFrom inside.java
Post cover image
Table of contents
Native Access and Integrity by DefaultRestricted OperationsEnabling/Disabling Restricted OperationsMore

Sort: