[jdk17] RFR: 8268663: Crash when guards contain boolean expression
Jan Lahoda
jlahoda at openjdk.java.net
Mon Jun 14 13:31:24 UTC 2021
When Flow analyzes boolean expressions, (un-)initialized are split into (un-)initialized when true and when false. When analyzing guarded patterns, we need to handle these split values. As the only way the case's body/statements can be executed is if the case's pattern matches, we need to use the initialized values when true.
-------------
Commit messages:
- 8268663: Crash when guards contain boolean expression
Changes: https://git.openjdk.java.net/jdk17/pull/41/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=41&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8268663
Stats: 39 lines in 2 files changed: 37 ins; 0 del; 2 mod
Patch: https://git.openjdk.java.net/jdk17/pull/41.diff
Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/41/head:pull/41
PR: https://git.openjdk.java.net/jdk17/pull/41
More information about the compiler-dev
mailing list