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

SubsetConfiguration does not interpolate keys of the parent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.7
    • Interpolation
    • None

    Description

      A SubsetConfiguration does not interpolate the keys of a parent configuration. This is in contrast to the SubnodeConfiguration. This fails:

      BaseConfiguration config = new BaseConfiguration();
      config.setProperty("test", "junit");
      config.setProperty("prefix.key", "${test}");
      AbstractConfiguration subset = (AbstractConfiguration) config.subset("prefix");
      assertEquals("Interpolation does not resolve parent keys", "junit", subset.getString("key", ""));
      

      Attachments

        Activity

          People

            joehni Joerg Schaible
            joehni Joerg Schaible
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: