Java Cup
Inside Java

News and views from members of the Java team at Oracle

Integrity by Default - Inside Java Newscast #73

Integrity is a cornerstone of the Java Platform as it enables/bolsters reliability, maintainability, security, and performance. But there are operations that undermine it: deep reflection with setAccessible, Unsafe, native code, and agents allow code to break many of Java's promises. Now, OpenJDK wants to lock them down by default, requiring command-line options like --enable-native-access to enable them, thus ensuring the platform has integrity by default while application operators can still make the choice to trade that away if the benefits are worth it.

Show Notes

Deep reflection:

Unsafe:

Native code:

Agents:

Additional Resources

The Inside Java Newscast is a monthly YouTube show - check out the YouTube playlist for all the episodes. Since 2026, we also publish it as a podcast. For more Java news, subscribe to our RSS feed and follow @Java on X.

Contact us.