JDK-8031195 : Support default and static interface methods in JDI, JDWP and JDB
  • Type: Bug
  • Component: core-svc
  • Affected Version: 1.8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-01-06
  • Updated: 2017-05-17
  • 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
8u20Fixed 9Fixed
Related Reports
Cloners :  
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
The fix caused build breakage. A new attempt to deliver the fix is JDK-8042121
29-04-2014

Release team: Approved for deferral.
07-01-2014

Requesting deferral. It's too late in the game to fix this issue - it requires CCC and changing the API docs accordingly.
07-01-2014

After discussion changing the priority to P3 - ILW = MMH The impact is lowered since it is not a breakage of specification per-se. There is no specification for InterfaceType.invokeMethod() yet.
07-01-2014

ILW = HMH -> P1 Impact H: It is impossible to invoke the default methods from the debugger; default methods are an integral part of Java 8 Likelihood M: This affects only the interface default methods and they are not that common yet Workaround H: It is not possible to workaround this problem
07-01-2014