weird semantics for the IR's create_interface



hi all, 

I have been playing with the Interface repository of ORBit lately.
I have fixed a few segfaults in my local copy and I will send a patch for
those later when I get something more useful working.

However, I am getting in some weird bug: I want to create a top-level interface
with CORBA::Container::create_interface.

To do so, I passed a zero-length sequence as base_interfaces parameter.

It happens that the ORBit implementation is checking explicitely in its code
for either a zero-length sequence or a NULL sequence and if so, refuses
to create the interface....

ie: code in (interfacedefseq_verify) called from impl_CORBA_interfaceDef__create.

As I see it, the correct fix is to make (interfacedefseq_verify) not check for a 
zero-length sequence and make its code be able to handle such zero-length sequence 
later.


Is this right ?

Mathieu
-- 
Mathieu Lacage <mathieu eazel com>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]