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

subset returned from HierarchicalINIConfiguration has unexpected property names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Documentation, Format
    • Labels:
      None

      Description

      With the following ini file

      1. comment
        property.1 = g1
        property.2 : g2
        [section]
        property.1 = l1

      HierarchicalINIConfiguration properly creates two sections: null and "section". However, the subsets from this configuration do not have the expected property names.

      The global subset contains the following name=value pairs:
      property..1=g1
      property..2=g2
      section.property..1=l1

      The "section" subset contains the following name=value pairs:
      property..1=g1

      I expected the global subset to contain:
      property.1=g1
      property.2=g2

      I expected the "section" subset to contain:
      property.1 = l1

        Attachments

        1. TestHierarchicalINIConfiguration.java
          3 kB
          Charles Honton
        2. TestHierarchicalINIConfiguration.java
          3 kB
          Charles Honton
        3. TestHierarchicalINIConfiguration.java
          4 kB
          Charles Honton

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              chonton Charles Honton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: