Bug 3445

Summary: search: type hierarchy scope incorrect (1GLC8VS)
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akiezun
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: All   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2001-10-10 22:55:15 EDT
AK (10/9/2001 6:47:34 PM)

	file "A.java"
	package p;
class B{
	private void m(){
	}
}
class A extends B{
	void m(){
	}
}
class C extends A{
	void m(){
	}
}

1. programatically create SearchEngine.createHierarchyScope(declaringType); //declaring type is A
	note: field elements has one entry: File A.java
2. now, programatically create SearchEngine.createHierarchyScope(declaringType); //declaring type is C
	note: field elements is empty, which i think means that no matches will ever be reported on that scope.

	does that have sth to do with the fact that A has the same name as A.java?
	this seems to happen only when ui is up (in my ui-less tests it's all ok)
Comment 1 DJ Houghton CLA 2001-10-29 17:14:43 EST
PRODUCT VERSION:
	203

Comment 2 Philipe Mulet CLA 2001-11-26 11:21:04 EST
What means 'field elements' in your previous description ? 
Comment 3 Philipe Mulet CLA 2001-11-26 11:21:50 EST
Please answer my previous question: "What means 'field elements' in your 
previous description ? "

Comment 4 Adam Kiezun CLA 2001-11-26 11:37:50 EST
it means
AbstractSearchScope::elements
Comment 5 Jerome Lanneluc CLA 2002-01-22 09:33:02 EST
Adam, do you have more details? I added a test case in our test suite, and it 
works as expected, but the ui is not involved in these tests.
If you could give me steps to reproduce using the ui, it would be great.
Also is the type your passing to the hierarchy scope creation coming from a 
working copy?
Comment 6 Jerome Lanneluc CLA 2002-03-08 12:33:13 EST
Closing. Please re-open if you have more details.