From fc422dc6002641a1615d7ed26eb9364dccb80f39 Mon Sep 17 00:00:00 2001 From: glewis Date: Tue, 16 Apr 2002 06:07:05 +0000 Subject: Fix some crash bugs in the browser plugin code by using the correct functions to call static Java methods. Submitted by: Richard Tobin Reviewed by: sobomax Approved by: sobomax --- ...::oji-plugin::src::motif::jvm_natives::native.c | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 java/jdk16/files/patch-..::ext::plugin::oji-plugin::src::motif::jvm_natives::native.c (limited to 'java/jdk16') diff --git a/java/jdk16/files/patch-..::ext::plugin::oji-plugin::src::motif::jvm_natives::native.c b/java/jdk16/files/patch-..::ext::plugin::oji-plugin::src::motif::jvm_natives::native.c new file mode 100644 index 0000000..9717547 --- /dev/null +++ b/java/jdk16/files/patch-..::ext::plugin::oji-plugin::src::motif::jvm_natives::native.c @@ -0,0 +1,31 @@ +$FreeBSD$ + +--- ../ext/plugin/oji-plugin/src/motif/jvm_natives/native.c 22 Jan 2002 19:56:49 -0000 1.5 ++++ ../ext/plugin/oji-plugin/src/motif/jvm_natives/native.c 13 Apr 2002 05:11:05 -0000 +@@ -590,7 +590,7 @@ + jclass clz = (*env)->FindClass(env, "sun/plugin/navig/motif/Worker"); + jmethodID meth = (*env)->GetStaticMethodID(env, clz, "readHttpsURL", + "(Ljava/lang/Object;[BII)I"); +- return (jint)(*env)->CallStaticObjectMethod(env, clz, meth, this, buf, offset, len); ++ return (jint)(*env)->CallStaticIntMethod(env, clz, meth, this, buf, offset, len); + } + + /* +@@ -605,7 +605,7 @@ + jclass clz = (*env)->FindClass(env, "sun/plugin/navig/motif/Worker"); + jmethodID meth = (*env)->GetStaticMethodID(env, clz, "bytesAvailable", + "(Ljava/lang/Object;)I"); +- return (jint)(*env)->CallStaticObjectMethod(env, clz, meth, this); ++ return (jint)(*env)->CallStaticIntMethod(env, clz, meth, this); + } + + /* +@@ -623,7 +623,7 @@ + "(Ljava/lang/Object;)V"); + jfieldID nativeConnID = (*env)->GetFieldID(env, isClass, "nativeConnection", "J"); + +- (*env)->CallStaticObjectMethod(env, clz, meth, is); ++ (*env)->CallStaticVoidMethod(env, clz, meth, is); + + /* + It is extremely important to unset the nativeConnection field in -- cgit v1.1