From 4d7a70f8f45dd6efec30f69b03197bfb4354c0d1 Mon Sep 17 00:00:00 2001 From: "pedemont%us.ibm.com" Date: Wed, 27 Sep 2006 15:18:19 +0000 Subject: [PATCH] Bug 339947 - Java XPCOM proxies can get used (resurrected) after having been garbage collected causing VM crash. XULRunner only. patch by ttudor/jhpedemonte, r=jhpedemonte. Original committer: pedemont%us.ibm.com Original revision: 1.31 Original date: 2006/06/06 17:13:18 --- extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h b/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h index d9da29f69cc..1afb2594b90 100644 --- a/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h +++ b/extensions/java/xpcom/src/nsJavaXPCOMBindingUtils.h @@ -74,6 +74,7 @@ extern jclass stringClass; extern jclass nsISupportsClass; extern jclass xpcomExceptionClass; extern jclass xpcomJavaProxyClass; +extern jclass weakReferenceClass; extern jmethodID hashCodeMID; extern jmethodID booleanValueMID; @@ -95,6 +96,9 @@ extern jmethodID doubleInitMID; extern jmethodID createProxyMID; extern jmethodID isXPCOMJavaProxyMID; extern jmethodID getNativeXPCOMInstMID; +extern jmethodID weakReferenceConstructorMID; +extern jmethodID getReferentMID; +extern jmethodID clearReferentMID; #ifdef DEBUG_JAVAXPCOM extern jmethodID getNameMID;