Derby
  1. Derby
  2. DERBY-5724

EncryptionKeyTest sometimes keeps reference to connection

    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

      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.

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

        Activity

          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