tiny-remapper icon indicating copy to clipboard operation
tiny-remapper copied to clipboard

Support local variable remapping

Open NebelNidas opened this issue 2 years ago • 3 comments

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

NebelNidas avatar Oct 09 '23 16:10 NebelNidas

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?

SpaceWalkerRS avatar Oct 09 '23 16:10 SpaceWalkerRS

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

cph101 avatar Feb 28 '24 06:02 cph101

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

NebelNidas avatar Apr 01 '24 18:04 NebelNidas