Groovy
  1. Groovy
  2. GROOVY-2312

DelegatingMetaClass does not display info about self in toString method

    Details

    • Type: Bug Bug
    • Status: 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
    • Flags:
      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()+ "]";
        }

        Activity

        No work has yet been logged 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:

              Development