[omniORB] discarded typecode data in DynAny

Gary D. Duzan gdd0@gte.com
Wed, 18 Oct 2000 14:43:49 -0400


   I think the confusion here is between the omni2_8_0 CVS version
and the omni2_8_0_latest CVS version. The former has the code Roger
posted, while the latter has Sai-Lai's as shown below. Given the
date stamp on the 2.8.0 tar and the CVS log version dates, I'd
guess the tar contains the omni2_8_0 version, which doesn't have
the fix.
   So I guess the real answer is, it is fixed in omni2_8_0_latest.
Either check it out from CVS using that version tag or grab a
snapshot from:

  ftp://ftp.uk.research.att.com/pub/omniORB/omniORB_28_snapshots/omniORB-latest.tar.gz

					Gary Duzan
					Verizon Laboratories



In Message <3or95eyqat.fsf@neem.uk.research.att.com> ,
   Sai-Lai Lo <S.Lo@uk.research.att.com> wrote:

=>>>>>> 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
=>
=>