-
Bug
-
Resolution: Fixed
-
P2
-
7, 8, 11, 17, 21
-
b06
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8324401 | 22.0.1 | David Holmes | P2 | Resolved | Fixed | b02 |
JDK-8323636 | 22 | David Holmes | P3 | Resolved | Fixed | b32 |
JDK-8323903 | 21.0.3-oracle | David Holmes | P2 | Closed | Fixed | b02 |
JDK-8324485 | 21.0.3 | Aleksey Shipilev | P2 | Resolved | Fixed | b01 |
JDK-8323904 | 17.0.11-oracle | David Holmes | P2 | Closed | Fixed | b02 |
JDK-8324620 | 17.0.11 | Aleksey Shipilev | P2 | Resolved | Fixed | b01 |
JDK-8323908 | 11.0.23-oracle | David Holmes | P2 | Closed | Fixed | b02 |
JDK-8325276 | 11.0.23 | Andrew Lu | P2 | Resolved | Fixed | b02 |
JDK-8323929 | 8u411 | David Holmes | P2 | Closed | Fixed | b02 |
JDK-8324675 | 7u431 | David Holmes | P2 | Closed | Fixed | b01 |
To set up the bug you need to define a non-abstract class with an abstract instance method and then use JNI to invoke that instance method. Hence it cannot occur from javac generated class files but requires custom bytecode.
A simple fix is to have JNI check if the target is abstract and throw the AME directly. Though it may also be possible to fix the stub so that JNI can use it.
- backported by
-
JDK-8324401 JNI invocation of an abstract instance method corrupts the stack
- Resolved
-
JDK-8324485 JNI invocation of an abstract instance method corrupts the stack
- Resolved
-
JDK-8324620 JNI invocation of an abstract instance method corrupts the stack
- Resolved
-
JDK-8325276 JNI invocation of an abstract instance method corrupts the stack
- Resolved
-
JDK-8323636 JNI invocation of an abstract instance method corrupts the stack
- Resolved
-
JDK-8323903 JNI invocation of an abstract instance method corrupts the stack
- Closed
-
JDK-8323904 JNI invocation of an abstract instance method corrupts the stack
- Closed
-
JDK-8323908 JNI invocation of an abstract instance method corrupts the stack
- Closed
-
JDK-8323929 JNI invocation of an abstract instance method corrupts the stack
- Closed
-
JDK-8324675 JNI invocation of an abstract instance method corrupts the stack
- Closed
- links to
-
Commit openjdk/jdk11u-dev/9be48919
-
Commit openjdk/jdk17u-dev/ab3d1d05
-
Commit openjdk/jdk21u-dev/ad2e1141
-
Commit openjdk/jdk22/b40b1882
-
Commit openjdk/jdk/71d9a83d
-
Review openjdk/jdk11u-dev/2507
-
Review openjdk/jdk17u-dev/2155
-
Review openjdk/jdk21u-dev/202
-
Review openjdk/jdk22/73
-
Review openjdk/jdk/17337