[
http://jira.codehaus.org/browse/MJNCSS-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy closed MJNCSS-16.
-------------------------------
Assignee: Herve Boutemy (was: Jean-Laurent de Morlhon)
Resolution: Fixed
good workaround, Mathias
in addition, actual javancss-maven-plugin trunk has been upgraded to JavaNCSS
30.51, which supports such annotations
And I added an IT test in
[r9756|http://fisheye.codehaus.org/changelog/mojo/trunk?cs=9756] to confirm
everything is ok now
> 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: Herve Boutemy
> 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