[ https://issues.apache.org/jira/browse/FELIX-6174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971349#comment-16971349 ]
Mike Rumpf commented on FELIX-6174: ----------------------------------- key2 is not supposed to be an array. It should be possible to mix non-array key-value pairs with those ones who describe an array. Having properties which only contain arrays works fine. Adding just one non-array key-value pair leads to the previous "array"-key-value-pairs not being parsed correctly anymore. The attached test demontrates the issue. > org.apache.felix.utils.properties.TypedProperties does not parse arrays > correctly > --------------------------------------------------------------------------------- > > Key: FELIX-6174 > URL: https://issues.apache.org/jira/browse/FELIX-6174 > Project: Felix > Issue Type: Bug > Components: Utils > Affects Versions: utils-1.10.4 > Environment: Windows 7 / tested with > org.apache.felix.org.apache.felix.utils_1.11.2.jar > Reporter: Mike Rumpf > Assignee: Jean-Baptiste Onofré > Priority: Critical > Attachments: TypedPropertiesTest.java > > > org.apache.felix.utils.properties.TypedProperties does not parse arrays in > OSGi configurations correctly. > While a single line config with > key=["val1","val2"] works fine > just adding a standard key value pair > key2=val2 > has the consequence that the value for "key" is not parsed as an array > anymore. > (see attached JUnit test to demonstrate the problem) > -- This message was sent by Atlassian Jira (v8.3.4#803005)