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

Vicente Romero vromero at openjdk.org
Tue Jun 10 17:06:40 UTC 2025


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

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

Commit messages:
 - 8358777: [lworld] Allow explicit super invocation in canonical constructors

Changes: https://git.openjdk.org/valhalla/pull/1483/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1483&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358777
  Stats: 135 lines in 32 files changed: 16 ins; 30 del; 89 mod
  Patch: https://git.openjdk.org/valhalla/pull/1483.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1483/head:pull/1483

PR: https://git.openjdk.org/valhalla/pull/1483


More information about the valhalla-dev mailing list