Details
-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b04
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8033448 | 9 | Staffan Larsen | P2 | Closed | Fixed | b04 |
JDK-8045231 | 8u25 | Staffan Larsen | P2 | Resolved | Fixed | b01 |
JDK-8053235 | emb-8u26 | Staffan Larsen | P2 | Resolved | Fixed | b17 |
Description
Reported at: http://mail.openjdk.java.net/pipermail/hotspot-dev/2014-January/012320.html
interface A {
default int getOne() {
return 1;
}
}
class Impl implements A {
public int getOne() {
return 2;
}
}
It is not possible to call A.getOne() using JNI since CallNonvirtual<type>Method() does not consider default methods.
interface A {
default int getOne() {
return 1;
}
}
class Impl implements A {
public int getOne() {
return 2;
}
}
It is not possible to call A.getOne() using JNI since CallNonvirtual<type>Method() does not consider default methods.
Attachments
Issue Links
- backported by
-
JDK-8045231 Can't call default methods from JNI
- Resolved
-
JDK-8053235 Can't call default methods from JNI
- Resolved
-
JDK-8033448 Can't call default methods from JNI
- Closed
- relates to
-
JDK-8039184 JNI Spec missing documentation on calling default methods
- Closed
-
JDK-8033445 [TESTBUG] Add test case for calling default methods from JNI
- Resolved