summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/FixedReference.java
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2009-08-13 07:23:13 +1000
committerMichi Henning <michi@zeroc.com>2009-08-13 07:23:13 +1000
commit221a549459b48c422995fee8e406c77e4064431d (patch)
tree256d25d34d4cb28fcfa39763dc0241b1bce0070b /java/src/IceInternal/FixedReference.java
parentFix FileUtil.cpp includes for windows. (diff)
downloadice-221a549459b48c422995fee8e406c77e4064431d.tar.bz2
ice-221a549459b48c422995fee8e406c77e4064431d.tar.xz
ice-221a549459b48c422995fee8e406c77e4064431d.zip
Bug 4192: Ice.ObjectPrx.ice_getIdentity
Changed ice_getIdentity(), ice_getContext(), and ice_getEndpoints() to return copies.
Diffstat (limited to 'java/src/IceInternal/FixedReference.java')
-rw-r--r--java/src/IceInternal/FixedReference.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/IceInternal/FixedReference.java b/java/src/IceInternal/FixedReference.java
index 52408822c7b..5da3bdef266 100644
--- a/java/src/IceInternal/FixedReference.java
+++ b/java/src/IceInternal/FixedReference.java
@@ -27,7 +27,7 @@ public class FixedReference extends Reference
public EndpointI[]
getEndpoints()
{
- return new EndpointI[0];
+ return _emptyEndpoints;
}
public String
@@ -279,6 +279,6 @@ public class FixedReference extends Reference
return super.hashCode();
}
-
private Ice.ConnectionI _fixedConnection;
+ private static EndpointI[] _emptyEndpoints = new EndpointI[0];
}