Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jni-interface.c | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/vm/jni-interface.c b/vm/jni-interface.c index b80ab66..4411f0a 100644 --- a/vm/jni-interface.c +++ b/vm/jni-interface.c @@ -712,6 +712,23 @@ vm_jni_call_static_boolean_method(struct vm_jni_env *env, jclass clazz, return result; } +static void vm_jni_call_void_method(struct vm_jni_env *env, jobject this, + jmethodID methodID, ...) +{ + va_list args; + + 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); + vm_call_method_this_v(methodID, this, args); + va_end(args); +} + /* * The JNI native interface table. * See: http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/functions.html @@ -803,7 +820,7 @@ void *vm_jni_native_interface[] = { /* 60 */ NULL, /* CallDoubleMethodA */ - NULL, /* CallVoidMethod */ + vm_jni_call_void_method, NULL, /* CallVoidMethodV */ NULL, /* CallVoidMethodA */ NULL, /* CallNonvirtualObjectMethod */ -- 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 Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel