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 14447] New: - ToStringBuilder doesn't work well in subclasses
Date Mon, 11 Nov 2002 14:59:46 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=14447>.
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=14447

ToStringBuilder doesn't work well in subclasses

           Summary: ToStringBuilder doesn't work well in subclasses
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: afreeman@bd.com


The only mechanism in place to capture a superclass's toString() values in a 
sublcass is to use .append(super.toString()).  This of course does prefixes and 
suffixes the value with the package and class name.  In order to address this, 
perhaps a new .appendSuper(super.toString()) method is introduced that trims 
off the prefix and suffix of the super.toString() prior to appending.  A new 
constructor that automatically does this trimming could be added too.

--
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