commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15257] New: - Hierarchy support in ToStringBuilder.reflectionToString()
Date Wed, 11 Dec 2002 00:42:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15257>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15257

Hierarchy support in ToStringBuilder.reflectionToString()

           Summary: Hierarchy support in
                    ToStringBuilder.reflectionToString()
           Product: Commons
           Version: 1.0.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ggregory@seagullsw.com


I just discovered that the method ToStringBuilder.reflectionToString() does not 
work in a class hierarchy.

For example:

class A defines inst var a.
class B extends A defines inst var b.

new A().toString returns "a=..."
new B().toString returns "b=..."

when I expected new B().toString to return "a=...,b=..."

Can I use reflectionToString() to accomplish this?

Thank you for considering this request.

Gary

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message