On Thu, 9 Jun 2022 19:53:22 GMT, Phil Race <[email protected]> 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.
The change makes sense to me. I built and ran your test with the change and it works on my end. Looks good to me. ------------- Marked as reviewed by dnguyen (Author). PR: https://git.openjdk.org/jdk/pull/9113
