Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.2
-
None
-
Groovy 2.2
Maven 3 with eclipse compiler
Description
Groovy fails with the following error when compiling the hereafter function:
Groovy:unable to resolve class F
public static <F, T> FutureCallback<F> deferredCallback(DeferredResult<T> deferredResult, final Function<F, T> function) { return new FutureCallback<F>() { @Override void onSuccess(F result) { deferredResult.setResult(function.apply(result)) } }; }
See attachment for a test case org.issues.Issue3
May be linked to GROOVY-6167