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

Oliver Heger commented on CONFIGURATION-495:
--------------------------------------------

After some research I figured out that only the method 
HierarchicalConfiguration.setProperty() is affected. It does not handle lists 
or arrays correctly if delimiter parsing is disabled. The addProperty() method 
and the setProperty() method defined by AbstractConfiguration work as expected.
                
> If delimiter parsing is disabled, adding of list properties to an 
> AbstractConfiguration does not work correctly
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-495
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-495
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.8
>            Reporter: Oliver Heger
>
> When calling addProperty() or setProperty() with a collection or an array as 
> value it is expected that the single elements are added rather than the 
> container. However, if delimiter parsing is disabled, this check is not 
> performed, and the complex value is directly added. This causes strange 
> effects, for instance when the configuration is saved: then the complex value 
> is just converted to a string. Loading the same configuration again will then 
> produce different values for those properties.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to