[Jersey-issues] [JIRA] Resolved: (JERSEY-1621) AsyncResponse#cancel() called multiple times is not the same as called only once

  • From: "Pavel Bucek (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [Jersey-issues] [JIRA] Resolved: (JERSEY-1621) AsyncResponse#cancel() called multiple times is not the same as called only once
  • Date: Mon, 21 Jan 2013 15:44:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/JERSEY-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Bucek resolved JERSEY-1621.
---------------------------------

    Resolution: Fixed

> AsyncResponse#cancel() called multiple times is not the same as called only 
> once
> --------------------------------------------------------------------------------
>
>                 Key: JERSEY-1621
>                 URL: http://java.net/jira/browse/JERSEY-1621
>             Project: jersey
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0-m10
>            Reporter: jan.supol
>            Assignee: Pavel Bucek
>            Priority: Blocker
>             Fix For: 2.0-m12, 2.0
>
>          Time Spent: 1 hour
>  Remaining Estimate: 0 minutes
>
> javadoc of AsyncResponse#cancel() says:
> {quote}
> Invoking a cancel(...) method multiple times to cancel request processing 
> has the same effect as canceling the request processing only once. Returns 
> false in case the request processing is not cancelled already.
> {quote}
> but in Resource it returns different value each call:
> {code:java}
> @Path("resource")
> public class Resource {
>       @GET
>       @Path("cancel")
>       public String cancel(
>            AsyncResponse response = ... //get the suspended response
>            boolean b = response.cancel(); //TRUE
>            b = response.cancel(); // 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] Resolved: (JERSEY-1621) AsyncResponse#cancel() called multiple times is not the same as called only once

Pavel Bucek (JIRA) 01/21/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150226.965aeb8)
 
 
Close
loading
Please Confirm
Close