Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Async Execution Aspect compiler error when using ListenableFuture [SPR-12895] #17494
On aspect AnnotationAsyncExecutionAspect.aj the pointcut to intercept async annotations classes is as follows:
Which accepts Future or one of its subclasses as return type.
But then in the same class a compiler error is declared that only accepts Future:
This declarations causes that when I used something like:
Fails with a compiler error.
Also I cannot used the plain Future as then I cannot add callback handlers to the future. I always can call the task manager directly but as it seems that it is a feature that it is supported by the annotation I would prefer to do that as I'm using it in other places on the application without any issue.