< prev index next >

src/java.se/share/data/jdwp/jdwp.spec

Print this page
*** 1799,10 ***
--- 1799,47 ---
              (Error ILLEGAL_ARGUMENT  "maxReferrers is less than zero.")
              (Error NOT_IMPLEMENTED)
              (Error VM_DEAD)
          )
      )
+     (Command IsSameObject=11
+         "<b>IsSameObject is a preview API of the Java platform.</b> "
+         "<em>Preview features may be removed in a future release, or upgraded to "
+         "permanent features of the Java platform.</em>"
+         "<p>"
+         "Determines whether two objects refer to the same Java object."
+         "<p>Since JDWP version 27."
+         (Out
+             (object object1 "The object ID")
+             (object object2 "The object ID")
+         )
+         (Reply
+             (boolean isSameObject "true if the objects refer to the same Java object; false otherwise")
+         )
+         (ErrorSet
+             (Error INVALID_OBJECT)
+             (Error VM_DEAD)
+         )
+     )
+     (Command ObjectHashCode=12
+         "<b>ObjectHashCode is a preview API of the Java platform.</b> "
+         "<em>Preview features may be removed in a future release, or upgraded to "
+         "permanent features of the Java platform.</em>"
+         "<p>"
+         "Returns hash code for an object."
+         "<p>Since JDWP version 27."
+         (Out
+             (object object "The object ID")
+         )
+         (Reply
+             (int hashCode "hash code value for the object")
+         )
+         (ErrorSet
+             (Error INVALID_OBJECT)
+             (Error VM_DEAD)
+         )
+     )
  )
  
  (CommandSet StringReference=10
      (Command Value=1
          "Returns the characters contained in the string. "
< prev index next >