RFR: 8325805: Compiler Implementation for Flexible Constructor Bodies (Second Preview)
Archie Cobbs
acobbs at openjdk.org
Fri Mar 22 18:36:54 UTC 2024
On Fri, 1 Mar 2024 17:51:11 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
> This patch changes the compiler to allow constructors to make assignments to fields prior to the `super()` invocation, i.e., in the pre-construction context. This is part of the work associated with [JDK-8325803 - Flexible Constructor Bodies (Second Preview)](https://bugs.openjdk.org/browse/JDK-8325803).
>
> This patch is based the relevant bits from @vicente-romero-oracle's commit [1b99b5cf](https://github.com/openjdk/valhalla/commit/1b99b5cfd9a5d484b9e7bdfc284daad9ad6535bf) to the valhalla repo.
Thanks for looking it over. When you think it's ready for prime time let me know and I'll convert it from draft.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18088#issuecomment-2015675135
More information about the compiler-dev
mailing list