[omniORB] Patch for omniORB 2.8.0pre1 typecode.cc

Douglas Kosovic douglask@dstc.edu.au
Fri, 06 Aug 1999 15:35:30 +1000


Hi,

There is a minor bug with unions having enum labels. A CORBA::BAD_PARAM
exception gets thrown because of a missing 'break' in a switch
statement. See attached patch.

Doug.

*** src/lib/omniORB2/dynamic/typecode.cc	Fri Aug  6 15:13:38 1999
--- newsrc/lib/omniORB2/dynamic/typecode.cc	Fri Aug  6 15:13:51 1999
***************
*** 4680,4685 ****
--- 4680,4686 ----
  	// check that <label> is of the correct type
  	if( !tc->equivalent(lbl_tc) )
  	  throw CORBA::BAD_PARAM(0, CORBA::COMPLETED_NO);
+ 	break;
        }
      default:
        throw CORBA::BAD_PARAM(0, CORBA::COMPLETED_NO);