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 _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev