Ancoron Luciferis created FELIX-3593:
----------------------------------------

             Summary: ClassCastException when using short-cut notation inside 
array value annotations
                 Key: FELIX-3593
                 URL: https://issues.apache.org/jira/browse/FELIX-3593
             Project: Felix
          Issue Type: Bug
          Components: SCR Annotations
    Affects Versions: scr annotations 1.6.0
            Reporter: Ancoron Luciferis


When using a short-cut notation for a array-value annotation to specify only a 
single value the SCR plugin fails to handle it.

Example:
@Properties(@Property(name = "failover", boolValue = true))

Result:
java.lang.ClassCastException: com.thoughtworks.qdox.model.Annotation cannot be 
cast to java.util.List
        at 
org.apache.felix.scrplugin.tags.annotation.defaulttag.DefaultAnnotationTagProvider.getTags(DefaultAnnotationTagProvider.java:58)
        at 
org.apache.felix.scrplugin.tags.annotation.AnnotationTagProviderManager.getTags(AnnotationTagProviderManager.java:159)
        at 
org.apache.felix.scrplugin.tags.annotation.AnnotationTagProviderManager.getTags(AnnotationTagProviderManager.java:141)
        at 
org.apache.felix.scrplugin.tags.annotation.AnnotationJavaClassDescription.getTagsByName(AnnotationJavaClassDescription.java:74)
        at 
org.apache.felix.scrplugin.SCRDescriptorGenerator.execute(SCRDescriptorGenerator.java:253)
        at 
org.apache.felix.scrplugin.mojo.SCRDescriptorMojo.execute(SCRDescriptorMojo.java:192)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to