diff options
Diffstat (limited to 'java/src/IceInternal/Reference.java')
-rw-r--r-- | java/src/IceInternal/Reference.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/IceInternal/Reference.java b/java/src/IceInternal/Reference.java index d8a5f79102b..8fb52100283 100644 --- a/java/src/IceInternal/Reference.java +++ b/java/src/IceInternal/Reference.java @@ -64,7 +64,7 @@ public abstract class Reference implements Cloneable public final Ice.Communicator getCommunicator() { - return _instance.communicator(); + return _communicator; } public abstract boolean getSecure(); @@ -387,6 +387,7 @@ public abstract class Reference implements Cloneable } private Instance _instance; + private Ice.Communicator _communicator; private int _mode; private Ice.Identity _identity; @@ -400,6 +401,7 @@ public abstract class Reference implements Cloneable protected Reference(Instance inst, + Ice.Communicator communicator, Ice.Identity ident, java.util.Map ctx, String fac, @@ -413,6 +415,7 @@ public abstract class Reference implements Cloneable assert(fac != null); _instance = inst; + _communicator = communicator; _mode = md; _identity = ident; _hasContext = ctx != null && !ctx.isEmpty(); |