From c56b658bded715a47a8f53efef923c40328f797b Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Tue, 23 Jan 2007 06:40:49 +0000 Subject: * gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Implement. From-SVN: r121078 --- libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libjava/gnu/classpath') diff --git a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc index 8c599fb..84b75ec 100644 --- a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc +++ b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc @@ -30,6 +30,7 @@ details. */ #include #include #include +#include #include #include @@ -307,9 +308,14 @@ getAllClassMethods (MAYBE_UNUSED jclass klass) gnu::classpath::jdwp::VMMethod * gnu::classpath::jdwp::VMVirtualMachine:: -getClassMethod (MAYBE_UNUSED jclass klass, MAYBE_UNUSED jlong id) +getClassMethod (jclass klass, jlong id) { - return NULL; + jmethodID method = reinterpret_cast (id); + _Jv_MethodBase *bmeth = _Jv_FindInterpreterMethod (klass, method); + if (bmeth != NULL) + return new gnu::classpath::jdwp::VMMethod (klass, id); + + throw new gnu::classpath::jdwp::exception::InvalidMethodException (id); } java::util::ArrayList * -- cgit v1.1