Add java25-features module: the 18 JEPs of JDK 25 with runnable demos, captured output and compile-error cases

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5uFE41EgmSXEP4axJ
This commit is contained in:
asmhatre
2026-11-25 13:20:40 +05:30
co-authored by Claude Sonnet 5.5
parent 876ae1bb5c
commit 1fb1455734
36 changed files with 459 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
# java25-features — Java 25 features with examples
Companion code for the ankurm.com article **Java 25 Features with Examples** (https://ankurm.com/java-21-to-25-lts-features/). The explanation lives in the article; this folder holds the runnable sources and the transcripts they produced. There is no `docs/` folder: the depth is inside the article itself, in its expandable sections.
```bash
JDK25=/path/to/jdk25 ./run.sh # regenerates output/*.txt
```
- `src/` compiles and runs unchanged on the JDK named in each output header (preview demos need `--enable-preview`, the Vector API needs `--add-modules jdk.incubator.vector`; `run.sh` passes both).
- `broken/` fails to compile on purpose; the compiler's own message is committed in `output/15-compile-errors.txt`.
- `output/` is real captured output, regenerated by `run.sh`. Timings (the AOT startup runs, the JFR sample counts) are machine dependent: shape, not results.
Tested on: Eclipse Temurin 25.0.5.1+2 (JDK 25 GA was 2025-09-16).