Add jdk28-preview module: JDK 28 early-access build, value classes, strict init flag, PEM, JSON incubator

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gth99spB1CzQmBFofXmU4Z
This commit is contained in:
Claude
2026-09-28 08:48:04 +00:00
parent 57a04dc393
commit c8ff3acf09
15 changed files with 221 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# 04-pem-encodings (JEP 542): PemRoundTrip.java
--- JDK 28, no flags:
-----BEGIN PUBLIC KEY-----
round trip equal: true
--- JDK 25, no flags:
src/PemRoundTrip.java:10: error: PEMEncoder is a preview API and is disabled by default.
String pem = PEMEncoder.of().encodeToString(kp.getPublic());
^
--- JDK 25, --enable-preview:
-----BEGIN PUBLIC KEY-----
round trip equal: true