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

Failed to clean up files after test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • None
    • None
    • tools
    • generic
    • windows

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: