Integrated: 8309054: Parsing of erroneous patterns succeeds

Aggelos Biboudis abimpoudis at openjdk.org
Wed May 31 09:41:16 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.

This pull request has now been integrated.

Changeset: 4f3a95af
Author:    Aggelos Biboudis <abimpoudis at openjdk.org>
Committer: Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4f3a95af2f87756c87fa63d197176cfbb066ecdb
Stats:     75 lines in 3 files changed: 38 ins; 9 del; 28 mod

8309054: Parsing of erroneous patterns succeeds

Reviewed-by: jlahoda

-------------

PR: https://git.openjdk.org/jdk/pull/14205


More information about the compiler-dev mailing list