[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-1353) EJBContainer.isCallable is doing string comparison using the '==' operator
Dror Bereznitsky (JIRA)
jira-events at lists.jboss.org
Mon May 12 08:25:21 EDT 2008
EJBContainer.isCallable is doing string comparison using the '==' operator
--------------------------------------------------------------------------
Key: EJBTHREE-1353
URL: http://jira.jboss.com/jira/browse/EJBTHREE-1353
Project: EJB 3.0
Issue Type: Bug
Components: core
Affects Versions: AS 5.0.0.Beta4, AS 5.0.0.Beta3
Environment: J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20071007
Reporter: Dror Bereznitsky
The EJBContainer.isCallable is comparing two method names using the '==' operator instead of using equals().
private static boolean isCallable(Method method, Method other)
{
if ((method.getDeclaringClass().isAssignableFrom(other.getDeclaringClass())) && (method.getName() == other.getName()))
{
While it works for certain verions of the Sun JVM due to the fact that both Method object reference the same name string object, it does not work for the IBM JVM.
One of the results I encountered is that class interceptors are not applied to session beans.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list