You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2013/03/06 21:52:13 UTC

[jira] [Resolved] (CONFIGURATION-529) XML_PROVIDER figures twice in ConfigurationProvider[] array within DefaultConfigurationBuilder

     [ https://issues.apache.org/jira/browse/CONFIGURATION-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-529.
----------------------------------------

    Resolution: Invalid

This is actually done by intension: XML provider is registered twice for two different tag names, {{xml}} and {{hierarchicalXml}}. This is done for maintaining backwards compatibility with the older {{ConfigurationFactory}} class which originally used the latter tag name.
                
> XML_PROVIDER figures twice in ConfigurationProvider[] array within DefaultConfigurationBuilder
> ----------------------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-529
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-529
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.9
>            Reporter: Jan van Oort
>              Labels: features
>             Fix For: 2.0, 2.x
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Source code excerpt: 
>  /** An array with the providers for the default tags. */
>     private static final ConfigurationProvider[] DEFAULT_PROVIDERS = {
>             PROPERTIES_PROVIDER, XML_PROVIDER, XML_PROVIDER, JNDI_PROVIDER,
>             SYSTEM_PROVIDER, PLIST_PROVIDER, BUILDER_PROVIDER, INI_PROVIDER,
>             ENV_PROVIDER
>     };

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira