RFR: 8262297: ImageIO.write() method will throw IndexOutOfBoundsException [v4]
Masanori Yano
myano at openjdk.java.net
Fri Nov 19 09:04:22 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/0c7bb8d5..22b82942
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6151&range=03
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6151&range=02-03
Stats: 143 lines in 4 files changed: 79 ins; 63 del; 1 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