[omniORB] create_union_tc fails with aliased discriminator types
David Riddoch
djr@uk.research.att.com
Tue, 15 Feb 2000 14:38:03 +0000 (GMT)
Hi Stephen,
Thanks for tracking down this problem. I've put a fix into CVS for 2.8
and 3pre (available externally tomorrow morning). Could you please
upgrade and check that it works okay?
Many thanks,
David
On Tue, 15 Feb 2000, Stephen Crawley wrote:
> I'm having difficulty creating a union TypeCode where the type of the
> discriminator is an alias (i.e. a typedef). The problem is with the
> label values for the union members. If I supply a label (i.e. an Any)
> whose TypeCode is the same as the discriminator TypeCode, the call to
> create_union_tc throws BAD_PARAM. Alternatively. if I supply a label
> value whose TypeCode is the base type of the discriminator, the call
> throws BAD_TYPECODE.
>
> I traced the behaviour of create_union_tc() using gdb and found that
> the problem appears to be in TypeCode_union_helper::extractLabel.
> The code doesn't appear to handle aliasing in the label value at all.