anuragraghavan / franca

Automatically exported from code.google.com/p/franca
0 stars 0 forks source link

Definition of empty non-polymorphic structs. #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Franca allows definition of unions with no elements. When serializing such a 
union the union index is undefined.

A similiar problem with empty structs. DBus is not able to serialize structs 
with an undefined signature.

Original issue reported on code.google.com by stefan.b...@gmail.com on 27 Jan 2014 at 4:18

GoogleCodeExporter commented 9 years ago
Empty unions will be disallowed starting from 0.9.0, see issue 70, V1.

Polymorphic empty structs will not be forbidden, I guess there could be use 
cases where an empty polymorphic struct is used as root for an inheritance 
tree. This won't be a problem for the plain D-Bus transformation as well (it 
creates a "iv" from polymorphic structs). 

However, maybe we should disallow empty non-polymorphic structs. Thinking about 
this...

Original comment by klaus.birken@gmail.com on 4 Feb 2014 at 4:11

GoogleCodeExporter commented 9 years ago
We will disallow empty non-polymorphic structs by validation.

Original comment by klaus.birken@gmail.com on 19 Feb 2014 at 10:27

GoogleCodeExporter commented 9 years ago
Changed title from union to struct.

Original comment by klaus.birken@gmail.com on 4 Mar 2014 at 1:04

GoogleCodeExporter commented 9 years ago
Implemented by bddab78 on develop.

Original comment by klaus.birken@gmail.com on 4 Mar 2014 at 1:25

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 7 May 2014 at 4:11

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 25 Jan 2015 at 12:32