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 230E298A6 for ; Wed, 25 Apr 2012 11:20:27 +0000 (UTC) Received: (qmail 83593 invoked by uid 500); 25 Apr 2012 11:20:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83562 invoked by uid 500); 25 Apr 2012 11:20:26 -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 83548 invoked by uid 99); 25 Apr 2012 11:20:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 11:20:26 +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; Wed, 25 Apr 2012 11:20:25 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EA15F438E2 for ; Wed, 25 Apr 2012 11:20:04 +0000 (UTC) Date: Wed, 25 Apr 2012 11:20:04 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <801169006.285.1335352804960.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <291646607.4515.1335179735350.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (DERBY-5704) Various cleanups in CoalesceTest 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-5704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen closed DERBY-5704. ------------------------------------- Resolution: Fixed Fix Version/s: 10.9.0.0 Issue & fix info: (was: Patch Available) Committed revision 1330195. > Various cleanups in CoalesceTest > -------------------------------- > > Key: DERBY-5704 > URL: https://issues.apache.org/jira/browse/DERBY-5704 > Project: Derby > Issue Type: Improvement > Components: Test > Affects Versions: 10.9.0.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.9.0.0 > > Attachments: d5704-1a.diff > > > I noticed a couple of things that could be cleaned up in CoalesceTest: > - It keeps statements in instance variables. These are closed in tearDown(), but not nulled out, so they are not gc'ed when the test completes. > - It has much code that follows the pattern > try { > s.execute(...); > } catch (SQLException sqle) { > assertSQLState(state, sqle); > } > which means it won't report a failure if the execution of the statement succeeds unexpectedly. -- 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