[java] InvalidSlf4jMessageFormat: False positive with placeholder and exception
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Pay attention, that issue is valid for cases when I got some field from exception instance or cast it to another exception.
Diff:
Related
Issues:
#1500You can workaround this issue, if you do not put the Exception as last argument, e.g. just swapping arg1Value and e avoids this false positive.
This bug will be fixed with PMD 5.5.3 and later.