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.
For the following class: class A { public A() {} public A(String txt) {} } changing the method signature from A(String) to A() is not possible because A() already exist. But it should be possible! In this case the method A(String) should just be removed. It is probably an enhancement. Thank You
IMO changing a method signature to an existing one should not be possible. A refactoring should not change the outcome of a program and creating a second method with the same signature makes the code invalid. The proposed fix of deleting the second method is will almost certainly change the outcome of the program. If the desired result is to change all method calls from one method to another the following should be done instead: 1. change the method to delegate to the desired method (in this case A()). 2. inline the old method, therefore changing all the method calls to the delegated method.