getJMSReplyTo does not return null for null ReplyTo property
------------------------------------------------------------
Key: QPID-3636
URL: https://issues.apache.org/jira/browse/QPID-3636
Project: Qpid
Issue Type: Bug
Components: Java Client
Affects Versions: 0.12
Reporter: Pavel Moravec
Priority: Minor
Attachments: JMSReplyToTest.tar.gz
Description of problem:
Java client library wrongly returns reply-to via Message::getJMSReplyTo method
for a message with setJMSReplyTo(null) called before.
How reproducible:
100%
Steps to Reproduce:
Use attached JUnit test. In short, the test performs:
1. msg.setJMSReplyTo(null);
2. producer.send(msg);
3. msg = consumer.receive();
4. msg.getJMSReplyTo() now returns:
:////?routingkey=''
Actual results:
msg.getJMSReplyTo() now returns:
:////?routingkey=''
Expected results:
msg.getJMSReplyTo() should return null
Additional info:
The root cause of the bug is in calling:
AMQMessageDelegate_0_10.java:
public Destination getJMSReplyTo()
{
ReplyTo replyTo = _messageProps.getReplyTo();
if (replyTo == null)
{
return null;
}
else
{
The _messageProps.getReplyTo() does not return null but "ReplyTo()".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]