Thanks for the PR @wltjr!
I've tried a local build with Java 8 and Guava 21.0 and it is still failing:
```bash
ibarrera@ibarrera:~/src/asf/jclouds $ mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T18:29:23+01:00)
Maven home: /opt/maven
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: /usr/java/jdk1.8.0_91/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.14.18-300.fc27.x86_64", arch: "amd64", family:
"unix"
```
And the failure:
```bash
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jclouds-core
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 358 source files to
/home/ibarrera/src/asf/jclouds/core/target/classes
/home/ibarrera/src/asf/jclouds/core/src/main/java/org/jclouds/reflect/Reflection2.java:199:
error: <anonymous org.jclouds.reflect.Reflection2$5$1> is not abstract and
does not override abstract method test(Invokable<?,?>) in Predicate
Optional<Invokable<?, ?>> constructor = tryFind(constructors,
new Predicate<Invokable<?, ?>>() {
^
/home/ibarrera/src/asf/jclouds/core/src/main/java/org/jclouds/reflect/Reflection2.java:267:
error: <anonymous org.jclouds.reflect.Reflection2$7$1> is not abstract and
does not override abstract method test(Invokable<?,?>) in Predicate
Optional<Invokable<?, ?>> method = tryFind(methods, new
Predicate<Invokable<?, ?>>() {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
```
It looks like the compiler is messing imports up and it is treating the
predicate passed to the `tyFind` method as a `java.util.Predicate` instead of
using the (properly imported) Guava one.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1180#issuecomment-366168595