Dear experts: The first draft of a spec covering JEP 492: Flexible Constructor Bodies (Third Preview) is available:
https://cr.openjdk.org/~gbierman/jep492/latest/ (As the feature is unchanged from the second preview, this spec is the same as the previous edition but with a small number of minor bugfixes.) Feel free to contact me directly or on this list with any comments. Thanks Gavin On 2 Oct 2024, at 14:14, Mark Reinhold <[email protected]> wrote: https://openjdk.org/jeps/492 Summary: In constructors in the Java programming language, allow statements to appear before an explicit constructor invocation, i.e., super(..) or this(..). The statements cannot reference the instance under construction, but they can initialize its fields. Initializing fields before invoking another constructor makes a class more reliable when methods are overridden. This is a preview language feature. - Mark
