RFR: javac should not place initializers of null restricted fields before the super invocation [v3]
Vicente Romero
vromero at openjdk.org
Thu Jan 29 20:33:57 UTC 2026
On Thu, 29 Jan 2026 18:19:57 GMT, Chen Liang <liach at openjdk.org> wrote:
>> 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.
oh I got it, yes better to fix that as part of this PR, you are right
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1990#discussion_r2743406136
More information about the valhalla-dev
mailing list