From c167e9fd87a69ebb9b0bbe216ddde7cfc3b18ac5 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Tue, 8 Nov 2005 22:07:33 +0000 Subject: [PATCH] Change SecurityContextHolder to ThreadLocal due to IBM JDK 1.3 issues as described at http://tinyurl.com/8zhka and reported by Scott McCrory on acegisecurity-developer 8 November 2005. --- .../org/acegisecurity/context/SecurityContextHolder.java | 4 ++-- doc/docbook/acegi.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/org/acegisecurity/context/SecurityContextHolder.java b/core/src/main/java/org/acegisecurity/context/SecurityContextHolder.java index bc5287a0ff..15ed3fab5c 100644 --- a/core/src/main/java/org/acegisecurity/context/SecurityContextHolder.java +++ b/core/src/main/java/org/acegisecurity/context/SecurityContextHolder.java @@ -35,13 +35,13 @@ import org.springframework.util.Assert; * @author Ben Alex * @version $Id$ * - * @see java.lang.InheritableThreadLocal + * @see java.lang.ThreadLocal * @see net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter */ public class SecurityContextHolder { //~ Static fields/initializers ============================================= - private static InheritableThreadLocal contextHolder = new InheritableThreadLocal(); + private static ThreadLocal contextHolder = new ThreadLocal(); //~ Methods ================================================================ diff --git a/doc/docbook/acegi.xml b/doc/docbook/acegi.xml index e6dddd8440..b5ffdfd7e1 100644 --- a/doc/docbook/acegi.xml +++ b/doc/docbook/acegi.xml @@ -366,9 +366,9 @@ Authentication. All Acegi Security classes query the SecurityContextHolder for obtaining the current SecurityContext (and in turn the principal). - SecurityContextHolder is an - InheritableThreadLocal, meaning it is associated - with the current thread of execution. + SecurityContextHolder is a + ThreadLocal, meaning it is associated with the + current thread of execution.