-
Bug
-
Resolution: Fixed
-
P3
-
23
-
b28
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8334444 | 24 | Archie Cobbs | P3 | Resolved | Fixed | b03 |
JDK-8334951 | 23.0.1 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | b02 |
static class Test {
class InnerClass { int a; }
Test(int a) {
this.new InnerClass().a = 1;
super();
}
}
public static void main(String argv[]) {
new Test(1);
}
Exception in thread "main" java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Test.<init>(I)V @5: invokespecial
Reason:
Type uninitializedThis (current frame, stack[2]) is not assignable to 'Test'
Current Frame:
bci: @5
flags: { flagThisUninit }
locals: { uninitializedThis, integer }
stack: { uninitialized 0, uninitialized 0, uninitializedThis }
Bytecode:
0000000: bb00 0159 2ab7 0003 04b5 0007 04b3 000b
0000010: 1b3d 2ab7 0011 b1
at Main.run(Main.java:31)
at Main.main(Main.java:27)
java --version
openjdk 23-ea 2024-09-17
OpenJDK Runtime Environment (build 23-ea+25-2094)
OpenJDK 64-Bit Server VM (build 23-ea+25-2094, mixed mode, sharing)
class InnerClass { int a; }
Test(int a) {
this.new InnerClass().a = 1;
super();
}
}
public static void main(String argv[]) {
new Test(1);
}
Exception in thread "main" java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
Test.<init>(I)V @5: invokespecial
Reason:
Type uninitializedThis (current frame, stack[2]) is not assignable to 'Test'
Current Frame:
bci: @5
flags: { flagThisUninit }
locals: { uninitializedThis, integer }
stack: { uninitialized 0, uninitialized 0, uninitializedThis }
Bytecode:
0000000: bb00 0159 2ab7 0003 04b5 0007 04b3 000b
0000010: 1b3d 2ab7 0011 b1
at Main.run(Main.java:31)
at Main.main(Main.java:27)
java --version
openjdk 23-ea 2024-09-17
OpenJDK Runtime Environment (build 23-ea+25-2094)
OpenJDK 64-Bit Server VM (build 23-ea+25-2094, mixed mode, sharing)
- backported by
-
JDK-8334444 VerifyError when inner class is accessed in prologue
- Resolved
-
JDK-8334951 VerifyError when inner class is accessed in prologue
- Resolved
- links to
-
Commit openjdk/jdk/12a61bce
-
Commit openjdk/jdk/d4c13737
-
Review openjdk/jdk/19666
-
Review openjdk/jdk/19783
(1 links to)