git: openjdk/jdk: master: 8334258: Compiler erronousely allows access to instance variable in argument expression of a constructor invocation

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Jun 18 23:25:28 UTC 2024


Changeset: e227c7e3
Author:    Archie Cobbs <acobbs at openjdk.org>
Committer: Maurizio Cimadamore <mcimadamore at openjdk.org>
Date:      2024-06-18 23:23:39 +0000
URL:       https://git.openjdk.org/jdk/commit/e227c7e37d4de0656f013f3a936b1acfa56cc2e0

8334258: Compiler erronousely allows access to instance variable in argument expression of a constructor invocation

Reviewed-by: mcimadamore

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java
+ test/langtools/tools/javac/SuperInit/EarlyAssignmentNoPreview1.java
+ test/langtools/tools/javac/SuperInit/EarlyAssignmentNoPreview1.out
+ test/langtools/tools/javac/SuperInit/EarlyAssignmentNoPreview2.java
+ test/langtools/tools/javac/SuperInit/EarlyAssignmentNoPreview2.out
+ test/langtools/tools/javac/SuperInit/EarlyAssignmentNoPreview3.java
+ test/langtools/tools/javac/SuperInit/EarlyAssignmentNoPreview3.out



More information about the jdk-changes mailing list