"RemappingClassAdapter" can cause re-assignment of local slots
Full description and small project that reproduces the issue:
https://github.com/circlespainter/asm-relocate-localvars-bug
From README:
When using [ASM](http://asm.ow2.org/)'s `RemappingClassAdapter`, even with an
empty remapping, a method's locals can be relocated so that (seemingly) the
first appearing in the bytecode sequence will get lower slots.
This is an issue for transforming logic that relies on local slot stability.
This issue is inherited f.e. by the [Gradle Shadow plugin]
(https://github.com/johnrengelman/shadow).