Shiro
  1. Shiro
  2. SHIRO-315

SubjectAwareExecutorService in shiro-core does not compile

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

      1. extendingGenerics.patch
        2 kB
        Maria Jurcovicova

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development