I hate to insist but...



Sorry to insist...

CORBA spec is unusually clear on this... A null object reference is
indicated by an empty set of profiles AND a string which contains only
a single terminating character (CORBA 2.3 section 13.6.2).  Therefore
this patch should be applied to ORBit2 if it cares about CORBA 2.3 
compliance...:

Index: corba-object.c
===================================================================
RCS file: /cvs/gnome/ORBit2/src/orb/orb-core/corba-object.c,v
retrieving revision 1.17
diff -u -r1.17 corba-object.c
--- corba-object.c	2001/01/09 16:45:47	1.17
+++ corba-object.c	2001/01/30 14:53:20
@@ -774,7 +774,7 @@
   if(obj)
     typeid = obj->type_id;
   else
-    typeid = "nil";
+    typeid = "";
   type_len = strlen(typeid) + 1;
   giop_send_buffer_append_indirect(buf, &type_len, 4);
   giop_send_buffer_append(buf, typeid, type_len);

Thanks,
	Paco

-- 
Francisco Moya Fernandez          Arquitectura y Tecnologia de Computadores
Prof. Ayudante de Facultad               Departamento de Informatica
fmoya inf-cr uclm es                 Escuela Superior de Informatica (CR)
Fax:(+34 926) 29 53 91                Universidad de Castilla La Mancha
Tel:(+34 926) 29 53 00 ext 3729          http://www.inf-cr.uclm.es/




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