[omniORB] bug report

Duncan Grisby duncan at grisby.org
Thu Oct 21 18:09:19 BST 2010


On Sun, 2010-10-17 at 12:50 +0300, hydrargentum wrote:

> I think i found bug in omniIDL compiler, that generate uncompilable code 
> on svalue operations.
> 
> valuetype VariableValue {
>                 public octet   type;
>                 public long    ivalue;
>                 public double  dvalue;
>                 public sequence<VariableValue> svalue;
> };
> 
> where can i submit them?

There is indeed a bug with the anonymous sequence. The attached patch
fixes it.

Anonymous sequences are generally considered bad form. The advised way
to write your valuetype is with a forward declaration, and that works
fine:

valuetype VariableValue;
typedef sequence<VariableValue> VariableValueSeq;

valuetype VariableValue {
                public octet   type;
                public long    ivalue;
                public double  dvalue;
                public VariableValueSeq svalue;
};

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --

-------------- next part --------------
A non-text attachment was scrubbed...
Name: anonymous_sequence.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20101021/82d27c5c/anonymous_sequence.bin


More information about the omniORB-list mailing list