Hi,
Would it be possible for GWTc to handle java.lang.FunctionalInterface as if it was jsinterop.annotations.JsFunction ?
The reason for asking is, I have this java code:
public void transaction(Runnable runnable) {
startTransaction();
try {
runnable.run();
}
finally {
endTransaction();
}
}
when I expose this method via jsinterop I get a warning "not usable from javascript"
I intent to use it from JS/TS as: myJavaLib.transaction(() => doSomethingInTransaction(...));
but this is not possible unless I supersource java.lang.Runnable and add @JsFunction
It seems to me that @FunctionalInterface and @JsFunction are very similar already...
Regards Jan