JDWP spec for ClassType#InvokeMethod, which is used to invoke static class methods, implies those methods being inherited from the implemented interfaces.
"Invokes a static method. The method must be member of the class type or one of its superclasses,
*superinterfaces*, or implemented interfaces."
(http://docs.oracle.com/javase/8/docs/platform/jpda/jdwp/jdwp-protocol.html#JDWP_ClassType_InvokeMethod)
The JDI documentation, however, is correct (http://docs.oracle.com/javase/8/docs/jdk/api/jpda/jdi/com/sun/jdi/ClassType.html#invokeMethod-com.sun.jdi.ThreadReference-com.sun.jdi.Method-java.util.List-int-)
"Invokes a static method. The method must be member of the class type or one of its superclasses,
*superinterfaces*, or implemented interfaces."
(http://docs.oracle.com/javase/8/docs/platform/jpda/jdwp/jdwp-protocol.html#JDWP_ClassType_InvokeMethod)
The JDI documentation, however, is correct (http://docs.oracle.com/javase/8/docs/jdk/api/jpda/jdi/com/sun/jdi/ClassType.html#invokeMethod-com.sun.jdi.ThreadReference-com.sun.jdi.Method-java.util.List-int-)
- relates to
-
JDK-8031195 Support default and static interface methods in JDI, JDWP and JDB
-
- Resolved
-
-
JDK-8160987 JDWP ClassType.InvokeMethod doesn't validate class
-
- Resolved
-
-
JDK-8042121 Support default and static interface methods in JDI, JDWP and JDB
-
- Closed
-
-
JDK-8042123 Support default and static interface methods in JDI, JDWP and JDB
-
- Resolved
-