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

[feature]find usage should find the same method in super and interfaces #1349

Closed
cyqw opened this issue Jan 22, 2022 · 4 comments
Closed

[feature]find usage should find the same method in super and interfaces #1349

cyqw opened this issue Jan 22, 2022 · 4 comments
Labels
bug GUI Issues in jadx-gui module

Comments

@cyqw
Copy link
Contributor

cyqw commented Jan 22, 2022

Some class have override method from super or interfaces.
The caller function may use super or interface to call this method.
jadx.gui.ui.dialog.UsageDialog#collectUsageData should get UseIn of self and same method of super and interfaces.

@cyqw
Copy link
Contributor Author

cyqw commented Jan 22, 2022

I can get MethodNode of super and interfaces,how to get JavaMethod?

@skylot
Copy link
Owner

skylot commented Jan 23, 2022

@cyqw this is indeed a bug, I totally forget about that, thanks!
An easier way is to use JavaMethod.getOverrideRelatedMethods() to get a list of all overridden methods from class hierarchy, and next merge all usages (JavaMethod.getUseIn()) from each method.
Do you willing to prepare PR? If yes, please assign this task for yourself.

@skylot skylot added bug GUI Issues in jadx-gui module and removed new feature labels Jan 23, 2022
@cyqw
Copy link
Contributor Author

cyqw commented Jan 23, 2022

I will try to prepare PR.

@skylot
Copy link
Owner

skylot commented Jan 23, 2022

Fixed in PR #1352 by @cyqw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug GUI Issues in jadx-gui module
Projects
None yet
Development

No branches or pull requests

2 participants