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
This commit is contained in:
Claude
2026-09-24 10:57:57 +00:00
parent 2ebea58d39
commit 385cc25233
44 changed files with 715 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
$ diff <(javap -c -p OldWay) <(javap -c -p NewWay) (25.0.4.1+1-LTS, class name normalised to X)
no differences (57 lines of javap output each)
$ cmp OldWay.class NewWay.class (javac -g:none; NewWay renamed to OldWay inside the class file)
identical, byte for byte (2249 bytes)
$ diff <(javap -c -p -l OldWay) <(javap -c -p -l NewWay) (default javac -g keeps line numbers)
8c8
< line 9: 0
---
> line 3: 0
52,57c52,57
< line 11: 0
< line 12: 14
< line 13: 25
< line 14: 37
< line 15: 44
< line 16: 90
---
> line 5: 0
> line 6: 14
> line 7: 25
> line 8: 37
> line 9: 44
> line 10: 90
67c67
< line 13: 0
---
> line 7: 0