United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5048179 IllegalStateException would be more preferable than IOException
JDK-5048179 : IllegalStateException would be more preferable than IOException

Details
Type:
Enhancement
Submit Date:
2004-05-17
Status:
Resolved
Updated Date:
2004-06-08
Project Name:
JDK
Resolved Date:
2004-06-08
Component:
core-libs
OS:
generic
Sub-Component:
java.net
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b55)

Related Reports
Relates:

Sub Tasks

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
EVALUATION

Will try to do this for tiger. Obviosuly we can't change 
it after tiger

###@###.### 2004-05-19
                                     
2004-05-19
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
generic
tiger-rc

FIXED IN:
tiger-rc

INTEGRATED IN:
tiger-b55
tiger-rc


                                     
2004-07-08



Hardware and Software, Engineered to Work Together