summaryrefslogtreecommitdiff
path: root/java/src/Ice/ProxyIdentityKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/Ice/ProxyIdentityKey.java')
-rw-r--r--java/src/Ice/ProxyIdentityKey.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/Ice/ProxyIdentityKey.java b/java/src/Ice/ProxyIdentityKey.java
index a008ad63869..6bfe9b640ab 100644
--- a/java/src/Ice/ProxyIdentityKey.java
+++ b/java/src/Ice/ProxyIdentityKey.java
@@ -17,6 +17,7 @@ package Ice;
* @see ProxyIdentityCompare
* @see ProxyIdentityAndFacetCompare
* @see ProxyIdentityFacetKey
+ *
**/
public class ProxyIdentityKey
{
@@ -34,7 +35,9 @@ public class ProxyIdentityKey
// Cache the identity and its hash code.
//
_identity = proxy.ice_getIdentity();
- _hashCode = _identity.hashCode();
+ int h = 5381;
+ h = IceInternal.HashUtil.hashAdd(h, _identity);
+ _hashCode = h;
}
/**