Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 95266 invoked from network); 18 Feb 2008 13:35:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2008 13:35:06 -0000 Received: (qmail 64254 invoked by uid 500); 18 Feb 2008 13:35:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 64220 invoked by uid 500); 18 Feb 2008 13:35:00 -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 64211 invoked by uid 99); 18 Feb 2008 13:35:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 05:35:00 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2008 13:34:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B6853234C04A for ; Mon, 18 Feb 2008 05:34:34 -0800 (PST) Message-ID: <720162917.1203341674746.JavaMail.jira@brutus> Date: Mon, 18 Feb 2008 05:34:34 -0800 (PST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3425) J2EEDataSourceTest throws away stack trace for many errors In-Reply-To: <24442732.1203181988590.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569896#action_12569896 ] Kristian Waagan commented on DERBY-3425: ---------------------------------------- The changes look good to me. They preserve the stack traces if an error occurs, and they also make the code cleaner. I ran the test without failures with the patch applied. +1 to commit > J2EEDataSourceTest throws away stack trace for many errors > ---------------------------------------------------------- > > Key: DERBY-3425 > URL: https://issues.apache.org/jira/browse/DERBY-3425 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.4.0.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Attachments: stack.diff > > > Many of the test cases in J2EEDataSourceTest call fail() from within a catch block. Instead, they should just let the exception be thrown and let JUnit handle it. This way the stack trace will be preserved. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.