Bug 76790 - [1.5][Generics] Wrong type mismatch about very simple generic java code. (extending generics)
Summary: [1.5][Generics] Wrong type mismatch about very simple generic java code. (ext...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.1 M3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 02:02 EDT by Se Kwon, Kim CLA
Modified: 2004-10-29 13:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Se Kwon, Kim CLA 2004-10-22 02:02:50 EDT
package test;

import java.util.*;

public class Test
{

    class List1<E> extends LinkedList<E> {};
    
    public static void main (String[] args) {
        
        Map<String, List<Integer>> x = new HashMap<String, List<Integer>>();
        Map<String, List1<Integer>> m = new HashMap<String, List1<Integer>>();
    }
}


JDT makes following one error :
Type mismatch: cannot convert from HashMap<String,Test3.List1<Integer>> to 
Map<String,Test3.List1<Integer>> (surely, javac compiles successfully)

It should not be happened.
Comment 1 Frederic Fusier CLA 2004-10-27 07:32:01 EDT
It works with last integration build I200410260800.
Comment 2 Frederic Fusier CLA 2004-10-29 13:06:01 EDT
Test case test0359 added in GenericTypeTest.