diff options
Diffstat (limited to 'TAO/tests/POA/POA_Destruction/POA_Destruction.cpp')
-rw-r--r-- | TAO/tests/POA/POA_Destruction/POA_Destruction.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp b/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp index 899d8fae6ee..501e0aa3bfd 100644 --- a/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp +++ b/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp @@ -22,13 +22,11 @@ class test_i : public POA_test { public: - void destroy_poa (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + void destroy_poa (void); }; void test_i::destroy_poa (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { PortableServer::POA_var poa = this->_default_POA (); @@ -65,7 +63,12 @@ main (int argc, char **argv) test_i servant; - test_var test_object = servant._this (); + PortableServer::ObjectId_var id = + root_poa->activate_object (&servant); + + CORBA::Object_var object_act = root_poa->id_to_reference (id.in ()); + + test_var test_object = test::_narrow (object_act.in ()); test_object->destroy_poa (); } |