-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta2
-
generic
-
generic, solaris_7
-
Verified
readAll(iterator) method of the GIF ImageReader throws IIOException when reading
animated GIFs. A copy of the exception is given below. This is a regression bug
which occurs from merlin-beta build-58 onwards. This feature works fine for
build - 57. This failure occurs on all the platforms. I have given a sample code
which reproduces this failure.
Here is the exception :
javax.imageio.IIOException: Unexpected block type 59!
at com.sun.imageio.plugins.gif.GIFImageReader.readMetadata(GIFImageReader.java:724)
at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:957)
at javax.imageio.ImageReader.readAll(ImageReader.java:1142)
at ImageRead.actionPerformed(ImageRead.java:88)
at java.awt.Button.processActionEvent(Button.java:376)
at java.awt.Button.processEvent(Button.java:349)
at java.awt.Component.dispatchEventImpl(Component.java:3476)
at java.awt.Component.dispatchEvent(Component.java:3343)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
How to reproduce the bug :
Compile and run the sample code attached. You would get a frame with a load
button. Click the load button. If you get the above exception in the command
prompt then the bug is reproduced.
al.smith@eng 2001-05-08
Regression test javax/imageio/ReadAllTest.java failing in build 63
animated GIFs. A copy of the exception is given below. This is a regression bug
which occurs from merlin-beta build-58 onwards. This feature works fine for
build - 57. This failure occurs on all the platforms. I have given a sample code
which reproduces this failure.
Here is the exception :
javax.imageio.IIOException: Unexpected block type 59!
at com.sun.imageio.plugins.gif.GIFImageReader.readMetadata(GIFImageReader.java:724)
at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:957)
at javax.imageio.ImageReader.readAll(ImageReader.java:1142)
at ImageRead.actionPerformed(ImageRead.java:88)
at java.awt.Button.processActionEvent(Button.java:376)
at java.awt.Button.processEvent(Button.java:349)
at java.awt.Component.dispatchEventImpl(Component.java:3476)
at java.awt.Component.dispatchEvent(Component.java:3343)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
How to reproduce the bug :
Compile and run the sample code attached. You would get a frame with a load
button. Click the load button. If you get the above exception in the command
prompt then the bug is reproduced.
al.smith@eng 2001-05-08
Regression test javax/imageio/ReadAllTest.java failing in build 63
- duplicates
-
JDK-4396529 ImageReader.readAll retrieves ImageReadParams incorrectly
-
- Closed
-