You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by bu...@apache.org on 2002/11/14 20:34:53 UTC

DO NOT REPLY [Bug 14562] New: - CascadingConfiguration.getChild() does not lookup child in the parent tree

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14562>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14562

CascadingConfiguration.getChild() does not lookup child in the parent tree

           Summary: CascadingConfiguration.getChild() does not lookup child
                    in the parent tree
           Product: Avalon
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Excalibur
        AssignedTo: avalon-dev@jakarta.apache.org
        ReportedBy: boris@belyarchik.net


org.apache.excalibur.configuration.CascadingConfiguration.getChild( String 
child, boolean createNew ) does not perform lookup on the parent when base 
lookup returns null. Line 8 in the following code snippet should read "if( c != 
null).

    public Configuration getChild( String child, boolean createNew )
    {
        if( createNew )
        {
            return getChild( child );
        }
        Configuration c = m_base.getChild( child, false );
        if( child != null )
        {
            return c;
        }
        return m_parent.getChild( child, false );
    }

Cheers
Boris

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>