[lworld] RFR: 8370634: [lworld] super should not be allowed in compact constructors
Chen Liang
liach at openjdk.org
Thu Dec 4 19:10:58 UTC 2025
On Thu, 4 Dec 2025 18:31:23 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> there is a bug in lworld and due to it javac accepts records with compact constructors that contain invocations to the super constructor. This is not allowed by the spec. This PR is fixing this issue,
>
> TIA
I recommend adding a positive test to ensure a normal canonical constructor of a record can call super as well.
-------------
Marked as reviewed by liach (Committer).
PR Review: https://git.openjdk.org/valhalla/pull/1770#pullrequestreview-3541648349
More information about the valhalla-dev
mailing list