After its review concluded, JEP 447, Statements before super(…) (Preview), was delivered for JDK 22. This JEP, under Project Amber, proposes to allow statements that do not reference an instance being created to appear before super() calls in a constructor and preserve existing safety and initialization guarantees for constructors.
By A N M Bazlur Rahman
InfoQ – Java
Article Categories:
Java