Files
Claude 385cc25233 Add jep511 module: module import declarations on JDK 25 and 27
Runnable sources, deliberate compile failures, three small modules and nine captured transcripts for import module (JEP 511).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
2026-09-24 10:57:57 +00:00

13 lines
763 B
Markdown

# jep511 — Module Import Declarations (JEP 511, final in Java 25)
Companion code for the ankurm.com article **Module Import Declarations in Java 25 (JEP 511)**. The explanation lives in the article;
this folder holds the runnable sources and the transcripts they produced.
```bash
JDK25=/path/to/jdk-25 JDK27=/path/to/jdk-27 [JDK21=/path/to/jdk-21] ./run.sh # regenerates output/*.txt
```
`src/` compiles and runs; `broken/` fails to compile on purpose (the diagnostics are captured in `output/`). `multi/` holds three small
modules (`acme.text` is a library, `demo.app` uses it, `demo.bad` and `demo.noreq` show the two ways to get it wrong). Tested on
Temurin 25.0.4.1+1 and 27+35; JDK 21 is used only for the "before" error and the jshell import list.