This seems like a stupid question, but I'm tripping over it at the moment. Why does this compile?
import java.util.*;
public class Test {
public static void main (String[] argv) throws Exception {
Map<String,String> map = new HashMap<String,String>();
map.get(new ArrayList<String>());
}
}
Shouldn't it be illegal to call get with something that's not compatible with "String"?