Affects PMD Version:
6.22.0
Description:
AvoidCatchingThrowable can not detect the case: catch (java.lang.Throwable t)
.
The undetectable reason is that using if (name.hasImageEqualTo("Throwable")) {
in pmd-java-6.22.0-sources.jar\net\sourceforge\pmd\lang\java\rule\errorprone\AvoidCatchingThrowableRule.java_24 to detect can't coverage this case.
Code Sample demonstrating the issue:
catch (java.lang.Throwable t) { throw new javax.xml.rpc.ServiceException(t); }
Expected outcome:
false-negative
Running PMD through:
CLI
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4