commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CONFIGURATION-321) AbstractHierarchicalConfiguration.getKeys(key) doesn't return the key
Date Mon, 01 Dec 2008 21:31:44 GMT

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

Oliver Heger resolved CONFIGURATION-321.
----------------------------------------

    Resolution: Fixed

A fix was applied to both trunk and configuration2 branch.

> AbstractHierarchicalConfiguration.getKeys(key) doesn't return the key
> ---------------------------------------------------------------------
>
>                 Key: CONFIGURATION-321
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-321
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.5
>            Reporter: Emmanuel Bourg
>            Assignee: Oliver Heger
>             Fix For: 1.6
>
>
> The getKeys(String prefix) implementation of AbstractHierarchicalConfiguration doesn't
return anything if the prefix used is the key of an existing property. The iterator returned
should at least contain the key used as the prefix.
> Here is the test method for TestHierarchicalConfiguration, currently the first assertion
fails:
> {code:java}
> public void testGetKeysWithKeyAsPrefix()
> {
>     Iterator<?> it = config.getKeys("order.key1");
>     assertTrue("no key found", it.hasNext());
>     assertEquals("1st key", "order.key1", it.next());
>     assertFalse("more keys than expected", it.hasNext());
> }
> {code}

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


Mime
View raw message