Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
17
-
b29
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8269710 | 18 | Jan Lahoda | P3 | Resolved | Fixed | b05 |
JDK-8270677 | 17.0.1 | Jan Lahoda | P3 | Resolved | Fixed | b03 |
Description
As noted here:
https://mail.openjdk.java.net/pipermail/compiler-dev/2021-June/017339.html
The following code, when compiled and ran, runs in an infinite loop:
---
static void test(Integer i) {
switch (i) {
case Integer o && o != null:
System.out.println("s1");
default:
System.out.println("def");
}
}
---
https://mail.openjdk.java.net/pipermail/compiler-dev/2021-June/017339.html
The following code, when compiled and ran, runs in an infinite loop:
---
static void test(Integer i) {
switch (i) {
case Integer o && o != null:
System.out.println("s1");
default:
System.out.println("def");
}
}
---
Attachments
Issue Links
- backported by
-
JDK-8269710 Switch statement containing pattern case label element gets in the loop during execution
-
- Resolved
-
-
JDK-8270677 Switch statement containing pattern case label element gets in the loop during execution
-
- Resolved
-