[ http://jira.codehaus.org/browse/MPMD-37?page=all ]
Mike Perham closed MPMD-37.
---------------------------
Assignee: Mike Perham
Resolution: Cannot Reproduce
This is Not a Bug. The problem is in PMD itself and we are using the latest
available release. Please enter a bug into the PMD issue tracker @ SourceForge
if you want to see this fixed.
> Embedded error produced when failing parse on a hibernate annotation
> (3.1beta9) in java file
> --------------------------------------------------------------------------------------------
>
> Key: MPMD-37
> URL: http://jira.codehaus.org/browse/MPMD-37
> Project: Maven 2.x Pmd Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: MACOSX 10.4.7 (PowerPC)
> Reporter: Simon Baker
> Assigned To: Mike Perham
>
> Running mvn pmd:check produces the error:
> Embedded error: Failure executing PMD for:
> /Users/simon/Eclipse/workspace/Gratr/src/main/java/com/aol/cms/domain/CMSContentObject.java
> Encountered "}" at line 16, column 58.
> Was expecting one of:
> "boolean" ...
> "byte" ...
> "char" ...
> "double" ...
> "false" ...
> "float" ...
> "int" ...
> "long" ...
> "new" ...
> "null" ...
> "short" ...
> "super" ...
> "this" ...
> "true" ...
> "void" ...
> <INTEGER_LITERAL> ...
> <FLOATING_POINT_LITERAL> ...
> <CHARACTER_LITERAL> ...
> <STRING_LITERAL> ...
> <IDENTIFIER> ...
> "(" ...
> "{" ...
> "@" ...
> "!" ...
> "~" ...
> "++" ...
> "--" ...
> "+" ...
> "-" ...
> In the CMSContentObject.java file, line 16, column 58: @Table(name =
> "cms_content_object", uniqueConstraints = {})
>
> Here's what's in the pom.xml:
> <dependency>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-pmd-plugin</artifactId>
> <version>2.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate</artifactId>
> <version>3.2.0.cr1</version>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>org.hibernate</groupId>
> <artifactId>hibernate-annotations</artifactId>
> <version>3.1beta9</version>
> <scope>compile</scope>
> </dependency>
>
> <reporting>
> ...
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-pmd-plugin</artifactId>
> <configuration>
> <linkXref>true</linkXref>
> <sourceEncoding>UTF-8</sourceEncoding>
> <minimumTokens>100</minimumTokens>
> <targetJdk>1.5</targetJdk>
> </configuration>
> </plugin>
> ...
> </plugins>
> </reporting>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira