JEP 447: Refining Java Constructors for Enhanced Flexibility

January 14, 2024

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

Leave a Reply

Your email address will not be published. Required fields are marked *