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 197E6111F9 for ; Fri, 16 May 2014 20:30:45 +0000 (UTC) Received: (qmail 73862 invoked by uid 500); 16 May 2014 16:58:27 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64646 invoked by uid 500); 16 May 2014 16:58:21 -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 90819 invoked by uid 99); 16 May 2014 16:40:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 16:40:19 +0000 Date: Fri, 16 May 2014 16:40:19 +0000 (UTC) From: "Ignat Alexeyenko (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COLLECTIONS-527) Please create a version commons-collections 3.x for jdk 8 compatibility 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-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ignat Alexeyenko updated COLLECTIONS-527: ----------------------------------------- Description: Could you make a 3.x or 3.2.x release compatible with JDK8 ? {code} org.apache.commons.collections.MultiMap { public Object remove(Object key, Object item); } {code} is not compatible with JDK's 8 Map {code} java.util.Map { boolean remove(Object key, Object value); } {code} This causes bugs in projects, who run jdk8 and even compilation failures - for these, who implement common's MultiMap. *Compilation Error* If anyone implement MultiMap in their code, code now fails to compile: {code} MyMultiHashMap.java:[11,7] error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map [ERROR] return type Object is not compatible with boolean {code} *Reasoning* JDK 8 is here and being adopted. collection-commons are not yet compatible with Java 8. For many big project switch to commons-collections 4.x is not an option - some transitional release version needs to be required. Alternative would be for companies to fork commons-collections and create their internal artifact. Why do it if the official compatibility version can be created? Thanks! was: Could you make a 3.x or 3.2.x release compatible with JDK8 ? {code} org.apache.commons.collections.MultiMap { public Object remove(Object key, Object item); } {code} is not compatible with JDK's 8 Map {code} java.util.Map { boolean remove(Object key, Object value); } {code} *Compilation Error* If anyone implement MultiMap in their code, code now fails to compile: {code} MyMultiHashMap.java:[11,7] error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map [ERROR] return type Object is not compatible with boolean {code} This causes bugs in projects, who run jdk8 and even compilation failures - for these, who implement common's MultiMap. *Reasoning* JDK 8 is here and being adopted. collection-commons are not yet compatible with Java 8. For many big project switch to commons-collections 4.x is not an option - some transitional release version needs to be required. Alternative would be for companies to fork commons-collections and create their internal artifact. Why do it if the official compatibility version can be created? Thanks! > Please create a version commons-collections 3.x for jdk 8 compatibility > ----------------------------------------------------------------------- > > Key: COLLECTIONS-527 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-527 > Project: Commons Collections > Issue Type: Bug > Reporter: Ignat Alexeyenko > Priority: Blocker > Labels: java8, jdk8 > Attachments: COLLECTIONS_3_2_BRANCH_COLLECTIONS_527.patch > > > Could you make a 3.x or 3.2.x release compatible with JDK8 ? > {code} > org.apache.commons.collections.MultiMap { > public Object remove(Object key, Object item); > } > {code} > is not compatible with JDK's 8 Map > {code} > java.util.Map { > boolean remove(Object key, Object value); > } > {code} > This causes bugs in projects, who run jdk8 and even compilation failures - for these, who implement common's MultiMap. > *Compilation Error* > If anyone implement MultiMap in their code, code now fails to compile: > {code} > MyMultiHashMap.java:[11,7] error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map > [ERROR] return type Object is not compatible with boolean > {code} > *Reasoning* > JDK 8 is here and being adopted. collection-commons are not yet compatible with Java 8. For many big project switch to commons-collections 4.x is not an option - some transitional release version needs to be required. > Alternative would be for companies to fork commons-collections and create their internal artifact. Why do it if the official compatibility version can be created? > Thanks! -- This message was sent by Atlassian JIRA (v6.2#6252)