[
https://issues.apache.org/jira/browse/AMQ-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446730#comment-13446730
]
Claus Ibsen commented on AMQ-3976:
----------------------------------
I can see the code has not changed since the initial checkin of the source.
So you are the first to report this.
Do you have an unit test or use-case that was affected by this?
> 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
> 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