We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For instance in candy cordova--plugins-FileSystem-0.0.0-SNAPSHOT jsweet.dom.Window has a mixin defining this method :
native public void requestFileSystem(double type, double size, java.util.function.Consumer<FileSystem> successCallback, java.util.function.Consumer<FileError> errorCallback);
but it seems that the signature added to jsweet.dom.Window is
native public void requestFileSystem(double type, double size, java.util.function.Consumer<Object> successCallback, java.util.function.Consumer<Object> errorCallback);
Note that the Consumers - callbacks - parameters are now typed with Object
The following code does not work, the compiler complains about the wrong Consumers parameter type:
import def.cordova.plugins.FileError; import def.cordova.plugins.FileSystem; // [...] window.requestFileSystem( window.PERSISTENT, 1000*1000, (FileSystem fileSystem) -> { console.log("FileSystem ready"); }, (FileError error) -> console.log("bad error", error));
The text was updated successfully, but these errors were encountered:
I am surprised, but the solution should be Javassist's setGenericSignature: http://jboss-javassist.github.io/javassist/html/javassist/CtBehavior.html#setGenericSignature-java.lang.String-
setGenericSignature
Sorry, something went wrong.
okay, I have a fix thanks to your insight.
This "detail" fixes some signature problems so it may cause regression on some client code.
Related PR: #77
Thanks Louis. The fix looks good (and simple) to me. If regression there is, it should be easy to fix for users.
No branches or pull requests
For instance in candy cordova--plugins-FileSystem-0.0.0-SNAPSHOT
jsweet.dom.Window has a mixin defining this method :
but it seems that the signature added to jsweet.dom.Window is
Note that the Consumers - callbacks - parameters are now typed with Object
The following code does not work, the compiler complains about the wrong Consumers parameter type:
The text was updated successfully, but these errors were encountered: