-
Bug
-
Resolution: Fixed
-
P3
-
17
-
b29
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 |
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");
}
}
---
- 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
- duplicates
-
JDK-8269375 Infinite loop in Pattern switch with guarded patterns in JDK 17 ea27/ea26
- Closed