Signed-off-by: Tomek Grabiec <[email protected]>
---
vm/jni-interface.c | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/vm/jni-interface.c b/vm/jni-interface.c
index ccc0ecb..c2cd110 100644
--- a/vm/jni-interface.c
+++ b/vm/jni-interface.c
@@ -609,6 +609,26 @@ static jint vm_jni_call_int_method(struct vm_jni_env *env,
jobject this,
return result;
}
+static jboolean vm_jni_call_boolean_method(struct vm_jni_env *env, jobject
this,
+ jmethodID methodID, ...)
+{
+ va_list args;
+ jboolean result;
+
+ enter_vm_from_jni();
+
+ /*
+ * TODO: When these functions are used to call private methods
+ * and constructors, the method ID must be derived from the
+ * real class of obj, not from one of its superclasses.
+ */
+ va_start(args, methodID);
+ result = (jboolean) vm_call_method_this_v(methodID, this, args);
+ va_end(args);
+
+ return result;
+}
+
/*
* The JNI native interface table.
* See: http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/functions.html
@@ -666,7 +686,7 @@ void *vm_jni_native_interface[] = {
/* 35 */
NULL, /* CallObjectMethodV */
NULL, /* CallObjectMethodA */
- NULL, /* CallBooleanMethod */
+ vm_jni_call_boolean_method,
NULL, /* CallBooleanMethodV */
NULL, /* CallBooleanMethodA */
--
1.6.0.6
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel