Runnable sources, broken examples and captured transcripts for the ankurm.com JEP 513 article, including the JDK 25 vs 27 compiler wording differences. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
6 lines
292 B
Plaintext
6 lines
292 B
Plaintext
$ javac src/OverridableCall.java && java OverridableCall (OpenJDK Runtime Environment Temurin-25.0.4.1+1 (build 25.0.4.1+1-LTS))
|
|
Broken (assign after super()):
|
|
Base constructor calls describe(): label=null
|
|
Fixed (assign before super()):
|
|
Base constructor calls describe(): label=hello
|