RFR: 8262297: ImageIO.write() method will throw IndexOutOfBoundsException [v3]

Masanori Yano myano at openjdk.java.net
Fri Nov 12 09:12:07 UTC 2021


> 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.

Masanori Yano has updated the pull request incrementally with two additional commits since the last revision:

 - 8262297: ImageIO.write() method will throw IndexOutOfBoundsException
 - 8262297: ImageIO.write() method will throw IndexOutOfBoundsException

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6151/files
  - new: https://git.openjdk.java.net/jdk/pull/6151/files/08b54fff..0c7bb8d5

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6151&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6151&range=01-02

  Stats: 34 lines in 2 files changed: 3 ins; 5 del; 26 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6151.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6151/head:pull/6151

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



More information about the client-libs-dev mailing list