diff options
Diffstat (limited to 'TAO/tao/Typecode.cpp')
-rw-r--r-- | TAO/tao/Typecode.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/TAO/tao/Typecode.cpp b/TAO/tao/Typecode.cpp index 508f97f2c40..e4dedca4d79 100644 --- a/TAO/tao/Typecode.cpp +++ b/TAO/tao/Typecode.cpp @@ -31,7 +31,8 @@ ACE_RCSID (tao, CORBA_TypeCode::Bounds::Bounds (void) - : CORBA_UserException ("IDL:omg.org/CORBA/TypeCode/Bounds:1.0") + : CORBA_UserException ("IDL:omg.org/CORBA/TypeCode/Bounds:1.0", + "Bounds") { } @@ -72,8 +73,11 @@ void CORBA_TypeCode::Bounds::_tao_encode ( ACE_ENV_ARG_DECL ) const { - if (cdr << this->_id ()) - return; + if (cdr << this->_rep_id ()) + { + return; + } + ACE_THROW (CORBA::MARSHAL ()); } @@ -85,7 +89,8 @@ void CORBA_TypeCode::Bounds::_tao_decode (TAO_InputCDR & // **************************************************************** CORBA_TypeCode::BadKind::BadKind (void) - : CORBA_UserException ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0") + : CORBA_UserException ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0", + "BadKind") { } @@ -119,8 +124,11 @@ void CORBA_TypeCode::BadKind::_tao_encode ( ACE_ENV_ARG_DECL ) const { - if (cdr << this->_id ()) - return; + if (cdr << this->_rep_id ()) + { + return; + } + ACE_THROW (CORBA::MARSHAL ()); } |