-
Bug
-
Resolution: Other
-
P3
-
1.8
-
JDK 8
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8042091 | 9 | Jaroslav Bachorík | P3 | Resolved | Fixed | b12 |
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.
- backported by
-
JDK-8042091 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