You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:The below code generates a false-positive PreserveStackTrace error while the outer exception really is preserved as part of the inner exception using addSuppressed.
This is really a rare case and I'm fine with suppressing it for now, but wanted to let you know about it and maybe this report even helps someone.
Affects PMD Version: 6.19.0
Rule: PreserveStackTrace
Description: The below code generates a false-positive
PreserveStackTrace
error while the outer exception really is preserved as part of the inner exception usingaddSuppressed
.This is really a rare case and I'm fine with suppressing it for now, but wanted to let you know about it and maybe this report even helps someone.
Code Sample demonstrating the issue:
The text was updated successfully, but these errors were encountered: