Variables must be declared at block beginnings, damn!
authortwisti <none@none>
Sat, 6 Mar 2004 20:50:31 +0000 (20:50 +0000)
committertwisti <none@none>
Sat, 6 Mar 2004 20:50:31 +0000 (20:50 +0000)
jni.c
src/native/jni.c

diff --git a/jni.c b/jni.c
index ec368dfa7dd993f428f5d9c94eba4c7586dd1f55..270684a0a67190e79e2aba47a3650431782b65a0 100644 (file)
--- a/jni.c
+++ b/jni.c
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: jni.c 930 2004-03-02 21:18:23Z jowenn $
+   $Id: jni.c 944 2004-03-06 20:50:31Z twisti $
 
 */
 
@@ -3437,10 +3437,13 @@ jobject *jni_method_invokeNativeHelper(JNIEnv *env, struct methodinfo *methodID,
 
        if (*exceptionptr) {
                java_objectheader *exceptionToWrap=*exceptionptr;
+               classinfo *ivtec;
+               java_objectheader *ivte;
+
                *exceptionptr=0;
-               classinfo *ivtec = loader_load_sysclass(NULL,
+               ivtec = loader_load_sysclass(NULL,
                                                                                                utf_new_char("java/lang/reflect/InvocationTargetException"));
-               java_objectheader* ivte = builtin_new(ivtec);
+               ivte = builtin_new(ivtec);
                asm_calljavafunction(class_resolvemethod(ivtec,
                                                                                                 utf_new_char("<init>"),
                                                                                                 utf_new_char("(Ljava/lang/Throwable;)V")),
index ec368dfa7dd993f428f5d9c94eba4c7586dd1f55..270684a0a67190e79e2aba47a3650431782b65a0 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Joseph Wenninger
 
-   $Id: jni.c 930 2004-03-02 21:18:23Z jowenn $
+   $Id: jni.c 944 2004-03-06 20:50:31Z twisti $
 
 */
 
@@ -3437,10 +3437,13 @@ jobject *jni_method_invokeNativeHelper(JNIEnv *env, struct methodinfo *methodID,
 
        if (*exceptionptr) {
                java_objectheader *exceptionToWrap=*exceptionptr;
+               classinfo *ivtec;
+               java_objectheader *ivte;
+
                *exceptionptr=0;
-               classinfo *ivtec = loader_load_sysclass(NULL,
+               ivtec = loader_load_sysclass(NULL,
                                                                                                utf_new_char("java/lang/reflect/InvocationTargetException"));
-               java_objectheader* ivte = builtin_new(ivtec);
+               ivte = builtin_new(ivtec);
                asm_calljavafunction(class_resolvemethod(ivtec,
                                                                                                 utf_new_char("<init>"),
                                                                                                 utf_new_char("(Ljava/lang/Throwable;)V")),