Finding Method Calls
> Turns out you can search it, mb. >  Ah yes, thankyou! Don't know how i missed that (facepalm)
> Turns out you can search it, mb. >  Ah yes, thankyou! Don't know how i missed that (facepalm)
Hey, i'm looking to find a method call among many classes. I can do this fine using the regex search when the method has a refactored, unique name, like updatePlayer. The problem arises when i try to find a method called a(). As you can imagine, this comes up with lots of results
> does the jar run properly? I have not tried yet, but fernflower decompiles it properly, which it wasn't doing before. Having thought about how I did everything though I have made some mistakes which I need to fix. Like, duplicate methods does not take into account if the method
I have succeeded in refactoring a jar file and removing duplicate methods and names which are java keywords (do, int, boolean, for, etc...). If you would like to see what i did its on my github. The main class of focus is https://github.com/Sothatsit/GamepackDownloader/blob/maste
> I think you also need to handle TypeInsnNodes, maybe even LdcInsnNodes as well for(Types). > I'd recommend you look at the code I posted to see the sort of things you should refactor and what you shouldn't (which insns, which methods, hierarchy methods and classes etc) Sorry fo
> https://gist.github.com/TheBiblMan/5e1d9e20c877b5ea6fcb > got field and class renaming done 100%, methods may not work 100% so i've gotta work on that. That looks interesting, I'll definitely take a look and see what you do. The main issue I have is that I want to rename classe
> **Bibl wrote:** > > > **sothatsit wrote:** > > > > > **Bibl wrote:** > > > > > > just tried fernflower and the same thing is happening for me, guess you should rename with proguard or retroguard. > > > > > > I think I'm actually going to use asm to edit the bytecode to rename t
> just tried fernflower and the same thing is happening for me, guess you should rename with proguard or retroguard. I think I'm actually going to use asm to edit the bytecode to rename the fields/methods/classes. This is good because then I don't have to recompile the source cod
@Bibl do you know any libraries which can provide an api for editing java bytecode?
> you could use proguard or retroguard to rename the fields or make your own field renamer (methods are a bit tricker). Like, editing the bytecode?
> are you using the orginal fernflower or the one jetbrains stole and claimed as their own? I am using the fernflower from https://github.com/fesh0r/fernflower. I have just cloned and built it.
Hey, I am new to the Java Reverse Engineering scene and have started out using FernFlower. I am currently working on a project which simply decompiles and refactors a jar. It is all going well except for one major issue: It doesnt rename the fields/methods when they are declared,