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
commit562888c8e203c7e9b2aab22ca67673b857d01d9d (patch)
treecca97e3465d42db3a626179ba6693ab2224e8a0d /sandbox
parentb06fd2a082c8309f6cb0d42c047daef02251967f (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 962ab48995..4d48ec63e5 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");
}