-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
sniper: unable to rename class #3097
Comments
Do you mean
|
A full refactoring could be nice but here the problem is the the sniper mode does not change the name of the class. In the output the old name is still used. |
Hi, I have a similar problem. But it leads to NPE. I use Spoon 8.1.0-beta-9. Here is the code, note that if I remove
The reason of NPE is caused by the following code:
What I want to do is to remove some statements and rename the class, but I found that the generated code will have additional parentheses. Here is an example (it is also the program triggered NPE),
The generated code is:
Is there any way to avoid introducing parentheses? ---update--- I found the program has "package src;" but the input dir doesn't relate to "src". When I removed "package src;", it doesn't crash but the output is strange:
Thank you very much. |
Using this code:
The model is correctly changed, but the sniper mode does not succeed to generate the correct output.
The text was updated successfully, but these errors were encountered: