[jboss-cvs] JBossAS SVN: r112669 - projects/ejb3/branches/jboss-ejb3-core-1.3.7_JBPAPP-8156/src/main/java/org/jboss/ejb3.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 21 06:24:14 EST 2012
Author: mmusaji
Date: 2012-02-21 06:24:13 -0500 (Tue, 21 Feb 2012)
New Revision: 112669
Modified:
projects/ejb3/branches/jboss-ejb3-core-1.3.7_JBPAPP-8156/src/main/java/org/jboss/ejb3/EJBContainer.java
Log:
[JBPAPP-8156] - Added check to number of parameters so method name is also checked against the bridged method name to ensure they are equal before returning the method
Modified: projects/ejb3/branches/jboss-ejb3-core-1.3.7_JBPAPP-8156/src/main/java/org/jboss/ejb3/EJBContainer.java
===================================================================
--- projects/ejb3/branches/jboss-ejb3-core-1.3.7_JBPAPP-8156/src/main/java/org/jboss/ejb3/EJBContainer.java 2012-02-21 03:27:35 UTC (rev 112668)
+++ projects/ejb3/branches/jboss-ejb3-core-1.3.7_JBPAPP-8156/src/main/java/org/jboss/ejb3/EJBContainer.java 2012-02-21 11:24:13 UTC (rev 112669)
@@ -1687,7 +1687,7 @@
Method[] methods = clazz.getMethods();
for (Method method : methods)
{
- if (!method.isBridge() && method.getParameterTypes().length == bridgeMethod.getParameterTypes().length)
+ if (!method.isBridge() && method.getName().equals(bridgeMethod.getName()) && method.getParameterTypes().length == bridgeMethod.getParameterTypes().length)
{
return method;
}
More information about the jboss-cvs-commits
mailing list