[ 
https://jira.codehaus.org/browse/MPMD-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287446#comment-287446
 ] 

Dennis Lundberg commented on MPMD-126:
--------------------------------------

I've verified that this happens using the attached file, using versions 2.6 and 
2.7-SNAPSHOT of the plugin.

The sample file does not contain any annotations, but has a really weird 
syntax. I get the same error, but on line 9, which looks like this:

{code:java}
                super(new Object() {
{code}
                
> 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

        

Reply via email to