Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8270120 | 18 | Jan Lahoda | P3 | Resolved | Fixed | b06 |
JDK-8270732 | 17.0.1 | Jan Lahoda | P3 | Resolved | Fixed | b03 |
As noted here:
https://mail.openjdk.java.net/pipermail/compiler-dev/2021-July/017505.html
For switches like:
void test(String s) {
switch (s) {
case null:
break;
}
}
javac should produce a compile-time error, as the switch is not exhaustive.
https://mail.openjdk.java.net/pipermail/compiler-dev/2021-July/017505.html
For switches like:
void test(String s) {
switch (s) {
case null:
break;
}
}
javac should produce a compile-time error, as the switch is not exhaustive.
- backported by
-
JDK-8270120 Switches with 'case null:' should be exhaustive
-
- Resolved
-
-
JDK-8270732 Switches with 'case null:' should be exhaustive
-
- Resolved
-