diff options
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/Ice/ObjectAdapterI.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/java/src/Ice/ObjectAdapterI.java b/java/src/Ice/ObjectAdapterI.java index be4dab3148e..bef2d109e3e 100644 --- a/java/src/Ice/ObjectAdapterI.java +++ b/java/src/Ice/ObjectAdapterI.java @@ -103,7 +103,14 @@ public class ObjectAdapterI implements ObjectAdapter throw new ObjectAdapterDeactivatedException(); } - _activeServantMap.put(ident, servant); + // + // Create a copy of the Identity argument, in case the caller + // reuses it + // + Identity id = new Identity(); + id.category = ident.category; + id.name = ident.name; + _activeServantMap.put(id, servant); return newProxy(ident); } |