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

ActivityHierarchy comparison fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 5.0.2
    • XTS
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: