summaryrefslogtreecommitdiff
path: root/java/src/Ice/_ObjectDelM.java
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-01-15 17:09:27 +0000
committerMarc Laukien <marc@zeroc.com>2003-01-15 17:09:27 +0000
commit55dd48735c59cb92e8b5789665396959053723ed (patch)
tree24207c670c660a5ab327b9c776308408e84993a9 /java/src/Ice/_ObjectDelM.java
parentfix (diff)
downloadice-55dd48735c59cb92e8b5789665396959053723ed.tar.bz2
ice-55dd48735c59cb92e8b5789665396959053723ed.tar.xz
ice-55dd48735c59cb92e8b5789665396959053723ed.zip
fixes
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)