Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.9-core
-
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