On Wed, 25 Feb 2026 21:27:08 GMT, Chen Liang <[email protected]> wrote:

> With Flexible Constructor Bodies, the preferred way to assign fields for 
> objects is to assign before making a super call. These are all sites in the 
> JDK code that can migrate to the new preferred pattern. This change also 
> allows these fields to be later declared ACC_STRICT_INIT when strict fields 
> JEP is integrated.

Not only that, I think these are the only valid appearance sites of 
`CodeBuilder::invokespecial` that represent super calls instead of new instance 
creations and has associated field store instructions within the whole JDK.

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

PR Comment: https://git.openjdk.org/jdk/pull/29926#issuecomment-3968733813

Reply via email to