summaryrefslogtreecommitdiff
path: root/java/src/Ice/_ObjectDelM.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/Ice/_ObjectDelM.java')
-rw-r--r--java/src/Ice/_ObjectDelM.java23
1 files changed, 21 insertions, 2 deletions
diff --git a/java/src/Ice/_ObjectDelM.java b/java/src/Ice/_ObjectDelM.java
index c2159fcf7ff..11aa5c80dbd 100644
--- a/java/src/Ice/_ObjectDelM.java
+++ b/java/src/Ice/_ObjectDelM.java
@@ -172,13 +172,28 @@ public class _ObjectDelM implements _ObjectDel
// upon initialization.
//
+ assert(__reference == null);
+ assert(__connection == null);
+
+ if(from.__connection != null)
+ {
+ from.__connection.incProxyCount();
+ }
+
+// Can not happen, __connection must be null.
+/*
+ if(__connection != null)
+ {
+ __connection.decProxyCount();
+ }
+*/
+
__reference = from.__reference;
__connection = from.__connection;
- __connection.incProxyCount();
}
- protected IceInternal.Connection __connection;
protected IceInternal.Reference __reference;
+ protected IceInternal.Connection __connection;
public void
setup(IceInternal.Reference ref)
@@ -187,6 +202,10 @@ public class _ObjectDelM implements _ObjectDel
// No need to synchronize, as this operation is only called
// upon initialization.
//
+
+ assert(__reference == null);
+ assert(__connection == null);
+
__reference = ref;
if(__reference.reverseAdapter != null)