jira-importer opened a new issue, #1206:
URL: https://github.com/apache/httpcomponents-core/issues/1206

   **[Rob 
Griffin](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rob.griffin)**
 opened 
**[HTTPCORE-456](https://issues.apache.org/jira/browse/HTTPCORE-456?redirect=false)**
 and commented
   
   The Javadoc for Future.get() states:
   
       V get() throws InterruptedException, ExecutionException, TimeoutException
       
       Waits if necessary for the computation to complete, and then retrieves 
its result.
       
       Returns: 
        the computed result 
       Throws: 
        CancellationException - if the computation was cancelled 
        ExecutionException - if the computation threw an exception 
        InterruptedException - if the current thread was interrupted while 
waiting 
   
   But when I look at the implementation of the get method in 
org.apache.http.concurrent.BasicFuture it doesn't throw a CancellationException 
which seems wrong to me. Sure I can call isCancelled() after get() returns but 
I shouldn't need to.
   
   
   ---
   
   **Affects:** 4.4.6, 5.0-alpha2
   
   **Backported to:** 
[4.4.7](https://github.com/apache/httpcomponents-core/milestone/44?closed=1)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to