[lworld] RFR: 8358777: [lworld] Allow explicit super invocation in canonical constructors [v3]

Chen Liang liach at openjdk.org
Tue Jun 10 22:08:40 UTC 2025


On Tue, 10 Jun 2025 21:13:33 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> This is the implementation of section `Record class constructors` of JEP 401, see [1]. This PR allows a normal canonical constructor for a record class to contain an explicit 'super()' call, expressing an explicit division between early and late construction. Same applies to identity record classes
>> 
>> [1] https://bugs.openjdk.org/browse/JDK-8317277
>> 
>> Note: this PR depends on flexible constructor bodies, given that the change that makes it a final feature is not merged in lworld yet I will wait for that to happen to do a merge and then push this fix
>
> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
> 
>   addressing review comments

Looks good. I am sure this approach to record is not the final solution and is bound to change, so this simple temporary approach is good.

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

Marked as reviewed by liach (Committer).

PR Review: https://git.openjdk.org/valhalla/pull/1483#pullrequestreview-2915148616


More information about the valhalla-dev mailing list