jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-2503 MOP 2.0 design inflluencing issues
  • GROOVY-2686

Can't call a Closure in a Closure's Delegete

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.5.4
  • Fix Version/s: 3.0
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes

Description

def c = {foo()}
c.delegate = [foo: {println "bar"}]
c()

Gives a MissingMethodException when trying to call foo() in the closure

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    blackdrag blackdrag
    Reporter:
    John Wilson
Vote (0)
Watch (0)

Dates

  • Created:
    13/Mar/08 2:45 AM
    Updated:
    22/Oct/08 10:08 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.