You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/02/05 19:28:39 UTC
DO NOT REPLY [Bug 26694] New: -
BaseConfiguration: containsKey ignores default properties
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