commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jo desmet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-443) CombinedConfiguration getSource does not work when configuration contains ViewNodes
Date Wed, 06 Apr 2011 19:54:05 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016495#comment-13016495
] 

jo desmet commented on CONFIGURATION-443:
-----------------------------------------

Hi,
indeed the issue is not always the case, I was not clear enough, sorry for that.

unittest attached, last assert fails.
The issue is only when a key is overriden, in that case the node created is a viewnode and
then the fetchNodeList(key) goes wrong.
The getSource then returns the combinedconfiguration instead of the configuraton it took the
key from.

Jo.

> CombinedConfiguration getSource does not work when configuration contains ViewNodes
> -----------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-443
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-443
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.6
>         Environment: windows, but should be independent
>            Reporter: jo desmet
>         Attachments: SourceTest.java, component1.xml, component1_spec.xml
>
>
> Using the getSource in the combined configuration does not work when configurations have
been combined.
> In that case the fetchNodeList(key) returns a viewnode which will never match on specific
configuration.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message