DongChunHao opened a new issue, #7577: URL: https://github.com/apache/netbeans/issues/7577
### Apache NetBeans version Apache NetBeans 22 ### What happened When the "fieldToRename" field is selected for the rename field refactoring, it causes a refactoring bug because the new field name being renamed conflicts with other variables in the inner class, resulting in a change in code behavior. ### Language / Project Type / NetBeans Component _No response_ ### How to reproduce 1. select 'fieldToREname' 2. rename 'fieldToREname' to 'newVariable'  In this example, a variable is assigned to a field before refactoring, and when the field is renamed to a variable name, the assignment statement becomes an assignment to the field itself, resulting in a change in code behavior ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows11 ### JDK 20 ### Apache NetBeans packaging Apache NetBeans platform ### Anything else _No response_ ### Are you willing to submit a pull request? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
