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

Thorsten Möller commented on MJNCSS-34:
---------------------------------------

... for some reason the initial example went into one line. It should read like 
this (field declaration in separate line)


public interface MessageConstants
{
    @Deprecated public static final String SYS_PROPERTY_LOADBALANCER = "s";
}

> NCSS crashes for class field declarations starting with @Annotation
> -------------------------------------------------------------------
>
>                 Key: MJNCSS-34
>                 URL: http://jira.codehaus.org/browse/MJNCSS-34
>             Project: Maven 2.x JavaNCSS Plugin
>          Issue Type: Bug
>            Reporter: Thorsten Möller
>            Assignee: Jean-Laurent de Morlhon
>
> Example:
> public interface MessageConstants {
>     @Deprecated public static final String SYS_PROPERTY_LOADBALANCER = "s";
> }
> Console Output:
> ParseException in C:\...\MessageConstants.java
> Last useful checkpoint: "framework.MessageConstants"
> Encountered "public static final String SYS_PROPERTY_LOADBALANCER =" at line 
> 117, column 21.
> Was expecting one of:
>     "assert" ...
>     "boolean" ...
>     "byte" ...
>     "char" ...
>     "double" ...
>     "enum" ...
>     "float" ...
>     "int" ...
>     "long" ...
>     "short" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "." ...
>     "(" ...
>     "public" "public" ...
>     "public" "static" "public" ...
>     "public" "static" "static" ...
>     "public" "static" "protected" ...
>     "public" "static" "private" ...
>     "public" "static" "final" "public" ...
>     "public" "static" "final" "static" ...
>     "public" "static" "final" "protected" ...
>     "public" "static" "final" "private" ...
>     "public" "static" "final" "final" ...
>     "public" "static" "final" "abstract" ...
>     "public" "static" "final" "synchronized" ...
>     "public" "static" "final" "native" ...
>     "public" "static" "final" "transient" ...
>     "public" "static" "final" "volatile" ...
>     "public" "static" "final" "strictfp" ...
>     "public" "static" "final" "@" ...
>     "public" "static" "final" "enum" ...
>     "public" "protected" ...
>     "public" "private" ...
>     "public" "static" "abstract" ...
>     "public" "static" "final" "<" ...
>     "public" "static" "final" "void" ...
>     "public" "static" "final" "boolean" ...
>     "public" "static" "final" "char" ...
>     "public" "static" "final" "byte" ...
>     "public" "static" "final" "short" ...
>     "public" "static" "final" "int" ...
>     "public" "static" "final" "long" ...
>     "public" "static" "final" "float" ...
>     "public" "static" "final" "double" ...
>     "public" "static" "final" <IDENTIFIER> "." ...
>     "public" "static" "final" <IDENTIFIER> "<" ...
>     "public" "static" "final" <IDENTIFIER> "[" ...
>     "public" "static" "final" <IDENTIFIER> <IDENTIFIER> "(" ...

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