look at the patch..
https://github.com/CyanogenMod/android_external_guava/commit/c8b97210aa31c9b80b5fd136d8617ebe4e731e09


On Tuesday, 10 July 2012 13:12:23 UTC+5:30, Sean McNeil wrote:
>
> 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

Reply via email to