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

compiler/testlibrary/uncommontrap/Verifier doesn't close FileReader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • hotspot
    • b127

    Description

      Verifier uses java.io.FileReader to load properties, although it doesn't close FileReader, this can cause sporadic failures during clean up.
         
          private static void verify(Path compLogFile) throws IOException {
              Path propertiesFile = Paths.get(compLogFile.toString() +
                      PROPERTIES_FILE_SUFFIX);

              Properties properties = new Properties();
              properties.load(new FileReader(propertiesFile.toFile()));

      Attachments

        Issue Links

          Activity

            People

              iignatyev Igor Ignatyev (Inactive)
              iignatyev Igor Ignatyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: