anuragraghavan / franca

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

DBus transformation of Franca 'Integer' type leads to '?' #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Franca allows to define method parameters of type 'Integer'. The resulting DBus 
transformation results in arg='?'

Is 'Integer' a valid Franca type? The type is not mentioned in 'Franca IDL 
Reference' chapter.

Original issue reported on code.google.com by stefan.b...@gmail.com on 6 Jun 2014 at 7:54

GoogleCodeExporter commented 9 years ago
Solution proposal: the IntegerTypeConverter should be applied to Franca models 
before doing the Franca->DBus transformation.

Original comment by klaus.birken@gmail.com on 8 Jul 2014 at 12:45

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 29 Jul 2014 at 9:44

GoogleCodeExporter commented 9 years ago
Implementation hint: The transformation should apply 
IntegerTypeConverter.removeRangedIntegers(inputModel, true) before doing the 
actual transformation. This will remove all the "ranged integer" types from the 
input model and replace them by predefined integer types (e.g., UInt32 or Int8).

Please also add some new testcases for this to 
org.franca.connectors.dbus.tests, class Franca2DBusTests. In the model folder 
of the test plug-ins, add some fidl-files which use Integer datatypes as 
attributes, method in/out arguments, struct members and so on.

Original comment by klaus.birken@gmail.com on 26 Nov 2014 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 8 Dec 2014 at 10:43

GoogleCodeExporter commented 9 years ago
Implemented with commit 4d132d3 on develop.

Original comment by klaus.birken@gmail.com on 18 Dec 2014 at 2:53

GoogleCodeExporter commented 9 years ago

Original comment by klaus.birken@gmail.com on 19 Dec 2014 at 2:34