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

Move away from ThreadLocals

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              boris-petrov Boris Petrov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: