On Thu, 28 Oct 2021 09:29:13 GMT, Masanori Yano <my...@openjdk.org> wrote:

> Could you please review the 8262297 bug fixes?
> 
> In this case, ImageIO.write() should throw java.io.IOException rather than 
> java.lang.IndexOutOfBoundsException. IndexOutOfBoundsException is caught and 
> wrapped in IIOException in ImageIO.write() with this fix. In addition, 
> IndexOutOfBoundsException is not expected to throw by 
> RandomAccessFile#write() according to its API specification. So it should be 
> fixed.

This pull request has now been integrated.

Changeset: c7331935
Author:    Masanori Yano <my...@openjdk.org>
Committer: Jayathirth D V <j...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/c73319354399596ab2b9aab0a7f62e8fa0ab9365
Stats:     86 lines in 2 files changed: 84 ins; 0 del; 2 mod

8262297: ImageIO.write() method will throw IndexOutOfBoundsException

Reviewed-by: serb, jdv

-------------

PR: https://git.openjdk.java.net/jdk/pull/6151

Reply via email to