Author: remy.maucherat(a)jboss.com
Date: 2010-04-28 05:02:54 -0400 (Wed, 28 Apr 2010)
New Revision: 1454
Modified:
trunk/java/org/apache/catalina/core/StandardContext.java
trunk/webapps/docs/changelog.xml
Log:
- Refix addBefore.
Modified: trunk/java/org/apache/catalina/core/StandardContext.java
===================================================================
--- trunk/java/org/apache/catalina/core/StandardContext.java 2010-04-27 10:03:51 UTC (rev
1453)
+++ trunk/java/org/apache/catalina/core/StandardContext.java 2010-04-28 09:02:54 UTC (rev
1454)
@@ -2001,14 +2001,11 @@
// Add this filter mapping to our registered set
FilterMap results[] = new FilterMap[filterMaps.length + 1];
System.arraycopy(filterMaps, 0, results, 0, filterMapInsertPoint);
- results[filterMapInsertPoint] = filterMap;
System.arraycopy(filterMaps, filterMapInsertPoint, results,
- filterMaps.length - (filterMapInsertPoint + 1),
+ filterMapInsertPoint + 1,
filterMaps.length - filterMapInsertPoint);
-
+ results[filterMapInsertPoint] = filterMap;
filterMapInsertPoint++;
-
- results[filterMaps.length] = filterMap;
filterMaps = results;
fireContainerEvent("addFilterMap", filterMap);
}
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2010-04-27 10:03:51 UTC (rev 1453)
+++ trunk/webapps/docs/changelog.xml 2010-04-28 09:02:54 UTC (rev 1454)
@@ -32,7 +32,7 @@
Default realm name with BASIC and DIGEST. (markt)
</fix>
<fix>
- Add filter before method fix. (markt)
+ Add filter before method fix. (markt, kkolinko)
</fix>
</changelog>
</subsection>
Show replies by date