Menu

#1381 CPD Cannot use CSV/VS Renderers because they don't support encoding property

PMD-5.3.3
closed
None
CPD
3-Major
Bug
5.3.2
2015-07-21
2015-07-15
Kris Jurka
No

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.

1 Attachments

Discussion

  • Andreas Dangel

    Andreas Dangel - 2015-07-21
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-5.3.3
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.