Skip to content
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

Support local variable remapping #114

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NebelNidas
Copy link
Contributor

@NebelNidas NebelNidas commented Oct 9, 2023

Not sure why this wasn't enabled yet, from my (arguably limited) testing it looks like everything's working correctly.

@SpaceWalkerRS
Copy link

I remember there being an issue with some obfuscated jars, since they lack a local variable table in the byte code. In that case this remapping would fail. I don't know if it's doable for TR to generate this byte code if any local variable mappings are given?

@cph101
Copy link

cph101 commented Feb 28, 2024

This pull request is so simple, yet a total lifesaver. Thank you so much for implementing this! 🙏

@NebelNidas
Copy link
Contributor Author

NebelNidas commented Apr 1, 2024

I don't know if it's doable for TR to generate this

Apparently there's some rudimentary code for LVT generation in Matcher, I'll see if I can repurpose it. That's going to be another PR though, the current changes already work perfectly fine for methods with intact LVT attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants