Details
Description
We should make it possible to implement any Java interface with method missing:
class Foo {
def methodMissing(String name, args) { null }
}
def f = new Foo()
def ctx = f as SomeInterface
The proxy would simply delegate from the interface through methodMissing
Activity
Guillaume Laforge
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.7-beta-1 [ 14014 ] | |
| Fix Version/s | 1.7-beta-x [ 15538 ] |
Steve Ardis
made changes -
| Attachment | GroovyInterfaceTests.groovy [ 45423 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.8.x [ 15750 ] | |
| Fix Version/s | 2.x [ 17013 ] | |
| Fix Version/s | 1.7.x [ 15538 ] |
What is the rationale for this feature?