diff options
author | Jose <jose@zeroc.com> | 2020-04-21 14:33:44 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2020-04-21 14:33:44 +0200 |
commit | 8db504dd873e73fe966306f016bfd16400ac4add (patch) | |
tree | 2fabeb49a13be6cc0ffb67f60975e6c796b8d61f /csharp | |
parent | Disable IceSSL with python/Ice/blobject - Close #810 (diff) | |
download | ice-8db504dd873e73fe966306f016bfd16400ac4add.tar.bz2 ice-8db504dd873e73fe966306f016bfd16400ac4add.tar.xz ice-8db504dd873e73fe966306f016bfd16400ac4add.zip |
Clone identity in Reference.changeIdentity - Close #645
Diffstat (limited to 'csharp')
-rw-r--r-- | csharp/src/Ice/Reference.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/csharp/src/Ice/Reference.cs b/csharp/src/Ice/Reference.cs index 45bde9eb1cb..e67b2b5fcca 100644 --- a/csharp/src/Ice/Reference.cs +++ b/csharp/src/Ice/Reference.cs @@ -149,7 +149,8 @@ namespace IceInternal return this; } Reference r = _instance.referenceFactory().copy(this); - r._identity = newIdentity; // Identity is a value type, therefore a copy of newIdentity is made. + // Identity is a reference type, therefore we make a copy of newIdentity. + r._identity = (Ice.Identity)newIdentity.Clone(); return r; } |