United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4891582 : spec: ImageWriter - exceptions should be specified in processWarningOccurred

Details
Type:
Bug
Submit Date:
2003-07-16
Status:
Resolved
Updated Date:
2003-08-11
Project Name:
JDK
Resolved Date:
2003-08-11
Component:
client-libs
OS:
generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (tiger)

Related Reports
Relates:

Sub Tasks

Description
The specification for the following methods in javax.imageio.ImageWriter needs
to declare various IllegalArgumentExceptions to be thrown:
processWarningOccurred(int imageIndex, String warning);
processWarningOccurred(int imageIndex, String baseName, String keyword);

The declared exceptions should be identical to those declared by the
ImageReader.processWarningOccurred() methods.

Also, the implementation for these methods in ImageWriter needs to be updated
to throw the appropriate exceptions on bad input.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b15


                                     
2004-06-14
EVALUATION

As specified in the description field.
###@###.### 2003-07-16

I updated the javadoc for those two methods, and we are now checking for bad
input parameters and throwing the specified exceptions as necessary.
###@###.### 2003-07-23
                                     
2003-07-23



Hardware and Software, Engineered to Work Together