[JBoss JIRA] Created: (EJBTHREE-2138) TimeoutMethodCallbackRequirements doesn't take into account the timeout method parameters
by jaikiran pai (JIRA)
TimeoutMethodCallbackRequirements doesn't take into account the timeout method parameters
-----------------------------------------------------------------------------------------
Key: EJBTHREE-2138
URL: https://jira.jboss.org/browse/EJBTHREE-2138
Project: EJB 3.0
Issue Type: Bug
Components: timeout
Affects Versions: bom-eap5-0.1.2, EJB3_1 1.0.7
Reporter: jaikiran pai
Assignee: jaikiran pai
Consider the following base class:
public class Base
{
protected void onTimeout()
{
...
}
}
and a EJB impl class which extends it:
@Stateless
public class Bean extends Base
{
protected void onTimeout(Timer timer)
{
// This one should *not* be picked up, based on the ejb-jar.xml
}
}
and the corresponding ejb-jar.xml which marks the onTimeout() method (the one in Base class without any params) as the timeout callback method:
<timeout>
<method-name>onTimeout</method-name>
<method-params>
</method-params>
</timeout>
Based on this configuration and code, the Base.onTimeout() method must be chosen as the timeout callback method, but because of the lack of information of method param types, the TimeoutMethodCallbackRequirements, incorrectly, ends up picking the Bean.onTimeout(Timer timer) method as the timeout callback method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 3 months