Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 12653 invoked from network); 24 Mar 2011 23:42:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 23:42:45 -0000 Received: (qmail 55938 invoked by uid 500); 24 Mar 2011 23:42:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 55907 invoked by uid 500); 24 Mar 2011 23:42:45 -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 55899 invoked by uid 99); 24 Mar 2011 23:42:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 23:42:45 +0000 X-ASF-Spam-Status: No, hits=-1999.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URIBL_RHS_DOB 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; Thu, 24 Mar 2011 23:42:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B98C64CA2A for ; Thu, 24 Mar 2011 23:42:05 +0000 (UTC) Date: Thu, 24 Mar 2011 23:42:05 +0000 (UTC) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Message-ID: <743703405.10240.1301010125756.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-4443) Wrap rollback in exception handlers in try-catch 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-4443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011014#comment-13011014 ] Bryan Pendleton commented on DERBY-4443: ---------------------------------------- Excellent! I am pleased that this approach appears to work. I think that we will want to include some comments in the header of the new test to describe the use of the Mock testing objects, and to briefly outline the use of the 'dvr.boot' method to install our new mock driver into the test. I think you should proceed with this work; it will be great to have the fix, and even better that we'll have a regression test. > Wrap rollback in exception handlers in try-catch > ------------------------------------------------ > > Key: DERBY-4443 > URL: https://issues.apache.org/jira/browse/DERBY-4443 > Project: Derby > Issue Type: Bug > Components: Demos/Scripts, Documentation, Eclipse Plug-in, JDBC, Network Client, Network Server, Replication, Services, SQL, Test, Tools > Affects Versions: 10.5.3.0 > Reporter: Aaron Digulla > Labels: derby_triage10_8 > Attachments: DERBY-4443-1.patch, DERBY-4443-2.patch, DERBY-4443-3.patch, DERBY-4443.patch > > > Avoid this pattern everywhere: > }catch(SQLException se){ > //issue a rollback on any errors > conn.rollback(); > throw se; > } > because an error in rollback will shadow the original exception. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira