You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Benjamin Marwell (Jira)" <ji...@apache.org> on 2020/03/29 14:22:00 UTC
[jira] [Commented] (SHIRO-475) Integrate with JDK7's ForkJoinPool
[ https://issues.apache.org/jira/browse/SHIRO-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070360#comment-17070360 ]
Benjamin Marwell commented on SHIRO-475:
----------------------------------------
[~jkemnade] is this still an issue? What exactly would this improve?
> Integrate with JDK7's ForkJoinPool
> ----------------------------------
>
> Key: SHIRO-475
> URL: https://issues.apache.org/jira/browse/SHIRO-475
> Project: Shiro
> Issue Type: Improvement
> Affects Versions: 1.2.2
> Reporter: Jochen Kemnade
> Priority: Major
>
> There are SubjectAwareExecutor and SubjectAwareExecutorService that wrap Runnables and Callables to be executed with the creating thread's security context.
> There is no such integration for JDK7's ForkJoinPool/Task.
> AFAICT, we'd have to hook into ForkJoinPool's exec method, but as it is protected, the delegate pattern that is used for SubjectRunnable and SubjectCallable cannot be applied here.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)