Integrated: 8272998: ImageIO.read() throws incorrect exception type
Phil Race
prr at openjdk.org
Thu Aug 4 20:54:38 UTC 2022
On Thu, 9 Jun 2022 19:53:22 GMT, Phil Race <prr at openjdk.org> wrote:
> ImageIO.read() only documents IOException for any kind of decoding problem and since
> it is a convenience API we don't want to start requiring applications to handle other RuntimeExceptions.
> So in the unlikely case of some problem decoding using this API, wrap any RuntimeException in
> an IIOException. This will give more stable app behaviour and still report the underlying problem.
This pull request has now been integrated.
Changeset: 6ad6b1c4
Author: Phil Race <prr at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6ad6b1c454cbc41de5a401aecda910d668c71e39
Stats: 158 lines in 2 files changed: 158 ins; 0 del; 0 mod
8272998: ImageIO.read() throws incorrect exception type
Reviewed-by: aivanov, dnguyen
-------------
PR: https://git.openjdk.org/jdk/pull/9113
More information about the client-libs-dev
mailing list