Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902045

Failed to clean up files after test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • generic
    • windows

      On Windows, in samevm mode, the cleanup of files in the scratch directory may fail because the files are still open.
      Closing of FileInputStream and FileOutputStreams (that are not closed explicitly) are handled by either finalization or the Cleaner. Both are dependent on the running of System.gc().
      Invoking System.gc as part of the cleanup will close streams and allow the files to be deleted.

            Unassigned Unassigned
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: