Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 55842 invoked from network); 28 Nov 2009 16:31:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Nov 2009 16:31:45 -0000 Received: (qmail 35813 invoked by uid 500); 28 Nov 2009 16:31:45 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 35692 invoked by uid 500); 28 Nov 2009 16:31:44 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 35468 invoked by uid 99); 28 Nov 2009 16:31:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Nov 2009 16:31:44 +0000 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; Sat, 28 Nov 2009 16:31:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ACFC2234C1EF for ; Sat, 28 Nov 2009 08:31:20 -0800 (PST) Message-ID: <678120449.1259425880707.JavaMail.jira@brutus> Date: Sat, 28 Nov 2009 16:31:20 +0000 (UTC) From: "Niall Pemberton (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (DBCP-310) SQLNestedException & use of initCause() with SQLException In-Reply-To: <2040562664.1259425760632.JavaMail.jira@brutus> 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/DBCP-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niall Pemberton updated DBCP-310: --------------------------------- Description: SQLNestedException in its current state is a hangover from supporting JDK 1.3 when there was no "initCause()" method. This implementation can now be greatly simplified with DBCP now having a minimum of JDK 1.4 Also SQLNestedException is deprecated and the following code has been used in a number of places {code} throw (SQLException )new SQLException(message).initCause(e) {code} DBCP is inconsistent though - sometimes using the above and sometimes using SQLNestedException. IMO SQLNestedException should be un-deprecated and used consistently everywhere - its now a simple implementation and I think the code is cleaner using it rather than the above. was: SQLNestedException in its current state is a hangover from supporting JDK 1.3 when there was no "initCause()" method. This implementation can now be greatly simplified with DBCP now having a minimum of JDK 1.4 Also SQLNestedException is deprecated and the following code has been used in a number of places {code} (SQLException )new SQLException(message).initCause(e) {code} DBCP is inconsistent though - sometimes using the above and sometimes using SQLNestedException. IMO SQLNestedException should be un-deprecated and used consistently everywhere - its now a simple implementation and I think the code is cleaner using it rather than the above. Priority: Minor (was: Major) Fix Version/s: 1.4 1.3 > SQLNestedException & use of initCause() with SQLException > --------------------------------------------------------- > > Key: DBCP-310 > URL: https://issues.apache.org/jira/browse/DBCP-310 > Project: Commons Dbcp > Issue Type: Improvement > Reporter: Niall Pemberton > Priority: Minor > Fix For: 1.3, 1.4 > > Attachments: SQLNestedException.patch > > > SQLNestedException in its current state is a hangover from supporting JDK 1.3 when there was no "initCause()" method. This implementation can now be greatly simplified with DBCP now having a minimum of JDK 1.4 > Also SQLNestedException is deprecated and the following code has been used in a number of places > {code} > throw (SQLException )new SQLException(message).initCause(e) > {code} > DBCP is inconsistent though - sometimes using the above and sometimes using SQLNestedException. IMO SQLNestedException should be un-deprecated and used consistently everywhere - its now a simple implementation and I think the code is cleaner using it rather than the above. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.