-
Bug
-
Resolution: Fixed
-
P4
-
24
-
b11
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8362604 | 21.0.9-oracle | Jayashree Kumar | P4 | Resolved | Fixed | b03 |
We currently have static blocks disabled because they allow for creating erroneous 'break' statements. Lets fix both issues.
Here's a sample:
class Test_0 {
static {
if (true) {
break; // <- compilation error here
}
}
}
Here's a sample:
class Test_0 {
static {
if (true) {
break; // <- compilation error here
}
}
}
- backported by
-
JDK-8362604 JITTester: Fix breaks in static initialization blocks
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/4669e7b7
-
Review(master) openjdk/jdk/20310