You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shiro.apache.org by "Lenny Primak (Jira)" <ji...@apache.org> on 2026/06/19 06:36:00 UTC

[jira] [Resolved] (SHIRO-796) Move away from ThreadLocals

     [ https://issues.apache.org/jira/browse/SHIRO-796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lenny Primak resolved SHIRO-796.
--------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

> Move away from ThreadLocals
> ---------------------------
>
>                 Key: SHIRO-796
>                 URL: https://issues.apache.org/jira/browse/SHIRO-796
>             Project: Shiro
>          Issue Type: Improvement
>    Affects Versions: 1.7.0
>            Reporter: Boris Petrov
>            Priority: Major
>              Labels: loom, threadlocal
>             Fix For: 3.0.0
>
>
> Somewhat related to https://issues.apache.org/jira/browse/SHIRO-763.
> Shiro is using thread local variables a lot but they are generally frowned-upon and also the upcoming Project Loom could have problems with them. Projects are encouraged to move away from thread locals. It would be nice for Shiro to also do that.
> Some references:
> [https://channel9.msdn.com/Events/Java/JDConf-2020/Prepare-for-What-Looms-Ahead]
> [https://www.javaadvent.com/2019/12/project-loom.html]
> [https://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org