diff options
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 12 | ||||
-rw-r--r-- | TAO/tests/AMI/ami_test_i.cpp | 3 | ||||
-rw-r--r-- | TAO/tests/AMI/ami_test_i.h | 3 |
3 files changed, 16 insertions, 2 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index c57d0cf1e28..b2eeaa061f7 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,15 @@ +Thu May 11 09:00:00 2000 Michael Kircher <Michael.Kircher@mchp.siemens.de> + + * tests/AMI/ami_test_i.cpp, + tests/AMI/ami_test_i.h: Added the user exception DidTheRightThing to + the trow spec of the servant implementation. This fixed bug 521. + The problem was that the servant implementation did not enumerate the + exception in the throw spec. The server raised the system exception + instead of the given user exception, which lead at the client to the + conclusion that it demarshalled the exception wrongly. + The compilers should have complained about throwing an user exception when only + system exceptions were allowed in the throw spec. + Thu May 11 02:28:24 2000 Irfan Pyarali <irfan@cs.wustl.edu> * tao/Active_Object_Map.cpp diff --git a/TAO/tests/AMI/ami_test_i.cpp b/TAO/tests/AMI/ami_test_i.cpp index b47f57039a5..7c252242017 100644 --- a/TAO/tests/AMI/ami_test_i.cpp +++ b/TAO/tests/AMI/ami_test_i.cpp @@ -34,7 +34,8 @@ AMI_Test_i::foo (CORBA::Long_out out_l, CORBA::Long in_l, const char* in_str, CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)) + ACE_THROW_SPEC ((CORBA::SystemException, + A::DidTheRightThing)) { out_l = 931233; diff --git a/TAO/tests/AMI/ami_test_i.h b/TAO/tests/AMI/ami_test_i.h index 3c2c6b6908c..fb235968a52 100644 --- a/TAO/tests/AMI/ami_test_i.h +++ b/TAO/tests/AMI/ami_test_i.h @@ -39,7 +39,8 @@ public: CORBA::Long in_l, const char* in_str, CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)); + ACE_THROW_SPEC ((CORBA::SystemException, + A::DidTheRightThing)); void shutdown (CORBA::Environment&) ACE_THROW_SPEC ((CORBA::SystemException)); |