diff options
Diffstat (limited to 'TAO/tests/Bug_2186_Regression/Hello.cpp')
-rw-r--r-- | TAO/tests/Bug_2186_Regression/Hello.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/TAO/tests/Bug_2186_Regression/Hello.cpp b/TAO/tests/Bug_2186_Regression/Hello.cpp index 1a5a373af98..78f86cba94b 100644 --- a/TAO/tests/Bug_2186_Regression/Hello.cpp +++ b/TAO/tests/Bug_2186_Regression/Hello.cpp @@ -22,24 +22,23 @@ void Hello::shutdown (void) ACE_THROW_SPEC ((CORBA::SystemException)) { - this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER); + this->orb_->shutdown (0); } void -Hello::request_callback (Test::Hello_ptr call_me ACE_ENV_ARG_DECL) +Hello::request_callback (Test::Hello_ptr call_me) ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Making call back !!!\n")); - ACE_TRY + try { CORBA::String_var result = call_me->get_string (); } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Exception attempting to callback client obj ref: \n"); - ACE_RE_THROW; + ex._tao_print_exception ( + "Exception attempting to callback client obj ref: \n"); + throw; } - ACE_ENDTRY; ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Call back succeeded !!!\n")); } |