From 8b38b14ce40853e457b45043a3ff6156ac9ca884 Mon Sep 17 00:00:00 2001 From: "pedemont%us.ibm.com" Date: Wed, 27 Sep 2006 15:18:21 +0000 Subject: [PATCH] Bug 338110 - Remove operation on JavaXPTCStub map is called with bad parameters. XULRunner only. r=bsmedberg. Original committer: pedemont%us.ibm.com Original revision: 1.33 Original date: 2006/06/15 16:14:24 --- extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h b/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h index 713a4c6807ef..e5f3e699ecb2 100644 --- a/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h +++ b/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h @@ -62,6 +62,7 @@ * Java JNI globals *********************/ +extern jclass systemClass; extern jclass booleanClass; extern jclass charClass; extern jclass byteClass; @@ -244,12 +245,12 @@ public: nsresult Destroy(); - nsresult Add(JNIEnv* env, jobject aJavaObject, nsJavaXPTCStub* aProxy); + nsresult Add(jint aJavaObjectHashCode, nsJavaXPTCStub* aProxy); - nsresult Find(JNIEnv* env, jobject aJavaObject, const nsIID& aIID, + nsresult Find(jint aJavaObjectHashCode, const nsIID& aIID, nsJavaXPTCStub** aResult); - nsresult Remove(JNIEnv* env, jobject aJavaObject); + nsresult Remove(jint aJavaObjectHashCode); protected: PLDHashTable* mHashTable;