Integrated: 8274347: Passing a *nested* switch expression as a parameter causes an NPE during compile
Jan Lahoda
jlahoda at openjdk.java.net
Mon Oct 11 12:41:13 UTC 2021
On Wed, 6 Oct 2021 09:04:59 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> Switch handling needs to compute if a case's statements complete normally or not (this is used on multiple places later in the pipeline). But, especially during speculative attributions, the tree may not be fully attributed. `preFlow` should be invoked before invoking flow. The patch also fixes binding pattern handling in preFlow/postAttr.
This pull request has now been integrated.
Changeset: b870468b
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/b870468bdc99938fbb19a41b0ede0a3e3769ace2
Stats: 88 lines in 3 files changed: 85 ins; 0 del; 3 mod
8274347: Passing a *nested* switch expression as a parameter causes an NPE during compile
Reviewed-by: vromero
-------------
PR: https://git.openjdk.java.net/jdk/pull/5836
More information about the compiler-dev
mailing list