Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6703E97BB for ; Tue, 24 Apr 2012 10:17:57 +0000 (UTC) Received: (qmail 23372 invoked by uid 500); 24 Apr 2012 10:17:57 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 23168 invoked by uid 500); 24 Apr 2012 10:17:56 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 23142 invoked by uid 99); 24 Apr 2012 10:17:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 10:17:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 10:17:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3139A40C368 for ; Tue, 24 Apr 2012 10:17:34 +0000 (UTC) Date: Tue, 24 Apr 2012 10:17:34 +0000 (UTC) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Message-ID: <415720131.8929.1335262654202.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2146887115.8878.1335260974195.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5706) Clean up statements in CreateTableFromQueryTest MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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