commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CONFIGURATION-54) [configuration] BaseConfiguration: containsKey ignores default properties
Date Wed, 25 Apr 2007 22:44:15 GMT

     [ https://issues.apache.org/jira/browse/CONFIGURATION-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Bourg updated CONFIGURATION-54:
----------------------------------------

    Fix Version/s: 1.0

> [configuration] BaseConfiguration: containsKey ignores default properties
> -------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-54
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-54
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Operating System: All
> Platform: All
>            Reporter: Christian Siefkes
>             Fix For: 1.0
>
>
> 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));
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
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