Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-216

Delete files quietly when an exception is thrown during initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 2.0
    • Streams/Writers
    • None

    Description

      LockableFileWriter fails to report lock file deletion failure - it calls lockFile.delete() several times but fails to check the return code.

      N.B. IIRC, file.delete() returns false if there was no file to delete, so any fix needs to take this into account.

      Attachments

        1. IO-216-deleteQuietly.patch
          1 kB
          Niall Pemberton

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: