RFR: 8277864: Compilation error thrown while doing a boxing conversion on selector expression
Jan Lahoda
jlahoda at openjdk.java.net
Fri Dec 3 08:40:34 UTC 2021
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.
-------------
Commit messages:
- 8277864: Compilation error thrown while doing a boxing conversion on selector expression
Changes: https://git.openjdk.java.net/jdk/pull/6695/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6695&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8277864
Stats: 15 lines in 2 files changed: 12 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/6695.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6695/head:pull/6695
PR: https://git.openjdk.java.net/jdk/pull/6695
More information about the compiler-dev
mailing list