ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-3635) StackOeverflowError in BinaryObject.toString()
Date Fri, 05 Aug 2016 21:53:20 GMT
Valentin Kulichenko created IGNITE-3635:

             Summary: StackOeverflowError in BinaryObject.toString()
                 Key: IGNITE-3635
                 URL: https://issues.apache.org/jira/browse/IGNITE-3635
             Project: Ignite
          Issue Type: Bug
          Components: binary
    Affects Versions: 1.7
            Reporter: Valentin Kulichenko
             Fix For: 1.8
         Attachments: Test.java

If the object field is a collection or map and one the elements in the collection is that
object (circular reference), stack overflow happens in {{toString}} method. This happens because
handles which are tracked when {{toString}} is called, are lost when {{Collection.toString()}}
is called. We should add special handling for collections and maps and print the out manually,
without delegating to their {{toString()}} method.

Test attached.

This message was sent by Atlassian JIRA

View raw message