Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69939 invoked from network); 23 Apr 2007 17:53:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2007 17:53:37 -0000 Received: (qmail 16490 invoked by uid 500); 23 Apr 2007 17:53:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 16459 invoked by uid 500); 23 Apr 2007 17:53:43 -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 16450 invoked by uid 99); 23 Apr 2007 17:53:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 10:53:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 10:53:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 59D27714046 for ; Mon, 23 Apr 2007 10:53:15 -0700 (PDT) Message-ID: <7926348.1177350795348.JavaMail.jira@brutus> Date: Mon, 23 Apr 2007 10:53:15 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2581) Callers of SanityManager.THROWASSERT should chain the exceptions when possible In-Reply-To: <14166774.1177350255549.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-2581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-2581: -------------------------------------- Attachment: chain.stat chain.diff The attached patch changes all the THROWASSERTs I found inside catch blocks so that the original exceptions are chained and preserved. Derbyall and suites.All passed. > Callers of SanityManager.THROWASSERT should chain the exceptions when possible > ------------------------------------------------------------------------------ > > Key: DERBY-2581 > URL: https://issues.apache.org/jira/browse/DERBY-2581 > Project: Derby > Issue Type: Improvement > Affects Versions: 10.3.0.0 > Reporter: Knut Anders Hatlen > Assigned To: Knut Anders Hatlen > Priority: Minor > Attachments: chain.diff, chain.stat > > > Some places in the code where SanityManager.THROWASSERT is used to wrap unexpected exceptions, the underlying exception is not linked to the assert exception. Therefore, the original stack trace, and possibly the message text, are lost. THROWASSERT(Throwable) or THROWASSERT(String,THROWABLE) should be used instead in these cases. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.