Parsing error due to double semiclolon
A source code analyzer
Brought to you by:
adangel,
juansotuyo
I'm using pmd-4.2.5 on linux-2.6.31, gentoo hardened and sun jdk 1.6.0_19.
A statement like:
import java.awt.event.ActionEvent;;
produces a parsing error when invoking pmd( text report) on the sourcefile. Removing the second semicolon / empty statement lets pmd process the file as expected.
Error message: "Error while parsing <sourcefilepath>"</sourcefilepath>
Expected behaviour:
Do not barf on empty statement.
Maybe a rule to warn on empty statements in the basic ruleset.