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

[configuration] BaseConfiguration: containsKey ignores default properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • 1.0
    • None
    • None
    • Operating System: All
      Platform: All

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: