Yaniv Kunda created TIKA-1720:
---------------------------------
Summary: 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
Priority: Minor
Fix For: 1.11
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)