Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 14227 invoked from network); 16 Feb 2009 16:19:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 16:19:22 -0000 Received: (qmail 46008 invoked by uid 500); 16 Feb 2009 16:19:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 45944 invoked by uid 500); 16 Feb 2009 16:19:20 -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 45933 invoked by uid 99); 16 Feb 2009 16:19:20 -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 08:19:20 -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 16:19:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA671234C495 for ; Mon, 16 Feb 2009 08:18:59 -0800 (PST) Message-ID: <1978678530.1234801139959.JavaMail.jira@brutus> Date: Mon, 16 Feb 2009 08:18:59 -0800 (PST) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (COLLECTIONS-317) AbstractHashedMap(Map map) constructor calls overridable non-final method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org AbstractHashedMap(Map map) constructor calls overridable non-final method ------------------------------------------------------------------------- Key: COLLECTIONS-317 URL: https://issues.apache.org/jira/browse/COLLECTIONS-317 Project: Commons Collections Issue Type: Bug Components: Map Reporter: Sebb Priority: Minor The constructor AbstractHashedMap(Map map) calls the public non-final method putAll() from the same class. This is likely to cause problems if the method is ever overridden, as the parent may not have been completely initialised when the sub-class method is invoked. Possible solution: extract the code into a common private method. Or make the method final. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.