This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, when renaming a local variable, the names were changed inconsistently leading to incorrect code. The problem was triggered by accident: first I pressed Ctrl-R, but I did not notice that these litte squares appear and that I can just type in the new name. So I right-clicked to get Refactor/Rename... from the context menu. After renaming with the dialog, e.g. from "a" to "au", the first appearance was renamed correctly, but the further appearances were renamed to "auau". The little-square renaming should probably be canceled automatically before the menu-renaming starts. Best wishes, Alexander
Reassigning all moonko's java/source bugs to myself.
Works OK in the latest dev version. I've invoked dialog-based Refactor-Rename while the in-place rename regions were active. After confirmation, both occurrences of the identifier were renamed. If you still can reproduce the defect, please provide the exact code -- possibly in-place and "great" refactoring may differ in the places they identify as targets of the rename operation.