[ 
https://issues.apache.org/jira/browse/SHIRO-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kalle Korhonen reassigned SHIRO-315:
------------------------------------

    Assignee: Kalle Korhonen

> SubjectAwareExecutorService in shiro-core does not compile
> ----------------------------------------------------------
>
>                 Key: SHIRO-315
>                 URL: https://issues.apache.org/jira/browse/SHIRO-315
>             Project: Shiro
>          Issue Type: Bug
>          Components: Authentication (log-in)
>    Affects Versions: 1.2.0
>            Reporter: Maria Jurcovicova
>            Assignee: Kalle Korhonen
>         Attachments: extendingGenerics.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to