sylvain 2004/02/10 06:45:15
Modified: src/java/org/apache/cocoon/matching MountTableMatcher.java
Log:
Fix a potential concurrency problem
Revision Changes Path
1.5 +2 -2
cocoon-2.1/src/java/org/apache/cocoon/matching/MountTableMatcher.java
Index: MountTableMatcher.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/java/org/apache/cocoon/matching/MountTableMatcher.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MountTableMatcher.java 22 Dec 2003 13:48:46 -0000 1.4
+++ MountTableMatcher.java 10 Feb 2004 14:45:15 -0000 1.5
@@ -113,7 +113,7 @@
private ServiceManager manager;
private SourceResolver resolver;
- private Map mountTables = new HashMap();
+ private Map mountTables = Collections.synchronizedMap(new HashMap());
private boolean ignoreMissingTables = false;
public void service(ServiceManager manager) throws ServiceException {