Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 62337 invoked from network); 26 Nov 2007 14:27:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 14:27:17 -0000 Received: (qmail 61320 invoked by uid 500); 26 Nov 2007 14:27:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 61290 invoked by uid 500); 26 Nov 2007 14:27:04 -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 61281 invoked by uid 99); 26 Nov 2007 14:27:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 06:27:04 -0800 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, 26 Nov 2007 14:26:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 56C56714211 for ; Mon, 26 Nov 2007 06:26:46 -0800 (PST) Message-ID: <21824129.1196087206353.JavaMail.jira@brutus> Date: Mon, 26 Nov 2007 06:26:46 -0800 (PST) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3227) Remove final from all getConnection() methods in EmbeddedDataSource In-Reply-To: <21955276.1196083363213.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-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545460 ] Knut Anders Hatlen commented on DERBY-3227: ------------------------------------------- I'm not sure it's a good idea to let applications rely on the ability to extend Derby's classes and override their methods. Would it be possible to work around this issue by writing a custom DataSource class that contains a reference to an EmbeddedDataSource to which it forwards all method calls? > Remove final from all getConnection() methods in EmbeddedDataSource > ------------------------------------------------------------------- > > Key: DERBY-3227 > URL: https://issues.apache.org/jira/browse/DERBY-3227 > Project: Derby > Issue Type: Improvement > Components: JDBC > Affects Versions: 10.3.1.4 > Reporter: Aaron Digulla > Priority: Minor > > The final modifier makes it impossible to wrap Derby connections in P6Spy, for example. > The network ClientDataSource doesn't use final, either. > Patch: Replace "public final Connection" with "public Connection" two times. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.