activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-3976) ActiveMQMessageProducer::send uses == instead of equals to compare destinations
Date Sat, 08 Sep 2012 09:17:07 GMT

     [ https://issues.apache.org/jira/browse/AMQ-3976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated AMQ-3976:
-----------------------------

    Fix Version/s: 5.7.0
    
> 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
>             Fix For: 5.7.0
>
>
> 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

Mime
View raw message