[omniORB] TypeCode::name() implementation

Alex Tingle alex.tingle at bronermetals.com
Tue Dec 7 11:27:53 GMT 2004


Hi Fred,

> Is it normal that the CORBA::TypeCode::name() unconditionally throw an
> exception

It doesn't. You are looking at the base class. Other more specialised 
TypeCode classes may return the type's name, if it has one.

-Alex Tingle

--
Dammit Jim, I'm a programmer... not a mind reader!
On 7 Dec 2004, at 08:27, Frederic Prin wrote:

> Hi Duncan,
>
> Is it normal that the CORBA::TypeCode::name() unconditionally throw an
> exception: CORBA::TypeCode::BadKind() is thrown by NP_name() which is
> called by name())
>
> The code in typecode.cc file is
>
> const char*
> TypeCode_base::NP_name() const
> {
>   throw CORBA::TypeCode::BadKind();
> #ifdef NEED_DUMMY_RETURN
>   return 0;
> #endif
> }
>
> I use omniORB-4.0.3 on Windows platform.
>
> Thanks
>
> FredP
>
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list