[ 
https://issues.apache.org/jira/browse/COLLECTIONS-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16680163#comment-16680163
 ] 

Don Jeba commented on COLLECTIONS-701:
--------------------------------------

raised pr [https://github.com/apache/commons-collections/pull/57] as fix for 
this but CI build job is failing with error which is not related to my change. 
Can you kindly help on where i am going wrong, thank you!

[https://travis-ci.org/apache/commons-collections/jobs/452504978]

 

> SetUniqueList.add() crashes due to infinite recursion when it receives itself
> -----------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-701
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-701
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Collection
>    Affects Versions: 3.2.2
>            Reporter: Shin Hong
>            Priority: Critical
>
> Hi.
> We found that the following test case fails with a StackOverFlowError 
> exception:
> {code:java}
> test() {        
>    SetUniqueList l = new SetUniqueList(new LinkedList<Object>()) ;        
>    l.add((Object) l) ;    
> }{code}
> 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.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to