[
https://issues.apache.org/jira/browse/IO-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15257219#comment-15257219
]
Christian Schulte commented on IO-502:
--------------------------------------
Good questions. Closing the input silently shouldn't be an issue. Issue is the
implementation of the output may make use of some kind of buffering internally
and a 'close' may trigger some kind of flushing which may produce an exception
which shouldn't be suppressed. So when the 'close' of the output throws an
exception I would expect the operation to have failed and would want that
exception to be propagated to the caller.
> Exceptions are suppressed incorrectly when copying files.
> ---------------------------------------------------------
>
> Key: IO-502
> URL: https://issues.apache.org/jira/browse/IO-502
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Reporter: Christian Schulte
> Priority: Critical
> Attachments: IO-502.patch
>
>
> When copying files or directories, exceptions thrown on closing streams are
> suppressed incorrectly and need to be propagated to the caller.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)