[ https://issues.apache.org/jira/browse/FELIX-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved FELIX-1296. ------------------------------------- Resolution: Fixed Fix Version/s: maven-scr-plugin-1.4.0 Hi Victor, thanks for the patch - I've applied a modified version which handles both cases (single value, multi values) and correctly handles string, references etc. in Revision: 790706 If this fixes your problem, please close this bug Many thanks! > @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 > Assignee: Carsten Ziegeler > Fix For: maven-scr-plugin-1.4.0 > > Attachments: property_options.patch > > > Using @Property annotation with 'options' field set (with enclosed > @PropertyOption 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.