Commons JCS
  1. Commons JCS
  2. JCS-53

Programmatic configuration does not correctly read inherited Properties

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: jcs-1.3
    • Fix Version/s: jcs-1.3
    • Component/s: Composite Cache
    • Labels:
      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?

        Activity

          People

          • Assignee:
            Aaron Smuts
            Reporter:
            Phillip Liu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development