summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1676_Regression/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_1676_Regression/server.cpp')
-rw-r--r--TAO/tests/Bug_1676_Regression/server.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tests/Bug_1676_Regression/server.cpp b/TAO/tests/Bug_1676_Regression/server.cpp
index c6d906f0c61..edfe2b98049 100644
--- a/TAO/tests/Bug_1676_Regression/server.cpp
+++ b/TAO/tests/Bug_1676_Regression/server.cpp
@@ -67,8 +67,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var owner_transfer(hello_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (hello_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Hello_var hello =
- hello_impl->_this ();
+ Test::Hello::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (hello.in ());