|
[ASM] Bytecode and Runtime contradict each other [Fixed] - Printable Version +- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club) +-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1) +--- Forum: Programming (https://the.bytecode.club/forumdisplay.php?fid=86) +--- Thread: [ASM] Bytecode and Runtime contradict each other [Fixed] (/showthread.php?tid=1504) |
[ASM] Bytecode and Runtime contradict each other [Fixed] - Dank Vader - 11-30-2015 RE: [ASM] Duplicate fields when renaming classes - Bibl - 12-07-2015 to be honest, i havent really used asm's remapper. instead i made my own which iterates through all of the classes/fields/methods and then renames stuff that way. i would recommend you do that as well. RE: [ASM] Duplicate fields when renaming classes - Dank Vader - 12-13-2015 (12-07-2015, 08:04 AM)Bibl Wrote: to be honest, i havent really used asm's remapper. instead i made my own which iterates through all of the classes/fields/methods and then renames stuff that way. i would recommend you do that as well. I've switched to this and can't seem to figure out how to update class names. Everything else is working though. Edit: Nevermind. I had the classreaders/writers in the wrong order. Thanks for the tip! Currently stuck at updating the references to the renamed objects/classes. I can't get all the method calls from variables to be renamed and classes keep trying to refer to their original names despite signatures and descriptions being updated. Here's an example jar so that you can look for yourselves. Text and screens can only do so much: http://b.1339.cf/cladyky.zip RE: [ASM] Duplicate fields when renaming classes - Bibl - 12-17-2015 You need to change method parameters and field types. are you doing that? RE: [ASM] Duplicate fields when renaming classes - Dank Vader - 12-17-2015 (12-17-2015, 02:10 AM)Bibl Wrote: You need to change method parameters and field types. are you doing that? Method parameters and field types are correct. ![]() The jar itself is in the last post but here's what's run to rename everything. Code: @SuppressWarnings("rawtypes")RE: [ASM] Bytecode and Runtime contradict each other - Bibl - 12-20-2015 can you show the java and the bytecode of a method that isn't being transformed properly. RE: [ASM] Bytecode and Runtime contradict each other - Dank Vader - 12-23-2015 (12-20-2015, 05:13 AM)Bibl Wrote: can you show the java and the bytecode of a method that isn't being transformed properly. They are transformed though. That's what I've run into. If you look at the jars I provided the bytecode references all have been updated. The class names/definitions, the methods (declarations and references, parameters), field types, method local variables. It's all updated. But at runtime it just flips out and tries to use the old names. |