ActiveMQ
  1. ActiveMQ
  2. AMQ-2213

Equals method return wrong result for TopicSession / QueueSession

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.5.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      All

      Description

      The equals method return false even when it is executed on the same object for the specialized classes of Session (TopicSession, QueueSession). If those objects are held within a List, the contains method would return false even if the object in question is already in the list.

      This is a minor issue as the cleanups are normally done on the connection level and users shouldn't need to keep track of open sessions for a later cleanup.

        Activity

        Andreas Gies created issue -
        Hide
        Andreas Gies added a comment -

        Attached a JUnit test showing the error.

        Show
        Andreas Gies added a comment - Attached a JUnit test showing the error.
        Andreas Gies made changes -
        Field Original Value New Value
        Attachment SessionEqualsTest.java [ 17923 ]
        Rob Davies made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Bruce Snyder made changes -
        Fix Version/s 5.5.0 [ 12344 ]
        Fix Version/s 5.4.1 [ 12332 ]
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Dejan Bosanac made changes -
        Fix Version/s 5.5.0 [ 12315626 ]
        Fix Version/s 5.4.2 [ 12315625 ]
        Hide
        Timothy Bish added a comment -

        Fixed in trunk.

        Show
        Timothy Bish added a comment - Fixed in trunk.
        Timothy Bish made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Andreas Gies
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development