Withdrawn: JDK-8302281 - ImageReader and ImageWrite should implement Closable

duke duke at openjdk.org
Sat Jun 10 17:26:55 UTC 2023


On Thu, 19 Jan 2023 18:41:08 GMT, Markus KARG <duke at openjdk.org> wrote:

> The fact that there is a `dispose()` method to be called is easily missed, as people tend to look for a method called `close()`, or assume that resources only need to get closed when they support try-with-resource. As a result, there is a risk of keeping resources opened longer than needed (or even run into a resource leak with long running processes) as the user cannot use try-with-resources currently.
> 
> This is not a big change, but it is useful for those working with ImageIO.

This pull request has been closed without being integrated.

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

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



More information about the client-libs-dev mailing list