Integrated: 8325805: Compiler Implementation for Flexible Constructor Bodies (Second Preview)

Archie Cobbs acobbs at openjdk.org
Tue May 28 13:18:20 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.

This pull request has now been integrated.

Changeset: 87a06b6c
Author:    Archie Cobbs <acobbs at openjdk.org>
Committer: Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/87a06b6ce41f8623d9111b4e41c72f0ddf842acd
Stats:     566 lines in 18 files changed: 508 ins; 43 del; 15 mod

8325805: Compiler Implementation for Flexible Constructor Bodies (Second Preview)

Reviewed-by: vromero, jlahoda

-------------

PR: https://git.openjdk.org/jdk/pull/18088


More information about the compiler-dev mailing list