[jbossts-issues] [JBoss JIRA] (JBTM-2160) ActivityHierarchy comparison fails

Paul Robinson (JIRA) issues at jboss.org
Mon Apr 28 14:42:33 EDT 2014


Paul Robinson created JBTM-2160:
-----------------------------------

             Summary: ActivityHierarchy comparison fails
                 Key: JBTM-2160
                 URL: https://issues.jboss.org/browse/JBTM-2160
             Project: JBoss Transaction Manager
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: XTS
            Reporter: Paul Robinson
            Assignee: Paul Robinson
             Fix For: 5.0.2


To reproduce:
To reproduce:

{code}
CoordinatorManager cm1 =  CoordinatorManagerFactory.coordinatorManager();
CoordinatorManager cm2 =  CoordinatorManagerFactory.coordinatorManager();

cm1.begin("Sagas11HLS");
ActivityHierarchy hierarchy1 = cm1.suspend();

cm2.begin("Sagas11HLS");
ActivityHierarchy hierarchy2 = cm2.suspend();

Assert.assertFalse(hierarchy1.equals(hierarchy2));
{code}

The assertion fails. It is caused by a broken isEqual method and also a omitted cast. See the fix for details.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossts-issues mailing list