commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-874) appendSuper is broken if different ToStringStyle are used
Date Sat, 19 Oct 2013 18:08:45 GMT

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

Thomas Neidhart commented on LANG-874:
--------------------------------------

Changes type to Improvement as the current behavior is documented in javadoc.

> 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: Improvement
>          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 was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message