[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#555684: Gradle doesn't depend on guava-libraries



owner 555684 !
thanks

On Fri, Aug 27, 2010 at 09:38:00AM -0430, Miguel Landaeta wrote:
> Updating libgoogle-collections to 1.0 should do the trick.

Sooner or later I'm going to need this package, so I decided to
complete Guava packaging.

It is available at git://git.debian.org/pkg-java/guava-libraries.git.

However, currently Guava seems to FTBFS with OpenJDK:

src/main/java/com/google/common/collect/SortedMaps.java:219: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
found   : <K,V>java.util.TreeMap<K,V>
required: java.util.SortedMap<K,V>
   SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator);
                                               ^
src/main/java/com/google/common/collect/SortedMaps.java:220: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
found   : <K,V>java.util.TreeMap<K,V>
required: java.util.SortedMap<K,V>
   SortedMap<K, V> onlyOnRight = Maps.newTreeMap(comparator);
                                                ^
src/main/java/com/google/common/collect/SortedMaps.java:222: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
found   : <K,V>java.util.TreeMap<K,V>
required: java.util.SortedMap<K,V>
   SortedMap<K, V> onBoth = Maps.newTreeMap(comparator);
                                           ^
src/main/java/com/google/common/collect/SortedMaps.java:224: incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,com.google.common.collect.MapDifference.ValueDifference<V>>
found   : <K,V>java.util.TreeMap<K,V>
required: java.util.SortedMap<K,com.google.common.collect.MapDifference.ValueDifference<V>>
       Maps.newTreeMap(comparator);
                      ^

4 errors


I'll take a closer look at that later. Any help is welcome.

-- 
Miguel Landaeta, miguel at miguel.cc
secure email with PGP 0x7D8967E9 available at http://keyserver.pgp.com/
"Faith means not wanting to know what is true." -- Nietzsche



Reply to: