https://issues.apache.org/bugzilla/show_bug.cgi?id=51197

--- Comment #9 from Christopher Schultz <[email protected]> 
2012-02-21 19:53:33 UTC ---
(In reply to comment #8)
> getResponseCode() call [caches] the exception but does not return it. Then
> subsequent call to getInputStream() wraps this original exception as the 
> cause.

That's ... confusing behavior. Thanks for identifying that. I was hoping that
my code wouldn't still fail because of the exception's stack trace (indicating
that the exception was thrown from getResponseCode). Looks like it's
*initialized* in getResponseCode but not actually thrown until later. Weird.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to