Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jni-interface.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/vm/jni-interface.c b/vm/jni-interface.c index 1bcedf4..b8882bf 100644 --- a/vm/jni-interface.c +++ b/vm/jni-interface.c @@ -423,6 +423,13 @@ static jint vm_jni_get_java_vm(struct vm_jni_env *env, struct java_vm **vm) return 0; } +static jobject vm_jni_get_object_class(struct vm_jni_env *env, jobject obj) +{ + enter_vm_from_jni(); + + return obj->class->object; +} + /* * The JNI native interface table. * See: http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/functions.html @@ -472,7 +479,7 @@ void *vm_jni_native_interface[] = { /* 30 */ NULL, /* NewObjectA */ - NULL, /* GetObjectClass */ + vm_jni_get_object_class, /* GetObjectClass */ NULL, /* IsInstanceOf */ vm_jni_get_method_id, NULL, /* CallObjectMethod */ -- 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