Spring Security
  1. Spring Security
  2. SEC-1578

ThreadLocalSecurityContextHolderStrategy.clearContext() should use ThreadLocal.remove()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 3.0.3, 3.1.0.M1
    • Fix Version/s: 3.0.4, 3.1.0.M2
    • Component/s: Core
    • Labels:
      None

      Description

      It appears that calling ThreadLocal.set(null) causes some memory problems that can be fixed as of JDK 1.5 using ThreadLocal.remove() It may be wise to update ThreadLocalSecurityContextHolderStrategy.clearContext() to use remove now that Spring Security relies on JDK 1.5. This is also consistent with other portions of Spring https://jira.springsource.org/browse/SPR-7441

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Rob Winch
            Reporter:
            Rob Winch
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: