git: openjdk/jdk: 8184444: The compiler error "variable not initialized in the default constructor" is not apt in case of static final variables

Vicente Romero vromero at openjdk.org
Thu Mar 23 16:11:07 UTC 2023


Changeset: 6fa25cc1
Author:    Archie L. Cobbs <archie.cobbs at gmail.com>
Committer: Vicente Romero <vromero at openjdk.org>
Date:      2023-03-23 16:06:47 +0000
URL:       https://git.openjdk.org/jdk/commit/6fa25cc134e8a6787490e080fb98c2d61cf0b049

8184444: The compiler error "variable not initialized in the default constructor" is not apt in case of static final variables

Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
+ test/langtools/tools/javac/DefiniteAssignment/StaticFinalInit.java
+ test/langtools/tools/javac/DefiniteAssignment/StaticFinalInit.out
! test/langtools/tools/javac/flow/T8030218/CompileTimeErrorForNonAssignedStaticFieldTest.out
! test/langtools/tools/javac/positions/TreeEndPosTest.java



More information about the jdk-changes mailing list