[
https://issues.apache.org/jira/browse/LANG-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13686942#comment-13686942
]
Duncan Jones commented on LANG-874:
-----------------------------------
This appears to be by design. The
[JavaDocs|http://commons.apache.org/proper/commons-lang/javadocs/api-3.1/org/apache/commons/lang3/builder/ToStringBuilder.html#appendSuper%28java.lang.String%29]
for {{appendSuper}} state:
bq. This method assumes that the superclass uses the same ToStringStyle as this
one.
> appendSuper is broken if different ToStringStyle are used
> ---------------------------------------------------------
>
> Key: LANG-874
> URL: https://issues.apache.org/jira/browse/LANG-874
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.builder.*
> Reporter: Sébastien Le Ray
>
> When using different ToStringStyles for base and child class, appendSuper
> does not work. This is due to prefix/suffix triming in
> ToStringStyle.appendToString which uses current style separators to trim and
> does not append if none is found. I think it should append raw string rather
> than nothing if separators are not found.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira