summaryrefslogtreecommitdiff
path: root/sandbox
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-07-18 11:41:50 +0000
committerOliver Bolte <obo@openoffice.org>2005-07-18 11:41:50 +0000
commit4e8528b5f85b0cad8e9a89e85c39995dd5d37c62 (patch)
tree47af67ed523874b5ab3855c61801424154052b07 /sandbox
parent821facfab081ff1b5a4ce11ca88dcfe7e3f9c4c6 (diff)
INTEGRATION: CWS jl23 (1.1.1.1.144); FILE MERGED
2005/07/13 09:33:48 jl 1.1.1.1.144.1: #i49560# removed method getLocalizedMessage and a member to avoid deadlock
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/com/sun/star/lib/sandbox/SandboxSecurityException.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/sandbox/com/sun/star/lib/sandbox/SandboxSecurityException.java b/sandbox/com/sun/star/lib/sandbox/SandboxSecurityException.java
index 781d81f80998..478689439489 100644
--- a/sandbox/com/sun/star/lib/sandbox/SandboxSecurityException.java
+++ b/sandbox/com/sun/star/lib/sandbox/SandboxSecurityException.java
@@ -2,9 +2,9 @@
*
* $RCSfile: SandboxSecurityException.java,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:24:28 $
+ * last change: $Author: obo $ $Date: 2005-07-18 12:41:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -89,14 +89,14 @@ public class SandboxSecurityException extends SecurityException {
msgobj[1] = (Object)arg2;
}
- public String getLocalizedMessage() {
- if( msgobj != null)
- return amh.getMessage(key, msgobj);
- else
- return amh.getMessage(key);
- }
- private static SandboxMessageHandler amh = new SandboxMessageHandler("appletsecurityexception");
+ //The loading of the static member amh caused a deadlock:
+ //Thread 1 holds a monitor on SandboxSecuritymethod and tries to get hold of
+ //a lock of the class loader.
+ //Thread 2 is the finalizer which holds the class loader monitor an needs the
+ //SandboxSecurity monitor.
+ //Therefor the method getLocalizedMessage and the member amh have been removed.
+// private static SandboxMessageHandler amh = new SandboxMessageHandler("appletsecurityexception");
}