JDK-8042121 : Support default and static interface methods in JDI, JDWP and JDB
  • Type: Bug
  • Component: core-svc
  • Affected Version: 1.8
  • Priority: P3
  • Status: Closed
  • Resolution: Other
  • Submitted: 2014-04-29
  • Updated: 2016-03-08
  • Resolved: 2014-04-29
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 8 JDK 9
8u20Resolved 9Fixed
Related Reports
Relates :  
Relates :  
Relates :  
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.
Comments
I see these methods in 8u40, not in 8u20.
08-03-2016

This is a cloned issue. It is not supposed to contain the link to any of the backports of the original issue. Closing.
29-04-2014