Marshalling exception for discriminated union idl types

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: other-libs
    • None
    • beta2
    • sparc
    • solaris_8
    • Not verified

        An attempt to marshall an idl union type with a discrminant generates a
        org.omg.CORBA.MARSHAL exception. For example,

        module IDLUnionBug {

            typedef short IdentityTokenType;

            const IdentityTokenType ITTAbsent = 0;
            const IdentityTokenType ITTAnonymous = 1;

            union IdentityToken switch ( IdentityTokenType ) {
                case ITTAbsent: boolean absent;
                case ITTAnonymous: boolean anonymous;
            };

        }; // IDLUnionBug

        The problem only occurs when the discriminant ( IdentityTokenType in the
        above example ) is aliased to an existing type ( short in the above
        example ).



              Assignee:
              Stefan Bauer (Inactive)
              Reporter:
              J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: