Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-73

ToStringBuilder doesn't work well in subclasses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • None
    • None
    • Operating System: All
      Platform: All

    • 14447

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andy.w.freeman@gmail.com Andrew Freeman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: