Re: [collections] Problems compiling w/gentoo
sebb wrote: On 24 April 2014 19:29, Gary Gregory garydgreg...@gmail.com wrote: Should we fix 3.x for Java 8 and release? The fix works by renaming a public method so IMO is not appropriate for 3.x. It would break any existing code that used the remove method, requiring the user to edit their source and rebuild. AFAICT there is no nice solution here. I think we will just have to accept that 3.x cannot be used on Java 8. Seems to me that is better than breaking existing use of the library. IMHO it just cannot be compiled in Java 8, but existing code will run. You can even build your own stuff with Java 8 and a dependency to cc-3.x as long as you do not use the MultiValueMap or code that uses it internally hiding behind the Map interface. Maybe we should evaluate further what is actually broken in combination with a Java 8 runtime and the problem will manifest at runtime. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [collections] Problems compiling w/gentoo
Commons Collections 3.x doesn't compile with Java 8, there is a conflict with the new methods added to the Map interface. You may want to apply this patch used in Debian or switch to the version 4. http://sources.debian.net/src/libcommons-collections3-java/3.2.1-7/debian/patches/java8-compatibility.patch Emmanuel Bourg Le 18/04/2014 23:45, tenspd137 . a écrit : Hi all - I am using gentoo to install common-collections-3.2.1. I keep getting errors like: Buildfile: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build.xml init: [echo] commons-collections 3.2.1 prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build compile: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] Compiling 273 source files to /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiHashMap.java:334: error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object item) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiMap.java:69: error: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map [javac] public Object remove(Object key, Object item); [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:200: error: remove(Object,Object) in MultiKeyMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key1, Object key2) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:156: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object value) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] 4 errors Any thoughts why this might be occurring? Thanks! -Collin - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [collections] Problems compiling w/gentoo
Should we fix 3.x for Java 8 and release? Gary div Original message /divdivFrom: Emmanuel Bourg ebo...@apache.org /divdivDate:04/24/2014 13:45 (GMT-05:00) /divdivTo: Commons Users List user@commons.apache.org /divdivSubject: Re: [collections] Problems compiling w/gentoo /divdiv /divCommons Collections 3.x doesn't compile with Java 8, there is a conflict with the new methods added to the Map interface. You may want to apply this patch used in Debian or switch to the version 4. http://sources.debian.net/src/libcommons-collections3-java/3.2.1-7/debian/patches/java8-compatibility.patch Emmanuel Bourg Le 18/04/2014 23:45, tenspd137 . a écrit : Hi all - I am using gentoo to install common-collections-3.2.1. I keep getting errors like: Buildfile: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build.xml init: [echo] commons-collections 3.2.1 prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build compile: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] Compiling 273 source files to /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiHashMap.java:334: error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object item) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiMap.java:69: error: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map [javac] public Object remove(Object key, Object item); [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:200: error: remove(Object,Object) in MultiKeyMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key1, Object key2) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:156: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object value) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] 4 errors Any thoughts why this might be occurring? Thanks! -Collin - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [collections] Problems compiling w/gentoo
On 24 April 2014 19:29, Gary Gregory garydgreg...@gmail.com wrote: Should we fix 3.x for Java 8 and release? The fix works by renaming a public method so IMO is not appropriate for 3.x. It would break any existing code that used the remove method, requiring the user to edit their source and rebuild. AFAICT there is no nice solution here. I think we will just have to accept that 3.x cannot be used on Java 8. Seems to me that is better than breaking existing use of the library. Gary div Original message /divdivFrom: Emmanuel Bourg ebo...@apache.org /divdivDate:04/24/2014 13:45 (GMT-05:00) /divdivTo: Commons Users List user@commons.apache.org /divdivSubject: Re: [collections] Problems compiling w/gentoo /divdiv /divCommons Collections 3.x doesn't compile with Java 8, there is a conflict with the new methods added to the Map interface. You may want to apply this patch used in Debian or switch to the version 4. http://sources.debian.net/src/libcommons-collections3-java/3.2.1-7/debian/patches/java8-compatibility.patch Emmanuel Bourg Le 18/04/2014 23:45, tenspd137 . a écrit : Hi all - I am using gentoo to install common-collections-3.2.1. I keep getting errors like: Buildfile: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build.xml init: [echo] commons-collections 3.2.1 prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build compile: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] Compiling 273 source files to /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiHashMap.java:334: error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object item) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiMap.java:69: error: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map [javac] public Object remove(Object key, Object item); [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:200: error: remove(Object,Object) in MultiKeyMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key1, Object key2) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:156: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object value) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] 4 errors Any thoughts why this might be occurring? Thanks! -Collin - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
[collections] Problems compiling w/gentoo
Hi all - I am using gentoo to install common-collections-3.2.1. I keep getting errors like: Buildfile: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build.xml init: [echo] commons-collections 3.2.1 prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build compile: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] Compiling 273 source files to /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiHashMap.java:334: error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object item) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiMap.java:69: error: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map [javac] public Object remove(Object key, Object item); [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:200: error: remove(Object,Object) in MultiKeyMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key1, Object key2) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:156: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object value) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] 4 errors Any thoughts why this might be occurring? Thanks! -Collin
RE: [collections] Problems compiling w/gentoo
Known bug running commons-collections-3.2.1 on IBM JDK 1.5/1.6 https://www.mail-archive.com/dev@commons.apache.org/msg41702.html HTH Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Fri, 18 Apr 2014 15:45:17 -0600 Subject: [collections] Problems compiling w/gentoo From: dcday...@gmail.com To: user@commons.apache.org Hi all - I am using gentoo to install common-collections-3.2.1. I keep getting errors like: Buildfile: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build.xml init: [echo] commons-collections 3.2.1 prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build compile: [mkdir] Created dir: /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] Compiling 273 source files to /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/build/classes [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiHashMap.java:334: error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object item) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/MultiMap.java:69: error: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map [javac] public Object remove(Object key, Object item); [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiKeyMap.java:200: error: remove(Object,Object) in MultiKeyMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key1, Object key2) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] /var/tmp/portage/dev-java/commons-collections-3.2.1/work/commons-collections-3.2.1-src/src/java/org/apache/commons/collections/map/MultiValueMap.java:156: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map [javac] public Object remove(Object key, Object value) { [javac] ^ [javac] return type Object is not compatible with boolean [javac] 4 errors Any thoughts why this might be occurring? Thanks! -Collin