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

ProxyMetaClass.use method should return the result of the closure call

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6-rc-2, 1.5.8, 1.7-beta-1
    • None
    • None
    • Patch

    Description

      println "money proxy with method access : ${moneyProxy {1.euro() + 2.euro()}}"

      this method prints null where I would expect it printed result of the closure.
      moneyProxy is a static method which calls the ProxyMetaClass.use method ...

      attached a patch...

      Attachments

        1. patchfile.txt
          1 kB
          Murat Can ALPAY
        2. interceptorTestPatch.txt
          0.4 kB
          Murat Can ALPAY

        Activity

          People

            guillaume Guillaume Sauthier
            mcalpay Murat Can ALPAY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: