Bug 78592

Summary: [1.5][compiler] missing unchecked cast warning
Product: [Eclipse Project] JDT Reporter: Igor Fedorenko <igor>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Igor Fedorenko CLA 2004-11-15 00:30:53 EST
Eclipse 3.1 200411101000 does not warn about the following unchecked cast

===========
package test.cheetah;
public class Node {
}
package test.cheetah;
public class Composite<E> {
}
package test.cheetah;
public class Concrete extends Composite {
}
package test.cheetah;
public class Builder {
    Composite<Node> comp = new Concrete(); // unchecked cast
}
===========
Comment 1 Philipe Mulet CLA 2004-12-17 09:05:41 EST
Detection for raw type part was incorrectly performing on original type
(Concrete) instead of considering the matching supertype (Composite).
Added regression: GenericTypeTest#test439.
Fixed.

Will be released once M4 is declared
Comment 2 Jerome Lanneluc CLA 2005-02-15 05:17:04 EST
Verified in I20050214