Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8302281

ImageReader and ImageWrite should implement Closable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21
    • client-libs
    • None

      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.

            mkarg Markus Karg
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: