Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/jni-interface.c |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/vm/jni-interface.c b/vm/jni-interface.c
index 62f82e1..83a414b 100644
--- a/vm/jni-interface.c
+++ b/vm/jni-interface.c
@@ -71,8 +71,7 @@ static jint vm_jni_get_env(JavaVM *vm, void **env, jint 
version)
 {
        enter_vm_from_jni();
 
-       /* XXX: We are actually supporting only a little part of 1.2 yet. */
-       if (version > JNI_VERSION_1_2) {
+       if (version > JNI_VERSION_1_4) {
                *env = NULL;
                return JNI_EVERSION;
        }
@@ -895,8 +894,31 @@ void *vm_jni_native_interface[] = {
        vm_jni_monitor_exit,
        vm_jni_get_java_vm,
 
+       /* JNI 1.2 functions */
+
        /* 220 */
-       NULL, /* GetJavaVM */
+       NULL, /* GetStringRegion */
+       NULL, /* GetStringUTFRegion */
+       NULL, /* GetPrimitiveArrayCritical */
+       NULL, /* ReleasePrimitiveArrayCritical */
+       NULL, /* GetStringCritical */
+
+       /* 225 */
+       NULL, /* ReleaseStringCritical */
+       NULL, /* NewWeakGlobalRef */
+       NULL, /* DeleteWeakGlobalRef */
+       NULL, /* ExceptionCheck */
+
+       /* JNI 1.4 functions */
+
+       NULL, /* NewDirectByteBuffer */
+
+       /* 230 */
+       NULL, /* GetDirectBufferAddress */
+       NULL, /* GetDirectBufferCapacity */
+       NULL,
+       NULL,
+       NULL,
 };
 
 struct vm_jni_env vm_jni_default_env = {
-- 
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

Reply via email to