RFR: 8309054: Parsing of erroneous patterns succeeds
Jan Lahoda
jlahoda at openjdk.org
Tue May 30 11:38:56 UTC 2023
On Mon, 29 May 2023 15:53:48 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> Moving the logic of type test pattern detection from `parsePattern` to `variableDeclaratorRest` in #13528 made the logic of the latter too complex. The regression in this JBS would be fixed by introducing two additional if-guards (e.g., `if (!typePattern)`); conditional on whether we are detecting a local variable or a type pattern. This PR removes this.
Looks good to me.
-------------
Marked as reviewed by jlahoda (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14205#pullrequestreview-1450730711
More information about the compiler-dev
mailing list