Integrated: 8277864: Compilation error thrown while doing a boxing conversion on selector expression

Jan Lahoda jlahoda at openjdk.java.net
Mon Dec 6 08:46:21 UTC 2021


On Fri, 3 Dec 2021 08:31:52 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Consider a switch whose selector type is a primitive type (e.g. an integer). This may still be a pattern matching switch, if it has a case with a pattern label. But, as the selector type is primitive, TransPatterns must not attempt to generate a null check, so this patch avoids it.

This pull request has now been integrated.

Changeset: 194cdf4e
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/194cdf4e28225133dcdf29cf1bf4e580f3fd9208
Stats:     15 lines in 2 files changed: 12 ins; 0 del; 3 mod

8277864: Compilation error thrown while doing a boxing conversion on selector expression

Reviewed-by: jlaskey, vromero

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

PR: https://git.openjdk.java.net/jdk/pull/6695


More information about the compiler-dev mailing list