[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: RFR: 8272998: ImageIO.read() throws incorrect exception type
From:       Sergey Bylokhov <serb () openjdk ! org>
Date:       2022-06-28 19:44:31
Message-ID: kh_SyzOVFA3CZttHs9LgBMYw7Ip0W5u0eHMtVSQ656A=.49b4105b-1abb-4bd1-a006-d4b50ee40ff2 () github ! com
[Download RAW message or body]

On Mon, 27 Jun 2022 21:57:37 GMT, Phil Race <prr@openjdk.org> wrote:

> A sophisticated app which wants to use ImageReader.read() should be ready to handle \
> those

The current method differs from the "read" only by the "IllegalArgumentException", \
all other exceptions we will handle here will mean a bug in the read method, which \
also can be used by the app.

I do not understand why the app should be ready for unexpected/unspecified exceptions \
in case of "read" method and could not be ready in this one.

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

PR: https://git.openjdk.org/jdk/pull/9113


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic