summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-04-26 18:37:14 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-04-26 18:37:14 +0200
commit0f565573fb5a32f5eb3cd72baf4d69717bb4b991 (patch)
tree4619c98cc61d682270fbd08d3c9faaf634507008 /java/src
parentMerge remote-tracking branch 'origin/master' into encoding11 (diff)
parentAlso fixed property cloning for defaults properties (diff)
downloadice-0f565573fb5a32f5eb3cd72baf4d69717bb4b991.tar.bz2
ice-0f565573fb5a32f5eb3cd72baf4d69717bb4b991.tar.xz
ice-0f565573fb5a32f5eb3cd72baf4d69717bb4b991.zip
Merge remote-tracking branch 'origin/master' into encoding11
Diffstat (limited to 'java/src')
-rw-r--r--java/src/Ice/PropertiesI.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/java/src/Ice/PropertiesI.java b/java/src/Ice/PropertiesI.java
index caaf2603a15..ff76acfb62e 100644
--- a/java/src/Ice/PropertiesI.java
+++ b/java/src/Ice/PropertiesI.java
@@ -457,7 +457,15 @@ public final class PropertiesI implements Properties
{
if(defaults != null)
{
- _properties = new java.util.HashMap<String, PropertyValue>(((PropertiesI)defaults)._properties);
+ //
+ // NOTE: we can't just do a shallow copy of the map as the map values
+ // would otherwise be shared between the two PropertiesI object.
+ //
+ //_properties = new java.util.HashMap<String, PropertyValue>(((PropertiesI)defaults)._properties);
+ for(java.util.Map.Entry<String, PropertyValue> p : (((PropertiesI)defaults)._properties).entrySet())
+ {
+ _properties.put(p.getKey(), new PropertyValue(p.getValue()));
+ }
}
boolean loadConfigFiles = false;