Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17567

Transaction logic in WebJPATestCase servlet masks root cause of test failures

    XMLWordPrintable

Details

    Description

      The logic within the servlet used by this test case calls tx.commit() within a finally block. However, an exception is thrown from the try block, its exception handler triggers tx.setRollbackOnly(), which will cause the subsequent tx.commit() to fail, thus masking the original exception.

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: