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

SubjectAwareExecutorService in shiro-core does not compile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.2.0
    • 1.2.0
    • 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

        1. extendingGenerics.patch
          2 kB
          Maria Jurcovicova

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: