-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
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
JSInterop NullPointerException in Compilation #9346
Comments
Seems like you are using the snapshot version? |
Yeah sorry forgot to mention that. |
This looks like a problem that is already fixed; you should use snapshot instead. |
I am using snapshot is what my last comment mean't. |
Can you put together a minimal case? It looks that you already have On Thu, May 19, 2016 at 10:47 PM, Goktug Gokdogan notifications@github.com
|
You can reproduce the issue here https://github.com/BenDol/jsinterop-issue |
You'll notice that if you comment out the |
There seems to be an error in the lambda. EventFunc1 takes only one Strange that there is not JDT (java) compilation error. I'll have a look On Thu, May 19, 2016 at 11:35 PM, Ben Dol notifications@github.com wrote:
|
If you look at EventFunc1 it takes 1 custom parameter but also handles the jquery event passed in every jquery event trigger. @FunctionalInterface
@JsFunction
interface EventFunc1<A> {
Object call(Event e, A param1);
} |
I see. I was browsing https://github.com/workingflows/gwt-jquery. On Fri, May 20, 2016 at 12:05 AM, Ben Dol notifications@github.com wrote:
|
Am I correct in assuming the latest commit resolved this? I compiled with the latest snapshot successfully. |
No. The last few commit were not addressing your issue specifically. I haven't have the time to reproduce your issue in my repo yet, but as AFAICT it is unrelated to the last few commits. |
Yeah nevermind, I removed the case in my other project, you can still reproduce it in the repo I linked. |
Could not reproduce with your example repo. Reopen with a reproducible MINIMAL case that does not require maven and is completely self contained (one or very few classes and 1 gwt.xml file) and provide a command line invocation parameters. |
Got a repro case. Thanks. |
Preliminary review is at: https://gwt-review.googlesource.com/#/c/14941 |
Submitted. |
JsConstructors for native types provide support for cast and instanceof. This patch makes native JsTypes and their constructors live if they are referenced at all (but should not have any effect on codesize). Bug: gwtproject#9346 Bug-Link: http://github.com/gwtproject/gwt/issues/9346 Change-Id: I6c1621e41705a0ff84a9fefe8c02d77440ca1936
I am getting this compilation error and I'm not sure why. Seems to happen when I have optimization set > 0. I realize that I am probably doing something wrong here, but I have little to no hint as to what the error is here. Perhaps if it is the case that I have implemented incorrectly that it tells me about the possible error.
Note that I did check the issue tracker to see if anyone else has had this issue, but wasn't able to find anything. My goal here is to help identify possible faults that could require feedback for developers to resolve quickly.
Sorry if this is something I have done wrong I appreciate the patience and assistance.
Using GWT 2.8.0-SNAPSHOT
Here is the code that caused it:
Any ideas what is going on here? Thanks!
The text was updated successfully, but these errors were encountered: