-
Notifications
You must be signed in to change notification settings - Fork 701
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
Add "insertAfterLocalVariable" method on CtBehavior #430
Comments
Good Day, |
Well the project is not dead but its development is now very slow.
Also check the case when a try-catch statement is the first statement in a method body and a local variable is declared before the statement or in its try block. |
Why has javassist never had a method as useful as this?
javassist/src/main/javassist/CtBehavior.java
Line 1314 in 0727723
The purpose of this method is to make changes to code where the line number or variable name is unknown or does not exist. I use it for some obfuscated code, but it doesn't work for all obfuscated code. For unobfuscated code it obviously works.
The implementation is included with a test.
This is the only method that got the expected result as JVM is not my area of expertise.
I hope I've helped. Thank you very much and have a nice day!
The text was updated successfully, but these errors were encountered: