Java 22 Previews Statements Before super(...) and this(...) - Inside Java Newscast #62

Whether for validation, preparation, or splitting and sharing arguments, it can be quite annoying that Java doesn’t allow statements before the super(...) or this(...) call in a constructor. Luckily Java 22 is about to change that with JEP 447, which previews statements before the explicit constructor invocation.

Make sure to check the show-notes.