You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Dangel (JIRA)" <ji...@codehaus.org> on 2012/11/29 21:53:13 UTC
[jira] (MPMD-126) PMD fails to parse source code in a specific case
[ https://jira.codehaus.org/browse/MPMD-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=314691#comment-314691 ]
Andreas Dangel commented on MPMD-126:
-------------------------------------
This bug is also fixed with PMD 5.0.1.
In PMD, we verify now, that we can parse such language constructs. See https://github.com/pmd/pmd/blob/pmd_releases/5.0.1/pmd/src/test/resources/net/sourceforge/pmd/ast/ParserCornerCases.java
> 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