felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-4047) Unable to create empty or single valued String array property
Date Tue, 14 May 2013 06:31:16 GMT

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

Carsten Ziegeler resolved FELIX-4047.
-------------------------------------

    Resolution: Fixed
    
> Unable to create empty or single valued String array property
> -------------------------------------------------------------
>
>                 Key: FELIX-4047
>                 URL: https://issues.apache.org/jira/browse/FELIX-4047
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.8.0, maven-scr-plugin-1.12.0
>            Reporter: Thomas Joseph
>            Assignee: Carsten Ziegeler
>             Fix For: scr annotations 1.9.4
>
>
> There is no way that I can declare an empty or a single valued String array property.
> @Property(label="Multivalued Property", value={"only-single-value"})
> private static final String MV_PROPERTY= "multivalued.property";
> OR
> @Property(label="Multivalued Property", value={"only-single-value"}, unbounded=PropertyUnbounded.ARRAY)
> private static final String MV_PROPERTY= "multivalued.property";
> OR
> @Property(label="Multivalued Property", value={"only-single-value"}, cardinality=N)
> private static final String MV_PROPERTY= "multivalued.property";
> All would generate the same DS XML file as:
> <property name="multivalued.property" value="only-single-value"/>
> As of now the only workaround is to declare an array with at-least two entries:
> @Property(label="Multivalued Property", value={"only-single-value", ""})
> private static final String MV_PROPERTY= "multivalued.property";
> OR
> @Property(label="Multivalued Property", value={"", ""})
> private static final String MV_PROPERTY= "multivalued.property";

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message