[jboss-jira] [JBoss JIRA] (AS7-3750) isDone() method doesn't return true after cancel() call on EJB asynchronous method

jaikiran pai (JIRA) jira-events at lists.jboss.org
Thu Feb 16 22:33:36 EST 2012


    [ https://issues.jboss.org/browse/AS7-3750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668793#comment-12668793 ] 

jaikiran pai commented on AS7-3750:
-----------------------------------

Looking at the test and the code, this is a EJB client API implementation issue. Stuart, I'll assign this to myself, if you haven't started any work on this.

                
> isDone() method doesn't return true after cancel() call on EJB asynchronous method
> ----------------------------------------------------------------------------------
>
>                 Key: AS7-3750
>                 URL: https://issues.jboss.org/browse/AS7-3750
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Ondřej Chaloupka
>            Assignee: Stuart Douglas
>
> Method isDone() does not return true after call of cancel method() on Future object bound to call of EJB asynchronous method.
> Please check my test:
> https://github.com/ochaloup/jboss-as/blob/JBQA-5271-tests-async-pull/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/async/AsyncMethodTestCase.java#L196
> It's against documentation of cancel method (http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/Future.html#cancel%28boolean%29) where is said:
> "After this method returns, subsequent calls to isDone() will always return true. Subsequent calls to isCancelled() will always return true if this method returned true."

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list