Derby
  1. Derby
  2. DERBY-5709

ResultSetFromPreparedStatementTest keeps references to non-default connections

    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

      ResultSetFromPreparedStatementTest keeps references to non-default connections in the fields c2 and c3. c2 is closed and nulled out in tearDown(). c3 is only closed. It should be nulled out too in order to allow gc of resources after test completion.

      1. d5709-1a.diff
        1.0 kB
        Knut Anders Hatlen

        Activity

        Hide
        Knut Anders Hatlen added a comment -

        Thanks, Kristian.
        Committed revision 1330127.

        Show
        Knut Anders Hatlen added a comment - Thanks, Kristian. Committed revision 1330127.
        Hide
        Kristian Waagan added a comment -

        +1

        Show
        Kristian Waagan added a comment - +1
        Hide
        Knut Anders Hatlen added a comment -

        Attached patch nulls out c3 field in tearDown().

        Show
        Knut Anders Hatlen added a comment - Attached patch nulls out c3 field in tearDown().

          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