Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 74086

Summary: RippleMethodFinder should error when renaming binary method [refactoring]
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2004-09-16 12:32:30 EDT
In the code below, rename IRun#run() to 'run2'.

Was: no warning, all occurrences of method name 'run' renamed to 'run2'.

Expected: (non-fatal) error that warns of compile errors, since binary type
'Runnable' was found in the ripple. Then, only rename references to non-binary
ripple methods. Especially things like 'r.run();' should not be touched.

interface IRun {
	public void run();
}

class R implements IRun, Runnable {
	public void run() { }
}

class Usage {
	{
		new R().run();
		Runnable r= new R();
		r.run();
		IRun ir= new R();
		ir.run();
	}
}
Comment 1 Dirk Baeumer CLA 2004-09-17 04:08:00 EDT
Markus, should be considered by the new ripple method finder we have to 
implement using bindings.
Comment 2 Markus Keller CLA 2005-01-25 06:05:41 EST

*** This bug has been marked as a duplicate of 81374 ***