Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-53

Programmatic configuration does not correctly read inherited Properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-1.3
    • jcs-1.3
    • Composite Cache
    • None

    Description

      When calling ConfigureCacheManager.configure(properties, false) with a Properties instance containing defaults, the defaults are not correctly read. The problem is in PropertySetter.java:135

      for ( Enumeration e = properties.keys(); e.hasMoreElements(); )
      ...

      Instead of calling properties.keys(), it should be calling properties.propertyNames(). The call to propertyNames() correctly refer to configured defaults, and keys() does not. This should be a simple fix, how does one create a patch?

      Attachments

        Activity

          People

            asmuts Aaron Smuts
            phillip_liu Phillip Liu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: