Skip to content

BEAM-4182 fix to allow JMSMessageId to be null#5238

Merged
jbonofre merged 1 commit into
apache:masterfrom
matzew:JMS_MESSAGE_ID_NULL
Apr 28, 2018
Merged

BEAM-4182 fix to allow JMSMessageId to be null#5238
jbonofre merged 1 commit into
apache:masterfrom
matzew:JMS_MESSAGE_ID_NULL

Conversation

@matzew
Copy link
Copy Markdown
Member

@matzew matzew commented Apr 27, 2018

the equals assumes that JMSMessageID is always present, but the spec if fine to have this being null:

Message header field references are restricted to JMSDeliveryMode,
JMSPriority, JMSMessageID, JMSTimestamp, JMSCorrelationID, and
JMSType. JMSMessageID, JMSCorrelationID, and JMSType values may be
null and if so are treated as a NULL value.


This PR removes the jmsmessageID from the equals since it can be actually null, see quoted SPEC text.

@matzew
Copy link
Copy Markdown
Member Author

matzew commented Apr 28, 2018

@jbonofre mind taking a look here ?

@jbonofre jbonofre self-requested a review April 28, 2018 11:15
Copy link
Copy Markdown
Member

@jbonofre jbonofre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks ! I'm merging.

@jbonofre jbonofre merged commit 6a5e5d9 into apache:master Apr 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants