Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 91491 invoked from network); 26 Nov 2007 15:40:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 15:40:12 -0000 Received: (qmail 89325 invoked by uid 500); 26 Nov 2007 15:40:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 89299 invoked by uid 500); 26 Nov 2007 15:40: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 89286 invoked by uid 99); 26 Nov 2007 15:40:00 -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 07:40:00 -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 15:39:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0DEBC714208 for ; Mon, 26 Nov 2007 07:39:43 -0800 (PST) Message-ID: <25073117.1196091583046.JavaMail.jira@brutus> Date: Mon, 26 Nov 2007 07:39:43 -0800 (PST) From: "Aaron Digulla (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_12545480 ] Aaron Digulla commented on DERBY-3227: -------------------------------------- I'm just proposing the most simple solution: Fix the bug at the source. Your proposal is surely possible but: a) it's on my time, b) I have to update it every time you change the API, c) you have no idea about my dependency, so you will make my life miserable by ignorance with every change you make, d) Not even commercial DB drivers make these methods final. I tried with DB2 (which even obfuscates the code), Oracle and MySQL. e) these methods are from the javax.sql.DataSource API which means they can't change anyway. f) All other DataSource implementations in Derby aren't final, either. g) I can no longer rely on the fact that my DataSource extends EmbeddedDataSource (instanceof will fail). Okay, I can live without g). PS: One of the biggest problems in Groovy is that String is final. We had to create our own GString class and we're doing insane stuff to make GString behave like String in every forseeable case (like when you call Java bytecode). > 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.