[
https://issues.apache.org/jira/browse/FELIX-890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665092#action_12665092
]
Felix Meschberger commented on FELIX-890:
-----------------------------------------
In Rev. 735651 modified Configuraiton.getProperties() implementation such that
not only the internal dictionary is copied but also any array and colleciton
stored in the dictionary. In addition I added a number of testcases ensuring we
really get deep copies.
> 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
> 104.15.2.6, 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.