Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8042121

Support default and static interface methods in JDI, JDWP and JDB

    XMLWordPrintable

    Details

    • Introduced In Version:
      8

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jbachorik Jaroslav Bachorík
                Reporter:
                jbachorik Jaroslav Bachorík
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: