commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Updated: (IO-249) Enhance closeQuietly to indicate success
Date Sun, 31 Oct 2010 13:17:24 GMT


Niall Pemberton updated IO-249:

    Attachment: IO-249-CloseableHandler.patch

Its probably irrelevant, but since I had an updated version that I did a while ago and I'm
about to change machine - I thought I'd attach the latest CloseableHandler version here &
test case so that it doesn't get lost

> Enhance closeQuietly to indicate success
> ----------------------------------------
>                 Key: IO-249
>                 URL:
>             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.

View raw message