[
https://issues.jboss.org/browse/JBTM-2160?page=com.atlassian.jira.plugin....
]
Paul Robinson updated JBTM-2160:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
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:
{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 an 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