You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2011/03/07 23:50:59 UTC

[jira] Resolved: (AMQ-2213) Equals method return wrong result for TopicSession / QueueSession

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

Timothy Bish resolved AMQ-2213.
-------------------------------

    Resolution: Fixed

Fixed in trunk.

> Equals method return wrong result for TopicSession / QueueSession
> -----------------------------------------------------------------
>
>                 Key: AMQ-2213
>                 URL: https://issues.apache.org/jira/browse/AMQ-2213
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>         Environment: All
>            Reporter: Andreas Gies
>             Fix For: 5.5.0
>
>         Attachments: SessionEqualsTest.java
>
>
> 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.
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira