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

Delete files quietly when an exception is thrown during initialization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Component/s: Streams/Writers
    • Labels:
      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: