git: openjdk/mobile: 2 new changesets

duke duke at openjdk.java.net
Mon May 4 10:52:24 UTC 2020


Changeset: 1a35219f
Author:    Jan Lahoda <jlahoda at openjdk.org>
Date:      2020-05-04 12:28:35 +0000
URL:       https://git.openjdk.java.net/mobile/commit/1a35219f

8243557: Inconvenient span for multi-catch error diagnostics

Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
! test/langtools/jdk/jshell/ErrorTranslationTest.java
+ test/langtools/tools/javac/api/DiagSpans.java

Changeset: 4e554211
Author:    Jan Lahoda <jlahoda at openjdk.org>
Date:      2020-05-04 12:28:36 +0000
URL:       https://git.openjdk.java.net/mobile/commit/4e554211

8243548: Javac incorrectly collects enum fields when verifying switch expression exhaustivness

When gathering enum constants for exhaustivness analysis, make sure nested enum classes are not included

Reviewed-by: vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
! test/langtools/tools/javac/switchexpr/ExhaustiveEnumSwitch.java



More information about the mobile-changes mailing list