commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Uldall Pedersen (JIRA)" <>
Subject [jira] Commented: (CONFIGURATION-366) XMLConfiguration.getKeys() broken
Date Mon, 23 Feb 2009 12:47:05 GMT


Christian Uldall Pedersen commented on CONFIGURATION-366:

What I find a bit peculiar is that getKeys returns the following two elements:

On this XML (Config_1):


On this XML (Config_2):

So the logic is that if there are sub elements then return those, if no sub elements then
return parent element?

> XMLConfiguration.getKeys() broken
> ---------------------------------
>                 Key: CONFIGURATION-366
>                 URL:
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.6
>         Environment: Java 6
>            Reporter: Christian Uldall Pedersen
>         Attachments: Config_1.xml, Config_2.xml,
>   Original Estimate: 48h
>  Remaining Estimate: 48h
> XMLConfiguration.getKeys(String prefix) returns iterator with the string argument "prefix",
when the xpath specified has no sub elements. The XPathExpressionEngine has been used as Expression
> Version 1.3 does not have this problem. Here an empty Iterator is returned.
> This seems related to:

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

View raw message