summaryrefslogtreecommitdiff
path: root/TAO/tests/ICMG_Any_Bug/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/ICMG_Any_Bug/server.cpp')
-rw-r--r--TAO/tests/ICMG_Any_Bug/server.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tests/ICMG_Any_Bug/server.cpp b/TAO/tests/ICMG_Any_Bug/server.cpp
index 493fd63b985..41afe2146e6 100644
--- a/TAO/tests/ICMG_Any_Bug/server.cpp
+++ b/TAO/tests/ICMG_Any_Bug/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 ());