[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-1865) In SessionState.beforeAborting() it wrongly assumes that all children in a SessionState to be ConsumerState, it could also be a ProducerState

Yong Hao Gao (JIRA) jira-events at lists.jboss.org
Tue May 17 07:54:00 EDT 2011


In SessionState.beforeAborting() it wrongly assumes that all children in a SessionState to be ConsumerState, it could also be a ProducerState
---------------------------------------------------------------------------------------------------------------------------------------------

                 Key: JBMESSAGING-1865
                 URL: https://issues.jboss.org/browse/JBMESSAGING-1865
             Project: JBoss Messaging
          Issue Type: Bug
            Reporter: Yong Hao Gao
            Assignee: Yong Hao Gao


This line:

ConsumerState conState = (ConsumerState)consumers.next();

could result in a class cast exception.

Need to add a check before casting.

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

        


More information about the jboss-jira mailing list