On Sat, 31 Jan 2026 00:30:04 GMT, Vicente Romero <[email protected]> wrote:

>> javac is automatically placing the initializers of null restricted fields 
>> before the super invocation. This is incorrect, null restricted fields are 
>> not strict and those initializers should be placed after the super. But 
>> javac will check that null restricted fields have been initialized before a 
>> super invocation. This implies that null restricted fields should not have 
>> initializers and users should manually initialize them in all the 
>> constructors and before explicit super invocations.
>
> Vicente Romero has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   minor changes

@liach thanks a lot for the reviews and discussions!

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

PR Comment: https://git.openjdk.org/valhalla/pull/1990#issuecomment-3826875575

Reply via email to