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:05:23 UTC
[I] Rename method leads to naming conflicts [netbeans]
DongChunHao opened a new issue, #7300:
URL: https://github.com/apache/netbeans/issues/7300
### Apache NetBeans version
Apache NetBeans 21
### What happened
When I select "k()" and perform the rename method refactoring, new naem "m()" and i click "OK", a syntax error:
public class A {
void m(Object m){
System.out.println("A");
}
}
class B extends A{
// rename k to m
void k(String m){
System.out.println("B");
}
void f(){
m("1");
}
}
refactoring result:

Expected result: Check for grammar conflicts before renaming. If there are any grammar errors, a warning should be given
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
When I select "k()" and perform the rename method refactoring, new naem "m()" and i click "OK", a syntax error:
public class A {
void m(Object m){
System.out.println("A");
}
}
class B extends A{
// rename k to m
void k(String m){
System.out.println("B");
}
void f(){
m("1");
}
}
### 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 method leads to naming conflicts [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #7300:
URL: https://github.com/apache/netbeans/issues/7300#issuecomment-2069130773
Please hold fire on making further issue reports until these can be assessed. Swamping the project with multiple similar issues is not helpful. Consider whether they can be encapsulated in a single meta issue.
Did you mean to select the NetBeans platform as packaging type? Are these problems in the NetBeans IDE or in your own platform application based on the NetBeans IDE?
--
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
Re: [I] Rename method leads to naming conflicts [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed issue #7300: Rename method leads to naming conflicts
URL: https://github.com/apache/netbeans/issues/7300
--
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