commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Created: (CONFIGURATION-393) BaseConfiguration.clone() does not work with list properties
Date Sat, 22 Aug 2009 14:49:15 GMT
BaseConfiguration.clone() does not work with list properties
------------------------------------------------------------

                 Key: CONFIGURATION-393
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-393
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.6
            Reporter: Oliver Heger


In the clone() implementation the map storing the configuration data is also cloned. For properties
with multiple values this map contains lists. Because no deep clone is performed these lists
are simply copied into the cloned map. So if the corresponding properties are changed on either
the original or the clone, the other object is affected, too.

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


Mime
View raw message