Skip to content
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

要是能对class下的函数进行重排序就好了 #76

Open
guozhiqiang123 opened this issue Oct 10, 2023 · 1 comment
Open

要是能对class下的函数进行重排序就好了 #76

guozhiqiang123 opened this issue Oct 10, 2023 · 1 comment

Comments

@guozhiqiang123
Copy link

我想到一个问题,如果能对java class下的函数进行随机排序,这样不仅能打乱每个文件下的代码,而且还不影响功能。
在此和大家讨论 一下,不知有没有大佬这样实践过?

@ANewAnonymous
Copy link

在 Java 中,类的方法和字段在打包成 .class 文件时并没有固定的顺序。编译器和 Java 虚拟机并不保证方法和字段在 .class 文件中的顺序。各个应用市场也不可能按字节码里面方法的顺序来给你的包查重,一般都是按照代码相似度,高级的平台可能有一整套系统能从方法调用栈来分析app的相似性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants