ATT Labs

An archive of

AT&T Laboratories
Cambridge

hosted in
conjunction
with

Cambridge University Computer Laboratory

The Digital Technology Group

Home Page

omniORB2 - problems inserting sequences containing sequences or aliases into Anys

Report number 12

Reported by Gary Duzan

Date 19 March 1998

Platforms All platforms

Version omniORB_2.5.0

Description Inserting a sequence containing a type which is an alias into an Any causes a CORBA::TypeCode::BadKind() exception to be thrown. Inserting a sequence containing a sequence of a different length may cause marshalling / unmarshalling problems when the Any is used.

Patch
Apply the following patch to src/lib/omniORB2/typecode.cc :
***************
*** 660,666 ****
  	  CORBA::tk_sequence)
  	{
  	  CORBA::TypeCode_var new_tc = member_tc->NP_aliasExpand();
! 	  return new CORBA::TypeCode(CORBA::tk_sequence,this->length(),
  				     *(new_tc.operator->()));
  	}
      }
--- 660,666 ----
  	  CORBA::tk_sequence)
  	{
  	  CORBA::TypeCode_var new_tc = member_tc->NP_aliasExpand();
! 	  return new CORBA::TypeCode(CORBA::tk_sequence,member_tc->length(),
  				     *(new_tc.operator->()));
  	}
      }



Action This patch will be incorporated in the next release.

[ omniORB main page | Technical details | Performance measurements |
Documentation | Download a free distribution ]

If you need more information, contact omniorb@uk.research.att.com. We'd like to hear from you.

Contact information
Copyright © 2002 AT&T Laboratories Cambridge