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.

This commit is contained in:
Ben Alex 2005-11-08 22:07:33 +00:00
parent b938b6b363
commit c167e9fd87
2 changed files with 5 additions and 5 deletions

View File

@ -35,13 +35,13 @@ import org.springframework.util.Assert;
* @author Ben Alex * @author Ben Alex
* @version $Id$ * @version $Id$
* *
* @see java.lang.InheritableThreadLocal * @see java.lang.ThreadLocal
* @see net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter * @see net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter
*/ */
public class SecurityContextHolder { public class SecurityContextHolder {
//~ Static fields/initializers ============================================= //~ Static fields/initializers =============================================
private static InheritableThreadLocal contextHolder = new InheritableThreadLocal(); private static ThreadLocal contextHolder = new ThreadLocal();
//~ Methods ================================================================ //~ Methods ================================================================

View File

@ -366,9 +366,9 @@
<literal>Authentication</literal>. All Acegi Security classes query <literal>Authentication</literal>. All Acegi Security classes query
the <literal>SecurityContextHolder</literal> for obtaining the current the <literal>SecurityContextHolder</literal> for obtaining the current
<literal>SecurityContext</literal> (and in turn the principal). <literal>SecurityContext</literal> (and in turn the principal).
<literal>SecurityContextHolder</literal> is an <literal>SecurityContextHolder</literal> is a
<literal>InheritableThreadLocal</literal>, meaning it is associated <literal>ThreadLocal</literal>, meaning it is associated with the
with the current thread of execution.</para> current thread of execution.</para>
</sect2> </sect2>
<sect2 id="security-contexts-storage"> <sect2 id="security-contexts-storage">