diff options
author | Brent Eagles <brent@zeroc.com> | 2005-09-12 23:48:03 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-09-12 23:48:03 +0000 |
commit | 188f3831ee428bd8517345a30b76b2ab8ff8361b (patch) | |
tree | 2d131ebf4e082adc40de933b5a8af21e338a9e4b /java/src | |
parent | removing print statement (diff) | |
download | ice-188f3831ee428bd8517345a30b76b2ab8ff8361b.tar.bz2 ice-188f3831ee428bd8517345a30b76b2ab8ff8361b.tar.xz ice-188f3831ee428bd8517345a30b76b2ab8ff8361b.zip |
fixing bug 400
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/Ice/ObjectAdapterI.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/java/src/Ice/ObjectAdapterI.java b/java/src/Ice/ObjectAdapterI.java index 6ba0cc87d42..2627fb8348a 100644 --- a/java/src/Ice/ObjectAdapterI.java +++ b/java/src/Ice/ObjectAdapterI.java @@ -562,7 +562,7 @@ public final class ObjectAdapterI extends LocalObjectImpl implements ObjectAdapt checkForDeactivation(); IceInternal.Reference ref = ((ObjectPrxHelperBase)proxy).__reference(); - final IceInternal.EndpointI[] endpoints = ref.getEndpoints(); + IceInternal.EndpointI[] endpoints; try { @@ -575,11 +575,22 @@ public final class ObjectAdapterI extends LocalObjectImpl implements ObjectAdapt // return ir.getAdapterId().equals(_id); } + IceInternal.LocatorInfo info = ir.getLocatorInfo(); + if(info != null) + { + endpoints = info.getEndpoints(ir, new Ice.BooleanHolder()); + } + else + { + return false; + } } catch(ClassCastException e) { + endpoints = ref.getEndpoints(); } + // // Proxies which have at least one endpoint in common with the // endpoints used by this object adapter's incoming connection |