diff options
author | Michi Henning <michi@zeroc.com> | 2007-06-04 01:39:48 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-06-04 01:39:48 +0000 |
commit | ba3ee2294208c10e16169e4f10367fe9fccd5f50 (patch) | |
tree | 0fa70ea9d249e37bcb6a8abb6c3b8008c0f83499 /java/src/IceInternal/ReferenceFactory.java | |
parent | Fixed comment exceeding 132 character limit. (diff) | |
download | ice-ba3ee2294208c10e16169e4f10367fe9fccd5f50.tar.bz2 ice-ba3ee2294208c10e16169e4f10367fe9fccd5f50.tar.xz ice-ba3ee2294208c10e16169e4f10367fe9fccd5f50.zip |
Bug 1597.
Diffstat (limited to 'java/src/IceInternal/ReferenceFactory.java')
-rw-r--r-- | java/src/IceInternal/ReferenceFactory.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/src/IceInternal/ReferenceFactory.java b/java/src/IceInternal/ReferenceFactory.java index 8cd07cfa7c7..374d3549d25 100644 --- a/java/src/IceInternal/ReferenceFactory.java +++ b/java/src/IceInternal/ReferenceFactory.java @@ -546,12 +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) + { + 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) + { + 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"; |