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

Jim Laskey jlaskey at openjdk.java.net
Fri Dec 3 12:49:15 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.

LGTM

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

Marked as reviewed by jlaskey (Reviewer).

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


More information about the compiler-dev mailing list