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

        Adam Rinehart created issue -
        Alex Tkachman made changes -
        Field Original Value New Value
        Assignee Alex Tkachman [ ait ]
        Alex Tkachman made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12731379 ] Default workflow, editable Closed status [ 12743286 ]
        Mark Thomas made changes -
        Patch Submitted Yes [ 10763 ]
        Flags Patch [ 10430 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12967546 ] Default workflow, editable Closed status [ 12975296 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development