You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/09/01 17:11:07 UTC
[jira] [Assigned] (AMQ-3976) ActiveMQMessageProducer::send uses ==
instead of equals to compare destinations
[ https://issues.apache.org/jira/browse/AMQ-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned AMQ-3976:
--------------------------------
Assignee: Claus Ibsen
> ActiveMQMessageProducer::send uses == instead of equals to compare destinations
> -------------------------------------------------------------------------------
>
> Key: AMQ-3976
> URL: https://issues.apache.org/jira/browse/AMQ-3976
> Project: ActiveMQ
> Issue Type: Bug
> Components: JMS client
> Affects Versions: 5.5.1
> Reporter: Lior Lipshitz
> Assignee: Claus Ibsen
> Priority: Minor
>
> In method
> send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive)
> The comparison destination == info.getDestination() in line 205 seems wrong.
> I think that destination.equals(info.getDestination()).
> Otherwise you get an exception "This producer can only send messages to QUEUE", even when both destination and info.getDestination() point to the same queue.
--
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