Author: jfrederic.clere(a)jboss.com
Date: 2010-02-10 12:25:53 -0500 (Wed, 10 Feb 2010)
New Revision: 1386
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/loader/WebappClassLoader.java
Log:
Fix for JBPAPP-3343.
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/loader/WebappClassLoader.java
===================================================================
---
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/loader/WebappClassLoader.java 2010-02-10
13:06:01 UTC (rev 1385)
+++
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/loader/WebappClassLoader.java 2010-02-10
17:25:53 UTC (rev 1386)
@@ -43,6 +43,8 @@
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.Map;
import java.util.Vector;
import java.util.jar.Attributes;
import java.util.jar.JarEntry;
@@ -232,7 +234,14 @@
/**
* The list of not found resources.
*/
- protected HashMap notFoundResources = new HashMap();
+ protected HashMap<String, String> notFoundResources =
+ new LinkedHashMap<String, String>() {
+ private static final long serialVersionUID = 1L;
+ protected boolean removeEldestEntry(
+ Map.Entry<String, String> eldest) {
+ return size() > 1000;
+ }
+ };
/**
Show replies by date