Integrated: 8336781: Erroneous exhaustivity check with boolean switch
Aggelos Biboudis
abimpoudis at openjdk.org
Mon Jul 22 10:32:38 UTC 2024
On Thu, 18 Jul 2024 20:25:57 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> In the case of a `Boolean` switch with 3 values true, false and `null` there was a miscalculation on what consists an exhaustive switch. This PR addresses this bug by removing the values true and false (instead of adding and comparing with 2 expected values).
This pull request has now been integrated.
Changeset: c1fdc04a
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c1fdc04ad78e6e4712f2173370012106f9cc45ee
Stats: 42 lines in 2 files changed: 39 ins; 0 del; 3 mod
8336781: Erroneous exhaustivity check with boolean switch
Reviewed-by: vromero
-------------
PR: https://git.openjdk.org/jdk/pull/20243
More information about the compiler-dev
mailing list