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
9 lines
237 B
Java
9 lines
237 B
Java
class Parent { Parent(Object o) {} }
|
|
class NewInnerBeforeSuper extends Parent {
|
|
class Inner {}
|
|
NewInnerBeforeSuper() {
|
|
Inner i = new Inner(); // an inner class instance needs an enclosing this
|
|
super(i);
|
|
}
|
|
}
|