Integrated: 8334258: Compiler erronousely allows access to instance variable in argument expression of a constructor invocation
Archie Cobbs
acobbs at openjdk.org
Tue Jun 18 23:26:19 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.
This pull request has now been integrated.
Changeset: e227c7e3
Author: Archie Cobbs <acobbs at openjdk.org>
Committer: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e227c7e37d4de0656f013f3a936b1acfa56cc2e0
Stats: 83 lines in 7 files changed: 74 ins; 0 del; 9 mod
8334258: Compiler erronousely allows access to instance variable in argument expression of a constructor invocation
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/jdk/pull/19712
More information about the compiler-dev
mailing list