Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1291

ThreadLocalUtils blows up if a referenced ThreadLocal has been GC'ed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.9-core
    • 1.2.10-core
    • Archetype
    • None
    • All

    Description

      When iterating through the list of WeakReference<ThreadLocal>s to remove from the current thread, ThreadLocalUtils notices when a WeakReference is empty because the ThreadLocal has been GC'ed and attempts to remove the entry from the iterator so that we won't have to check it on the next request. Unfortunately, the iterator is backed by a CopyOnWriteArrayList, so this throws an UnsupportedOperationException

      Attachments

        1. JIRA_1291_12MAIN.patch
          1 kB
          Blake Sullivan

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            btsulliv Blake Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified