You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Timothy A. Bish (Jira)" <ji...@apache.org> on 2026/03/12 19:00:00 UTC

[jira] [Created] (QPIDJMS-622) JMSConsumer receiveBody should throw if message is a bare Message instance

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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org