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

ResourceManager.getApplicationResources() does not close InputStreams

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • 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

            andrew Andrew Hughes
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: