Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4384167

Marshalling exception for discriminated union idl types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • 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 ).



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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: