[ 
http://jira.codehaus.org/browse/MJNCSS-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137473#action_137473
 ] 

mbroekelmann edited comment on MJNCSS-16 at 6/5/08 4:03 AM:
------------------------------------------------------------------

this issue is actually fixed in JavaNCSS Version 29.50

I was able to override the dependency from plugin pom:

{noformat}
<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>
{noformat}

      was (Author: mbroekelmann):
    this issue is actually fixed in JavaNCSS Version 29.50

I was able to override the dependency in plugin pom:

{noformat}
<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>
{noformat}
  
> java annotations (within a method) cannot be parsed correctly
> -------------------------------------------------------------
>
>                 Key: MJNCSS-16
>                 URL: http://jira.codehaus.org/browse/MJNCSS-16
>             Project: Maven 2.x JavaNCSS Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-2
>            Reporter: Roman Cerny
>            Assignee: Jean-Laurent de Morlhon
>             Fix For: 2.0-beta-3
>
>         Attachments: Java1.1.jj.diff.txt
>
>
> the following code segment cannot be parsed correctly:
> public int myMethod()
> {
>     int i = 1;
>     @SuppressWarnings("unused")
>     int notUsedVariable = 2;
>     return i;
> }
> leads to following error:
> Encountered "@ SuppressWarnings ( \"unused\" ) int notUsedVariable =" at line 
> xxx, column yyy.
> Was expecting one of:
>     "assert" ...
>     "boolean" ...
>     "byte" ...
>     "char" ...
>     "double" ...
>     "enum" ...
>     "final" ...
>     "float" ...
>     "int" ...
>     "long" ...
>     "short" ...
>      ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...
>     "@" "enum" ...
>     "@"  "." ...
>     "@"  "("  ...
>     "@"  "(" ")" ...
>     "@"  "(" "@" ...
>     "@"  "(" "{" ...
>     "@"  "(" "+" ...
>     "@"  "(" "-" ...
>     "@"  "(" "++" ...
>     "@"  "(" "--" ...
>     "@"  "(" "~" ...
>     "@"  "(" "!" ...
>     "@"  "(" "(" ...
>     "@"  "("  ...
>     "@"  "("  ...
>     "@"  "("  ...
>     "@"  "("  "." ...
>     "@"  "("  "[" ...
>     "@"  "("  "(" ...
>     "@"  "("  "++" ...
>     "@"  "("  "--" ...
>     "@"  "("  "*" ...
>     "@"  "("  "/" ...
>     "@"  "("  "%" ...
>     "@"  "("  "+" ...
>     "@"  "("  "-" ...
>     "@"  "("  "<<" ...
>     "@"  "("  ">>" ...
>     "@"  "("  ">>>" ...
>     "@"  "("  "<" ...
>     "@"  "("  ">" ...
>     "@"  "("  "<=" ...
>     "@"  "("  ">=" ...
>     "@"  "("  "instanceof" ...
>     "@"  "("  "==" ...
>     "@"  "("  "!=" ...
>     "@"  "("  "&" ...
>     "@"  "("  "^" ...
>     "@"  "("  "|" ...
>     "@"  "("  "&&" ...
>     "@"  "("  "||" ...
>     "@"  "("  "?" ...
>     "@"  "("  ")" "public" ...
>     "@"  "("  ")" "static" ...
>     "@"  "("  ")" "protected" ...
>     "@"  "("  ")" "private" ...
>     "@"  "("  ")" "final" ...
>     "@"  "("  ")" "abstract" ...
>     "@"  "("  ")" "synchronized" ...
>     "@"  "("  ")" "native" ...
>     "@"  "("  ")" "transient" ...
>     "@"  "("  ")" "volatile" ...
>     "@"  "("  ")" "strictfp" ...
>     "@"  "("  ")" "@" ...
>     "@"  "("  ")" "boolean" ...
>     "@"  "("  ")" "char" ...
>     "@"  "("  ")" "byte" ...
>     "@"  "("  ")" "short" ...
>     "@"  "("  ")" "int" ...
>     "@"  "("  ")" "long" ...
>     "@"  "("  ")" "float" ...
>     "@"  "("  ")" "double" ...
>     "@"  "("  ")" "enum" ...
>     "@"  "("  ")"  "." ...
>     "@"  "("  ")"  "<" ...
>     "@"  "("  ")"  "[" ...
>     "@"  "("  ")"  "enum" ...
>     "@"  "("  ")"   ";" ...
>     "@"  "("  ")"   "=" ...

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to