Bug 87481

Summary: [1.5] type reference in CastExpression is generic type instead of parameterized
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-03-09 05:58:14 EST
v_540

public class Try {
    void doit() {
        Iterator iter= (Iterator) null;
    }
}

The type binding of "(Iterator)" says it's a generc type. It should be a raw
type in this case.
Comment 1 Olivier Thomann CLA 2005-03-09 11:48:08 EST
My mistake. I was using the singleNameReference.binding field instead of the
resolvedType field.
Comment 2 Olivier Thomann CLA 2005-03-09 11:52:57 EST
Fixed and released in HEAD.
Regression test added in ASTConverter15Test.test0146.
Comment 3 Olivier Thomann CLA 2005-03-30 23:22:37 EST
Verified in 20050330-0500