diff options
author | Michi Henning <michi@zeroc.com> | 2007-06-04 02:15:31 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-06-04 02:15:31 +0000 |
commit | 77603bb15d512c7e6c35d2aa8f455816665c96c9 (patch) | |
tree | 3ec4f4fb42fcd3b0caa84a4005a22259da96aae4 /java/src/IceInternal/ReferenceFactory.java | |
parent | Bug 1597. (diff) | |
download | ice-77603bb15d512c7e6c35d2aa8f455816665c96c9.tar.bz2 ice-77603bb15d512c7e6c35d2aa8f455816665c96c9.tar.xz ice-77603bb15d512c7e6c35d2aa8f455816665c96c9.zip |
Bug 1597.
Diffstat (limited to 'java/src/IceInternal/ReferenceFactory.java')
-rw-r--r-- | java/src/IceInternal/ReferenceFactory.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/java/src/IceInternal/ReferenceFactory.java b/java/src/IceInternal/ReferenceFactory.java index d886185489f..17056538cb7 100644 --- a/java/src/IceInternal/ReferenceFactory.java +++ b/java/src/IceInternal/ReferenceFactory.java @@ -546,28 +546,24 @@ public final class ReferenceFactory if(properties.getProperty(property).length() != 0) { ref = ref.changeLocator(Ice.LocatorPrxHelper.uncheckedCast(_communicator.propertyToProxy(property))); - /* - if(ref.getType() == Reference::TypeDirect) + if(ref instanceof DirectReference) { String s = "`" + property + "=" + properties.getProperty(property) + "': cannot set a locator on a direct reference; setting ignored"; _instance.initializationData().logger.warning(s); } - */ } property = propertyPrefix + ".LocatorCacheTimeout"; if(properties.getProperty(property).length() != 0) { ref = ref.changeLocatorCacheTimeout(properties.getPropertyAsInt(property)); - /* - if(ref.getType() == Reference::TypeDirect) + if(ref instanceof DirectReference) { String s = "`" + property + "=" + properties.getProperty(property) + "': cannot set a locator cache timeout on a direct reference; setting ignored"; _instance.initializationData().logger.warning(s); } - */ } property = propertyPrefix + ".Router"; |