[omniORB] discarded typecode data in DynAny

Sai-Lai Lo S.Lo@uk.research.att.com
18 Oct 2000 15:59:29 +0100


As I've said, the code no longer alias expand since 2.8. You don't state
what version your fragment is taken from, my guess is it is pre-2.8.

Sai-Lai

>>>>> Roger Barnett writes:

> The code I am having to work round (almost there!) is of the form:

> CORBA::DynSequence_ptr
> CORBA::ORB::create_dyn_sequence(TypeCode_ptr tc)
> {
>   if (!CORBA::TypeCode::PR_is_valid(tc))
>     throw CORBA::BAD_PARAM(0,CORBA::COMPLETED_NO);

>   TypeCode_base* aetc = TypeCode_base::aliasExpand(ToTcBase_Checked(tc));

>   if( aetc->kind() != CORBA::tk_sequence ) {
>     CORBA::release(aetc);
>     throw CORBA::DynAny::TypeMismatch();
>   }

>   return new DynSequenceImpl(aetc, DYNANY_ROOT);
> }

> [ this taken from DynAny.cc ]


> If the sequence is typedef'd  (the normal case) then this info
> is reflected in the parameter tc but is not present in the created
> DynSequence.


> If this is no longer the case in omniORB 3.x then please let me know.

-- 
Sai-Lai Lo                                   S.Lo@uk.research.att.com
AT&T Laboratories Cambridge           WWW:   http://www.uk.research.att.com 
24a Trumpington Street                Tel:   +44 1223 343000
Cambridge CB2 1QA                     Fax:   +44 1223 313542
ENGLAND