Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 90694 invoked from network); 16 Feb 2009 15:33:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 15:33:26 -0000 Received: (qmail 75828 invoked by uid 500); 16 Feb 2009 15:33:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 75758 invoked by uid 500); 16 Feb 2009 15:33:24 -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 75747 invoked by uid 99); 16 Feb 2009 15:33:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 07:33:24 -0800 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; Mon, 16 Feb 2009 15:33:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 62BC2234C48C for ; Mon, 16 Feb 2009 07:33:03 -0800 (PST) Message-ID: <261660418.1234798383403.JavaMail.jira@brutus> Date: Mon, 16 Feb 2009 07:33:03 -0800 (PST) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (DBCP-280) SequencedHashMap constructor calls overridable method; throws Error In-Reply-To: <1954707823.1232927579635.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/DBCP-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12673904#action_12673904 ] Phil Steitz commented on DBCP-280: ---------------------------------- I would like to leave the collections classes included in dbcp in exactly the same state that they were when incorporated unless and until a dbcp-impacting bug with one of these classes is identified. Both SequencedHashMap and LRUMap (the class actually used) have package scope and javadoc headers indicating their lineage and that they are not to be made public. I do not want us to take on maintaining forked versions unless and until we need to. > SequencedHashMap constructor calls overridable method; throws Error > ------------------------------------------------------------------- > > Key: DBCP-280 > URL: https://issues.apache.org/jira/browse/DBCP-280 > Project: Commons Dbcp > Issue Type: Bug > Reporter: Sebb > > The constructor SequencedHashMap(Map) calls the public non-final method putAll(). > This is likely to cause problems if the class is ever extended. Possible solution: extract the code into a common private method. > The next() method also throws an Error if the return type is unexpected. > It should probably return IllegalStateException or similar. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.