question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A bug while renaming variables

See original GitHub issue

Hello, actually I have to say that Recaf is a very nice tool that I found. Both GUI and background stuff are cool. But I found a bug while renaming variable names. I wish I could send the jar file but I dont own it. Let me explain the bug.

Lets say there are 2 classes named A and B, and B extends A. When I try to rename a variable in A, it renames all the variables matching in A(and maybe some other classes), but it doesn’t rename that variable on B class. And this causes to crash the program(not Recaf).

The error when this bug happens: java.lang.NoSuchFieldError: variableName

Actually I could challange with this by renaming the variables back to original ones, but it took long and i think this bug is an unintended thing when renaming.

Thanks for replying my issues.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MizzMastercommented, Sep 12, 2020

Actually I was saying that if I rename a variable on a super class, it has to be renamed on all child and child’s child … and so on. You also fixed this on v2.7.0.

My second thing in that post is, if I search a super class’s variable by right clicking it and selecting “Search References”, it auto fills “Owner” section by this super class’s name, and causes me to can’t find references on child classes, because child classes gets this variable by its own name (GETFIELD Child.parentsVariable), so i clear the “Owner” section but then i get lots and lots of search result because of obfuscation has renamed variables like a,b,c…

My advice is, add an option button or box while searching variables, something like ‘Also search on child classes’

0reactions
Col-Ecommented, Sep 12, 2020

Oh that’s a good point for searching

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# VS2022 Bug when trying to rename variables in local static ...
The VS Rename Dialog reports an “unresolvable conflict” for duplicate var names. This is logical correct for non-static local functions but ...
Read more >
Found a bug renaming variables or assets
Hey Guys,. I found a bug when you rename variables and assets. But this only happens with renaming only the case of the...
Read more >
[Bug] Rename script variables doesn't work - Snap! Forums
Try to change the name of the "a" variable by right clicking and selecting "rename..". Type in a new name and click the...
Read more >
Bug when renaming variables
Bug when renaming variables. Hello,. In the attached worksheet,. ListC was originally named ListA and. ListD was originally named ListB.
Read more >
139144 – slow variable renames
That project is 74 java files, 301 KB. I do see the same slowness when renaming non GUI generated variables, but there is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found