RFR: javac should not place initializers of null restricted fields before the super invocation [v3]
Chen Liang
liach at openjdk.org
Thu Jan 29 18:22:48 UTC 2026
On Thu, 29 Jan 2026 02:19:32 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> Vicente Romero has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
>>
>> - merge with bworld
>> - Merge branch 'bworld' into non.null.initializers.run.after.super
>> - initializers of non null fields are placed after super
>
> test/langtools/tools/javac/nullability/NullabilityCompilationTests.java line 597:
>
>> 595: """
>> 596: class Test {
>> 597: Object! o = new Object();
>
> this section was checking that non-nullable fields were strict
I thought we still want STRICT_INIT, we just don't want the early construction behavior to associate with this flag.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1990#discussion_r2742940109
More information about the valhalla-dev
mailing list