Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Currently, it is possible to define closure coercion to interfaces:
{ } as Runnable
(bad example since closures are already runnable, but still...)
The mechanism leverages Java proxies and invocation handlers.
The mechanism should be enhanced to allow extending classes as well.