[
https://issues.apache.org/jira/browse/SHIRO-315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13176692#comment-13176692
]
Les Hazlewood commented on SHIRO-315:
-------------------------------------
Applying this patch causes the build to fail.
Maria, could you please try it locally again?
Thanks,
Les
> 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