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.

Bug 157218 - "rename method" in interface definition should rename methods in all known implementations
Summary: "rename method" in interface definition should rename methods in all known im...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker with 1 vote (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-21 12:53 UTC by kawazu428
Modified: 2011-08-02 12:00 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2009-01-21 12:53:50 UTC
Situation: 
- Refactoring interface definitions across several maven2 projects, involving changing method names.
- Using CTRL+R ("refactor -> rename") on methods in order to change the method name.

Expected behaviour:
- Name in interface definition being changed accordingly.
- All references to the former method name being changed accordingly, including classes that implement that very interface.

Outcome: 
- Method name in interface definition is changed.
- Method name in classes implementing that interface aren't changed, subsequently ending up in these interfaces being
broken and requiring manual modifications.

Could refactor->rename, used on interface method declarations, be used to also change method names in implementing classes?