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

ResultSetFromPreparedStatementTest keeps references to non-default connections

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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
        knutanders Knut Anders Hatlen added a comment -

        Attached patch nulls out c3 field in tearDown().

        Show
        knutanders Knut Anders Hatlen added a comment - Attached patch nulls out c3 field in tearDown().
        Hide
        kristwaa Kristian Waagan added a comment -

        +1

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

        Thanks, Kristian.
        Committed revision 1330127.

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development