Menu

#922 Parsing error due to double semiclolon

open
pmd (543)
5
2012-10-07
2010-05-14
sera
No

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.

Discussion


Log in to post a comment.