[英]Guava 18 does not compile with GWT 2.8Snapshot and Java 8
我在我的gwt.xml模块中使用并放入
guava-18.0.jar
guava-gwt-18.0.jar
Tracing compile failure path for type 'com.google.common.collect.Collections2'
[ERROR] Errors in 'com/google/common/collect/Collections2.java'
[ERROR] Line 201: The method and(Predicate<capture#14-of ? super E>, Predicate<capture#15-of ?>) is undefined for the type Collections2.FilteredCollection<E>
[ERROR] Line 206: The method and(Predicate<capture#16-of ? super E>, Predicate<capture#17-of ?>) is undefined for the type Collections2.FilteredCollection<E>
Tracing compile failure path for type 'com.google.common.collect.Maps'
[ERROR] Errors in 'com/google/common/collect/super/com/google/common/collect/Maps.java'
[ERROR] Line 2244: The method and(Predicate<capture#263-of ? super Map.Entry<K,V>>, Predicate<capture#264-of ? super Map.Entry<K,V>>) is undefined for the type Predicates
[ERROR] Line 2343: The method and(Predicate<capture#265-of ? super Map.Entry<K,V>>, Predicate<capture#266-of ? super Map.Entry<K,V>>) is undefined for the type Predicates
Tracing compile failure path for type 'com.google.common.collect.Multimaps'
[ERROR] Errors in 'com/google/common/collect/super/com/google/common/collect/Multimaps.java'
[ERROR] Line 1691: The method and(Predicate<capture#83-of ? super K>, Predicate<capture#84-of ? super K>) is undefined for the type Predicates
[ERROR] Line 1954: The method and(Predicate<capture#105-of ? super Map.Entry<K,V>>, Predicate<capture#106-of ? super Map.Entry<K,V>>) is undefined for the type Predicates
[ERROR] Line 1735: The method and(Predicate<capture#87-of ? super K>, Predicate<capture#88-of ? super K>) is undefined for the type Predicates
[ERROR] Line 1779: The method and(Predicate<capture#91-of ? super K>, Predicate<capture#92-of ? super K>) is undefined for the type Predicates
[ERROR] Line 1940: The method and(Predicate<capture#103-of ? super Map.Entry<K,V>>, Predicate<capture#104-of ? super Map.Entry<K,V>>) is undefined for the type Predicates
[ERROR] Aborting compile due to errors in some input files
编辑:google GWT-Contributors组中有一个讨论她: https : //groups.google.com/forum/#!topic / google-web-toolkit-contributors/ zYUfanL8zwM
以下是此问题的问题: http : //code.google.com/p/google-web-toolkit/issues/detail?id = 9036
这个问题有解决方法吗?
编辑:我用Guava 19SNAPSHOT测试并得到了同样的错误。
这是GWT及其使用的JDT版本的已知问题 。
错误报告中给出的修复是升级jdt版本,运行update-jdt.py,并更新dev / build.xml以指向新版本。
或者,您可以尝试不同版本的番石榴,或者开始从番石榴中删除不起作用的方法/类。
或者您可以等到更新版本的gwt发布,这将解决这些问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.