[ https://issues.apache.org/jira/browse/AMQ-6150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher L. Shannon resolved AMQ-6150. ----------------------------------------- Resolution: Fixed Fix Version/s: 5.14.0 5.13.1 Patch applied with thanks. For the ServerSessionPoolImpl class, it can only contain an ActiveMQSession, so deleting the else if checks for ActiveMQQueueSession and ActiveMQTopicSession is the right fix. > Found (and fixed) 3 instances of impossible casts in the activemq code > ---------------------------------------------------------------------- > > Key: AMQ-6150 > URL: https://issues.apache.org/jira/browse/AMQ-6150 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.13.0 > Reporter: Marc Breslow > Assignee: Christopher L. Shannon > Priority: Critical > Fix For: 5.13.1, 5.14.0 > > Attachments: 0001-Fix-Impossible-Cast-issues-in-MemoryTopicSub.patch, > 0002-Removed-2-conditions-from-ServerSessionPoolImpl-that.patch, > 0003-Remove-impossible-cast-in-MemoryMessageStore.patch > > > Running static analysis on activemq I was able to identify 3 instances of > impossible casts in the code. Attaching patch files to fix. -- This message was sent by Atlassian JIRA (v6.3.4#6332)