You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Duncan Jones <du...@wortharead.com> on 2016/12/04 08:02:14 UTC

Re: [LANG] Support recursion in ReflectionToStringBuilder and deprecate RecursiveToStringStyle?

> On 24 Nov 2016, at 22:13, Pascal Schumacher <pa...@gmx.net> wrote:
> 
> Am 23.11.2016 um 21:29 schrieb Duncan Jones:
>> To create a deep toString() representation of an object, one must use a combination of ReflectionToStringBuilder and RecursiveToStringStyle. IMO this confuses behaviour and presentation. LANG-1249 is an example of the problems the original design can cause - it’s not clear from the ReflectionToStringBuilder documentation whether RecursiveToStringStyle is able or willing to take notice of the excluded fields for inner objects.
>> 
>> I propose that the recursion behaviour is governed by the builder, not the ToStringStyle.
> IMHO this makes sense.
> 
> -Pascal

Thanks, Pascal. Any thoughts on this from others?

Duncan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org