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

EMC DSL is broken for some methods on Closure

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.4
    • 1.8-beta-2
    • None
    • None

    Description

      The Groovy EMC DSL breaks for method names within the Closure class:

      def o = new Object()
      o.metaClass {
        foo { 'foo' }
        curry { 'curry' }
        rcurry { 'rcurry' }
      }
      println o.foo()
      //println o.curry()   // MissingMethodException
      //println o.rcurry()  // MissingMethodException
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment