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

Jennifer Godinez jennifer.godinez at oracle.com
Wed Oct 2 21:33:40 UTC 2013


Approved.

Jennifer
On 8/30/2013 4:51 AM, Andrew Brygin wrote:
> Hello,
>
> 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.
>
> Thanks,
> Andrew.




More information about the 2d-dev mailing list