You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "DongChunHao (via GitHub)" <gi...@apache.org> on 2024/04/22 11:26:02 UTC
[I] Rename variable refactoring leads to code behavior change [netbeans]
DongChunHao opened a new issue, #7304:
URL: https://github.com/apache/netbeans/issues/7304
### Apache NetBeans version
Apache NetBeans 21
### What happened
When I select "j" and perform the rename variable refactoring, new name "i" and i click "OK", a behavior change:
public class Test{
void m(){
final int i= 0;
class X{
void m(){
// rename j to i;
int j=2;
i= j;
}
}
};
}
Expected result: Naming conflict check, providing error prompts
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
When I select "j" and perform the rename variable refactoring, new name "i" and i click "OK", a behavior change:
public class Test{
void m(){
final int i= 0;
class X{
void m(){
// rename j to i;
int j=2;
i= j;
}
}
};
}
### 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: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Rename variable refactoring leads to code behavior change [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed issue #7304: Rename variable refactoring leads to code behavior change
URL: https://github.com/apache/netbeans/issues/7304
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists