Recaf icon indicating copy to clipboard operation
Recaf copied to clipboard

Mapping progress visualizer doesn't properly count renamed members in renamed classes

Open Col-E opened this issue 1 year ago • 0 comments

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:

  1. Rename a field in a class
  2. Observe the class in progress viewer, see that the renamed field count is 1/N
  3. Rename the class that declares the field
  4. Observe that the renamed class in the progress viewer has the renamed field count at 0/N

Screenshots

Before renaming anything:

image

After renaming some fields, then the declaring class:

image

Col-E avatar Jan 08 '25 03:01 Col-E