You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2007/05/25 19:14:16 UTC
[jira] Created: (CONFIGURATION-275) ConfigurationUtils.append()
doesn't merge list properties
ConfigurationUtils.append() doesn't merge list properties
---------------------------------------------------------
Key: CONFIGURATION-275
URL: https://issues.apache.org/jira/browse/CONFIGURATION-275
Project: Commons Configuration
Issue Type: Bug
Affects Versions: 1.4
Reporter: Emmanuel Bourg
Priority: Minor
Fix For: 1.5
ConfigurationUtils.append() appends the list object instead of the list elements to the target list. If the list [X, Y] is appended to the list [A, B], the result is [A, B, [X, Y]] instead of [A, B, X, Y]
--
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
[jira] Commented: (CONFIGURATION-275) ConfigurationUtils.append()
doesn't merge list properties
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511095 ]
Oliver Heger commented on CONFIGURATION-275:
--------------------------------------------
Actually this seems to be a problem of AbstractConfiguration.addProperty(), which does not handle collection parameters properly when delimiter parsing is disabled.
> ConfigurationUtils.append() doesn't merge list properties
> ---------------------------------------------------------
>
> Key: CONFIGURATION-275
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-275
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.4
> Reporter: Emmanuel Bourg
> Priority: Minor
> Fix For: 1.5
>
>
> ConfigurationUtils.append() appends the list object instead of the list elements to the target list. If the list [X, Y] is appended to the list [A, B], the result is [A, B, [X, Y]] instead of [A, B, X, Y]
--
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
[jira] Resolved: (CONFIGURATION-275) ConfigurationUtils.append()
doesn't merge list properties
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Heger resolved CONFIGURATION-275.
----------------------------------------
Resolution: Fixed
A fix was applied. addProperty() now always obtains an iterator for the property to add using PropertyConverter.toIterator(). If delimiter parsing is disabled, a null delimiter is passed in, so that no splitting is performed.
> ConfigurationUtils.append() doesn't merge list properties
> ---------------------------------------------------------
>
> Key: CONFIGURATION-275
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-275
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.4
> Reporter: Emmanuel Bourg
> Assignee: Oliver Heger
> Priority: Minor
> Fix For: 1.5
>
>
> ConfigurationUtils.append() appends the list object instead of the list elements to the target list. If the list [X, Y] is appended to the list [A, B], the result is [A, B, [X, Y]] instead of [A, B, X, Y]
--
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