groovy
  1. groovy
  2. GROOVY-2312

DelegatingMetaClass does not display info about self in toString method

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1-rc-2
    • Fix Version/s: 1.1-rc-3
    • Component/s: groovy-jdk
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      0

      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()+ "]";
        }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Alex Tkachman
            Reporter:
            Adam Rinehart
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: