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

EncryptionKeyTest sometimes keeps reference to connection

    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

      EncryptionKeyTest has this code to clean up the connection:

      if (con != null && !con.isClosed())

      { con.rollback(); con.close(); con = null; }

      If the connection is already closed, it won't null out the reference. It should set con to null unconditionally.

        Attachments

        1. d5724-1a.diff
          0.9 kB
          Knut Anders Hatlen

          Activity

            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: