[omniORB] discarded typecode data in DynAny
Sai-Lai Lo
S.Lo@uk.research.att.com
18 Oct 2000 19:09:30 +0100
>>>>> Roger Barnett writes:
>> Sai-Lai Lo writes:
>>
>> 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.
> Sorry, its from omniORB release 2.8.0
>From the 2.8 tree, this is what I have. As you can see, the original
typecode is passed on to the ctor.
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);
const TypeCode_base* aetc = TypeCode_base::NP_expand(ToTcBase_Checked(tc));
if( aetc->kind() != CORBA::tk_sequence )
throw CORBA::DynAny::TypeMismatch();
return new DynSequenceImpl(ToTcBase_Checked(CORBA::TypeCode::_duplicate(tc)),
DYNANY_ROOT);
}
--
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