Details
-
Bug
-
Resolution: Fixed
-
P3
-
1.8
-
JDK 8
-
Fix failed
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8042091 | 9 | Jaroslav BachorĂk | P3 | Resolved | Fixed | b12 |
Description
Since JDK 8 it is possible to have static methods in interfaces. However, there is no way to execute them from debugger.
Static method in classes can be run by com.sun.jdi.ClassType.invokeMethod(). But there is missing corresponding com.sun.jdi.InterfaceType.invokeMethod().
In addition, when an invocation of a default method is attempted it results in error.
Static method in classes can be run by com.sun.jdi.ClassType.invokeMethod(). But there is missing corresponding com.sun.jdi.InterfaceType.invokeMethod().
In addition, when an invocation of a default method is attempted it results in error.
Attachments
Issue Links
- backported by
-
JDK-8042091 Support default and static interface methods in JDI, JDWP and JDB
- Resolved
- is cloned by
-
JDK-8042123 Support default and static interface methods in JDI, JDWP and JDB
- Resolved
- relates to
-
JDK-8040167 JDWP spec for ClassType#InvokeMethod contradicts JLS
- Resolved
-
JDK-8031379 Release Note: com.sun.jdi.InterfaceType.invokeMethod() is missing
- Resolved
-
JDK-8035567 ObjectReference.invokeMethod() on default method throws ClassCastException
- Closed