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.
Summary: | Changing method signature to an existing one | ||
---|---|---|---|
Product: | editor | Reporter: | Tim Lebedkov <lebedkov> |
Component: | Refactoring | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 65780 |
Description
Tim Lebedkov
2006-04-06 11:08:45 UTC
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. |