SF.net SVN: stripes:[1516] trunk

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SF.net SVN: stripes:[1516] trunk

fdaoud
Revision: 1516
          http://stripes.svn.sourceforge.net/stripes/?rev=1516&view=rev
Author:   fdaoud
Date:     2012-11-14 13:25:16 +0000 (Wed, 14 Nov 2012)
Log Message:
-----------
Fix for STS-891: Cache in HttpCacheInterceptor needs to be concurrent

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java

Property Changed:
----------------
    trunk/


Property changes on: trunk
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/1.5.x:1463-1464,1466,1468-1469,1471,1473,1475,1477-1478,1482,1484,1486,1488,1490,1492,1494,1496
   + /branches/1.5.x:1463-1464,1466,1468-1469,1471,1473,1475,1477-1478,1482,1484,1486,1488,1490,1492,1494,1496,1515

Modified: trunk/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java 2012-11-14 13:23:23 UTC (rev 1515)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/HttpCacheInterceptor.java 2012-11-14 13:25:16 UTC (rev 1516)
@@ -15,7 +15,7 @@
 package net.sourceforge.stripes.controller;
 
 import java.lang.reflect.Method;
-import java.util.HashMap;
+import java.util.concurrent.ConcurrentHashMap;
 import java.util.Map;
 
 import javax.servlet.http.HttpServletResponse;
@@ -66,7 +66,7 @@
 
     private static final Log logger = Log.getInstance(HttpCacheInterceptor.class);
 
-    private Map<CacheKey, HttpCache> cache = new HashMap<CacheKey, HttpCache>(128);
+    private Map<CacheKey, HttpCache> cache = new ConcurrentHashMap<CacheKey, HttpCache>(128);
 
     public Resolution intercept(ExecutionContext ctx) throws Exception {
         final ActionBean actionBean = ctx.getActionBean();

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Stripes-development mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-development