[ https://issues.apache.org/activemq/browse/AMQ-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Gies updated AMQ-2213: ------------------------------ Attachment: SessionEqualsTest.java Attached a JUnit test showing the error. > Equals method return wrong result for TopicSession / QueueSession > ----------------------------------------------------------------- > > Key: AMQ-2213 > URL: https://issues.apache.org/activemq/browse/AMQ-2213 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.2.0 > Environment: All > Reporter: Andreas Gies > 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. - You can reply to this email to add a comment to the issue online.