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

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

    XMLWordPrintable

    Details

    • Introduced In Version:
      8
    • Verification:
      Fix failed

      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:
                  mentlich Martin Entlicher
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: