Loading... (original) (raw)
- Type:
Bug
- Resolution: Fixed
- Priority:
P3
- Fix Version/s: 8u20
- Affects Version/s: 1.8
- Labels:
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.
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