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

EMC DSL is broken for some methods on Closure

    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

        1. groovy4336_EMCDSL.patch
          4 kB
          Paul King

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: