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 argc, char** argv) { int a; // Variable to be renamed #ifdef A a = 1; #endif return a; } =============================================== Now, let's rename the selected variable to "A": ============= Refactored Version ============= #define A int main(int argc, char** argv) { int A; #ifdef A A = 1; #endif return A; } =============================================== Notice that when the compiler attempts to expand the macro in "int A;", producing "int ;", therefore, a lexical error. Thanks in advance.
* sorry, it's a syntax error, although the kind of compiling error is irrelevant.
Thanks. We will implement it as an enhancement later on
*** Bug 240304 has been marked as a duplicate of this bug. ***
*** Bug 240437 has been marked as a duplicate of this bug. ***
*** Bug 240465 has been marked as a duplicate of this bug. ***