JDK-8040167 : JDWP spec for ClassType#InvokeMethod contradicts JLS
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 6,7,8,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-04-14
  • Updated: 2017-05-17
  • Resolved: 2014-04-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
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-)