[
https://issues.apache.org/jira/browse/CONFIGURATION-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raimund Klein closed CONFIGURATION-472.
---------------------------------------
Resolution: Cannot Reproduce
Hello Oliver,
Sorry for the late response. I haven't had any time to look into this again,
maybe it was a misuse on my side after all. Since I haven't been working on the
project I encountered the behavior in for months, this issue might as well be
closed.
> 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
>
> Problem 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: Add 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