Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
QPid Variants, and by extension message properties, of "integer" types cannot be converted to floating-point, even thought there is no obvious reason why this shouldn't be possible.
I found out about this when using a construct of the form
uint32 inValue=...;
message.setProperty("property", inValue);
in a message sender, and
double value=message.getProperties()["property"];
at the receiving end. This lead to an InvalidConversion exception, with the message
Cannot convert from uint32 to double (qpid/types/Variant.cpp:488)