summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/ReferenceFactory.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2007-06-04 03:34:04 +0000
committerMichi Henning <michi@zeroc.com>2007-06-04 03:34:04 +0000
commit58f479edb7affbe63b8e19bf1d8e7cbcdcb806e5 (patch)
tree4bdb01d5c3bef762ad0d79189151dcaa0d5c3971 /cppe/src/IceE/ReferenceFactory.cpp
parentBug 1597. (diff)
downloadice-58f479edb7affbe63b8e19bf1d8e7cbcdcb806e5.tar.bz2
ice-58f479edb7affbe63b8e19bf1d8e7cbcdcb806e5.tar.xz
ice-58f479edb7affbe63b8e19bf1d8e7cbcdcb806e5.zip
Bug 1597.
Diffstat (limited to 'cppe/src/IceE/ReferenceFactory.cpp')
-rw-r--r--cppe/src/IceE/ReferenceFactory.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cppe/src/IceE/ReferenceFactory.cpp b/cppe/src/IceE/ReferenceFactory.cpp
index 571b9628834..d5d191c0dad 100644
--- a/cppe/src/IceE/ReferenceFactory.cpp
+++ b/cppe/src/IceE/ReferenceFactory.cpp
@@ -563,6 +563,12 @@ IceInternal::ReferenceFactory::createFromProperties(const string& propertyPrefix
{
ref = ref->changeLocator(
LocatorPrx::uncheckedCast(_communicator->propertyToProxy(property)));
+ if(ref->getType() == Reference::TypeDirect)
+ {
+ Warning out(_instance->initializationData().logger);
+ out << "`" << property << "=" << properties->getProperty(property)
+ << "': cannot set a locator on a direct reference; setting ignored";
+ }
}
#endif