Signed-off-by: Tomek Grabiec <[email protected]>
---
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 dfba479..eb8468e 100644
--- a/vm/jni-interface.c
+++ b/vm/jni-interface.c
@@ -524,6 +524,23 @@ static jobject vm_jni_new_object(struct vm_jni_env *env,
jobject clazz,
return obj;
}
+static jobject vm_jni_get_object_field(struct vm_jni_env *env, jobject object,
+ jfieldID field)
+{
+ enter_vm_from_jni();
+
+ if (!object) {
+ signal_new_exception(vm_java_lang_NullPointerException, NULL);
+ return 0;
+ }
+
+ if (vm_field_type(field) != J_REFERENCE) {
+ NOT_IMPLEMENTED;
+ return 0;
+ }
+
+ return field_get_object(object, field);
+}
/*
* The JNI native interface table.
@@ -664,7 +681,7 @@ void *vm_jni_native_interface[] = {
vm_jni_get_field_id,
/* 95 */
- NULL, /* GetObjectField */
+ vm_jni_get_object_field,
NULL, /* GetBooleanField */
NULL, /* GetByteField */
NULL, /* GetCharField */
--
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