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

[configuration] BaseConfiguration: containsKey ignores default properties

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      26694

      Description

      The current (CVS Head) implementation of BaseConfiguration.containsKey does not
      check whether a key is contained in the "defaults" Configuration (if exists).

      I think

      public boolean containsKey(String key)

      { return store.containsKey(key); }

      should be:

      public boolean containsKey(String key)

      { return store.containsKey(key) || ((defaults != null) && defaults.containsKey(key)); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              christian@siefkes.net Christian Siefkes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: