Bug 3446

Summary: type hierarchy: incorrect behavior wrt working copies (1GLDHOA)
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: All   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2001-10-10 22:55:15 EDT
AK (10/10/2001 10:55:06 AM)
package p;
class B{
	void m(){
	}
	void f(){
		m();
	}
}
class A extends B{
	void m(){
	}
}

. i have a pointer to A::m()
. i ask for superTypeHierarchy on A  (temp is called superTypes)
. then, i search for declarations of m in the hierarchy of A
. i find 2 matches - one is reported in B (temp is called typeB)
. i call superTypes.contains(typeB)
	and it incorrectly returns false because although superTypes does contain a type B it;s parent is a WorkingCopy, 
	while the B i have in typeB has a parent that is a CopilationUnit, so they're not equal and the method returns false.



NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:14:48 EST
PRODUCT VERSION:
	jcore 203_08

Comment 2 Philipe Mulet CLA 2002-01-16 09:11:19 EST
This issue should be along the same line as 
http://bugs.eclipse.org/bugs/show_bug.cgi?id=7625
Comment 3 Jerome Lanneluc CLA 2002-02-01 11:52:22 EST
Type hierarchy can now be created on types coming from a working copy.
Verified that Adam's test case now works.