[jboss-jira] [JBoss JIRA] (WFLY-7458) EJB's async methods' Future#get should treat zero timeout as "don't wait"

Ivo Studensky (JIRA) issues at jboss.org
Wed Nov 2 10:36:00 EDT 2016


Ivo Studensky created WFLY-7458:
-----------------------------------

             Summary: EJB's async methods' Future#get should treat zero timeout as "don't wait"
                 Key: WFLY-7458
                 URL: https://issues.jboss.org/browse/WFLY-7458
             Project: WildFly
          Issue Type: Bug
          Components: EJB
    Affects Versions: 8.2.0.Final
            Reporter: Ivo Studensky
            Assignee: Stuart Douglas
             Fix For: 10.1.0.CR1, 10.1.0.Final


Say there is an asynchronous EJB method:
{code}
@Asynchronous
public Future<Boolean> method() {
   ...
}
{code}
Calling Future#get with a zero timeout:
{code}
if (bean.method().get(0, TimeUnit.MILLISECONDS))
{code}
results in a block until the task is finished.
Instead I expected zero waiting, because {{java.util.concurrent.Future.get(long, TimeUnit)}} doesn't specify any special treatment for a zero timeout value.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list