ResourceManager.getApplicationResources() does not close InputStreams

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b65
    • Verified

      com.sun.naming.internal.ResourceManager.getApplicationResources() does not close the input streams it gets from helper.getResources() and helper.getJavaHomeLibStream().

      While they will eventually be garbage collected and finalised, not calling close() means that the file descriptors are open longer than they need to, potentially causing a descriptor limit to be reached.

      See http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1197

            Assignee:
            Andrew Hughes
            Reporter:
            Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: