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

XMLConfiguration.getKeys() broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.6
    • None
    • Build
    • None
    • 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. ConfigTest.java
          1 kB
          Christian Uldall Pedersen
        2. Config_1.xml
          0.6 kB
          Christian Uldall Pedersen
        3. Config_2.xml
          0.5 kB
          Christian Uldall Pedersen

        Activity

          People

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