Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-315

SubjectAwareExecutorService in shiro-core does not compile

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              kaosko Kalle Korhonen
              Reporter:
              meri Maria Jurcovicova
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: