[ 
https://issues.apache.org/jira/browse/SHIRO-315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179025#comment-13179025
 ] 

Les Hazlewood commented on SHIRO-315:
-------------------------------------

While we aim to be 1.5-binary compatible, we are source 1.6 compatible.  I 
think we can resolve this issue.
                
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to