running Groovy on JDK9
Alex Buckley
alex.buckley at oracle.com
Wed Apr 13 16:18:20 UTC 2016
On 4/13/2016 9:05 AM, Jochen Theodorou wrote:
> What I would prefer though is a proper generic way to call a default
> method on an interface without having an implementing instance. A
> MethodHandles.lookup().in(Comperator.class) won't give me access to
> invokespecial Comperator#reversed, or am I wrong here?
This is off-topic for jigsaw-dev, but it doesn't make sense to invoke a
default method without a receiver, as the method body might aload_0.
Alex
More information about the jigsaw-dev
mailing list