Bug 87481 - [1.5] type reference in CastExpression is generic type instead of parameterized
Summary: [1.5] type reference in CastExpression is generic type instead of parameterized
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-09 05:58 EST by Markus Keller CLA
Modified: 2005-03-30 23:22 EST (History)
0 users

See Also:


Attachments

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