Derby
  1. Derby
  2. DERBY-5718

UniqueConstraintSetNullTest calls super.tearDown() too early

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      UniqueConstraintSetNullTest calls super.tearDown() first in its tearDown() method. After that, it opens a new connection and does some more cleanup. This connection is not closed or nulled out. If super.tearDown() had been called last, it would have been cleaned up correctly.

      1. d5718-1a.diff
        2 kB
        Knut Anders Hatlen

        Issue Links

          Activity

          Hide
          Knut Anders Hatlen added a comment -

          The attached patch makes the following changes:

          • Call super.tearDown() last in tearDown()
          • Use framework helper methods in setUp() and tearDown() to simplify and make resources freed automatically
          • Remove unused imports
          Show
          Knut Anders Hatlen added a comment - The attached patch makes the following changes: Call super.tearDown() last in tearDown() Use framework helper methods in setUp() and tearDown() to simplify and make resources freed automatically Remove unused imports
          Hide
          Knut Anders Hatlen added a comment -

          Committed revision 1330202.

          Show
          Knut Anders Hatlen added a comment - Committed revision 1330202.

            People

            • Assignee:
              Knut Anders Hatlen
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development