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
@@ -0,0 +1,8 @@
# 01-value-classes: ValueClasses.java on JDK 28 with --enable-preview
p == q: true, equals: true
isValue: true
synchronized on a value object: java.lang.IdentityException: Cannot synchronize on an instance of value class ValueClasses$Point
--- IntegerIdentity.java: same source, three runs
JDK 25: Integer 1000 == Integer 1000: false
JDK 28, no preview: Integer 1000 == Integer 1000: false
JDK 28, --enable-preview: Integer 1000 == Integer 1000: true