Bug 76790

Summary: [1.5][Generics] Wrong type mismatch about very simple generic java code. (extending generics)
Product: [Eclipse Project] JDT Reporter: Se Kwon, Kim <evol>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.