aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-08-18 14:36:07 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-08-18 14:36:07 +0000
commit0da021f5ccafd20a5ef711233eaeab093fac3966 (patch)
tree3937ccad6c17e653dc39511f8dcb2812663db7de /libjava/include
parentcd0698363989ea9ad0c5546a79820da9e404b170 (diff)
downloadgcc-0da021f5ccafd20a5ef711233eaeab093fac3966.zip
gcc-0da021f5ccafd20a5ef711233eaeab093fac3966.tar.gz
gcc-0da021f5ccafd20a5ef711233eaeab093fac3966.tar.bz2
re PR libgcj/11951 (natMethod.cc (_Jv_CallAnyMethodA) should clear ffi_result before ffi_call)
PR libgcj/11951: * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Returns void. Throw VirtualMachineError if ffi fails. Initialize return value. Added is_jni_call argument; only wrap exception if not a JNI call. Use descriptive message if operation not supported. (_Jv_GetTypesFromSignature): Use declaring class' loader to find array class. * include/jvm.h (_Jv_CallAnyMethodA): Updated declaration. * jni.cc (_Jv_JNI_CallAnyMethodV): Updated for new form of _Jv_CallAnyMethodA. (_Jv_JNI_CallAnyMethodA): Likewise. (_Jv_JNI_CallAnyVoidMethodV): Likewise. (_Jv_JNI_CallAnyVoidMethodA): Likewise. From-SVN: r70544
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/jvm.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index 38155d3..941b24e 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -335,13 +335,14 @@ extern jobject _Jv_CallAnyMethodA (jobject obj, jclass return_type,
jobjectArray args);
union jvalue;
-extern jthrowable _Jv_CallAnyMethodA (jobject obj,
- jclass return_type,
- jmethodID meth,
- jboolean is_constructor,
- JArray<jclass> *parameter_types,
- jvalue *args,
- jvalue *result);
+extern void _Jv_CallAnyMethodA (jobject obj,
+ jclass return_type,
+ jmethodID meth,
+ jboolean is_constructor,
+ JArray<jclass> *parameter_types,
+ jvalue *args,
+ jvalue *result,
+ jboolean is_jni_call = true);
extern jobject _Jv_NewMultiArray (jclass, jint ndims, jint* dims)
__attribute__((__malloc__));