Bug 77327 - [1.5] Contravariance of generic Type raises Error
Summary: [1.5] Contravariance of generic Type raises Error
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 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-29 15:22 EDT by Karsten Becker CLA
Modified: 2004-11-04 11:39 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 Karsten Becker CLA 2004-10-29 15:22:56 EDT
List<? super Number> wsn= null; // Contravariance
List<? super Integer> wsi= wsn; // should work!
Comment 1 Philipe Mulet CLA 2004-11-02 12:28:21 EST
Got addressed when changing the rules for type argument compatibility.
Fixed.

Frederic - pls add regression test.
Comment 2 Frederic Fusier CLA 2004-11-02 12:43:14 EST
Test case added in: GenericTypeTest#test380
Comment 3 Frederic Fusier CLA 2004-11-04 11:39:47 EST
Verified for 3.1 M3 with build I200411040800