[jira] [Updated] (LANG-1319) MultilineRecursiveToStringStyle StackOverflowError when object is an array

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-1319) MultilineRecursiveToStringStyle StackOverflowError when object is an array

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/LANG-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Duncan Jones updated LANG-1319:
-------------------------------
    Assignee: Duncan Jones

> 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
>            Assignee: Duncan Jones
>
> 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)