[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [jira] Updated: (IO-249) Enhance closeQuietly to indicate success
From: "Niall Pemberton (JIRA)" <jira () apache ! org>
Date: 2010-10-31 13:17:26
Message-ID: 3574965.162171288531046025.JavaMail.jira () thor
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/IO-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Niall Pemberton updated IO-249:
-------------------------------
Attachment: (was: CloseableHandler.java)
> 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: 3.x
>
> Attachments: IO-249-CloseableHandler.patch
>
>
> 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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic