git: openjdk/jdk: 8281100: Spurious "variable might not have been initialized" with sealed class switch

Jan Lahoda jlahoda at openjdk.java.net
Fri Feb 11 12:13:30 UTC 2022


Changeset: 4ff5824f
Author:    Jan Lahoda <jlahoda at openjdk.org>
Date:      2022-02-11 12:11:29 +0000
URL:       https://git.openjdk.java.net/jdk/commit/4ff5824f5bc13826d2eae1c83094acfcccdb7b8f

8281100: Spurious "variable might not have been initialized" with sealed class switch

Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeInfo.java
! test/langtools/tools/javac/patterns/Exhaustiveness.java



More information about the jdk-changes mailing list