diff options
author | Marc Laukien <marc@zeroc.com> | 2003-01-15 17:09:27 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-01-15 17:09:27 +0000 |
commit | 55dd48735c59cb92e8b5789665396959053723ed (patch) | |
tree | 24207c670c660a5ab327b9c776308408e84993a9 /java/src/Ice/_ObjectDelM.java | |
parent | fix (diff) | |
download | ice-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.java | 23 |
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) |