[ https://jira.codehaus.org/browse/MPMD-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287404#comment-287404 ]
Aaron Digulla commented on MPMD-126: ------------------------------------ Does your code contain annotations? Can you post line 99? If it contains annotations, did you set {{targetJdk}} to 1.5 or 1.6? Also try version 2.6 of the plugin. > PMD fails to parse source code in a specific case > ------------------------------------------------- > > Key: MPMD-126 > URL: https://jira.codehaus.org/browse/MPMD-126 > Project: Maven 2.x PMD Plugin > Issue Type: Bug > Components: PMD > Affects Versions: 2.5 > Environment: Gentoo Linux 64bit > Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) > Java version: 1.6.0_20 > OS name: "linux" version: "2.6.34-gentoo-r12" arch: "amd64" Family: "unix" > Reporter: Robin Vobruba > Priority: Minor > Attachments: PmdTest.java > > > i appended a test .java file, which is as minimal as i was able to get it. > when having it in my project, with the pmd plugin defined under reporting, > and then using "mvn site", > PMD fails to parse the source code. > Output: > ######### > [INFO] Generating "PMD Report" report. > [WARNING] Error while parsing PmdTest.java: Encountered " "(" "( "" at line > 99, column 22. > Was expecting one of: > "." ... > "." ... > "." ... > ######### > (there are more of these last 3 lines) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira