Bug 78592 - [1.5][compiler] missing unchecked cast warning
Summary: [1.5][compiler] missing unchecked cast warning
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 00:30 EST by Igor Fedorenko CLA
Modified: 2005-02-15 05:17 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 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