Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2312

DelegatingMetaClass does not display info about self in toString method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1-rc-2
    • 1.1-rc-3
    • groovy-jdk
    • None
    • Patch

    Description

      In DelegatingMetaClass.java, the toString method only returns the delegates toString method. There is no indication that the delegate has been wrapped.

      Instead, it should return itself, followed by it's delegates toString method, similar to how MetaClassImpl does.

      /* (non-Javadoc)

      • @see java.lang.Object#toString()
        */
        public String toString() {
        return super.toString() + "[" + delegate.toString()+ "]";
        }

      Attachments

        Activity

          People

            ait Alex Tkachman
            johannz Adam Rinehart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: