Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-922

Some renderers were not calling their "toString" methods in the "render" methods

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 2.1
    • Component/s: wtk
    • Labels:
    • Environment:
      All

      Description

      Most Renderer instances have the required "render" method and also a "toString" method. Since "render" can be complicated it is tempting to create a subclass and just change the "toString" method to do something special with the text (like using something besides "Object.toString()" to get the proper text). But, many of the renderers don't call the "toString(Object)" method from "render", but instead duplicate the logic in there. This renders the subclass approach ineffective. And there is no particular reason for having the "toString" method except for it to be used in "render".

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: