[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-1353) EJBContainer.isCallable is doing string comparison using the '==' operator
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Mon May 12 09:12:39 EDT 2008
[ http://jira.jboss.com/jira/browse/EJBTHREE-1353?page=all ]
Carlo de Wolf resolved EJBTHREE-1353.
-------------------------------------
Resolution: Done
rev 71286
> 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.Beta3, AS 5.0.0.Beta4
> Environment: J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20071007
> Reporter: Dror Bereznitsky
> Assigned To: Carlo de Wolf
> Fix For: AS 5.0.0.CR1
>
>
> 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