tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r925905 - /tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java
Date Sun, 21 Mar 2010 21:53:16 GMT
Author: markt
Date: Sun Mar 21 21:53:16 2010
New Revision: 925905

URL: http://svn.apache.org/viewvc?rev=925905&view=rev
Log:
Doh! Return the newly created registrations rather than just creating work for the garbage
collector.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java

Modified: tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java?rev=925905&r1=925904&r2=925905&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ApplicationContext.java Sun Mar 21 21:53:16
2010
@@ -1392,7 +1392,9 @@ public class ApplicationContext
         
         Container[] wrappers = context.findChildren();
         for (Container wrapper : wrappers) {
-            new ApplicationServletRegistration((Wrapper) wrapper, context);
+            result.put(((Wrapper) wrapper).getName(),
+                    new ApplicationServletRegistration(
+                            (Wrapper) wrapper, context));
         }
 
         return result;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message