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

ToStringBuilder.appendSuper() should support parent class having different ToStringStyle

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Patch Needed
    • Component/s: lang.builder.*
    • Labels:
      None

      Description

      When using different ToStringStyles for base and child class, appendSuper does not work. This is due to prefix/suffix triming in ToStringStyle.appendToString which uses current style separators to trim and does not append if none is found. I think it should append raw string rather than nothing if separators are not found.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              beuss S├ębastien Le Ray
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: