Uploaded image for project: 'Hibernate ORM'
  1. HHH-11559

Fix tests catching exceptions without re-throwing them

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.8
    • Fix Version/s: 5.2.9
    • Component/s: testsuite
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      Some tests may not fail due to code like:

      Transaction tx = s.beginTransaction();
      try {
            ......
      	tx.commit();
      }
      catch (Exception e) {
      	if ( tx.isActive() ) {
      		tx.rollback();
      	}
      }
      

        Attachments

          Activity

            People

            • Assignee:
              dreab8 Andrea Boriero
              Reporter:
              dreab8 Andrea Boriero
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: