commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergiy Proskuryakov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1319) MultilineRecursiveToStringStyle StackOverflowError when object is an array
Date Thu, 06 Apr 2017 13:37:41 GMT
Sergiy Proskuryakov created LANG-1319:
-----------------------------------------

             Summary: MultilineRecursiveToStringStyle StackOverflowError when object is an
array 
                 Key: LANG-1319
                 URL: https://issues.apache.org/jira/browse/LANG-1319
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.builder.*
    Affects Versions: 3.5
            Reporter: Sergiy Proskuryakov



MultilineRecursiveToStringStyle style = new MultilineRecursiveToStringStyle();
String result = ToStringBuilder.reflectionToString(new String[] {"1","2"}, style);

java.lang.StackOverflowError
	at org.apache.commons.lang3.builder.ToStringStyle.appendStart(ToStringStyle.java:409)
	at org.apache.commons.lang3.builder.ToStringBuilder.<init>(ToStringBuilder.java:262)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.<init>(ReflectionToStringBuilder.java:481)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:300)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:157)
	at org.apache.commons.lang3.builder.RecursiveToStringStyle.appendDetail(RecursiveToStringStyle.java:74)
	at org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle.reflectionAppendArrayDetail(MultilineRecursiveToStringStyle.java:142)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.reflectionAppendArray(ReflectionToStringBuilder.java:633)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.appendFieldsIn(ReflectionToStringBuilder.java:538)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:711)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:301)
	at org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(ReflectionToStringBuilder.java:157)
	at org.apache.commons.lang3.builder.RecursiveToStringStyle.appendDetail(RecursiveToStringStyle.java:74)
	at org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle.reflectionAppendArrayDetail(MultilineRecursiveToStringStyle.java:142)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message