Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#78 Dynamic values creation works incorrectly for aliases

open
nobody
5
2007-11-27
2007-11-27
No

In IIOP.NET version 1.9.0 final, there seems to be a bug in typecode creation procedure for the structures whose members are aliases. For example,

// IDL
typedef sequence<octet> Blob;
struct S
{
Blob theBlob;
};

As the consequence, serialization and deserialization of such dynamic values works incorrectly.

We suggest the patch which solves the problem. Simply the method

internal override CustomAttributeBuilder[] GetAttributes()
{
return ((TypeCodeImpl)m_aliased).GetAttributes();
}

should be added to class AliasTC, which resides in source file TypeCode.cs.

Discussion

  • Patched version of TypeCode.cs source file

     
    Attachments