You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/01/19 10:32:00 UTC

[jira] Created: (FELIX-889) Arrays of primitives not supported by Configuration Admin

Arrays of primitives not supported by Configuration Admin
---------------------------------------------------------

                 Key: FELIX-889
                 URL: https://issues.apache.org/jira/browse/FELIX-889
             Project: Felix
          Issue Type: Bug
          Components: Configuration Admin
    Affects Versions: configadmin-1.0.4, configadmin-1.0.8
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger


Code inspection and additional unit tests show, that the CaseInsensitiveDictionary used to store the configuration properties does not accept and support values of primitive array type.

The bug lies with the CaseInsensitiveDictionary.checkValue(), which checkes arrays with

    value instanceOf Object[]

which is never true for an array of primitive. The check must be whether the class of the value is an array type as in

    value.getClass().isArray()

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


[jira] Work started: (FELIX-889) Arrays of primitives not supported by Configuration Admin

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

Work on FELIX-889 started by Felix Meschberger.

> Arrays of primitives not supported by Configuration Admin
> ---------------------------------------------------------
>
>                 Key: FELIX-889
>                 URL: https://issues.apache.org/jira/browse/FELIX-889
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>    Affects Versions: configadmin-1.0.4, configadmin-1.0.8
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>
> Code inspection and additional unit tests show, that the CaseInsensitiveDictionary used to store the configuration properties does not accept and support values of primitive array type.
> The bug lies with the CaseInsensitiveDictionary.checkValue(), which checkes arrays with
>     value instanceOf Object[]
> which is never true for an array of primitive. The check must be whether the class of the value is an array type as in
>     value.getClass().isArray()

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


[jira] Closed: (FELIX-889) Arrays of primitives not supported by Configuration Admin

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

Felix Meschberger closed FELIX-889.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: configadmin-1.0.10

Modified the value check to ensure arrays of primitives are recognized as arrays and thus are accepted. Previously primitive arrrys where not recognized and caused an IllegalArgumentException being thrown.

Fixed in Rev. 735640.

> Arrays of primitives not supported by Configuration Admin
> ---------------------------------------------------------
>
>                 Key: FELIX-889
>                 URL: https://issues.apache.org/jira/browse/FELIX-889
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>    Affects Versions: configadmin-1.0.4, configadmin-1.0.8
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: configadmin-1.0.10
>
>
> Code inspection and additional unit tests show, that the CaseInsensitiveDictionary used to store the configuration properties does not accept and support values of primitive array type.
> The bug lies with the CaseInsensitiveDictionary.checkValue(), which checkes arrays with
>     value instanceOf Object[]
> which is never true for an array of primitive. The check must be whether the class of the value is an array type as in
>     value.getClass().isArray()

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