Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5DE9610B41 for ; Mon, 3 Feb 2014 14:42:17 +0000 (UTC) Received: (qmail 85020 invoked by uid 500); 3 Feb 2014 14:42:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 84702 invoked by uid 500); 3 Feb 2014 14:42:11 -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 84641 invoked by uid 99); 3 Feb 2014 14:42:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 14:42:10 +0000 Date: Mon, 3 Feb 2014 14:42:10 +0000 (UTC) From: "Mark Thomas (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DBCP-364) BasicDataSourceFactory#createDataSource return signature should be BasicDataSourceFactory so that caller can invoke methods not declared in DataSource (e.g., close()) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DBCP-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Thomas resolved DBCP-364. ------------------------------ Resolution: Fixed Thanks for the report and sorry this has taken a while to fix. This is an API change so it will be included in 2.0 onwards only. > BasicDataSourceFactory#createDataSource return signature should be BasicDataSourceFactory so that caller can invoke methods not declared in DataSource (e.g., close()) > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DBCP-364 > URL: https://issues.apache.org/jira/browse/DBCP-364 > Project: Commons Dbcp > Issue Type: Improvement > Reporter: ori > Priority: Trivial > Fix For: 2.0 > > > BasicDataSourceFactory#createDataSource currently returns a DataSource instance. > It should a return type of BasicDataSourceFactory. Otherwise the caller has to cast it to invoke close (and other methods specific to the implementation). -- This message was sent by Atlassian JIRA (v6.1.5#6160)