Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 36169 invoked from network); 28 Sep 2010 12:39:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 12:39:57 -0000 Received: (qmail 91616 invoked by uid 500); 28 Sep 2010 12:39:57 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 91263 invoked by uid 500); 28 Sep 2010 12:39:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 91255 invoked by uid 99); 28 Sep 2010 12:39:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 12:39:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 12:39:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8SCdXcp025599 for ; Tue, 28 Sep 2010 12:39:33 GMT Message-ID: <26043365.441881285677573126.JavaMail.jira@thor> Date: Tue, 28 Sep 2010 08:39:33 -0400 (EDT) From: "Niall Pemberton (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (IO-216) Delete files quietly when an exception is thrown during initialization In-Reply-To: <1247137847.1250704574789.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IO-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niall Pemberton resolved IO-216. -------------------------------- Resolution: Fixed OK I've applied the patch I suggested and renamed this ticket to reflect that change. > Delete files quietly when an exception is thrown during initialization > ---------------------------------------------------------------------- > > Key: IO-216 > URL: https://issues.apache.org/jira/browse/IO-216 > Project: Commons IO > Issue Type: Bug > Components: Streams/Writers > Affects Versions: 1.4 > Reporter: Sebb > Assignee: Niall Pemberton > Fix For: 2.0 > > Attachments: IO-216-deleteQuietly.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.