Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2160

ActivityHierarchy comparison fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.2
    • None
    • XTS
    • None

      To reproduce:

      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));
      

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

              paul.robinson@redhat.com Paul Robinson
              paul.robinson@redhat.com Paul Robinson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: