[ 
https://issues.apache.org/jira/browse/IO-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15257265#comment-15257265
 ] 

Sebb commented on IO-502:
-------------------------

Seems to me that the suggested patch is fine.

It closes the output objects first, so those take precedence over input.
It also closes the channel before the stream.

Is there really any point in trying to capture further close errors once the 
first error has occurred?
Would that provide any useful information?

> 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)

Reply via email to