Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
3.2.2
-
None
-
Important
Description
Hi.
We found that the following test case fails with a StackOverFlowError exception:
test() { SetUniqueList l = new SetUniqueList(new LinkedList<Object>()) ; l.add((Object) l) ; }
The add() execution traps into an infinite recursion which crashes the program.
From the stack trace, we found that the infinite recursion occurs
at AbstractList.hashCode() since it invokes hashCode() of each of its elements.
Attachments
Issue Links
- is related to
-
JCR-4608 Upgrade to commons-collections4
- Closed
- links to