I'm trying to export a Java method with @JsMethod which returns an Optional.
Clearly GWT is emulating Optional under the hood for internal code. Is it possible to export the Optional class as well? At the moment it compiles, but gives me a warning: [unusable-by-js] Return type of 'Optional MyClass.myMethod(String)' is not usable by but exposed to JavaScript. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
