@@ -0,0 +1,974 @@
+package bugIdeas;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0A%0Apublic class Ideas_2010_12_09 %7B%0A%0A    protected %3CT%3E T throwException( String msg) %7B%0A        throw new RuntimeException(msg);%0A    %7D%0A    %0A    public int hash(Object o) %7B%0A        if (o == null)%0A            throwException(%22Oops%22);%0A        return o.hashCode();%0A    %7D%0A    %0A    static class MultivaluedMap%3CK,V%3E extends HashMap%3CK,List%3CV%3E%3E %7B%0A        %0A        V foo() %7B%0A            return null;%0A        %7D%0A        %0A    %7D%0A    static MultivaluedMap%3CString,String%3E m = new MultivaluedMap%3CString, String%3E();%0A    %0A    public static void main(String args%5B%5D ) %7B%0A       %0A        List%3CString%3E lst = new ArrayList%3CString%3E();%0A        lst.add(%22a%22);%0A        lst.add(%22b%22);%0A        m.put(%22x%22, lst);%0A        MultivaluedMap%3CString,String%3E m2 = m;%0A        for(String s : m.get(%22x%22))%0A            System.out.println(s);%0A        for(String s : m2.get(%22x%22))%0A            System.out.println(s);%0A        %0A    %7D%0A%0A%7D%0A

Add new bug idea