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

Summary: "rename method" in interface definition should rename methods in all known implementations
Product: java Reporter: kawazu428 <kawazu428>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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?