It looks like the new JB branch of external/guava does not compile for
me with the sun java on Ubuntu 12.04. I get the following error:
external/guava/guava/src/com/google/common/collect/Maps.java:542:
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);
^
external/guava/guava/src/com/google/common/collect/Maps.java:543:
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);
^
external/guava/guava/src/com/google/common/collect/Maps.java:545:
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);
^
external/guava/guava/src/com/google/common/collect/Maps.java:547:
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);
^
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting