Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4443

Wrap rollback in exception handlers in try-catch

    Details

    • Urgency:
      Low
    • Issue & fix info:
      Newcomer

      Description

      Avoid this pattern everywhere:

      }catch(SQLException se)

      { //issue a rollback on any errors conn.rollback(); throw se; }

      because an error in rollback will shadow the original exception.

        Attachments

        1. derby-4443-7.patch
          10 kB
          Houx Zhang
        2. DERBY-4443-6-tmp.patch
          10 kB
          Houx Zhang
        3. DERBY-4443-5.patch
          10 kB
          Houx Zhang
        4. DERBY-4443-4.png
          15 kB
          Houx Zhang
        5. DERBY-4443-4.patch
          10 kB
          Houx Zhang
        6. DERBY-4443-3.patch
          8 kB
          Houx Zhang
        7. DERBY-4443-2.patch
          7 kB
          Houx Zhang
        8. DERBY-4443-1.patch
          7 kB
          Houx Zhang
        9. DERBY-4443.patch
          3 kB
          Houx Zhang

          Issue Links

            Activity

              People

              • Assignee:
                houxzhang Houx Zhang
                Reporter:
                digulla Aaron Digulla
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: