[jira] Created: (JCS-53) Programmatic configuration does not correctly read inherited Properties

"Phillip Liu (JIRA)" <[email protected]> Mon, 15 Sep 2008 15:07:44 -0700 (PDT)
Newsgroups gmane.comp.jakarta.turbine.jcs.devel
Message-ID <1653361815.1221516464297.JavaMail.jira@brutus>
Programmatic configuration does not correctly read inherited Properties
-----------------------------------------------------------------------

                 Key: JCS-53
                 URL: https://issues.apache.org/jira/browse/JCS-53
             Project: JCS
          Issue Type: Bug
          Components: Composite Cache
    Affects Versions: jcs-1.3
            Reporter: Phillip Liu
            Assignee: Aaron Smuts
             Fix For: jcs-1.3


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?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.