-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Not A Problem
-
Affects Version/s: 1.2.0
-
Fix Version/s: 1.2.0
-
Component/s: Authentication (log-in)
-
Labels:None
The method invokeAny in SubjectAwareExecutorService has wrong type. SubjectAwareExecutorService implements ExecutorService interface.
ExecutorService:
<T> T invokeAny(Collection<Callable<T>> tasks)
SubjectAwareExecutorService:
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException {
Reason: It is not possible to override Collection<Callable<T>> tasks with Collection<? extends Callable<T>> tasks. Such override would not be typesafe.