[lworld] RFR: 8376033: [lworld] Remove auto early construction from strict fields [v4]
Chen Liang
liach at openjdk.org
Sat Jan 24 20:47:01 UTC 2026
> Remove the translation strategy change of javac from `@Strict`, and fix all resulting errors (which appear as verification error for class files).
>
> This is a prerequisite for simplifying `@Strict @NullRestricted` to `@NullRestricted` later.
>
> This is done by discovering `@Strict` fields that are:
> 1. Not a member of a value class
> 2. Not static
>
> And use IDE refactor to move their initializer to the constructor, and add a `super()` call in the end of the constructor.
Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
Spurious test removal, should be removed by hotspot change instead
-------------
Changes:
- all: https://git.openjdk.org/valhalla/pull/1952/files
- new: https://git.openjdk.org/valhalla/pull/1952/files/35480f78..5b3d97b8
Webrevs:
- full: https://webrevs.openjdk.org/?repo=valhalla&pr=1952&range=03
- incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1952&range=02-03
Stats: 32 lines in 1 file changed: 32 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/valhalla/pull/1952.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1952/head:pull/1952
PR: https://git.openjdk.org/valhalla/pull/1952
More information about the valhalla-dev
mailing list