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
+6
View File
@@ -0,0 +1,6 @@
/** JEP 539 (preview in JDK 28): a JVM field flag. javac sets it on value-class fields; an identity class is the control. */
public class StrictFieldProbe {
static value class Money { final long cents; Money(long c) { cents = c; } }
static class Legacy { final long cents; Legacy(long c) { cents = c; } }
public static void main(String[] args) { new Money(1); new Legacy(1); }
}