You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2012/04/25 17:08:17 UTC

[jira] [Updated] (DERBY-5724) EncryptionKeyTest sometimes keeps reference to connection

     [ https://issues.apache.org/jira/browse/DERBY-5724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5724:
--------------------------------------

    Issue & fix info: Patch Available
            Assignee: Knut Anders Hatlen
             Summary: EncryptionKeyTest sometimes keeps reference to connection  (was: EncryptionKeyTest sometimes keep reference to connection)
    
> EncryptionKeyTest sometimes keeps reference to connection
> ---------------------------------------------------------
>
>                 Key: DERBY-5724
>                 URL: https://issues.apache.org/jira/browse/DERBY-5724
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5724-1a.diff
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira