Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 21757 invoked from network); 29 Sep 2010 11:23:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Sep 2010 11:23:01 -0000 Received: (qmail 21970 invoked by uid 500); 29 Sep 2010 11:23:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 21596 invoked by uid 500); 29 Sep 2010 11:22:58 -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 21588 invoked by uid 99); 29 Sep 2010 11:22:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Sep 2010 11:22:57 +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; Wed, 29 Sep 2010 11:22:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8TBMXqw017017 for ; Wed, 29 Sep 2010 11:22:33 GMT Message-ID: <23565198.460861285759353052.JavaMail.jira@thor> Date: Wed, 29 Sep 2010 07:22:33 -0400 (EDT) From: "Niall Pemberton (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (IO-249) Enhance closeQuietly to indicate success In-Reply-To: <31987904.459261285748396247.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niall Pemberton updated IO-249: ------------------------------- Fix Version/s: 2.x Like IO-157 changing the return type is binary incompatible with IO 1.4 - so this will need to wait until for a future version when we break binary compatibility > Enhance closeQuietly to indicate success > ---------------------------------------- > > Key: IO-249 > URL: https://issues.apache.org/jira/browse/IO-249 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 2.0 > Reporter: Paul Benedict > Assignee: Paul Benedict > Priority: Minor > Fix For: 2.x > > > A convention of some programmers is to emit a log warning when a resource fails to close. Granted, such a condition is an error, but there's no reasonable recourse to the failure. Using IOUtils.closeQuietly() is very useful but all information about the success/failure is hidden. Returning Throwable will give insight into the error for diagnostic purposes. This change will be compatible with today's usage since the method currently returns void. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.