[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]