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

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Jun 18 08:50:17 UTC 2024


On Fri, 14 Jun 2024 16:12:24 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.
>
> Archie Cobbs has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Fix test failures caused by feature check happening too soon.
>  - Fix incorrect column number in compiler error message expected output.

Question: is this ready to go? E.g. this should not have any dependencies, correct?

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

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


More information about the compiler-dev mailing list