RFR: 8334258: Compiler erronousely allows access to instance variable in argument expression of a constructor invocation

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Jun 14 14:34:12 UTC 2024


On Thu, 13 Jun 2024 21:01:14 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> For the "flexible constructors" JEP 482 feature, the compiler allows assignments to instance fields in early construction contexts. However, when it creates this exception it is failing to check that the feature is enabled. This patch adds that check.

@archiecobbs - you might want to delete or edit your "integrate" comment, so that this PR won't be accidentally integrated/sponsored.

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

PR Comment: https://git.openjdk.org/jdk/pull/19712#issuecomment-2168173579


More information about the compiler-dev mailing list