[ 
https://issues.apache.org/jira/browse/FELIX-4568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14070171#comment-14070171
 ] 

Ferry Huberts commented on FELIX-4568:
--------------------------------------

Right, so bnd is at fault according to the spec then I guess.
Here's the metatype xml:
{noformat}
<?xml version='1.0'?>

<metatype:MetaData xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.1.0"; 
localization="example.Config">
  <OCD name="Example" id="example.Service" description="Example">
    <AD name="Examples"
        id="examples"
        cardinality="-2147483648"
        required="false"
        default="string1=a,b|string2=c,d|string3=e,f"
        type="String"
        description="The example (default = 
string1=a,b|string2=c,d|string3=e,f)"/>
  </OCD>
  <Designate pid="example.Service">
    <Object ocdref="example.Service"/>
  </Designate>
</metatype:MetaData>
{noformat}

So how _should_ it look then?

> webconsole doesn't recognise pipe '|' as list separator
> -------------------------------------------------------
>
>                 Key: FELIX-4568
>                 URL: https://issues.apache.org/jira/browse/FELIX-4568
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-4.2.2
>         Environment: Linux x64
>            Reporter: Ferry Huberts
>         Attachments: Screenshot of the example.png
>
>
> with (bnd call)
>   Config config = Configurable.createConfigurable(Config.class, props);
> I create a Config object.
> In Config is a
>   List<String> entries();
> the default for this is 'a|b|c'
> bnd uses the pipe '|' character to split the Strings
> webconsole uses the comma ',' character to split
> which one is it doing the right thing? :-) 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to