Author: aogburn
Date: 2013-10-24 00:02:52 -0400 (Thu, 24 Oct 2013)
New Revision: 2291
Modified:
branches/JBOSSWEB_7_0_17_FINAL_BZ-1022777/java/org/apache/catalina/security/SecurityUtil.java
Log:
[BZ-1022777] commit back-port fix
Modified:
branches/JBOSSWEB_7_0_17_FINAL_BZ-1022777/java/org/apache/catalina/security/SecurityUtil.java
===================================================================
---
branches/JBOSSWEB_7_0_17_FINAL_BZ-1022777/java/org/apache/catalina/security/SecurityUtil.java 2013-10-24
03:14:36 UTC (rev 2290)
+++
branches/JBOSSWEB_7_0_17_FINAL_BZ-1022777/java/org/apache/catalina/security/SecurityUtil.java 2013-10-24
04:02:52 UTC (rev 2291)
@@ -23,7 +23,8 @@
import java.security.Principal;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
-import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
import javax.security.auth.Subject;
import javax.servlet.Filter;
@@ -66,8 +67,8 @@
/**
* Cache every object for which we are creating method on it.
*/
- private static HashMap<Object,Method[]> objectCache =
- new HashMap<Object,Method[]>();
+ private static Map<Object,Method[]> objectCache =
+ new ConcurrentHashMap<Object,Method[]>();
private static org.jboss.logging.Logger log=
org.jboss.logging.Logger.getLogger( SecurityUtil.class );
Show replies by date