commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26694] New: - BaseConfiguration: containsKey ignores default properties
Date Thu, 05 Feb 2004 18:28:39 GMT
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=26694>.
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=26694

BaseConfiguration: containsKey ignores default properties

           Summary: BaseConfiguration: containsKey ignores default
                    properties
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Configuration
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: christian@siefkes.net


The current (CVS Head) implementation of BaseConfiguration.containsKey does not
check whether a key is contained in the "defaults" Configuration (if exists).

I think

public boolean containsKey(String key)
    {
        return store.containsKey(key);
    }

should be:

public boolean containsKey(String key)
    {
        return store.containsKey(key)
           || ((defaults != null) && defaults.containsKey(key));
    }

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message