Re: [gwt-contrib] Adding @JsFunction to java.util.function JRE Emulation?

2016-05-17 Thread 'Ray Cromwell' via GWT Contributors
Jens, the issue is not anything to do with ambiguity, it has to do with the way we are able to treat an anonymous class as both a function and an object, see Runtime.java makeLambdaFunction /** * Create a function that applies the specified samMethod on itself, and whose __proto__ points to

Re: [gwt-contrib] Adding @JsFunction to java.util.function JRE Emulation?

2016-05-17 Thread David Becker
That would be — awesome. Pretty please? :) On Tuesday, May 17, 2016 at 11:13:09 AM UTC-7, Jens wrote: > > > The issue is that @JsFunction implementors must "extend >> java.lang.Object" as their parent. because standard library functions >> are/canbe implemented on classes with complicated

Re: [gwt-contrib] Adding @JsFunction to java.util.function JRE Emulation?

2016-05-17 Thread Jens
> The issue is that @JsFunction implementors must "extend > java.lang.Object" as their parent. because standard library functions > are/canbe implemented on classes with complicated type hierarchies, > this would cause failures to compile. > > This restriction comes about from the efficiency