Recaf
Recaf copied to clipboard
Mapping progress visualizer doesn't properly count renamed members in renamed classes
Describe the bug
When you rename a field in a class, its shown correctly in the mapping progress visualizer. However, if you then rename the class that declares the fields it will say 0 of the fields are renamed. This is because the aggregate mappings attributes the field to the original name and now the new name, but the progress visualizer does not accommodate for that.
To Reproduce
Steps to reproduce the behavior:
- Rename a field in a class
- Observe the class in progress viewer, see that the renamed field count is 1/N
- Rename the class that declares the field
- Observe that the renamed class in the progress viewer has the renamed field count at 0/N
Screenshots
Before renaming anything:
After renaming some fields, then the declaring class: