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

Daniel Adrian commented on CONFIGURATION-271:
---------------------------------------------

Actually I used ConfigurationUtils. append which uses addProperty...
Maybe some flag to indicate if duplicated values are allowed or not...

> BaseConfiguration duplicates multi value keys values
> ----------------------------------------------------
>
>                 Key: CONFIGURATION-271
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-271
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Daniel Adrian
>         Assigned To: Emmanuel Bourg
>             Fix For: 1.5
>
>
> In addPropertyDirect(String key, Object value) the method adds the new value 
> to the property.
> If the property has the same value in the list, it will get duplicated.
> The method should check if the list contains the value and only if the result 
> is false add the value. 
> There is no logic in saving a multi value key with more than one instance of 
> a value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to