Fix ObjectReference.InvokeMethod.
This probably broke when I rewrote the object registry, but because
the test was so crap, we may have gotten away with passing bad pointers.
(Though for me, CheckJNI was catching this.)
While I'm here, fix the argument checking, which was previously
very weak; we'd accept any reference type rather than instances of
the parameter's specific type.
Change-Id: I08c001cabde02a0509fe28df17523a2d2519d1ca
diff --git a/src/jdwp/object_registry.h b/src/jdwp/object_registry.h
index 734bb86..d0ea59d 100644
--- a/src/jdwp/object_registry.h
+++ b/src/jdwp/object_registry.h
@@ -76,7 +76,7 @@
// Returned by Get when passed an invalid object id.
static mirror::Object* const kInvalidObject;
- // This is needed to get the jobject of a thread instead of the Object*.
+ // This is needed to get the jobject instead of the Object*.
// Avoid using this and use standard Get when possible.
jobject GetJObject(JDWP::ObjectId id) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);