Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-794

Unclosed file handle when reading config from JAR file URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8.0
    • None
    • None

    Description

      We read a properties file which is included in a JAR file. Unfortunately we cannot find any method to close the opened file handle after reading the properties.
      This currently means that the JAR file can only be deleted after the JVM shuts down. I'll open a PR which shows the behavior.

      We currently run our code mostly on Windows systems and Oracle JDK8.

      PR: https://github.com/apache/commons-configuration/pull/76

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jansohn Robin Jansohn
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: