You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2009/06/19 13:00:22 UTC

svn commit: r786451 - /activemq/trunk/activemq-core/src/main/grammar/SelectorParser.jj

Author: gtully
Date: Fri Jun 19 11:00:22 2009
New Revision: 786451

URL: http://svn.apache.org/viewvc?rev=786451&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2290 - patch applied with thanks

Modified:
    activemq/trunk/activemq-core/src/main/grammar/SelectorParser.jj

Modified: activemq/trunk/activemq-core/src/main/grammar/SelectorParser.jj
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/grammar/SelectorParser.jj?rev=786451&r1=786450&r2=786451&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/grammar/SelectorParser.jj (original)
+++ activemq/trunk/activemq-core/src/main/grammar/SelectorParser.jj Fri Jun 19 11:00:22 2009
@@ -66,7 +66,7 @@
  */
 public class SelectorParser {
 
-    private static final LRUCache cache = new LRUCache(100);
+    private static final Map cache = Collections.synchronizedMap(new LRUCache(100));
 
     public static BooleanExpression parse(String sql) throws InvalidSelectorException {
         Object result = cache.get(sql);