Java 27 and 26: runnable demos and captured output for every JEP, plus version lanes

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
This commit is contained in:
2026-09-21 15:00:40 +00:00
committed by Claude
co-authored by Claude Sonnet 5
commit db2d12fe54
152 changed files with 5049 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
/**
* "JNI warnings on stderr by default": JEP 472 (Java 24). Loading a native library is a restricted operation.
* The library is the JDK's own libnet, so no compiler or extra file is needed. Run with and without
* --enable-native-access=ALL-UNNAMED by scripts/lanes.sh.
* Chapter: docs/14-lanes-21-to-25.md
*/
public class JniWarning {
public static void main(String[] args) {
System.out.println("java.version = " + System.getProperty("java.version"));
System.loadLibrary("net");
System.out.println("System.loadLibrary(\"net\") returned");
}
}