Community
Participate
Working Groups
public class TestExtractInterface { public void foo(TestExtractInterface this){ //invoke "Extract Interface" on this method } } Invoke "Extract Interface" on #foo. Enter the interface name and select the method #foo to be part of the new interface declaration. Click OK. The new interface is created with compiler error as the abstract method #foo still refers to the old receiver parameter.
Created attachment 229487 [details] Patch. While performing "Extract Interface", methods with receiver parameter are now updated. While testing found that the current logic which finds the type occurrence consider receiver parameter as a possible candidate that needs to be updated. This resulted in updating the method's return type. Fixed this issue.
The issue is handled as part of the fix for bug 405270. *** This bug has been marked as a duplicate of bug 405270 ***