Refactor Cleaner Registration to avoid resource leak

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: 11
    • Component/s: core-libs

      Cleaner registration typically occurs after resources have already been allocated; if an exception occurs before/during the registration of the cleanable the resource may not be freed.
      Consider if registration should provide a callback to open the resource after the Cleanable instance has been allocated.
      Also previously mentioned during finalization removal in zip.

      http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-February/051277.html

            Assignee:
            Roger Riggs
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: