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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:avalon-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@;jakarta.apache.org>

Reply via email to