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

Close the input stream object created in NativeLibLoader::installLibraryFromResource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx21
    • javafx
    • None

      While reviewing a fix for JDK-8307536, it has been pointed out that the inputStream object created in NativeLibLoader::installLibraryFromResource needs to be closed properly.

      Note that, when the file already exists in the cache, the initial InputStream object is used by the DigestInputStream, and it is manually closed and reread again, so special care should be taken here.

            jpereda Jose Pereda
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: