[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] Updated: (LANG-621) ReflectionToStringBuilder.toString does
From:       "Henri Yandell (JIRA)" <jira () apache ! org>
Date:       2010-06-30 3:03:50
Message-ID: 7336406.126361277867030923.JavaMail.jira () thor
[Download RAW message or body]


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

Henri Yandell updated LANG-621:
-------------------------------

    Fix Version/s: 3.1

Seems fair - setting for 3.1. Patches welcome if anyone feels like diving into this.

> ReflectionToStringBuilder.toString does not debug 3rd party object fields within \
>                 3rd party object
> -------------------------------------------------------------------------------------------------
>  
> Key: LANG-621
> URL: https://issues.apache.org/jira/browse/LANG-621
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.builder.*
> Affects Versions: 2.5
> Reporter: Philip Hodges
> Priority: Minor
> Fix For: 3.1
> 
> 
> {code:title=Reflect.java|borderStyle=solid}
> import org.apache.commons.lang.builder.ReflectionToStringBuilder;
> public class Reflect {
> public static void main(String[] args) {
> // "You can also use the builder to debug 3rd party objects:"
> // System.out.println("An object: " + \
> ReflectionToStringBuilder.toString(anObject)); // expected: \
> Reflect$Compound@a83b8a[instanceInt=67890,fixture=Reflect$Simple@1d1acd3[instanceInt=12345]]
>  // actual: Reflect$Compound@a83b8a[instanceInt=67890,fixture=Reflect$Simple@1d1acd3]
>  System.out.println(ReflectionToStringBuilder.toString(new Compound()));
> }
> static class Compound {
> private int instanceInt = 67890;
> private Simple fixture = new Simple();
> }
> static class Simple {
> private int instanceInt = 12345;
> }
> }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic