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 "Kristian Waagan (JIRA)" <ji...@apache.org> on 2012/04/24 12:17:34 UTC

[jira] [Commented] (DERBY-5706) Clean up statements in CreateTableFromQueryTest

    [ https://issues.apache.org/jira/browse/DERBY-5706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260410#comment-13260410 ] 

Kristian Waagan commented on DERBY-5706:
----------------------------------------

Looks good, +1. I ran the test with and without the patch.
                
> Clean up statements in CreateTableFromQueryTest
> -----------------------------------------------
>
>                 Key: DERBY-5706
>                 URL: https://issues.apache.org/jira/browse/DERBY-5706
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d5706-1a.diff
>
>
> CreateTableFromQueryTest has a Statement field that it closes, but doesn't null out, in tearDown(). Since the field isn't nulled out, it cannot be garbage collected, and one Statement per test case will be left on the heap after completion.

--
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