invoking a interface default method from within an InvocationHandler

Jochen Theodorou blackdrag at gmx.org
Thu Oct 9 17:21:21 UTC 2014


Am 09.10.2014 17:32, schrieb Alessio Stalla:
[...]
> Well, you can extend this technique by using more method references and
> delegation (yes, even more levels of indirection!),

in short: I should just produce my own proxy system ;) Or in other 
words, there is no proper replacement in the JDK for Proxy.newInstance 
with the same functionality, that is able to call the default method.

> but frankly if you
> could have doubts about the solution with a functional interface, this
> one would triumphantly jump over the line between "nice hack" and
> "horrible, horrible code".

true

bye Jochen

-- 
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org



More information about the mlvm-dev mailing list