You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <ji...@apache.org> on 2013/03/05 23:28:12 UTC
[jira] [Closed] (QPID-3636) getJMSReplyTo does not return null for
null ReplyTo property
[ https://issues.apache.org/jira/browse/QPID-3636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajith Attapattu closed QPID-3636.
----------------------------------
Resolution: Fixed
Pavel's patch as well as a fix for the root cause has been applied at http://svn.apache.org/r1453041
> 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
> Labels: addressing, jms-compliance
> Attachments: 0001-java-null-replyTo.patch, 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org