You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by "Phillip Liu (JIRA)" <ji...@apache.org> on 2008/09/16 00:07:44 UTC

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

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


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

Posted by "Aaron Smuts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCS-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Smuts resolved JCS-53.
----------------------------

    Resolution: Fixed

Fixed in 1.3.3.3.

> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


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

Posted by "Aaron Smuts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCS-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Smuts closed JCS-53.
--------------------------


> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org