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

InbetweenTest holds on to resources after completion

    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

      InbetweenTest keeps connections, statements and result sets in instance variables, but never clears the variables, so they are kept forever.

      1. d5715-1a.diff
        15 kB
        Knut Anders Hatlen

        Activity

        Hide
        knutanders Knut Anders Hatlen added a comment -

        The attached patch removes the instance variables from InbetweenTest and makes it use local variables instead. This makes the objects eligible for gc once the test has completed.

        Show
        knutanders Knut Anders Hatlen added a comment - The attached patch removes the instance variables from InbetweenTest and makes it use local variables instead. This makes the objects eligible for gc once the test has completed.
        Hide
        knutanders Knut Anders Hatlen added a comment -

        Committed revision 1330206.

        Show
        knutanders Knut Anders Hatlen added a comment - Committed revision 1330206.

          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