[
https://issues.apache.org/jira/browse/TIKA-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting resolved TIKA-1720.
---------------------------------
Resolution: Fixed
Assignee: Jukka Zitting
Thanks! Committed in revision 1698150.
> Collect multiple exceptions in TemporaryResources.close() using
> Throwable.addSuppressed()
> -----------------------------------------------------------------------------------------
>
> Key: TIKA-1720
> URL: https://issues.apache.org/jira/browse/TIKA-1720
> Project: Tika
> Issue Type: Improvement
> Components: core
> Reporter: Yaniv Kunda
> Assignee: Jukka Zitting
> Priority: Minor
> Fix For: 1.11
>
> Attachments: TIKA-1720.patch
>
>
> TemporaryResource.close() currently collects exceptions throw by trying to
> close its resources in a list.
> When the time to propagate an exception comes, information is lost - the
> thrown exception contains a message with the string descriptions of all
> exceptions, and the first exception as the cause - there is no stack trace
> describing what went wrong closing a resource.
> In addition, the thrown exception is IOExceptionWithCause, copied from
> commons-io, which is redundant since Java 6.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)