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

JDWP spec for ClassType#InvokeMethod contradicts JLS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 6, 7, 8, 9
    • core-svc
    • b10

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

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

              Created:
              Updated:
              Resolved: