[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mico-devel
Subject:    MICO: MICO 2.3.1 patch
From:       Philippe.Merle () lifl ! fr
Date:       2000-04-26 7:33:09
[Download RAW message or body]

Hello,

Thanks to CorbaScript, I have despited a problem in the insertion
and extraction of strings into DynamicAny::DynAny created with
bounded string TypeCodes.

The following patch corrects this problem.
 
prompt> diff mico/orb/dynany_impl.cc.orig mico/orb/dynany_impl.cc

314c314,317
<     a <<= value;
---
> // This previous code doesn't correctly deal bounded string TypeCodes.
> //    a <<= value;
> // new code
>     a <<= CORBA::Any::from_string(value, utc->length());
607a611,615
> // This previous code doesn't correctly deal bounded string TypeCodes.
> //    char *value;
> //    if (!((CORBA::Any &)a >>= value))
> // new code
>     CORBA::TypeCode_var tc = a->type();
609c617
<     if (!((CORBA::Any &)a >>= value))
---
>     if (!((CORBA::Any &)a >>= CORBA::Any::to_string(value, tc->unalias()->length())))

A similar patch must be applied to insert_wstring and get_wstring operations.

A+
Philippe Merle
--
________________________________________________________________________________
Dr. Philippe Merle
Universite des Sciences et Technologies de Lille
UPRESA 8022 CNRS
Laboratoire d'Informatique Fondamentale de Lille  Tel:    (33) 03 20 43 47 21
U.F.R. I.E.E.A. batiment M3                       Fax:    (33) 03 20 43 65 66
59655 Villeneuve d'Ascq CEDEX France              E-Mail: merle@lifl.fr
						  Web: http://www.lifl.fr/~merle
					     See also: http://corbaweb.lifl.fr/
________________________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic