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

Subclasses of groovy.lang.Closure can't be invoked like closures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0
    • 1.1-beta-1
    • groovy-jdk
    • None

    Description

      If you create a subclass of groovy.lang.Closure and try and invoke it like closure() you get MME for doCall() on the owner of the object. You have to instead do closure.call() which is annoying.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: