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 BAE13117A1 for ; Thu, 1 May 2014 11:34:35 +0000 (UTC) Received: (qmail 3010 invoked by uid 500); 1 May 2014 11:34:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 2889 invoked by uid 500); 1 May 2014 11:34:22 -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 2604 invoked by uid 99); 1 May 2014 11:34:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 11:34:17 +0000 Date: Thu, 1 May 2014 11:34:17 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COLLECTIONS-519) private constructors in utility classes break existing code 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/COLLECTIONS-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13986516#comment-13986516 ] Thomas Neidhart commented on COLLECTIONS-519: --------------------------------------------- The plan is to release 4.1 once COLLECTION-464 and COLLECTIONS-508 are resolved which should not take too long anymore. > private constructors in utility classes break existing code > ----------------------------------------------------------- > > Key: COLLECTIONS-519 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-519 > Project: Commons Collections > Issue Type: Bug > Affects Versions: 4.x > Reporter: Radoslav Paskalev > Fix For: 4.1 > > > Hello, > In collections version 4.x all utility classes (example ListUtils, MapUtils, PredicateUtils....) have private constructors. I consider this to be a serious bug, as it breaks any possibility the classes to be extended by the users. The javadoc says that constructors are private in order to prevent class instantiation but this object instantiation is not really problem and i think it is more important to allow classes to be extended. The possibility to extend utility classes was one of the major selling points of commons.lang and commons.collections projects. In the latest commons.lang project the utility classes still have public constructors. > Best Regards -- This message was sent by Atlassian JIRA (v6.2#6252)