Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
JsFunction in native JsType method signature causes unusable-by-js warnings #9376
The GWT compiler emits "unusable-by-js" warnings when a native JsType method has a JsFunction in the signature.
I've observed this while compiling applications using these types:
For projects with JS interop exports enabled, the GWT compiler emits warnings for every method in GlobalEventHandlers even though everything works as expected at runtime.
Could we please reopen this issue? I've now figured out how to reproduce the issue and have created a reproducer. Please checkout this project and run
The warnings seem to appear when a native JsType has a method with a JsFunction parameter and the method is not used. You can see in the entrypoint of my reproducer that there is a commented out usage of such a method: when that line is uncommented the warning goes away.