Trying to use CPD output renderers that do not have an "encoding" property fail. For example:
[kjurka@lacy trunk]$ ~/pmd-bin-5.3.2/bin/run.sh cpd --minimum-tokens 100 --files . --language c --format csv
Results in the below error following by text output.
"Couldn't instantiate renderer, defaulting to SimpleRenderer: java.beans.IntrospectionException: Method not found: isEncoding"
The attached patch against git master adjusts the code trying to set the renderer's encoding property to correctly skip over if the renderer does not support it.
This will be fixed with PMD 5.3.3.
Commit: https://github.com/pmd/pmd/commit/e93e9224aef524d708656336def2995b81bc77b6