Timothy A. Bish created QPIDJMS-622:
---------------------------------------
Summary: JMSConsumer receiveBody should throw if message is a bare
Message instance
Key: QPIDJMS-622
URL: https://issues.apache.org/jira/browse/QPIDJMS-622
Project: Qpid JMS
Issue Type: Bug
Components: qpid-jms-client
Affects Versions: 1.16.0, 2.10.0
Reporter: Timothy A. Bish
Assignee: Timothy A. Bish
Fix For: 2.11.0
According the the specification when calling JMSConsumer#receiveBody methods
the base Message and StreamMessage types should result in an
MessageFormatRuntimeException but we currently call straight into
Message::getBody which by spec does allow calls and returns null for all types.
Due to this disparity we need to handle the call in JMSConsumer differently
and check that the messages are in fact in the set of allowed JMS message types
we can access via getBody calls on the message.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]