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

JDWP spec for ClassType#InvokeMethod contradicts JLS

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6, 7, 8, 9
    • Fix Version/s: 9
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b10

      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-)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbachorik Jaroslav BachorĂ­k
                Reporter:
                jbachorik Jaroslav BachorĂ­k
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: