felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Closed: (FELIX-890) Configuration.getProperty returns a Dictionary which is not entirely private
Date Tue, 27 Jan 2009 20:51:02 GMT

     [ https://issues.apache.org/jira/browse/FELIX-890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Felix Meschberger closed FELIX-890.

    Resolution: Fixed

Deep copy of properties is required and Vector (instead of Collection) should be returned.

This is now correctly implemented and this issue can be closed.

> Configuration.getProperty returns a Dictionary which is not entirely private
> ----------------------------------------------------------------------------
>                 Key: FELIX-890
>                 URL: https://issues.apache.org/jira/browse/FELIX-890
>             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
> According to the specification of the Configuration.getProperties() method in,
the dictionary returned "is a private copy for the caller and may be changed without influencing
the stored configuration".
> This is not currently the case for array and vector/collection properties: Updating the
array or vector/collection is reflected in the internal data structure kept by the configuration
manager because only the internal Dictionary is copied into a new Dictionary while the values
are copied by reference.
> Actually a full deep copy of the dictionary is required.

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

View raw message