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-3345

Proxy of a Proxy Fails

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.6-rc-2
  • Fix Version/s: 1.6.1, 1.5.8, 1.7-beta-1
  • Component/s: groovy-jdk
  • Labels:
    None
  • Testcase included:
    yes

Description

import groovy.util.Proxy

class Proxy1 extends Proxy {
def foo() { println "Foo" }
}

class Proxy2 extends Proxy {
def bar() { println "Bar" }
}

class Obj {
def baz() { println "Baz" }
}

def proxy1 = new Proxy1()
def proxy2 = new Proxy2()
proxy1.adaptee = proxy2
proxy2.adaptee = new Obj()

proxy1.baz() // Explodes – No signature of method: Proxy2.baz() is applicable for argument types: () values: []

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
blackdrag blackdrag added a comment - 09/Feb/09 5:44 AM

fixed

Show
blackdrag blackdrag added a comment - 09/Feb/09 5:44 AM fixed

People

  • Assignee:
    blackdrag blackdrag
    Reporter:
    Robert Fischer
Vote (0)
Watch (0)

Dates

  • Created:
    08/Feb/09 10:45 PM
    Updated:
    07/Apr/09 11:31 PM
    Resolved:
    09/Feb/09 5:44 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.