-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6
-
generic
-
generic
The API doc for setCompressionMode() claims that certain writers such as JPEG do not normally offer uncompressed output and hence the corresponding set / get methods would throw an IllegalStateException. But when I passed MODE_DISABLED to JPEGWriteParam.setCompressionMode(), it does not throw any exception and accepts the mode specified by me. But eventually when using the writer to write an image, an IIOException is thrown saying this writer can not offer uncompressed output. Hence MODE_DISABLED must be rejected in the setCompressionMode() itself.
This is reproducible right from JDK1.4 on all the platforms.
I have attached a sample code. Execute the sample code & watch the console. If you see a 'FAIL' message then the bug is reproduced.
###@###.### 2003-12-23
Attached the testcase.
###@###.### 2003-12-23
This is reproducible right from JDK1.4 on all the platforms.
I have attached a sample code. Execute the sample code & watch the console. If you see a 'FAIL' message then the bug is reproduced.
###@###.### 2003-12-23
Attached the testcase.
###@###.### 2003-12-23
- relates to
-
JDK-4856395 ImageWriteParam should have a canWriteUncompressed() method
-
- Closed
-
-
JDK-6294683 GIF WriteParam should throw IllegalStateException when compression mode is set to MODE_DISABLED
-
- Closed
-