sealed: add release-level and Jackson 3.2.3 transcripts

09 shows which language level each sealed feature needs; 10 runs the Payment model through Jackson 3 (jars fetched and sha1-checked, not committed).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
This commit is contained in:
Claude
2026-09-24 12:08:23 +00:00
parent ff6130bede
commit d2c1efc2c4
9 changed files with 193 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ JDK25=/path/to/jdk-25 JDK27=/path/to/jdk-27 [JDK21=/path/to/jdk-21] ./run.sh
- `src/` compiles and runs unchanged on 21, 25 and 27: the `Payment` model, the three subclass modifiers, generic and recursive hierarchies, the `default` trap and a visitor for comparison.
- `broken/` fails to compile on purpose (one rule per file).
- `sep/` shows what the JVM itself enforces when a class file disagrees with the sealed type it claims to extend.
- `jackson/` runs the same `Payment` through Jackson 3.2.3 (`./jackson/fetch.sh` downloads and sha1-checks the three jars from Maven Central; they are not committed).
- `multi/` is a named module, the only place a sealed hierarchy may span packages.
Tested on Temurin 25.0.4.1+1 and 27+35, and OpenJDK 21.0.10 as the baseline.