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

Bug 204118

Summary: [search] Rename doesn't finish correctly
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 CC: jerome_lanneluc, markus.kell.r, martinae, Olivier_Thomann, philippe_mulet
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description David Audel CLA 2007-09-20 09:38:46 EDT
build I20070918-0010

1) create Test.java
public class Test {
	void foo() {
		AnInterface.I3 i;
	}
}
interface I1 {
}
interface I2 {
	public interface I3 extends I1 {
	}
}
interface AnInterface extends I2 {
}
2) select AnInterface
3) do alt+shift+R (rename)
4) rename the interface I4
The declaration and the reference seems renamed I4
5) do enter
The declaration is renamed but not the reference which is still AnInterface.
Comment 1 Martin Aeschlimann CLA 2007-09-20 10:02:23 EDT
It seems that search doesn't find the reference to 'AnInterface' and so the refactoring fails.

- Select the declaration of 'AnInterface'
- Search for all type references: No matches

Moving to jdt.core
Comment 2 Frederic Fusier CLA 2007-09-21 02:55:04 EDT
The resolveType of the QualifiedTypeReference 'AnInterface.I3' is 'I2.I3', hence the Search Engine fails to find this reference.
Philippe, do you think it's a compiler a bug or is it the expected behavior?
Comment 3 Frederic Fusier CLA 2009-06-25 11:59:15 EDT
Set as P5 bugs which have be unchanged for more than 2 years...
Comment 4 Eclipse Genie CLA 2019-05-31 20:20:12 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.