[lworld] RFR: 8359370: [lworld] allow instance fields of identity classes to be readable in the prologue phase

Vicente Romero vromero at openjdk.org
Wed Jul 2 22:05:33 UTC 2025


On Fri, 20 Jun 2025 23:03:34 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> Before this fix only strict fields were readable in the prologue phase. The proposed fix should allow any instance fields of identity classes to be readable in the prologue phase,
> 
> TIA

test/langtools/tools/javac/SuperInit/EarlyAssignments.java line 20:

> 18:         }
> 19: 
> 20:         public class Inner1a extends Inner1 {

moved the code above to new file EarlyAssignments2.java as now if fails in Flow not in Resolve, so it was not being reported by javac

test/langtools/tools/javac/SuperInit/SuperInitFails.java line 93:

> 91:     }
> 92: 
> 93:     public SuperInitFails(float[] x) {

moved to EarlyAssignments2, too

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1490#discussion_r2164747818
PR Review Comment: https://git.openjdk.org/valhalla/pull/1490#discussion_r2164748943


More information about the valhalla-dev mailing list