luontola / retrolambda

Backport of Java 8's lambda expressions to Java 7, 6 and 5
Apache License 2.0
3.54k stars 227 forks source link

Swallow "addSuppressed" for all Exceptions and Errors #165

Open kohlschuetter opened 1 year ago

kohlschuetter commented 1 year ago

Previously, we would only swallow "addSuppressed" (for Java 6 or older) if the owner was "java/lang/Throwable". However, addSuppressed may have been overriden by other exceptions.

Catch all methods named "addSupressed" that are defined either in java/lang/Throwable or any owner ending in "Exception" or "Error".

luontola commented 1 year ago

Requires a test case to reproduce whatever was the issue.