[OpenJDK 2D-Dev] [8] request for review: 8022632: Reading a PNG file fails because of WBMPImageReaderSpi.canDecodeInput()

Andrew Brygin andrew.brygin at oracle.com
Fri Aug 30 11:51:01 UTC 2013


could you please review a fix for CR 8022632?

Bug: http://bugs.sun.com/view_bug.do?bug_id=8022632
Webrev: http://cr.openjdk.java.net/~bae/8022632/webrev.00/

Suggested fix just makes WBMP spi canDecodeInput() method
more reliable in case of I/O problem. Now the stream is reset
in a finally block, in order to guarantee that other plugins
receive the stream in correct condition.

Supplied regression test demonstrates the problem.

Please take a look.


More information about the 2d-dev mailing list