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

ResourceManager.getApplicationResources() does not close InputStreams

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-libs
    • None
    • b65
    • Verified

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: