[jacorb-developer] IDL generator does not initialize typedef strings

Nick Cross jacorb at goots.org
Wed Nov 6 17:42:36 CET 2013


Hi,

Currently, this is its intended behaviour - but I agree it would be 
better if it was initialised to be the same as the other string.

Where does it cause a MARSHAL ?

Regards

Nick


On 04/11/13 09:08, Flock, Matthias wrote:
> We recently moved from another ORB to JacORB and are now facing a
> problem with the generation from IDL.
>
> For easier reading we use some string typedefs (small example):
>
> module IDL {
> 	typedef string PartId;
> 		
> 	struct MyStruct
> 	{
> 	   string name;
> 	   PartId id;
> 	};
> };
>
> In the generated java classes the field "name" is initialized with "",
> but the "id" is not, even though it is also a string in java. The other
> generator we used did also initialize them. This causes MARSHAL
> excpetions because of null values.
>
> Can the generation be changed via config or is this intended behaviour
> or is it a bug?
>
> Matthias
> _______________________________________________
> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>



More information about the jacorb-developer mailing list