Michal Kasperek created QPID-8362:
-------------------------------------

             Summary: Messsage property of int8 type 
                 Key: QPID-8362
                 URL: https://issues.apache.org/jira/browse/QPID-8362
             Project: Qpid
          Issue Type: Bug
          Components: C++ Client
    Affects Versions: qpid-cpp-1.40.0
         Environment: Windows 10.

Library compiled with Visual Studio toolchain: msvc-12, 64 bits, Debug

qpid-cpp\src\qpid\messaging\ interface used.
            Reporter: Michal Kasperek
         Attachments: image-2019-09-25-13-46-54-001.png

Message sent with 'int8_t' value property is corrupted. The type is interpreted 
as long.

This issue is only observed with int8_t type.

...
 qpid::messaging::Sender m_sender;
 ...

const std::string msgString = "this is the message string";

auto msg = Message(msgString);
 Variant::Map content;

int8_t value = 1;
 content["CustomInt8"] = value;
 msg.setProperties(content);
 m_sender.send(msg, true);

!image-2019-09-25-13-46-54-001.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to