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

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

XMLWordPrintable

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

      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()));

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

              Created:
              Updated:
              Resolved: