Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • Problem: The PMD check fails with 

    java.lang.RuntimeException: Couldn't find the class net.sourceforge.pmd.rules.XPathRule not found

    Solution: The used PMD XML config file was written for PMD version 4.x, while Code Review Assistant ships PMD 56.x. PMD 5 PMD 6.x introduced quite a few API incompatibilities to support multiple languages. See here for details:

    http://sourceforge.net/projects/pmd/files/pmd/5.0.0/

    The problem here is that the PMD config uses net.sourceforge.pmd.rules.XPathRule which was used with PMD 4, while in PMD 56.x the class is now called net.sourceforge.pmd.lang.rule.XPathRule.  Therefore, you have to replace all references in the PMD file accordingly. 

...