[Jersey-issues] [JIRA] Created: (JERSEY-1666) AsyncResponse#cancel() does return false when already resumed

  • From: "jan.supol (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [Jersey-issues] [JIRA] Created: (JERSEY-1666) AsyncResponse#cancel() does return false when already resumed
  • Date: Tue, 22 Jan 2013 14:02:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated

AsyncResponse#cancel() does return false when already resumed
-------------------------------------------------------------

                 Key: JERSEY-1666
                 URL: http://java.net/jira/browse/JERSEY-1666
             Project: jersey
          Issue Type: Bug
          Components: core
    Affects Versions: 2.0-m11
            Reporter: jan.supol
            Priority: Blocker
             Fix For: 2.0-unplanned


javadoc says:
{quote}
Invoking a cancel(...) method on an asynchronous response instance that has 
already been resumed has no effect and the method call is ignored while 
returning true.
{quote}

but having server side:
{code:java}
@Path("resource")
public class Resource {
  @GET
  public String cancel(){
     AsyncResponse response = ...
     response.resume("ok");
     response.cancel(); //return false;
  }

}
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Jersey-issues] [JIRA] Created: (JERSEY-1666) AsyncResponse#cancel() does return false when already resumed

jan.supol (JIRA) 01/22/2013

[Jersey-issues] [JIRA] Assigned: (JERSEY-1666) AsyncResponse#cancel() does return false when already resumed

Pavel Bucek (JIRA) 01/22/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close