@wltjr Could you confirm that the issue is still there with the Oracle JDK 1.8?
Which concrete version are you using, 1.8.0_102 as mentioned in the JIRA issue?
I wouldn't like to close this issue without understanding why it fails in your
environment. It looks like an issue in the type inference on your JDK version.
Instead of removing the generic from the variable declaration, could you try
declaring a variable so the type system has more information to infer the types
it needs? Something like:
```java
Class<? extends HandlerWithResult<?>> handler =
getSaxResponseParserClassOrNull(request.getInvocation().getInvokable());
if (handler != null) {
HandlerWithResult<?> h = injector.getInstance(handler);
transformer = parserFactory.create(h);
}
```
This way we explicitly set the type for the `injector.getInstance` result.
Let's see if this helps your compiler. If it works I think it is a better fix
than removing the generic. Could you give this a try?
--
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/1036#issuecomment-319904820