commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Adrian (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-271) BaseConfiguration duplicates multi value keys values
Date Tue, 22 May 2007 20:53:16 GMT

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

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

yes,

If I have file1.ini and file2.ini and I want to merge the values from file2 to file1.

file1:

[test]
some_key=xxx,yyy
file2:

[test]
some_key=xxx,yyy,zzz,fff

If you'll add all the properties of file2 to file1 the result will be:
[test]
some_key=xxx,yyy,xxx,yyy,zzz,fff

where is should be:
[test]
some_key=xxxx,yyy,zzz,fff



> 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
>             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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message