Bug 3445 - search: type hierarchy scope incorrect (1GLC8VS)
Summary: search: type hierarchy scope incorrect (1GLC8VS)
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:55 EDT by Philipe Mulet CLA
Modified: 2002-03-08 12:36 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.