commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raimund Klein (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CONFIGURATION-472) SubnodeConfigurations returned by XMLConfiguration should convert added nodes to XML nodes.
Date Thu, 15 Dec 2011 11:48:31 GMT

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

Raimund Klein updated CONFIGURATION-472:
----------------------------------------

       Priority: Minor  (was: Major)
    Description: 
XMLConfiguration's configuration(s)At return regular SubnodeConfigurations which can't "really"
be used for adding nodes as these won't be converted into XMLConfiguration's internal XMLNodes.
More precisely, when using the SubnodeConfiguration for adding, accesses to the main XMLConfiguration
can run into ClassCastExceptions later on.

Workaround: Adding the created nodes directly to the main XMLConfiguration (e.g. with the
appropriate XPath), as this configuration's add methods convert these into the internal form.

Proposed Solution: Let XMLConfiguration's configuration(s)At methods return a subclass of
SubnodeConfiguration, whose add methods will perform the same node conversion. Consequently,
this new class' SubnodeConfigurations returned by configuration(s)At should be instances of
the very same class.
     Issue Type: Improvement  (was: Bug)
        Summary: SubnodeConfigurations returned by XMLConfiguration should convert added nodes
to XML nodes.  (was: XMLConfiguration)
    
> SubnodeConfigurations returned by XMLConfiguration should convert added nodes to XML
nodes.
> -------------------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-472
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-472
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: 1.7
>            Reporter: Raimund Klein
>            Priority: Minor
>
> XMLConfiguration's configuration(s)At return regular SubnodeConfigurations which can't
"really" be used for adding nodes as these won't be converted into XMLConfiguration's internal
XMLNodes. More precisely, when using the SubnodeConfiguration for adding, accesses to the
main XMLConfiguration can run into ClassCastExceptions later on.
> Workaround: Adding the created nodes directly to the main XMLConfiguration (e.g. with
the appropriate XPath), as this configuration's add methods convert these into the internal
form.
> Proposed Solution: Let XMLConfiguration's configuration(s)At methods return a subclass
of SubnodeConfiguration, whose add methods will perform the same node conversion. Consequently,
this new class' SubnodeConfigurations returned by configuration(s)At should be instances of
the very same class.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message