Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3976

ActiveMQMessageProducer::send uses == instead of equals to compare destinations

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.5.1
    • 5.7.0
    • JMS client
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            peshitz Lior Lipshitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment