]
Dror Bereznitsky closed EJBTHREE-1353.
--------------------------------------
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: