ATT Labs

AT&T Laboratories
Cambridge

Home page About Us Interactive research Software Opportunities

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 [email protected]. We'd like to hear from you.

For comments, suggestions and further information please contact us.
Copyright © 2001 AT&T Laboratories Cambridge