[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-2138) TimeoutMethodCallbackRequirements doesn't take into account the timeout method parameters
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Mon Sep 6 09:31:52 EDT 2010
[ https://jira.jboss.org/browse/EJBTHREE-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jaikiran pai resolved EJBTHREE-2138.
------------------------------------
Component Fix Version(s): jboss-ejb3-timeout:0.2.1
Fix Version/s: depchain-1.0.0
Resolution: Done
Fixed in jboss-ejb3-timeout:0.2.1 and integrated with jboss-ejb3-as6-depchain:1.0.0-alpha-4
> 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: EJB3_1 1.0.7, bom-eap5-0.1.2
> Reporter: jaikiran pai
> Assignee: jaikiran pai
> Fix For: depchain-1.0.0
>
>
> 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
More information about the jboss-jira
mailing list