summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2429_Regression/ChildServant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_2429_Regression/ChildServant.cpp')
-rw-r--r--TAO/tests/Bug_2429_Regression/ChildServant.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/TAO/tests/Bug_2429_Regression/ChildServant.cpp b/TAO/tests/Bug_2429_Regression/ChildServant.cpp
new file mode 100644
index 00000000000..f6617bc55d9
--- /dev/null
+++ b/TAO/tests/Bug_2429_Regression/ChildServant.cpp
@@ -0,0 +1,30 @@
+// $Id$
+
+#include "ChildServant.h"
+
+ChildServant::ChildServant(CORBA::ORB_ptr orb)
+: orb_(CORBA::ORB::_duplicate(orb))
+{
+}
+
+void
+ChildServant::childMethod ()
+ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ // No-op
+}
+
+void
+ChildServant::parentMethod ()
+ACE_THROW_SPEC((CORBA::SystemException))
+{
+ // Just throw an exception
+ ACE_THROW (CORBA::INTERNAL ());
+}
+
+void
+ChildServant::shutdown ()
+ACE_THROW_SPEC((CORBA::SystemException))
+{
+ this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
+}