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

Masanori Yano myano at openjdk.java.net
Fri Oct 29 09:36:37 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 one additional commit since the last revision:

  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/d6a652fa..08b54fff

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

  Stats: 3 lines in 1 file changed: 0 ins; 3 del; 0 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 core-libs-dev mailing list