Commons IO
  1. Commons IO
  2. IO-216

Delete files quietly when an exception is thrown during initialization

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development