Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1984

o.a.c.environment.TemplateObjectModelHelper.ParametersMap does not override toString()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.1.11, 2.2
    • * Cocoon Core
    • None

    Description

      ...and as a result, the object displays as empty, e.g. when debugging in Eclipse. I added

               public String toString() {
               return wrappedParameters.toString();
              }

      and that fixed it. Although, I am puzzled as to why this class both extends the Avalon Parameters class and is implemented using a delegate ('wrappedParameters') of that type. Why is not extending Parameters enough? The delegate seems like an unnecessary complication.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            mlundquist2@comcast.net Mark Lundquist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: