Top
image credit: Freepik

JEP 447: Refining Java Constructors for Enhanced Flexibility

January 9, 2024

Via: InfoQ

After its review concluded, JEP 447, Statements before super(…) (Preview), was delivered for JDK 22. Under Project Amber, this JEP 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. Gavin Bierman, the consulting member of the technical staff at Oracle, has provided an initial specification of this JEP for the Java community to review and provide feedback.

Read More on InfoQ