Class StatementsBeforeSuperPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java22.StatementsBeforeSuperPreviewNotes
Explains statements before
super(...) as a Java 22 preview feature.
Before this feature, an explicit super(...) or this(...) call
had to be the first constructor statement. That made argument validation or
preparation awkward when the superclass constructor needed already-checked
values.
The feature allows constructor argument validation or preparation before an explicit superclass constructor invocation, within strict safety rules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNames the key safety limitation.Explains why this package uses notes.purpose()Explains the practical goal.
-
Constructor Details
-
StatementsBeforeSuperPreviewNotes
public StatementsBeforeSuperPreviewNotes()
-
-
Method Details
-
purpose
-
limitation
-
projectDecision
-