[lworld] RFR: 8376033: [lworld] Remove auto early construction from strict fields [v2]
Chen Liang
liach at openjdk.org
Fri Jan 23 20:39:27 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- Fix ValueObjectCompilationTest
- Merge branch 'lworld' of https://github.com/openjdk/valhalla into test/strict-out
- Remove translation difference due to strict annotation
-------------
Changes:
- all: https://git.openjdk.org/valhalla/pull/1952/files
- new: https://git.openjdk.org/valhalla/pull/1952/files/bbc8fc5d..6f876e27
Webrevs:
- full: https://webrevs.openjdk.org/?repo=valhalla&pr=1952&range=01
- incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1952&range=00-01
Stats: 262 lines in 7 files changed: 49 ins; 176 del; 37 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