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.
Version: Netbeans 7.4 Reproducing the bug: Consider the following code: ============== Original Version =============== #define A int main(int a, char** argv) { #ifdef A a = 1; // variable to be renamed #endif return a; } =============================================== Now, let's rename the selected variable to an existing name "argv" ============= Refactored Version ============= #define A int main(int argv, char** argv) { #ifdef A argv = 1; #endif return argv; } =============================================== The refactoring tool allows multiple declarations, leading to a compiler error. Maybe the tool is not checking the paramter list. Thanks in advance.
*** This bug has been marked as a duplicate of bug 240303 ***