Class FlexibleConstructorBodiesSecondPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java23.FlexibleConstructorBodiesSecondPreviewNotes
Explains flexible constructor bodies as a Java 23 second preview feature.
Constructor code often needs to validate or prepare arguments before delegating to another constructor. Older Java syntax forced an explicit constructor invocation to appear first, so this validation had to be moved elsewhere. Flexible constructor bodies relax that rule while preserving initialization safety.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FlexibleConstructorBodiesSecondPreviewNotes
public FlexibleConstructorBodiesSecondPreviewNotes()
-
-
Method Details
-
purpose
Explains the constructor problem addressed by the feature.- Returns:
- a short explanation
-
status
-