|
Jean-Laurent de Morlhon made changes - 21/Jun/07 04:39 AM
I stumbled upon this bug report while searching the Web for a solution to the problem with JavaNCSS and I don't use the Maven plugin, but run JavaNCSS as a standalone tool as part of my build process. I've attached a diff between the version of Java1.1.jj found in the JavaNCSS 28.49 distribution Diff to apply to Java1.1.jj in the JavaNCSS 28.49 distribution
Peter Franzen made changes - 10/Apr/08 04:36 AM
Peter, did you try the 29.50 version of JavaNCSS released two days ago ? It also fixes Java5 parser bugs.
Jean-Laurent de Morlhon made changes - 10/Apr/08 05:00 AM
Hmmm, I checked for a new version a few days ago before deciding to have a go at it myself....oh, well. It looks like version 29.50 fixes the problem, although there is no difference between the grammar I also discovered that my proposed fix is a bit too liberal, it accepts constructs of the type private void myMethod() { java.util.List<String> s; @SuppressWarnings("unchecked") s = getList(); }which I don't think is allowed after having studied JLS a bit more thoroughly. If the first 2210a2211,2212 the above construct no longer parses.
Jean-Laurent de Morlhon made changes - 22/May/08 02:35 AM
this issue is actually fixed in JavaNCSS Version 29.50 I was able to override the dependency from plugin pom: <project>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
<version>2.0-beta-2</version>
<dependencies>
<dependency>
<groupId>javancss</groupId>
<artifactId>javancss</artifactId>
<version>29.50</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javancss-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</project>
Jean-Laurent de Morlhon made changes - 31/Jul/08 03:27 PM
good workaround, Mathias in addition, actual javancss-maven-plugin trunk has been upgraded to JavaNCSS 30.51, which supports such annotations
Herve Boutemy made changes - 21/May/09 08:25 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Thanks for the report.
Unfortunatly, as of today, we can't do much since the problem lies within javancss core library, beside sending a bug report to the original author of javancss : http://www.kclee.de/clemens/java/javancss/
Btw we are using the latest available version of it (28.49).