From 161eafefc2a792e7531af7b2791402a0642e9d52 Mon Sep 17 00:00:00 2001 From: "pedemont%us.ibm.com" Date: Wed, 27 Sep 2006 15:18:47 +0000 Subject: [PATCH] Bug 278113 - Fix parameter handling. r=darin. Original committer: pedemont%us.ibm.com Original revision: 1.22 Original date: 2005/01/13 16:30:19 --- .../java/xpcom/src/nsJavaXPCOMBindingUtils.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.cpp b/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.cpp index 4c9756acff2..c0acd3668a6 100644 --- a/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.cpp +++ b/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.cpp @@ -47,8 +47,6 @@ /* Java JNI globals */ -jclass intClass = nsnull; -jclass intArrayClass = nsnull; jclass stringClass = nsnull; jclass nsISupportsClass = nsnull; jclass xpcomExceptionClass = nsnull; @@ -297,10 +295,7 @@ InitializeJavaGlobals(JNIEnv *env) } if (!(clazz = env->FindClass("java/lang/Integer")) || - !(intClass = (jclass) env->NewGlobalRef(clazz)) || - !(clazz = env->FindClass("[I")) || - !(intArrayClass = (jclass) env->NewGlobalRef(clazz)) || - !(intValueMID = env->GetMethodID(intClass,"intValue","()I"))) + !(intValueMID = env->GetMethodID(clazz,"intValue","()I"))) { goto init_error; } @@ -403,14 +398,6 @@ init_error: void FreeJavaGlobals(JNIEnv* env) { - if (intClass) { - env->DeleteGlobalRef(intClass); - intClass = nsnull; - } - if (intArrayClass) { - env->DeleteGlobalRef(intArrayClass); - intArrayClass = nsnull; - } if (stringClass) { env->DeleteGlobalRef(stringClass); stringClass = nsnull;