[jboss-cvs] JBossAS SVN: r112152 - branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 29 11:16:37 EDT 2011


Author: remy.maucherat at jboss.com
Date: 2011-08-29 11:16:37 -0400 (Mon, 29 Aug 2011)
New Revision: 112152

Modified:
   branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/TomcatInjectionContainer.java
Log:
JBPAPP-7089: Fix issue with init/destroy annotations and multiple methods

Modified: branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/TomcatInjectionContainer.java
===================================================================
--- branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/TomcatInjectionContainer.java	2011-08-29 15:11:38 UTC (rev 112151)
+++ branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/TomcatInjectionContainer.java	2011-08-29 15:16:37 UTC (rev 112152)
@@ -481,7 +481,7 @@
       {
          for (Method m : clazz.getDeclaredMethods())
          {
-            if (m.getName().equals(lifeCycleMetaData.getMethodName()))
+            if (m.getName().equals(lifeCycleMetaData.getMethodName()) && m.getParameterTypes().length == 0)
             {
                method = m;
             }



More information about the jboss-cvs-commits mailing list