Parse Exception if annotations are used inline
----------------------------------------------

                 Key: MJNCSS-47
                 URL: http://jira.codehaus.org/browse/MJNCSS-47
             Project: Maven 2.x JavaNCSS Plugin
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Carsten Ziegeler


When an annotation is used inlike, like this:

    public void execute(JobContext context) {
        final String topic = (String) context.getConfiguration().get(JOB_TOPIC);
        @SuppressWarnings("unchecked")
        final Dictionary<Object, Object> properties = (Dictionary<Object, 
Object>) context.getConfiguration().get(JOB_CONFIG);


the parsing fails with Javancss.<init>(InputStream).e: 
net.sourceforge.cobertura.javancss.ParseException: Encountered "final 
Dictionary < String , Object > props =" at line 70, column 9.
Was expecting one of:
    "assert" ...
    "boolean" ...
    "byte" ...
    "char" ...
    "double" ...
    "enum" ...

For example the Apache Sling Eventing bundle can be used as a test case:
http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/event

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