From 09c2d013627c467c8a47cc27d1d41322df95a925 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Thu, 24 Jan 2019 14:53:47 +0100 Subject: Get rid of old emulated exception macros --- TAO/docs/ior_parsing.html | 6 +- TAO/docs/poa_migration.html | 41 ++++------ TAO/docs/releasenotes/trader.html | 154 ++++++++++++++++---------------------- 3 files changed, 79 insertions(+), 122 deletions(-) diff --git a/TAO/docs/ior_parsing.html b/TAO/docs/ior_parsing.html index a18b8e01f54..2aac6c8c8ac 100644 --- a/TAO/docs/ior_parsing.html +++ b/TAO/docs/ior_parsing.html @@ -112,9 +112,7 @@ HTTP_Parser::match_prefix (const char *ior_string) const
 CORBA::Object_ptr
 HTTP_Parser::parse_string (const char *ior,
-                           CORBA::ORB_ptr orb,
-                           CORBA::Environment &ACE_TRY_ENV)
-    ACE_THROW_SPEC ((CORBA::SystemException))
+                           CORBA::ORB_ptr orb)
 {
   // Parse IOR as if it was an http:-URL
   ACE_URL_Addr *url_addr =
@@ -127,7 +125,7 @@ HTTP_Parser::parse_string (const char *ior,
   // contents in:
   char *document_contents = ...;
 
-  return orb->string_to_object (document_contents, ACE_TRY_ENV);
+  return orb->string_to_object (document_contents);
 }
 
diff --git a/TAO/docs/poa_migration.html b/TAO/docs/poa_migration.html index 44bc8b521ad..4ec4384258c 100644 --- a/TAO/docs/poa_migration.html +++ b/TAO/docs/poa_migration.html @@ -109,22 +109,17 @@ method, usually written like this: class TAO_Export TAO_Thread_Policy : public POA_PortableServer::ThreadPolicy { - void destroy (CORBA_Environment &ACE_TRY_ENV); + void destroy (); }; void -TAO_Thread_Policy::destroy (CORBA::Environment &ACE_TRY_ENV) +TAO_Thread_Policy::destroy () { - PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV); - ACE_CHECK; + PortableServer::POA_var poa = this->_default_POA (); - PortableServer::ObjectId_var id = poa->servant_to_id (this, - ACE_TRY_ENV); - ACE_CHECK; + PortableServer::ObjectId_var id = poa->servant_to_id (this); - poa->deactivate_object (id.in (), - ACE_TRY_ENV); - ACE_CHECK; + poa->deactivate_object (id.in ()); // Commit suicide: must have been dynamically allocated. delete this; @@ -136,31 +131,23 @@ The correct implementation is:
 
-class TAO_Export TAO_Thread_Policy : public virtual PortableServer::RefCountServantBase,
-                                     public virtual POA_PortableServer::ThreadPolicy
+class TAO_Export TAO_Thread_Policy : public virtual POA_PortableServer::ThreadPolicy
 {
-  void destroy (CORBA_Environment &ACE_TRY_ENV);
+  void destroy ();
 };
 
 void
-TAO_Thread_Policy::destroy (CORBA::Environment &ACE_TRY_ENV)
+TAO_Thread_Policy::destroy ()
 {
-  //
   // Remove self from POA.  Because of reference counting, the POA
   // will automatically delete the servant when all pending requests
   // on this servant are complete.
-  //
 
-  PortableServer::POA_var poa = this->_default_POA (ACE_TRY_ENV);
-  ACE_CHECK;
+  PortableServer::POA_var poa = this->_default_POA ();
 
-  PortableServer::ObjectId_var id = poa->servant_to_id (this,
-                                                        ACE_TRY_ENV);
-  ACE_CHECK;
+  PortableServer::ObjectId_var id = poa->servant_to_id (this);
 
-  poa->deactivate_object (id.in (),
-                          ACE_TRY_ENV);
-  ACE_CHECK;
+  poa->deactivate_object (id.in ());
 }
 
 
@@ -169,13 +156,11 @@ One additional step required is to make the POA responsible for the servant after it has been registered with the POA:
-
   // Register with the POA.
-  PortableServer::ThreadPolicy_var result = new_thread_policy->_this (ACE_TRY_ENV);
+  PortableServer::ThreadPolicy_var result = new_thread_policy->_this ();
 
   // Give ownership of this servant to the POA.
-  new_thread_policy->_remove_ref (ACE_TRY_ENV);
-
+  new_thread_policy->_remove_ref ();
 
If you use the above approach of multiple inheritance, you must add diff --git a/TAO/docs/releasenotes/trader.html b/TAO/docs/releasenotes/trader.html index 0f011450388..175743ff7cd 100644 --- a/TAO/docs/releasenotes/trader.html +++ b/TAO/docs/releasenotes/trader.html @@ -15,7 +15,7 @@

The TAO transient Trading Service implements the COS TradingObject Service specification, and  conforms to the Linked Trader conformance criteria. This document -details how to use the TAO Trading Service from the following perspectives: +details how to use the TAO Trading Service from the following perspectives: