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

Call myBean.myClosure() as a method call

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-1
    • 1.0-beta-7
    • None
    • None

    Description

      Currently, if a class has a closure field, it can't be used as if it were a method call:

      class MyBean { methClosure = { println "hello"}}
      mb = new MyBean()
      mb.methClosure() // throws a MissingPropertyException

      My provider patch will allow that to work.

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: