-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
NPE in ExplicitConstructorCall of JDT #908
Comments
The bug is already present in 5.2.0 |
The method name assert is not present in the jdt data, I don't know how to fix this bug. |
I just investigate and Then the fix is really simple: you have to force the compliance level of Spoon to version 3, to accept the keyword. |
Thanks for the bug report. The problem is fixed to me as shown in my commit. |
As explained in #925 I did not manage to reproduce the bug there. Do you have more inputs about it? |
Oh, didn't notice, sorry. I'll test latest Spoon and see if the error has gone. Will give you feedback the next days. |
When running newest spoon on argouml in noClasspathMode we get a strange NP in the attached file
npe.zip
Line 266 in code says
if (Dbg.on) Dbg.__assert__(i >= 0 && i < _npoints, "point not found");
but JDT interprets it as
if (Dbg.on) Dbg.__super__(i >= 0 && i < _npoints, "point not found");
Best way to observe this behaviour is to set a conditional breakpoint in JDTTreeBuilder in Line 1027 with the condition
inv.getExecutable() == null
The text was updated successfully, but these errors were encountered: