Skip to content

Conversation

@histausse
Copy link

@histausse histausse commented Nov 24, 2025

Display the correct class implementation in case of duplication (Fix #2701).

When adding a class already present in the mappings of RootNode, compare the dex file names are now compared to select the right class.
The GUI list classes from the JavaPackage, which contains all classes implementation and appears to select the last one (?). Fixing this is a little tricky because having all classes in JavaPackage might be the desired/expected behavior, but it feels strange to perform additional computations from outside an API class to select the right class, so I added another attribute to JavaPackage listing classes without the duplicates.

They are probably other places in the code that select an arbitrary implementation instead of the one used at runtime, but this fix the issue for files generated by the cli and the classes displayed by the gui from the tree menu.

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

Successfully merging this pull request may close these issues.

[core] Wrong class implementation displayed when an application contains duplicates

1 participant