Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-366

XMLConfiguration.getKeys() broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Environment:

      Java 6

      Description

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

      Version 1.3 does not have this problem. Here an empty Iterator is returned.

      This seems related to:
      http://issues.apache.org/jira/browse/CONFIGURATION-87

        Attachments

        1. Config_1.xml
          0.6 kB
          Christian Uldall Pedersen
        2. Config_2.xml
          0.5 kB
          Christian Uldall Pedersen
        3. ConfigTest.java
          1 kB
          Christian Uldall Pedersen

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              uldall Christian Uldall Pedersen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified