Bug 23829

Summary: IType::resolveType incorrectly returns null
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-09-19 09:27:11 EDT
0917
package p;

class B{}
class A extends B{
}

class Test{
	void f(){
		A a= new A();
		f(a);
	}
	void f(B b){
	}
}

try calling IType::resolveType("B") on p.Test
you get a nul, which is wrong - p.B should be returned

(all these types are declared in one file)
Comment 1 Philipe Mulet CLA 2002-09-23 03:50:16 EDT
Sounds like our secondary type limitation, even though the main type should be 
able to find it.
Comment 2 Jerome Lanneluc CLA 2002-10-03 08:52:06 EDT
When building the parse tree only the outermost type was considered.
Fixed by including all top level types of the cu.
Comment 3 David Audel CLA 2002-10-17 10:21:09 EDT
Verified.