tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kfuj...@apache.org
Subject svn commit: r1334932 - /tomcat/trunk/java/org/apache/catalina/mbeans/ContextMBean.java
Date Mon, 07 May 2012 09:10:05 GMT
Author: kfujino
Date: Mon May  7 09:10:04 2012
New Revision: 1334932

URL: http://svn.apache.org/viewvc?rev=1334932&view=rev
Log:
Make sure ContextMBean#findFilterDefs returns correct filter definitions. 

Modified:
    tomcat/trunk/java/org/apache/catalina/mbeans/ContextMBean.java

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/ContextMBean.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/ContextMBean.java?rev=1334932&r1=1334931&r2=1334932&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mbeans/ContextMBean.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/ContextMBean.java Mon May  7 09:10:04 2012
@@ -202,13 +202,13 @@ public class ContextMBean extends Contai
             throw new MBeanException(e);
         }
 
-        ApplicationParameter[] params = context.findApplicationParameters();
-        String[] stringParams = new String[params.length];
-        for(int counter=0; counter < params.length; counter++){
-            stringParams[counter]=params[counter].toString();
+        FilterDef[] filterDefs = context.findFilterDefs();
+        String[] stringFilters = new String[filterDefs.length];
+        for(int counter=0; counter < filterDefs.length; counter++){
+            stringFilters[counter]=filterDefs[counter].toString();
         }
 
-        return stringParams;
+        return stringFilters;
 
     }
 



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


Mime
View raw message