[
https://issues.apache.org/jira/browse/SHIRO-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maria Jurcovicova resolved SHIRO-315.
-------------------------------------
Resolution: Not A Problem
Fix Version/s: 1.2.0
Shiro aims to be 1.5-binary compatible and source 1.6 compatible. The trunk
satisfies this and is OK as is.
> 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
> Fix For: 1.2.0
>
> 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