JDK-5048179 : IllegalStateException would be more preferable than IOException
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-17
  • Updated: 2017-05-16
  • Resolved: 2004-06-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b55Fixed
Related Reports
Relates :  
Description

Name: vpR10197			Date: 05/17/2004


According to specification, new methods setFiexedLengthStreamingMode(int)
and setChunkedStreamingMode(int) of HttpURLConnection throw IOException
if URLConnection is already connected. At the same time most of the
'set' methods of URLConnection throw IllegalStateException in this case.
It would be great if setFiexedLengthStreamingMode and setChunkedStreamingMode
would throw IllegalStateException as well instead of IOException.
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic tiger-rc FIXED IN: tiger-rc INTEGRATED IN: tiger-b55 tiger-rc
08-07-2004

EVALUATION Will try to do this for tiger. Obviosuly we can't change it after tiger ###@###.### 2004-05-19
19-05-2004