-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Anonymous classes are not shown in jobf file #1350
Comments
@yotamN it is a bug. |
I've tried to move the Adding the rename from line 93 to the deobfuscator seems to break the state, it works but throws an exception |
Java identifiers can't start with a digit, also it is a way java compiler name anonymous classes (just numbers)
Looks like,
I think this is a bad idea because this method trying to fix invalid names and can work without enabled deobfuscator. for (ClassNode cls : root.getClasses()) {
ClassInfo clsInfo = cls.getClassInfo();
if (clsInfo.hasAlias()) {
deobfPresets.getClsPresetMap().put(clsInfo.makeRawFullName(), clsInfo.getAliasShortName());
}
// TODO: similar for fields and methods
} This way, we don't need to worry about missing renames in jobf files. |
Do you mean just numbers or also classes like Because the app I've been looking at have a lot of classes like the latter and I think they are being misidentified as anonymous classes. Sure it's not a big deal, just wants to make sure this is the intended behavior. |
Yeah, anonymous class names have only digits, and you are right it may be better to use regex like |
Classes that were renamed to
AnonymousClassX
are not shown in the jobf file and it seems there is no way to know they were renamed. Is it the intended behavior or a bug?It seems that at
RenameVisitor.checkClassName
change the name without updating theDeobfuscator
map file. How should I go about adding it? I guess I should not just simply put the the changed class because there is no such method in theDeobfuscator
classThe text was updated successfully, but these errors were encountered: