@Property annotation processing broken when options used
--------------------------------------------------------

                 Key: FELIX-1296
                 URL: https://issues.apache.org/jira/browse/FELIX-1296
             Project: Felix
          Issue Type: Bug
          Components: Maven SCR Plugin
    Affects Versions: maven-scr-plugin-1.2.0
            Reporter: Victor Antonovich


Using @Property annotation with 'options' field used (with enclosed 
@PropertProperty annotations) lead to Maven build error:
...
[INFO] [scr:scr {execution: generate-scr-descriptor}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] java.util.ArrayList cannot be cast to 
[Lorg.apache.felix.scr.annotations.PropertyOption;
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: java.util.ArrayList cannot be cast to 
[Lorg.apache.felix.scr.annotations.PropertyOption;
        at 
org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.options(PropertyTag.java:65)
        at 
org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getParameters(PropertyTag.java:246)
        at 
org.apache.felix.scrplugin.PropertyHandler.processProperty(PropertyHandler.java:176)
        at 
org.apache.felix.scrplugin.PropertyHandler.processProperties(PropertyHandler.java:357)
[more stacktrace entries...]


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to