The code below compiles without error... for once I would have preferred it to fail :/
Map <Character, Double> m = new HashMap <Character, Double>();
m.get(new String());
Since the compiler knows that the key used in this map is of type Character, using a String key instead should be flagged as incorrect.
What I am missing ?