felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Antonovich (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FELIX-1296) @Property annotation processing broken when options used
Date Thu, 02 Jul 2009 15:49:47 GMT

     [ https://issues.apache.org/jira/browse/FELIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Victor Antonovich updated FELIX-1296:
-------------------------------------

    Attachment: property_options.patch

Proposed patch.

> @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
>         Attachments: property_options.patch
>
>
> 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.


Mime
View raw message