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/04/26 00:48:18 UTC
[jira] Updated: (CONFIGURATION-64) [configuration] clearXmlProperty
doesn't remove list properties completely
[ https://issues.apache.org/jira/browse/CONFIGURATION-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg updated CONFIGURATION-64:
----------------------------------------
Fix Version/s: 1.0
> [configuration] clearXmlProperty doesn't remove list properties completely
> --------------------------------------------------------------------------
>
> Key: CONFIGURATION-64
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-64
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: Nightly Builds
> Environment: Operating System: All
> Platform: All
> Reporter: Emmanuel Bourg
> Fix For: 1.0
>
> Attachments: clear-property-2.txt, clear-property.txt, clear-xml-property.diff
>
>
> clearXmlProperty in XMLConfiguration stops on the first element found and
> doesn't examine the whole tree, that means calling clearXmlProperty on a list
> property only remove the first element. For example, given the following
> configuration file:
> <configuration>
> <key>value1</key>
> <key>value2</key>
> </configuration>
> calling conf.clearProperty("key") and saving the configuration will generate the
> following file instead of an empty configuration:
> <configuration>
> <key>value2</key>
> </configuration>
--
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